package com.l7tech.common.mime;

import java.util.Enumeration;
import java.util.NoSuchElementException;

class f implements Enumeration {
   private int a;
   private boolean b;
   private boolean c;
   private boolean d;
   private boolean e;
   private boolean f;
   private boolean g;
   private boolean h;
   private boolean i;
   final MimeBody this$0;
   private static final String[] j;

   f(MimeBody var1) {
      this.this$0 = var1;
      this.a = 0;
      this.b = false;
      this.c = false;
      this.d = false;
      this.e = false;
      this.f = false;
      this.g = false;
      this.h = false;
      this.i = false;
   }

   @Override
   public boolean hasMoreElements() {
      try {
         if (!this.i) {
            return true;
         }
      } catch (NoSuchElementException var1) {
         throw a(var1);
      }

      return false;
   }

   @Override
   public Object nextElement() {
      // $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 0
      // 001: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 004: getfield com/l7tech/common/mime/MimeBody.u Ljava/lang/Exception;
      // 007: ifnull 024
      // 00a: new com/l7tech/common/io/IOExceptionThrowingInputStream
      // 00d: dup
      // 00e: new com/l7tech/util/CausedIOException
      // 011: dup
      // 012: aload 0
      // 013: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 016: getfield com/l7tech/common/mime/MimeBody.u Ljava/lang/Exception;
      // 019: invokespecial com/l7tech/util/CausedIOException.<init> (Ljava/lang/Throwable;)V
      // 01c: invokespecial com/l7tech/common/io/IOExceptionThrowingInputStream.<init> (Ljava/io/IOException;)V
      // 01f: areturn
      // 020: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 023: athrow
      // 024: aload 0
      // 025: getfield com/l7tech/common/mime/f.i Z
      // 028: ifeq 037
      // 02b: new java/util/NoSuchElementException
      // 02e: dup
      // 02f: invokespecial java/util/NoSuchElementException.<init> ()V
      // 032: athrow
      // 033: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 036: athrow
      // 037: aload 0
      // 038: getfield com/l7tech/common/mime/f.e Z
      // 03b: ifne 239
      // 03e: aload 0
      // 03f: getfield com/l7tech/common/mime/f.b Z
      // 042: ifne 0a0
      // 045: goto 04c
      // 048: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 04b: athrow
      // 04c: aload 0
      // 04d: bipush 1
      // 04e: putfield com/l7tech/common/mime/f.b Z
      // 051: new java/lang/StringBuilder
      // 054: dup
      // 055: invokespecial java/lang/StringBuilder.<init> ()V
      // 058: astore 1
      // 059: aload 0
      // 05a: getfield com/l7tech/common/mime/f.a I
      // 05d: ifeq 071
      // 060: aload 1
      // 061: getstatic com/l7tech/common/mime/f.j [Ljava/lang/String;
      // 064: bipush 1
      // 065: aaload
      // 066: invokevirtual java/lang/StringBuilder.append (Ljava/lang/String;)Ljava/lang/StringBuilder;
      // 069: pop
      // 06a: goto 071
      // 06d: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 070: athrow
      // 071: aload 1
      // 072: aload 0
      // 073: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 076: getfield com/l7tech/common/mime/MimeBody.q Ljava/lang/String;
      // 079: getstatic com/l7tech/common/mime/f.j [Ljava/lang/String;
      // 07c: astore 4
      // 07e: aload 4
      // 080: bipush 7
      // 082: aaload
      // 083: swap
      // 084: aload 4
      // 086: bipush 0
      // 087: aaload
      // 088: invokedynamic makeConcatWithConstants (Ljava/lang/String;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\u0001" ]
      // 08d: invokevirtual java/lang/StringBuilder.append (Ljava/lang/String;)Ljava/lang/StringBuilder;
      // 090: pop
      // 091: new java/io/ByteArrayInputStream
      // 094: dup
      // 095: aload 1
      // 096: invokevirtual java/lang/StringBuilder.toString ()Ljava/lang/String;
      // 099: invokevirtual java/lang/String.getBytes ()[B
      // 09c: invokespecial java/io/ByteArrayInputStream.<init> ([B)V
      // 09f: areturn
      // 0a0: aload 0
      // 0a1: getfield com/l7tech/common/mime/f.c Z
      // 0a4: ifne 0e2
      // 0a7: aload 0
      // 0a8: bipush 1
      // 0a9: putfield com/l7tech/common/mime/f.c Z
      // 0ac: new java/io/ByteArrayInputStream
      // 0af: dup
      // 0b0: aload 0
      // 0b1: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 0b4: getfield com/l7tech/common/mime/MimeBody.n Ljava/util/List;
      // 0b7: aload 0
      // 0b8: getfield com/l7tech/common/mime/f.a I
      // 0bb: invokeinterface java/util/List.get (I)Ljava/lang/Object; 2
      // 0c0: checkcast com/l7tech/common/mime/PartInfo
      // 0c3: invokeinterface com/l7tech/common/mime/PartInfo.getHeaders ()Lcom/l7tech/common/mime/MimeHeaders; 1
      // 0c8: invokevirtual com/l7tech/common/mime/MimeHeaders.toByteArray ()[B
      // 0cb: invokespecial java/io/ByteArrayInputStream.<init> ([B)V
      // 0ce: areturn
      // 0cf: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0d2: athrow
      // 0d3: astore 1
      // 0d4: aload 0
      // 0d5: bipush 1
      // 0d6: putfield com/l7tech/common/mime/f.i Z
      // 0d9: new com/l7tech/common/io/IOExceptionThrowingInputStream
      // 0dc: dup
      // 0dd: aload 1
      // 0de: invokespecial com/l7tech/common/io/IOExceptionThrowingInputStream.<init> (Ljava/io/IOException;)V
      // 0e1: areturn
      // 0e2: aload 0
      // 0e3: getfield com/l7tech/common/mime/f.d Z
      // 0e6: ifne 221
      // 0e9: aload 0
      // 0ea: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 0ed: getfield com/l7tech/common/mime/MimeBody.l Lcom/l7tech/common/mime/StashManager;
      // 0f0: aload 0
      // 0f1: getfield com/l7tech/common/mime/f.a I
      // 0f4: invokeinterface com/l7tech/common/mime/StashManager.peek (I)Z 2
      // 0f9: ifeq 1e5
      // 0fc: aload 0
      // 0fd: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 100: getfield com/l7tech/common/mime/MimeBody.l Lcom/l7tech/common/mime/StashManager;
      // 103: aload 0
      // 104: getfield com/l7tech/common/mime/f.a I
      // 107: invokeinterface com/l7tech/common/mime/StashManager.recall (I)Ljava/io/InputStream; 2
      // 10c: astore 1
      // 10d: goto 123
      // 110: astore 2
      // 111: new com/l7tech/util/CausedIllegalStateException
      // 114: dup
      // 115: getstatic com/l7tech/common/mime/f.j [Ljava/lang/String;
      // 118: astore 4
      // 11a: aload 4
      // 11c: bipush 4
      // 11d: aaload
      // 11e: aload 2
      // 11f: invokespecial com/l7tech/util/CausedIllegalStateException.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
      // 122: athrow
      // 123: aload 0
      // 124: dup
      // 125: getfield com/l7tech/common/mime/f.a I
      // 128: bipush 1
      // 129: iadd
      // 12a: putfield com/l7tech/common/mime/f.a I
      // 12d: bipush 0
      // 12e: istore 2
      // 12f: iload 2
      // 130: ifne 1d4
      // 133: aload 0
      // 134: getfield com/l7tech/common/mime/f.a I
      // 137: aload 0
      // 138: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 13b: getfield com/l7tech/common/mime/MimeBody.n Ljava/util/List;
      // 13e: invokeinterface java/util/List.size ()I 1
      // 143: if_icmplt 192
      // 146: goto 14d
      // 149: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 14c: athrow
      // 14d: aload 0
      // 14e: bipush 1
      // 14f: putfield com/l7tech/common/mime/f.e Z
      // 152: aload 0
      // 153: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 156: getfield com/l7tech/common/mime/MimeBody.t Z
      // 159: ifeq 190
      // 15c: goto 163
      // 15f: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 162: athrow
      // 163: new java/io/SequenceInputStream
      // 166: dup
      // 167: aload 1
      // 168: new java/io/ByteArrayInputStream
      // 16b: dup
      // 16c: aload 0
      // 16d: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 170: getfield com/l7tech/common/mime/MimeBody.q Ljava/lang/String;
      // 173: getstatic com/l7tech/common/mime/f.j [Ljava/lang/String;
      // 176: astore 4
      // 178: aload 4
      // 17a: bipush 5
      // 17b: aaload
      // 17c: swap
      // 17d: aload 4
      // 17f: bipush 0
      // 180: aaload
      // 181: invokedynamic makeConcatWithConstants (Ljava/lang/String;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\u0001" ]
      // 186: invokevirtual java/lang/String.getBytes ()[B
      // 189: invokespecial java/io/ByteArrayInputStream.<init> ([B)V
      // 18c: invokespecial java/io/SequenceInputStream.<init> (Ljava/io/InputStream;Ljava/io/InputStream;)V
      // 18f: areturn
      // 190: aload 1
      // 191: areturn
      // 192: aload 0
      // 193: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 196: getfield com/l7tech/common/mime/MimeBody.s Z
      // 199: ifeq 1cf
      // 19c: aload 0
      // 19d: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 1a0: getfield com/l7tech/common/mime/MimeBody.n Ljava/util/List;
      // 1a3: aload 0
      // 1a4: getfield com/l7tech/common/mime/f.a I
      // 1a7: invokeinterface java/util/List.get (I)Ljava/lang/Object; 2
      // 1ac: checkcast com/l7tech/common/mime/PartInfo
      // 1af: astore 3
      // 1b0: aload 3
      // 1b1: invokeinterface com/l7tech/common/mime/PartInfo.isValidated ()Z 1
      // 1b6: ifne 1ca
      // 1b9: aload 0
      // 1ba: dup
      // 1bb: getfield com/l7tech/common/mime/f.a I
      // 1be: bipush 1
      // 1bf: iadd
      // 1c0: putfield com/l7tech/common/mime/f.a I
      // 1c3: goto 1cc
      // 1c6: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 1c9: athrow
      // 1ca: bipush 1
      // 1cb: istore 2
      // 1cc: goto 12f
      // 1cf: bipush 1
      // 1d0: istore 2
      // 1d1: goto 12f
      // 1d4: aload 0
      // 1d5: bipush 0
      // 1d6: putfield com/l7tech/common/mime/f.b Z
      // 1d9: aload 0
      // 1da: bipush 0
      // 1db: putfield com/l7tech/common/mime/f.c Z
      // 1de: aload 0
      // 1df: bipush 0
      // 1e0: putfield com/l7tech/common/mime/f.d Z
      // 1e3: aload 1
      // 1e4: areturn
      // 1e5: aload 0
      // 1e6: bipush 0
      // 1e7: putfield com/l7tech/common/mime/f.b Z
      // 1ea: aload 0
      // 1eb: bipush 0
      // 1ec: putfield com/l7tech/common/mime/f.c Z
      // 1ef: aload 0
      // 1f0: bipush 0
      // 1f1: putfield com/l7tech/common/mime/f.d Z
      // 1f4: aload 0
      // 1f5: bipush 1
      // 1f6: putfield com/l7tech/common/mime/f.e Z
      // 1f9: aload 0
      // 1fa: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 1fd: getfield com/l7tech/common/mime/MimeBody.n Ljava/util/List;
      // 200: aload 0
      // 201: getfield com/l7tech/common/mime/f.a I
      // 204: invokeinterface java/util/List.get (I)Ljava/lang/Object; 2
      // 209: checkcast com/l7tech/common/mime/g
      // 20c: invokevirtual com/l7tech/common/mime/g.a ()V
      // 20f: goto 221
      // 212: astore 1
      // 213: aload 0
      // 214: bipush 1
      // 215: putfield com/l7tech/common/mime/f.i Z
      // 218: new com/l7tech/common/io/IOExceptionThrowingInputStream
      // 21b: dup
      // 21c: aload 1
      // 21d: invokespecial com/l7tech/common/io/IOExceptionThrowingInputStream.<init> (Ljava/io/IOException;)V
      // 220: areturn
      // 221: aload 0
      // 222: getfield com/l7tech/common/mime/f.e Z
      // 225: ifne 239
      // 228: new java/lang/IllegalStateException
      // 22b: dup
      // 22c: getstatic com/l7tech/common/mime/f.j [Ljava/lang/String;
      // 22f: bipush 2
      // 230: aaload
      // 231: invokespecial java/lang/IllegalStateException.<init> (Ljava/lang/String;)V
      // 234: athrow
      // 235: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 238: athrow
      // 239: aload 0
      // 23a: getfield com/l7tech/common/mime/f.f Z
      // 23d: ifne 274
      // 240: aload 0
      // 241: bipush 1
      // 242: putfield com/l7tech/common/mime/f.f Z
      // 245: aload 0
      // 246: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 249: getfield com/l7tech/common/mime/MimeBody.t Z
      // 24c: ifeq 26f
      // 24f: goto 256
      // 252: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 255: athrow
      // 256: aload 0
      // 257: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 25a: bipush 0
      // 25b: putfield com/l7tech/common/mime/MimeBody.t Z
      // 25e: aload 0
      // 25f: bipush 0
      // 260: putfield com/l7tech/common/mime/f.g Z
      // 263: aload 0
      // 264: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 267: getfield com/l7tech/common/mime/MimeBody.j Lcom/l7tech/common/mime/b;
      // 26a: areturn
      // 26b: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 26e: athrow
      // 26f: aload 0
      // 270: bipush 1
      // 271: putfield com/l7tech/common/mime/f.g Z
      // 274: aload 0
      // 275: getfield com/l7tech/common/mime/f.h Z
      // 278: ifne 2ba
      // 27b: aload 0
      // 27c: bipush 1
      // 27d: putfield com/l7tech/common/mime/f.h Z
      // 280: aload 0
      // 281: getfield com/l7tech/common/mime/f.g Z
      // 284: ifeq 2ba
      // 287: goto 28e
      // 28a: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 28d: athrow
      // 28e: aload 0
      // 28f: bipush 1
      // 290: putfield com/l7tech/common/mime/f.i Z
      // 293: new java/io/ByteArrayInputStream
      // 296: dup
      // 297: aload 0
      // 298: getfield com/l7tech/common/mime/f.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 29b: getfield com/l7tech/common/mime/MimeBody.q Ljava/lang/String;
      // 29e: getstatic com/l7tech/common/mime/f.j [Ljava/lang/String;
      // 2a1: bipush 6
      // 2a3: aaload
      // 2a4: swap
      // 2a5: getstatic com/l7tech/common/mime/f.j [Ljava/lang/String;
      // 2a8: bipush 3
      // 2a9: aaload
      // 2aa: invokedynamic makeConcatWithConstants (Ljava/lang/String;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\u0001" ]
      // 2af: invokevirtual java/lang/String.getBytes ()[B
      // 2b2: invokespecial java/io/ByteArrayInputStream.<init> ([B)V
      // 2b5: areturn
      // 2b6: invokestatic com/l7tech/common/mime/f.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 2b9: athrow
      // 2ba: aload 0
      // 2bb: bipush 1
      // 2bc: putfield com/l7tech/common/mime/f.i Z
      // 2bf: new com/l7tech/common/io/EmptyInputStream
      // 2c2: dup
      // 2c3: invokespecial com/l7tech/common/io/EmptyInputStream.<init> ()V
      // 2c6: areturn
      // try (41 -> 50): 51 java/io/IOException
      // try (25 -> 31): 32 java/io/IOException
      // try (16 -> 23): 23 java/io/IOException
      // try (0 -> 14): 14 java/io/IOException
      // try (82 -> 94): 97 java/io/IOException
      // try (76 -> 95): 95 com/l7tech/common/mime/NoSuchPartException
      // try (116 -> 123): 124 com/l7tech/common/mime/NoSuchPartException
      // try (145 -> 162): 163 java/io/IOException
      // try (143 -> 152): 153 java/io/IOException
      // try (109 -> 186): 251 java/io/IOException
      // try (187 -> 188): 251 java/io/IOException
      // try (201 -> 211): 211 java/io/IOException
      // try (189 -> 229): 251 java/io/IOException
      // try (230 -> 250): 251 java/io/IOException
      // try (260 -> 270): 270 java/io/IOException
      // try (272 -> 282): 283 java/io/IOException
      // try (275 -> 296): 296 java/io/IOException
      // try (301 -> 310): 311 java/io/IOException
      // try (304 -> 332): 332 java/io/IOException
   }

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

