package com.l7tech.server.messageprocessor.injection;

import com.ca.apim.gateway.extension.processorinjection.ServiceInjection;
import java.util.function.BiFunction;

class a implements BiFunction<Boolean, ServiceInjection, Boolean> {
   final ServiceInjectionContextImpl val$serviceInjectionContext;
   private static final String a;

   a(ServiceInjectionContextImpl var1) {
      this.val$serviceInjectionContext = var1;
   }

   public Boolean apply(Boolean param1, ServiceInjection param2) {
      // $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 2
      // 01: aload 0
      // 02: getfield com/l7tech/server/messageprocessor/injection/a.val$serviceInjectionContext Lcom/l7tech/server/messageprocessor/injection/ServiceInjectionContextImpl;
      // 05: invokeinterface com/ca/apim/gateway/extension/processorinjection/ServiceInjection.execute (Lcom/ca/apim/gateway/extension/processorinjection/ServiceInjectionContext;)Z 2
      // 0a: ifeq 23
      // 0d: aload 1
      // 0e: invokevirtual java/lang/Boolean.booleanValue ()Z
      // 11: ifeq 23
      // 14: goto 1b
      // 17: invokestatic com/l7tech/server/messageprocessor/injection/a.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 1a: athrow
      // 1b: bipush 1
      // 1c: goto 24
      // 1f: invokestatic com/l7tech/server/messageprocessor/injection/a.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 22: athrow
      // 23: bipush 0
      // 24: invokestatic java/lang/Boolean.valueOf (Z)Ljava/lang/Boolean;
      // 27: areturn
      // 28: astore 3
      // 29: getstatic com/l7tech/server/messageprocessor/injection/MessageProcessorInjectorImpl.a Ljava/util/logging/Logger;
      // 2c: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 2f: aload 3
      // 30: invokestatic com/l7tech/util/ExceptionUtils.getMessageWithCause (Ljava/lang/Throwable;)Ljava/lang/String;
      // 33: getstatic com/l7tech/server/messageprocessor/injection/a.a Ljava/lang/String;
      // 36: swap
      // 37: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001" ]
      // 3c: aload 3
      // 3d: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 40: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 43: aload 1
      // 44: areturn
      // try (5 -> 13): 13 java/lang/Exception
      // try (0 -> 8): 9 java/lang/Exception
      // try (0 -> 17): 18 java/lang/Exception
   }

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

   static {
      String var10002 = a(
         114,
         a(
            "E(\u0004sM\u000bq6$\u0018oA\u000b`\u007f\"\u0018%B\t}z(\u0012%P\u00074s5\u0013fQ\u001cq8m?bJ\u0007f\u007f#\u0011%E\u0006p6.\u0019kP\u0001zc$\u0018b\nHYs>\u0005dC\r.6"
         )
      );
      byte var10001 = -1;
      a = var10002;
   }

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

      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 -> 100;
            case 1 -> 63;
            case 2 -> 4;
            case 3 -> 119;
            case 4 -> 86;
            case 5 -> 26;
            default -> 102;
         });
      }

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