package com.l7tech.policy.wsp;

import org.w3c.dom.Element;

class ac extends z {
   private static final String[] b;

   public ac(WspVisitor var1) {
      super(var1);
   }

   @Override
   public void unknownProperty(Element param1, Element param2, Object param3, String param4, TypedReference param5, Throwable param6) throws InvalidPolicyStreamException {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aload 3
      // 01: instanceof com/l7tech/policy/assertion/xml/SchemaValidation
      // 04: ifeq 8b
      // 07: aload 3
      // 08: checkcast com/l7tech/policy/assertion/xml/SchemaValidation
      // 0b: astore 7
      // 0d: getstatic com/l7tech/policy/wsp/ac.b [Ljava/lang/String;
      // 10: bipush 0
      // 11: aaload
      // 12: aload 4
      // 14: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 17: ifeq 8b
      // 1a: aload 5
      // 1c: getfield com/l7tech/policy/wsp/TypedReference.type Ljava/lang/reflect/Type;
      // 1f: ldc java/lang/String
      // 21: if_acmpeq 3c
      // 24: goto 2b
      // 27: invokestatic com/l7tech/policy/wsp/ac.a (Lcom/l7tech/policy/wsp/InvalidPolicyStreamException;)Lcom/l7tech/policy/wsp/InvalidPolicyStreamException;
      // 2a: athrow
      // 2b: new com/l7tech/policy/wsp/InvalidPolicyStreamException
      // 2e: dup
      // 2f: getstatic com/l7tech/policy/wsp/ac.b [Ljava/lang/String;
      // 32: bipush 1
      // 33: aaload
      // 34: invokespecial com/l7tech/policy/wsp/InvalidPolicyStreamException.<init> (Ljava/lang/String;)V
      // 37: athrow
      // 38: invokestatic com/l7tech/policy/wsp/ac.a (Lcom/l7tech/policy/wsp/InvalidPolicyStreamException;)Lcom/l7tech/policy/wsp/InvalidPolicyStreamException;
      // 3b: athrow
      // 3c: aload 5
      // 3e: getfield com/l7tech/policy/wsp/TypedReference.target Ljava/lang/Object;
      // 41: checkcast java/lang/String
      // 44: astore 8
      // 46: aload 8
      // 48: ifnull 8a
      // 4b: aload 8
      // 4d: invokevirtual java/lang/String.length ()I
      // 50: ifle 8a
      // 53: goto 5a
      // 56: invokestatic com/l7tech/policy/wsp/ac.a (Lcom/l7tech/policy/wsp/InvalidPolicyStreamException;)Lcom/l7tech/policy/wsp/InvalidPolicyStreamException;
      // 59: athrow
      // 5a: aload 7
      // 5c: invokevirtual com/l7tech/policy/assertion/xml/SchemaValidation.getResourceInfo ()Lcom/l7tech/policy/AssertionResourceInfo;
      // 5f: astore 9
      // 61: aload 9
      // 63: instanceof com/l7tech/policy/StaticResourceInfo
      // 66: ifeq 73
      // 69: aload 9
      // 6b: checkcast com/l7tech/policy/StaticResourceInfo
      // 6e: astore 10
      // 70: goto 83
      // 73: new com/l7tech/policy/StaticResourceInfo
      // 76: dup
      // 77: invokespecial com/l7tech/policy/StaticResourceInfo.<init> ()V
      // 7a: astore 10
      // 7c: aload 7
      // 7e: aload 10
      // 80: invokevirtual com/l7tech/policy/assertion/xml/SchemaValidation.setResourceInfo (Lcom/l7tech/policy/AssertionResourceInfo;)V
      // 83: aload 10
      // 85: aload 8
      // 87: invokevirtual com/l7tech/policy/StaticResourceInfo.setDocument (Ljava/lang/String;)V
      // 8a: return
      // 8b: aload 0
      // 8c: aload 1
      // 8d: aload 2
      // 8e: aload 3
      // 8f: aload 4
      // 91: aload 5
      // 93: aload 6
      // 95: invokespecial com/l7tech/policy/wsp/z.unknownProperty (Lorg/w3c/dom/Element;Lorg/w3c/dom/Element;Ljava/lang/Object;Ljava/lang/String;Lcom/l7tech/policy/wsp/TypedReference;Ljava/lang/Throwable;)V
      // 98: return
      // try (6 -> 16): 17 com/l7tech/policy/wsp/InvalidPolicyStreamException
      // try (12 -> 26): 26 com/l7tech/policy/wsp/InvalidPolicyStreamException
      // try (32 -> 37): 38 com/l7tech/policy/wsp/InvalidPolicyStreamException
   }

   private static InvalidPolicyStreamException a(InvalidPolicyStreamException var0) {
      return var0;
   }

   static {
      String[] var5 = new String[2];
      int var3 = 0;
      String var2 = "Yo\u001e\u0012\u0016+\"Yo\u001e\u0012\u0016+BcbVDU\u007fBim\u0018W\u0014$\u000es,\u0014\u0012[+BYx\u0004\u001e\u0015-";
      int var4 = "Yo\u001e\u0012\u0016+\"Yo\u001e\u0012\u0016+BcbVDU\u007fBim\u0018W\u0014$\u000es,\u0014\u0012[+BYx\u0004\u001e\u0015-".length();
      char var1 = 6;
      int var0 = -1;

      while (true) {
         String var10002 = a(58, a(var2.substring(++var0, var0 + var1)));
         byte var10001 = -1;
         var5[var3++] = var10002;
         if ((var0 += var1) >= var4) {
            b = var5;
            return;
         }

         var1 = var2.charAt(var0);
      }
   }

   private static char[] a(String var0) {
      char[] var10000 = var0.toCharArray();
      if (var10000.length < 2) {
         var10000[0] = (char)(var10000[0] ^ 88);
      }

      return var10000;
   }

   private static String a(int var0, char[] var1) {
      int var10003 = var1.length;
      int var10002 = var0;
      char[] var10001 = var1;
      int var10000 = var10003;

      for (int var2 = 0; var10000 > var2; var2++) {
         var10001[var2] = (char)(var10001[var2] ^ var10002 ^ switch (var2 % 7) {
            case 0 -> 48;
            case 1 -> 54;
            case 2 -> 76;
            case 3 -> 77;
            case 4 -> 65;
            case 5 -> 112;
            default -> 88;
         });
      }

      return new String(var10001).intern();
   }
}