   static {
      String[] var5 = new String[8];
      int var3 = 0;
      String var2 = "PO\u0002PO=. u5I)U(+\u007f0\u001b2\u0016}-~0\r.H.i;0\u0007/\u001a?*\u007f(EkX(1;?\u0006?\u001a. u%('V\u000e1z\"\u0001.^\r$i%\u001a\u0004ph\u0016[\u001e\r ~:I8O>&~4\r8\u001a?0oq\u001b.Y<)wq\u000f*S16\u0004PO6|";
      int var4 = "PO\u0002PO=. u5I)U(+\u007f0\u001b2\u0016}-~0\r.H.i;0\u0007/\u001a?*\u007f(EkX(1;?\u0006?\u001a. u%('V\u000e1z\"\u0001.^\r$i%\u001a\u0004ph\u0016[\u001e\r ~:I8O>&~4\r8\u001a?0oq\u001b.Y<)wq\u000f*S16\u0004PO6|"
         .length();
      char var1 = 2;
      int var7 = -1;

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

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

                  var2 = "HW.d\u0002hp";
                  var4 = "HW.d\u0002hp".length();
                  var1 = 4;
                  var7 = -1;
            }

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

      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 -> 77;
            case 1 -> 85;
            case 2 -> 11;
            case 3 -> 65;
            case 4 -> 121;
            case 5 -> 91;
            default -> 42;
         });
      }

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