package com.l7tech.common.mime;

import com.l7tech.common.io.UncheckedIOException;
import java.io.IOException;
import java.util.NoSuchElementException;

class e implements PartIterator {
   int a;
   final MimeBody this$0;

   e(MimeBody var1) {
      this.this$0 = var1;
      this.a = 0;
   }

   @Override
   public boolean hasNext() throws UncheckedIOException {
      // $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 0
      // 01: getfield com/l7tech/common/mime/e.a I
      // 04: aload 0
      // 05: getfield com/l7tech/common/mime/e.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 08: getfield com/l7tech/common/mime/MimeBody.n Ljava/util/List;
      // 0b: invokeinterface java/util/List.size ()I 1
      // 10: if_icmplt 39
      // 13: aload 0
      // 14: getfield com/l7tech/common/mime/e.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 17: invokevirtual com/l7tech/common/mime/MimeBody.isMorePartsPossible ()Z
      // 1a: ifeq 41
      // 1d: goto 24
      // 20: invokestatic com/l7tech/common/mime/e.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 23: athrow
      // 24: aload 0
      // 25: getfield com/l7tech/common/mime/e.this$0 Lcom/l7tech/common/mime/MimeBody;
      // 28: aload 0
      // 29: getfield com/l7tech/common/mime/e.a I
      // 2c: invokevirtual com/l7tech/common/mime/MimeBody.b (I)Z
      // 2f: ifeq 41
      // 32: goto 39
      // 35: invokestatic com/l7tech/common/mime/e.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 38: athrow
      // 39: bipush 1
      // 3a: goto 42
      // 3d: invokestatic com/l7tech/common/mime/e.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 40: athrow
      // 41: bipush 0
      // 42: ireturn
      // 43: astore 1
      // 44: new com/l7tech/common/io/UncheckedIOException
      // 47: dup
      // 48: aload 1
      // 49: invokespecial com/l7tech/common/io/UncheckedIOException.<init> (Ljava/io/IOException;)V
      // 4c: athrow
      // try (14 -> 25): 25 java/io/IOException
      // try (7 -> 20): 21 java/io/IOException
      // try (0 -> 11): 12 java/io/IOException
      // try (0 -> 28): 29 java/io/IOException
   }

   @Override
   public PartInfo next() throws UncheckedIOException, NoSuchElementException {
      try {
         return this.this$0.getPart(this.a++);
      } catch (IOException var2) {
         throw new UncheckedIOException(var2);
      } catch (NoSuchPartException var3) {
         throw (NoSuchElementException)new NoSuchElementException().initCause(var3);
      }
   }

   @Override
   public void remove() {
      throw new UnsupportedOperationException();
   }

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