package com.l7tech.server.util;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

class f implements InvocationHandler {
   final EntityCachingFactoryBean this$0;
   private static final String[] a;

   f(EntityCachingFactoryBean var1) {
      this.this$0 = var1;
   }

   @Override
   public Object invoke(Object param1, Method param2, Object[] param3) throws Throwable {
      // $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:
      // 000: aload 2
      // 001: ldc com/l7tech/util/Cacheable
      // 003: invokevirtual java/lang/reflect/Method.getAnnotation (Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
      // 006: checkcast com/l7tech/util/Cacheable
      // 009: astore 5
      // 00b: aconst_null
      // 00c: astore 6
      // 00e: aconst_null
      // 00f: astore 7
      // 011: aload 5
      // 013: ifnull 0d2
      // 016: getstatic com/l7tech/server/util/EntityCachingFactoryBean.a Ljava/util/logging/Logger;
      // 019: getstatic java/util/logging/Level.FINEST Ljava/util/logging/Level;
      // 01c: invokevirtual java/util/logging/Logger.isLoggable (Ljava/util/logging/Level;)Z
      // 01f: ifeq 05c
      // 022: goto 029
      // 025: invokestatic com/l7tech/server/util/f.a (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 028: athrow
      // 029: getstatic com/l7tech/server/util/EntityCachingFactoryBean.a Ljava/util/logging/Logger;
      // 02c: getstatic java/util/logging/Level.FINEST Ljava/util/logging/Level;
      // 02f: getstatic com/l7tech/server/util/f.a [Ljava/lang/String;
      // 032: bipush 0
      // 033: aaload
      // 034: bipush 2
      // 035: anewarray 71
      // 038: dup
      // 039: bipush 0
      // 03a: aload 5
      // 03c: invokeinterface com/l7tech/util/Cacheable.relevantArg ()I 1
      // 041: invokestatic java/lang/Integer.valueOf (I)Ljava/lang/Integer;
      // 044: aastore
      // 045: dup
      // 046: bipush 1
      // 047: aload 5
      // 049: invokeinterface com/l7tech/util/Cacheable.maxAge ()I 1
      // 04e: invokestatic java/lang/Integer.valueOf (I)Ljava/lang/Integer;
      // 051: aastore
      // 052: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;[Ljava/lang/Object;)V
      // 055: goto 05c
      // 058: invokestatic com/l7tech/server/util/f.a (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 05b: athrow
      // 05c: aload 0
      // 05d: getfield com/l7tech/server/util/f.this$0 Lcom/l7tech/server/util/EntityCachingFactoryBean;
      // 060: aload 5
      // 062: aload 3
      // 063: aload 2
      // 064: invokevirtual com/l7tech/server/util/EntityCachingFactoryBean.a (Lcom/l7tech/util/Cacheable;[Ljava/lang/Object;Ljava/lang/reflect/Method;)Lcom/l7tech/server/util/h;
      // 067: astore 6
      // 069: aload 0
      // 06a: getfield com/l7tech/server/util/f.this$0 Lcom/l7tech/server/util/EntityCachingFactoryBean;
      // 06d: getfield com/l7tech/server/util/EntityCachingFactoryBean.f Lcom/whirlycott/cache/Cache;
      // 070: aload 6
      // 072: invokeinterface com/whirlycott/cache/Cache.retrieve (Ljava/lang/Object;)Ljava/lang/Object; 2
      // 077: checkcast com/l7tech/server/util/g
      // 07a: astore 7
      // 07c: aload 7
      // 07e: ifnull 0d2
      // 081: aload 7
      // 083: invokevirtual com/l7tech/server/util/g.a ()Z
      // 086: ifeq 0d2
      // 089: goto 090
      // 08c: invokestatic com/l7tech/server/util/f.a (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 08f: athrow
      // 090: getstatic com/l7tech/server/util/EntityCachingFactoryBean.a Ljava/util/logging/Logger;
      // 093: getstatic java/util/logging/Level.FINER Ljava/util/logging/Level;
      // 096: invokevirtual java/util/logging/Logger.isLoggable (Ljava/util/logging/Level;)Z
      // 099: ifeq 0cf
      // 09c: goto 0a3
      // 09f: invokestatic com/l7tech/server/util/f.a (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 0a2: athrow
      // 0a3: getstatic com/l7tech/server/util/EntityCachingFactoryBean.a Ljava/util/logging/Logger;
      // 0a6: getstatic java/util/logging/Level.FINER Ljava/util/logging/Level;
      // 0a9: getstatic com/l7tech/server/util/f.a [Ljava/lang/String;
      // 0ac: bipush 1
      // 0ad: aaload
      // 0ae: bipush 2
      // 0af: anewarray 71
      // 0b2: dup
      // 0b3: bipush 0
      // 0b4: aload 2
      // 0b5: invokevirtual java/lang/reflect/Method.getName ()Ljava/lang/String;
      // 0b8: aastore
      // 0b9: dup
      // 0ba: bipush 1
      // 0bb: aload 3
      // 0bc: aload 5
      // 0be: invokeinterface com/l7tech/util/Cacheable.relevantArg ()I 1
      // 0c3: aaload
      // 0c4: aastore
      // 0c5: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;[Ljava/lang/Object;)V
      // 0c8: goto 0cf
      // 0cb: invokestatic com/l7tech/server/util/f.a (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 0ce: athrow
      // 0cf: aconst_null
      // 0d0: astore 7
      // 0d2: aload 7
      // 0d4: ifnonnull 196
      // 0d7: getstatic com/l7tech/server/util/EntityCachingFactoryBean.a Ljava/util/logging/Logger;
      // 0da: getstatic java/util/logging/Level.FINER Ljava/util/logging/Level;
      // 0dd: invokevirtual java/util/logging/Logger.isLoggable (Ljava/util/logging/Level;)Z
      // 0e0: ifeq 10a
      // 0e3: goto 0ea
      // 0e6: invokestatic com/l7tech/server/util/f.a (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 0e9: athrow
      // 0ea: getstatic com/l7tech/server/util/EntityCachingFactoryBean.a Ljava/util/logging/Logger;
      // 0ed: getstatic java/util/logging/Level.FINER Ljava/util/logging/Level;
      // 0f0: getstatic com/l7tech/server/util/f.a [Ljava/lang/String;
      // 0f3: bipush 4
      // 0f4: aaload
      // 0f5: bipush 1
      // 0f6: anewarray 71
      // 0f9: dup
      // 0fa: bipush 0
      // 0fb: aload 2
      // 0fc: invokevirtual java/lang/reflect/Method.getName ()Ljava/lang/String;
      // 0ff: aastore
      // 100: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;[Ljava/lang/Object;)V
      // 103: goto 10a
      // 106: invokestatic com/l7tech/server/util/f.a (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 109: athrow
      // 10a: aload 2
      // 10b: aload 0
      // 10c: getfield com/l7tech/server/util/f.this$0 Lcom/l7tech/server/util/EntityCachingFactoryBean;
      // 10f: getfield com/l7tech/server/util/EntityCachingFactoryBean.e Ljava/lang/Object;
      // 112: aload 3
      // 113: invokevirtual java/lang/reflect/Method.invoke (Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
      // 116: astore 4
      // 118: aload 5
      // 11a: ifnull 1d5
      // 11d: getstatic com/l7tech/server/util/EntityCachingFactoryBean.a Ljava/util/logging/Logger;
      // 120: getstatic java/util/logging/Level.FINER Ljava/util/logging/Level;
      // 123: invokevirtual java/util/logging/Logger.isLoggable (Ljava/util/logging/Level;)Z
      // 126: ifeq 15c
      // 129: goto 130
      // 12c: invokestatic com/l7tech/server/util/f.a (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 12f: athrow
      // 130: getstatic com/l7tech/server/util/EntityCachingFactoryBean.a Ljava/util/logging/Logger;
      // 133: getstatic java/util/logging/Level.FINER Ljava/util/logging/Level;
      // 136: getstatic com/l7tech/server/util/f.a [Ljava/lang/String;
      // 139: bipush 2
      // 13a: aaload
      // 13b: bipush 2
      // 13c: anewarray 71
      // 13f: dup
      // 140: bipush 0
      // 141: aload 2
      // 142: invokevirtual java/lang/reflect/Method.getName ()Ljava/lang/String;
      // 145: aastore
      // 146: dup
      // 147: bipush 1
      // 148: aload 3
      // 149: aload 5
      // 14b: invokeinterface com/l7tech/util/Cacheable.relevantArg ()I 1
      // 150: aaload
      // 151: aastore
      // 152: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;[Ljava/lang/Object;)V
      // 155: goto 15c
      // 158: invokestatic com/l7tech/server/util/f.a (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 15b: athrow
      // 15c: aload 5
      // 15e: invokeinterface com/l7tech/util/Cacheable.maxAge ()I 1
      // 163: i2l
      // 164: lstore 8
      // 166: aload 0
      // 167: getfield com/l7tech/server/util/f.this$0 Lcom/l7tech/server/util/EntityCachingFactoryBean;
      // 16a: getfield com/l7tech/server/util/EntityCachingFactoryBean.f Lcom/whirlycott/cache/Cache;
      // 16d: aload 6
      // 16f: new com/l7tech/server/util/g
      // 172: dup
      // 173: aload 0
      // 174: getfield com/l7tech/server/util/f.this$0 Lcom/l7tech/server/util/EntityCachingFactoryBean;
      // 177: getfield com/l7tech/server/util/EntityCachingFactoryBean.b Lcom/l7tech/util/TimeSource;
      // 17a: aload 4
      // 17c: aload 0
      // 17d: getfield com/l7tech/server/util/f.this$0 Lcom/l7tech/server/util/EntityCachingFactoryBean;
      // 180: getfield com/l7tech/server/util/EntityCachingFactoryBean.b Lcom/l7tech/util/TimeSource;
      // 183: invokevirtual com/l7tech/util/TimeSource.currentTimeMillis ()J
      // 186: lload 8
      // 188: ladd
      // 189: invokespecial com/l7tech/server/util/g.<init> (Lcom/l7tech/util/TimeSource;Ljava/lang/Object;J)V
      // 18c: lload 8
      // 18e: invokeinterface com/whirlycott/cache/Cache.store (Ljava/lang/Object;Ljava/lang/Object;J)V 5
      // 193: goto 1d5
      // 196: getstatic com/l7tech/server/util/EntityCachingFactoryBean.a Ljava/util/logging/Logger;
      // 199: getstatic java/util/logging/Level.FINER Ljava/util/logging/Level;
      // 19c: invokevirtual java/util/logging/Logger.isLoggable (Ljava/util/logging/Level;)Z
      // 19f: ifeq 1ce
      // 1a2: getstatic com/l7tech/server/util/EntityCachingFactoryBean.a Ljava/util/logging/Logger;
      // 1a5: getstatic java/util/logging/Level.FINER Ljava/util/logging/Level;
      // 1a8: getstatic com/l7tech/server/util/f.a [Ljava/lang/String;
      // 1ab: bipush 3
      // 1ac: aaload
      // 1ad: bipush 2
      // 1ae: anewarray 71
      // 1b1: dup
      // 1b2: bipush 0
      // 1b3: aload 2
      // 1b4: invokevirtual java/lang/reflect/Method.getName ()Ljava/lang/String;
      // 1b7: aastore
      // 1b8: dup
      // 1b9: bipush 1
      // 1ba: aload 3
      // 1bb: aload 5
      // 1bd: invokeinterface com/l7tech/util/Cacheable.relevantArg ()I 1
      // 1c2: aaload
      // 1c3: aastore
      // 1c4: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;[Ljava/lang/Object;)V
      // 1c7: goto 1ce
      // 1ca: invokestatic com/l7tech/server/util/f.a (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 1cd: athrow
      // 1ce: aload 7
      // 1d0: getfield com/l7tech/server/util/g.b Ljava/lang/Object;
      // 1d3: astore 4
      // 1d5: aload 4
      // 1d7: areturn
      // try (9 -> 15): 16 java/lang/Throwable
      // try (11 -> 38): 39 java/lang/Throwable
      // try (55 -> 60): 61 java/lang/Throwable
      // try (57 -> 67): 68 java/lang/Throwable
      // try (63 -> 90): 91 java/lang/Throwable
      // try (95 -> 101): 102 java/lang/Throwable
      // try (97 -> 117): 118 java/lang/Throwable
      // try (127 -> 133): 134 java/lang/Throwable
      // try (129 -> 156): 157 java/lang/Throwable
      // try (183 -> 207): 208 java/lang/Throwable
   }

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

