package com.l7tech.security.xml.processor;

import com.l7tech.util.Functions.UnaryVoid;
import org.w3c.dom.Element;

class l implements UnaryVoid<Element> {
   final WssProcessorImpl this$0;
   private static final String[] a;

   l(WssProcessorImpl var1) {
      this.this$0 = var1;
   }

   public void call(Element param1) {
      // $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 1
      // 01: aload 0
      // 02: getfield com/l7tech/security/xml/processor/l.this$0 Lcom/l7tech/security/xml/processor/WssProcessorImpl;
      // 05: getfield com/l7tech/security/xml/processor/WssProcessorImpl.z Lorg/w3c/dom/Element;
      // 08: if_acmpne 10
      // 0b: return
      // 0c: invokestatic com/l7tech/security/xml/processor/l.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0f: athrow
      // 10: getstatic com/l7tech/util/SoapConstants.TIMESTAMP_EL_NAME Ljava/lang/String;
      // 13: aload 1
      // 14: invokeinterface org/w3c/dom/Element.getLocalName ()Ljava/lang/String; 1
      // 19: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 1c: ifeq 24
      // 1f: return
      // 20: invokestatic com/l7tech/security/xml/processor/l.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 23: athrow
      // 24: aload 1
      // 25: invokestatic com/l7tech/xml/soap/SoapUtil.getMustUnderstandAttributeValue (Lorg/w3c/dom/Element;)Ljava/lang/String;
      // 28: astore 2
      // 29: aload 2
      // 2a: ifnull 50
      // 2d: ldc "0"
      // 2f: aload 2
      // 30: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 33: ifne 50
      // 36: goto 3d
      // 39: invokestatic com/l7tech/security/xml/processor/l.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 3c: athrow
      // 3d: getstatic com/l7tech/security/xml/processor/l.a [Ljava/lang/String;
      // 40: bipush 3
      // 41: aaload
      // 42: aload 2
      // 43: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 46: ifeq 51
      // 49: goto 50
      // 4c: invokestatic com/l7tech/security/xml/processor/l.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 4f: athrow
      // 50: return
      // 51: aload 1
      // 52: invokestatic com/l7tech/xml/soap/SoapUtil.getActorValue (Lorg/w3c/dom/Element;)Ljava/lang/String;
      // 55: astore 3
      // 56: getstatic com/l7tech/util/SoapConstants.ACTOR_VALUE_NEXT Ljava/lang/String;
      // 59: aload 3
      // 5a: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 5d: ifne 7f
      // 60: getstatic com/l7tech/util/SoapConstants.ROLE_VALUE_NEXT Ljava/lang/String;
      // 63: aload 3
      // 64: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 67: ifne 7f
      // 6a: goto 71
      // 6d: invokestatic com/l7tech/security/xml/processor/l.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 70: athrow
      // 71: aload 1
      // 72: invokestatic com/l7tech/xml/soap/SoapUtil.isElementForL7 (Lorg/w3c/dom/Element;)Z
      // 75: ifeq 8c
      // 78: goto 7f
      // 7b: invokestatic com/l7tech/security/xml/processor/l.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 7e: athrow
      // 7f: new com/l7tech/security/xml/processor/WssProcessorImpl$MustUnderstandException
      // 82: dup
      // 83: aload 1
      // 84: invokespecial com/l7tech/security/xml/processor/WssProcessorImpl$MustUnderstandException.<init> (Lorg/w3c/dom/Element;)V
      // 87: athrow
      // 88: invokestatic com/l7tech/security/xml/processor/l.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 8b: athrow
      // 8c: aload 1
      // 8d: getstatic com/l7tech/security/xml/processor/l.a [Ljava/lang/String;
      // 90: astore 5
      // 92: aload 5
      // 94: bipush 2
      // 95: aaload
      // 96: aload 5
      // 98: bipush 0
      // 99: aaload
      // 9a: invokeinterface org/w3c/dom/Element.getAttributeNS (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; 3
      // 9f: astore 4
      // a1: aload 5
      // a3: bipush 1
      // a4: aaload
      // a5: aload 4
      // a7: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // aa: ifne bf
      // ad: getstatic com/l7tech/util/SoapConstants.ROLE_VALUE_NEXT Ljava/lang/String;
      // b0: aload 4
      // b2: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // b5: ifeq cc
      // b8: goto bf
      // bb: invokestatic com/l7tech/security/xml/processor/l.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // be: athrow
      // bf: new com/l7tech/security/xml/processor/WssProcessorImpl$MustUnderstandException
      // c2: dup
      // c3: aload 1
      // c4: invokespecial com/l7tech/security/xml/processor/WssProcessorImpl$MustUnderstandException.<init> (Lorg/w3c/dom/Element;)V
      // c7: athrow
      // c8: invokestatic com/l7tech/security/xml/processor/l.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // cb: athrow
      // cc: goto da
      // cf: astore 2
      // d0: new com/l7tech/security/xml/processor/WssProcessorImpl$MustUnderstandException
      // d3: dup
      // d4: aload 1
      // d5: aload 2
      // d6: invokespecial com/l7tech/security/xml/processor/WssProcessorImpl$MustUnderstandException.<init> (Lorg/w3c/dom/Element;Ljava/lang/Exception;)V
      // d9: athrow
      // da: return
      // try (0 -> 6): 6 com/l7tech/util/InvalidDocumentFormatException
      // try (8 -> 13): 97 com/l7tech/util/InvalidDocumentFormatException
      // try (21 -> 34): 35 com/l7tech/util/InvalidDocumentFormatException
      // try (19 -> 25): 26 com/l7tech/util/InvalidDocumentFormatException
      // try (8 -> 14): 14 com/l7tech/security/xml/processor/WssProcessorImpl$MustUnderstandException
      // try (16 -> 37): 97 com/l7tech/util/InvalidDocumentFormatException
      // try (82 -> 94): 94 com/l7tech/util/InvalidDocumentFormatException
      // try (76 -> 86): 87 com/l7tech/util/InvalidDocumentFormatException
      // try (52 -> 63): 63 com/l7tech/util/InvalidDocumentFormatException
      // try (45 -> 55): 56 com/l7tech/util/InvalidDocumentFormatException
      // try (41 -> 49): 50 com/l7tech/util/InvalidDocumentFormatException
      // try (38 -> 96): 97 com/l7tech/util/InvalidDocumentFormatException
   }

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

   static {
      String[] var5 = new String[4];
      int var3 = 0;
      String var2 = "F.\u0018L\ng$\u0017\\\u0002XUD \u001a";
      int var4 = "F.\u0018L\ng$\u0017\\\u0002XUD \u001a".length();
      char var1 = 4;
      int var7 = -1;

      label24:
      while (true) {
         byte var10000 = 25;
         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) {
                     a = var5;
                     return;
                  }

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

                  var2 = "Z3\u0006_L\u0014/E0\u0005\u0001\u0001\b.]5\u0015\u0000D\u000b0\u0001hB\u001aYHoS7_J\u0018Me^(\u0002J\u0005T&\u001e\\\u0013";
                  var4 = "Z3\u0006_L\u0014/E0\u0005\u0001\u0001\b.]5\u0015\u0000D\u000b0\u0001hB\u001aYHoS7_J\u0018Me^(\u0002J\u0005T&\u001e\\\u0013".length();
                  var1 = '\'';
                  var7 = -1;
            }

            var10000 = 31;
            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] ^ 31);
      }

      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 -> 45;
            case 1 -> 88;
            case 2 -> 109;
            case 3 -> 48;
            case 4 -> 105;
            case 5 -> 36;
            default -> 31;
         });
      }

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