package com.l7tech.policy.wsp;

import org.w3c.dom.Element;

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

   public ab(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/XpathBasedAssertion
      // 04: ifeq d0
      // 07: aload 3
      // 08: checkcast com/l7tech/policy/assertion/XpathBasedAssertion
      // 0b: astore 7
      // 0d: getstatic com/l7tech/policy/wsp/ab.b [Ljava/lang/String;
      // 10: bipush 2
      // 11: aaload
      // 12: aload 4
      // 14: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 17: ifeq 6f
      // 1a: aload 5
      // 1c: getfield com/l7tech/policy/wsp/TypedReference.type Ljava/lang/reflect/Type;
      // 1f: ldc java/util/Map
      // 21: if_acmpeq 3c
      // 24: goto 2b
      // 27: invokestatic com/l7tech/policy/wsp/ab.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/ab.b [Ljava/lang/String;
      // 32: bipush 0
      // 33: aaload
      // 34: invokespecial com/l7tech/policy/wsp/InvalidPolicyStreamException.<init> (Ljava/lang/String;)V
      // 37: athrow
      // 38: invokestatic com/l7tech/policy/wsp/ab.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/util/Map
      // 44: astore 8
      // 46: aload 7
      // 48: invokevirtual com/l7tech/policy/assertion/XpathBasedAssertion.getXpathExpression ()Lcom/l7tech/xml/xpath/XpathExpression;
      // 4b: astore 9
      // 4d: aload 9
      // 4f: ifnonnull 67
      // 52: aload 7
      // 54: new com/l7tech/xml/xpath/XpathExpression
      // 57: dup
      // 58: aconst_null
      // 59: aload 8
      // 5b: invokespecial com/l7tech/xml/xpath/XpathExpression.<init> (Ljava/lang/String;Ljava/util/Map;)V
      // 5e: dup
      // 5f: astore 9
      // 61: invokevirtual com/l7tech/policy/assertion/XpathBasedAssertion.setXpathExpression (Lcom/l7tech/xml/xpath/XpathExpression;)V
      // 64: goto 6e
      // 67: aload 9
      // 69: aload 8
      // 6b: invokevirtual com/l7tech/xml/xpath/XpathExpression.setNamespaces (Ljava/util/Map;)V
      // 6e: return
      // 6f: getstatic com/l7tech/policy/wsp/ab.b [Ljava/lang/String;
      // 72: bipush 3
      // 73: aaload
      // 74: aload 4
      // 76: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 79: ifeq d0
      // 7c: aload 5
      // 7e: getfield com/l7tech/policy/wsp/TypedReference.type Ljava/lang/reflect/Type;
      // 81: ldc java/lang/String
      // 83: if_acmpeq 9e
      // 86: goto 8d
      // 89: invokestatic com/l7tech/policy/wsp/ab.a (Lcom/l7tech/policy/wsp/InvalidPolicyStreamException;)Lcom/l7tech/policy/wsp/InvalidPolicyStreamException;
      // 8c: athrow
      // 8d: new com/l7tech/policy/wsp/InvalidPolicyStreamException
      // 90: dup
      // 91: getstatic com/l7tech/policy/wsp/ab.b [Ljava/lang/String;
      // 94: bipush 1
      // 95: aaload
      // 96: invokespecial com/l7tech/policy/wsp/InvalidPolicyStreamException.<init> (Ljava/lang/String;)V
      // 99: athrow
      // 9a: invokestatic com/l7tech/policy/wsp/ab.a (Lcom/l7tech/policy/wsp/InvalidPolicyStreamException;)Lcom/l7tech/policy/wsp/InvalidPolicyStreamException;
      // 9d: athrow
      // 9e: aload 5
      // a0: getfield com/l7tech/policy/wsp/TypedReference.target Ljava/lang/Object;
      // a3: checkcast java/lang/String
      // a6: astore 8
      // a8: aload 7
      // aa: invokevirtual com/l7tech/policy/assertion/XpathBasedAssertion.getXpathExpression ()Lcom/l7tech/xml/xpath/XpathExpression;
      // ad: astore 9
      // af: aload 9
      // b1: ifnonnull c8
      // b4: aload 7
      // b6: new com/l7tech/xml/xpath/XpathExpression
      // b9: dup
      // ba: aload 8
      // bc: invokespecial com/l7tech/xml/xpath/XpathExpression.<init> (Ljava/lang/String;)V
      // bf: dup
      // c0: astore 9
      // c2: invokevirtual com/l7tech/policy/assertion/XpathBasedAssertion.setXpathExpression (Lcom/l7tech/xml/xpath/XpathExpression;)V
      // c5: goto cf
      // c8: aload 9
      // ca: aload 8
      // cc: invokevirtual com/l7tech/xml/xpath/XpathExpression.setExpression (Ljava/lang/String;)V
      // cf: return
      // d0: aload 0
      // d1: aload 1
      // d2: aload 2
      // d3: aload 3
      // d4: aload 4
      // d6: aload 5
      // d8: aload 6
      // da: 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
      // dd: return
      // try (6 -> 16): 17 com/l7tech/policy/wsp/InvalidPolicyStreamException
      // try (12 -> 26): 26 com/l7tech/policy/wsp/InvalidPolicyStreamException
      // try (51 -> 61): 62 com/l7tech/policy/wsp/InvalidPolicyStreamException
      // try (57 -> 71): 71 com/l7tech/policy/wsp/InvalidPolicyStreamException
   }

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

   static {
      String[] var5 = new String[4];
      int var3 = 0;
      String var2 = "_4A\b7Bmr0a\f4\u0012e\u007fu\u001eCu\u0012op;\f\u0002*^u17IM%\u0012Ap%#A4X\u0019!@b1<BMv\u001c=16M\u0003d]b},\f\u000f!\u0012m1\u0006X\u001f-\\k";
      int var4 = "_4A\b7Bmr0a\f4\u0012e\u007fu\u001eCu\u0012op;\f\u0002*^u17IM%\u0012Ap%#A4X\u0019!@b1<BMv\u001c=16M\u0003d]b},\f\u000f!\u0012m1\u0006X\u001f-\\k"
         .length();
      char var1 = '%';
      int var7 = -1;

      label24:
      while (true) {
         byte var10000 = 65;
         String var10001 = var2.substring(++var7, var7 + var1);
         byte var10002 = -1;

         while (true) {
            String var8 = a(var10000, a(var10001));
            switch (var10002) {
               case 0:
                  var5[var3++] = var8;
                  if ((var7 += var1) >= var4) {
                     b = var5;
                     return;
                  }

                  var1 = var2.charAt(var7);
                  break;
               default:
                  var5[var3++] = var8;
                  if ((var7 += var1) < var4) {
                     var1 = var2.charAt(var7);
                     continue label24;
                  }

                  var2 = "Z1D\r2Ghw5d\t1\u0007D1]\u001c$Eg";
                  var4 = "Z1D\r2Ghw5d\t1\u0007D1]\u001c$Eg".length();
                  var1 = '\f';
                  var7 = -1;
            }

            var10000 = 68;
            var10001 = var2.substring(++var7, var7 + var1);
            var10002 = 0;
         }
      }
   }

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

      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 -> 80;
            case 1 -> 20;
            case 2 -> 109;
            case 3 -> 44;
            case 4 -> 5;
            case 5 -> 115;
            default -> 77;
         });
      }

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