   static {
      String[] var5 = new String[5];
      int var3 = 0;
      String var2 = "N=j0S\u0014sz-k?VXu;/m0[@qo'l0\u0014Ub|sxnI\u00180v/{sUSu&52#\u0018\u0014EU!w~AGyu)#;LDyi+g~WUss+g~BU|n+#8[F0v+w6[P0<ixnI\u001377ns?FU}~:f,\u0014\u00137`\u007f~y\u0013\u001a4X/`6]Zw;8b2AQ0}!q~YQds!g~\u0013\u0013k+3$y\u0018\u0014`z<b3Q@uin$yO\u0005m<i-";
      int var4 = "N=j0S\u0014sz-k?VXu;/m0[@qo'l0\u0014Ub|sxnI\u00180v/{sUSu&52#\u0018\u0014EU!w~AGyu)#;LDyi+g~WUss+g~BU|n+#8[F0v+w6[P0<ixnI\u001377ns?FU}~:f,\u0014\u00137`\u007f~y\u0013\u001a4X/`6]Zw;8b2AQ0}!q~YQds!g~\u0013\u0013k+3$y\u0018\u0014`z<b3Q@uin$yO\u0005m<i-"
         .length();
      char var1 = '0';
      int var7 = -1;

      label24:
      while (true) {
         byte var10000 = 121;
         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 = "c\u0010G\u001d~9^W\u0000F\u0016}9KW\u000f[\u00169\u007fRDCC\u0016mqRRC\tTb)@\u0011D\u0002SixOW\u000eK\u0007|k\u001d\u0011DUBd>\u001a\u0018\u0018\u007f\rX\u001crpSQCC\u0016mqRRC\tTb)@\u0011D\u0000";
                  var4 = "c\u0010G\u001d~9^W\u0000F\u0016}9KW\u000f[\u00169\u007fRDCC\u0016mqRRC\tTb)@\u0011D\u0002SixOW\u000eK\u0007|k\u001d\u0011DUBd>\u001a\u0018\u0018\u007f\rX\u001crpSQCC\u0016mqRRC\tTb)@\u0011D\u0000"
                     .length();
                  var1 = '9';
                  var7 = -1;
            }

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

      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 -> 98;
            case 1 -> 55;
            case 2 -> 122;
            case 3 -> 39;
            case 4 -> 77;
            case 5 -> 77;
            default -> 105;
         });
      }

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