public final class jdk.internal.jshell.tool.StopDetectingInputStream extends java.io.InputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: jdk.internal.jshell.tool.StopDetectingInputStream
  super_class: java.io.InputStream
{
  public static final int INITIAL_SIZE;
    descriptor: I
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
    ConstantValue: 128

  private final java.lang.Runnable stop;
    descriptor: Ljava/lang/Runnable;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.function.Consumer<java.lang.Exception> errorHandler;
    descriptor: Ljava/util/function/Consumer;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/function/Consumer<Ljava/lang/Exception;>;

  private boolean initialized;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private int[] buffer;
    descriptor: [I
    flags: (0x0002) ACC_PRIVATE

  private int start;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int end;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private jdk.internal.jshell.tool.StopDetectingInputStream$State state;
    descriptor: Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
    flags: (0x0002) ACC_PRIVATE

  public void <init>(java.lang.Runnable, java.util.function.Consumer<java.lang.Exception>);
    descriptor: (Ljava/lang/Runnable;Ljava/util/function/Consumer;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
        start local 1 // java.lang.Runnable stop
        start local 2 // java.util.function.Consumer errorHandler
         0: .line 45
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 40
            aload 0 /* this */
            sipush 128
            newarray 10
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
         2: .line 43
            aload 0 /* this */
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.WAIT:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
         3: .line 46
            aload 0 /* this */
            aload 1 /* stop */
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.stop:Ljava/lang/Runnable;
         4: .line 47
            aload 0 /* this */
            aload 2 /* errorHandler */
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.errorHandler:Ljava/util/function/Consumer;
         5: .line 48
            return
        end local 2 // java.util.function.Consumer errorHandler
        end local 1 // java.lang.Runnable stop
        end local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    6     0          this  Ljdk/internal/jshell/tool/StopDetectingInputStream;
            0    6     1          stop  Ljava/lang/Runnable;
            0    6     2  errorHandler  Ljava/util/function/Consumer<Ljava/lang/Exception;>;
    Signature: (Ljava/lang/Runnable;Ljava/util/function/Consumer<Ljava/lang/Exception;>;)V
    MethodParameters:
              Name  Flags
      stop          
      errorHandler  

  public synchronized java.io.InputStream setInputStream(java.io.InputStream);
    descriptor: (Ljava/io/InputStream;)Ljava/io/InputStream;
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
        start local 1 // java.io.InputStream input
         0: .line 51
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.initialized:Z
            ifeq 2
         1: .line 52
            new java.lang.IllegalStateException
            dup
            ldc "Already initialized."
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 53
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.initialized:Z
         3: .line 55
            new java.lang.Thread
            dup
            aload 0 /* this */
            aload 1 /* input */
            invokedynamic run(Ljdk/internal/jshell/tool/StopDetectingInputStream;Ljava/io/InputStream;)Ljava/lang/Runnable;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  ()V
                  jdk/internal/jshell/tool/StopDetectingInputStream.lambda$0(Ljava/io/InputStream;)V (7)
                  ()V
            invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
            astore 2 /* reader */
        start local 2 // java.lang.Thread reader
         4: .line 94
            aload 2 /* reader */
            iconst_1
            invokevirtual java.lang.Thread.setDaemon:(Z)V
         5: .line 95
            aload 2 /* reader */
            invokevirtual java.lang.Thread.start:()V
         6: .line 97
            aload 0 /* this */
            areturn
        end local 2 // java.lang.Thread reader
        end local 1 // java.io.InputStream input
        end local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    7     0    this  Ljdk/internal/jshell/tool/StopDetectingInputStream;
            0    7     1   input  Ljava/io/InputStream;
            4    7     2  reader  Ljava/lang/Thread;
    MethodParameters:
       Name  Flags
      input  

  public synchronized int read();
    descriptor: ()I
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
         0: .line 102
            goto 9
         1: .line 103
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.CLOSED:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            if_acmpne 3
         2: .line 104
            iconst_m1
            ireturn
         3: .line 106
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.WAIT:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            if_acmpne 5
         4: .line 107
            aload 0 /* this */
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.READ:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
         5: .line 109
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.lang.Object.notifyAll:()V
         6: .line 111
            aload 0 /* this */
            invokevirtual java.lang.Object.wait:()V
         7: .line 112
            goto 9
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
         8: pop
         9: .line 102
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.end:I
            if_icmpeq 1
        10: .line 117
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
            iaload
            istore 2
        11: .line 119
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
            iconst_1
            iadd
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
            arraylength
            irem
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
        12: .line 117
            iload 2
            ireturn
        13: .line 118
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 1
        14: .line 119
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
            iconst_1
            iadd
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
            arraylength
            irem
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
        15: .line 120
            aload 1
            athrow
        end local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   16     0  this  Ljdk/internal/jshell/tool/StopDetectingInputStream;
      Exception table:
        from    to  target  type
           6     7       8  Class java.lang.InterruptedException
          10    11      13  any

  public int read(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=5, args_size=4
        start local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 125
            iload 3 /* len */
            ifne 2
         1: .line 126
            iconst_0
            ireturn
         2: .line 128
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.read:()I
            istore 4 /* r */
        start local 4 // int r
         3: .line 129
            iload 4 /* r */
            iconst_m1
            if_icmpeq 6
         4: .line 130
            aload 1 /* b */
            iload 2 /* off */
            iload 4 /* r */
            i2b
            bastore
         5: .line 131
            iconst_1
            ireturn
         6: .line 133
      StackMap locals: int
      StackMap stack:
            iconst_0
            ireturn
        end local 4 // int r
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Ljdk/internal/jshell/tool/StopDetectingInputStream;
            0    7     1     b  [B
            0    7     2   off  I
            0    7     3   len  I
            3    7     4     r  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
      off   
      len   

  public synchronized void shutdown();
    descriptor: ()V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
         0: .line 137
            aload 0 /* this */
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.CLOSED:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
         1: .line 138
            aload 0 /* this */
            invokevirtual java.lang.Object.notifyAll:()V
         2: .line 139
            return
        end local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Ljdk/internal/jshell/tool/StopDetectingInputStream;

  public synchronized void write(int);
    descriptor: (I)V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=5, locals=6, args_size=2
        start local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
        start local 1 // int b
         0: .line 142
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.READ:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            if_acmpne 2
         1: .line 143
            aload 0 /* this */
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.WAIT:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
         2: .line 145
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.end:I
            iconst_1
            iadd
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
            arraylength
            irem
            istore 2 /* newEnd */
        start local 2 // int newEnd
         3: .line 146
            iload 2 /* newEnd */
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
            if_icmpne 17
         4: .line 148
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
            arraylength
            iconst_2
            imul
            newarray 10
            astore 3 /* newBuffer */
        start local 3 // int[] newBuffer
         5: .line 149
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.end:I
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
            if_icmple 6
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.end:I
            goto 7
      StackMap locals: int int[]
      StackMap stack:
         6: aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
            arraylength
      StackMap locals:
      StackMap stack: int
         7: aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
            isub
            istore 4 /* rightPart */
        start local 4 // int rightPart
         8: .line 150
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.end:I
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
            if_icmple 9
            iconst_0
            goto 10
      StackMap locals: int
      StackMap stack:
         9: aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
            iconst_1
            isub
      StackMap locals:
      StackMap stack: int
        10: istore 5 /* leftPart */
        start local 5 // int leftPart
        11: .line 151
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
            aload 3 /* newBuffer */
            iconst_0
            iload 4 /* rightPart */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        12: .line 152
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
            iconst_0
            aload 3 /* newBuffer */
            iload 4 /* rightPart */
            iload 5 /* leftPart */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        13: .line 153
            aload 0 /* this */
            aload 3 /* newBuffer */
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
        14: .line 154
            aload 0 /* this */
            iconst_0
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.start:I
        15: .line 155
            aload 0 /* this */
            iload 4 /* rightPart */
            iload 5 /* leftPart */
            iadd
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.end:I
        16: .line 156
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.end:I
            iconst_1
            iadd
            istore 2 /* newEnd */
        end local 5 // int leftPart
        end local 4 // int rightPart
        end local 3 // int[] newBuffer
        17: .line 158
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.buffer:[I
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.end:I
            iload 1 /* b */
            iastore
        18: .line 159
            aload 0 /* this */
            iload 2 /* newEnd */
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.end:I
        19: .line 160
            aload 0 /* this */
            invokevirtual java.lang.Object.notifyAll:()V
        20: .line 161
            return
        end local 2 // int newEnd
        end local 1 // int b
        end local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   21     0       this  Ljdk/internal/jshell/tool/StopDetectingInputStream;
            0   21     1          b  I
            3   21     2     newEnd  I
            5   17     3  newBuffer  [I
            8   17     4  rightPart  I
           11   17     5   leftPart  I
    MethodParameters:
      Name  Flags
      b     

  public synchronized void setState(jdk.internal.jshell.tool.StopDetectingInputStream$State);
    descriptor: (Ljdk/internal/jshell/tool/StopDetectingInputStream$State;)V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
        start local 1 // jdk.internal.jshell.tool.StopDetectingInputStream$State state
         0: .line 164
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.CLOSED:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            if_acmpeq 3
         1: .line 165
            aload 0 /* this */
            aload 1 /* state */
            putfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
         2: .line 166
            aload 0 /* this */
            invokevirtual java.lang.Object.notifyAll:()V
         3: .line 168
      StackMap locals:
      StackMap stack:
            return
        end local 1 // jdk.internal.jshell.tool.StopDetectingInputStream$State state
        end local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    4     0   this  Ljdk/internal/jshell/tool/StopDetectingInputStream;
            0    4     1  state  Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
    MethodParameters:
       Name  Flags
      state  

  private synchronized jdk.internal.jshell.tool.StopDetectingInputStream$State getState();
    descriptor: ()Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
    flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
         0: .line 171
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            areturn
        end local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/jshell/tool/StopDetectingInputStream;

  private synchronized jdk.internal.jshell.tool.StopDetectingInputStream$State waitInputNeeded();
    descriptor: ()Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
    flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
         0: .line 175
            goto 4
         1: .line 177
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.lang.Object.wait:()V
         2: .line 178
            goto 4
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
         3: pop
         4: .line 175
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.WAIT:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            if_acmpeq 1
         5: .line 183
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.state:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            areturn
        end local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Ljdk/internal/jshell/tool/StopDetectingInputStream;
      Exception table:
        from    to  target  type
           1     2       3  Class java.lang.InterruptedException

  private void lambda$0(java.io.InputStream);
    descriptor: (Ljava/io/InputStream;)V
    flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
    Code:
      stack=3, locals=5, args_size=2
        start local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
         0: .line 63
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.waitInputNeeded:()Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            astore 3 /* currentState */
        start local 3 // jdk.internal.jshell.tool.StopDetectingInputStream$State currentState
         1: .line 64
            aload 3 /* currentState */
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.CLOSED:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            if_acmpne 3
         2: .line 65
            goto 21
         3: .line 67
      StackMap locals: jdk.internal.jshell.tool.StopDetectingInputStream java.io.InputStream top jdk.internal.jshell.tool.StopDetectingInputStream$State
      StackMap stack:
            aload 1
            instanceof jdk.internal.org.jline.utils.NonBlockingInputStream
            ifeq 7
         4: .line 74
      StackMap locals:
      StackMap stack:
            aload 1
            checkcast jdk.internal.org.jline.utils.NonBlockingInputStream
            ldc 1000
            invokevirtual jdk.internal.org.jline.utils.NonBlockingInputStream.read:(J)I
            istore 2 /* read */
        start local 2 // int read
         5: .line 75
            iload 2 /* read */
            bipush -2
            if_icmpeq 4
         6: .line 76
            goto 8
        end local 2 // int read
         7: .line 77
      StackMap locals:
      StackMap stack:
            aload 1
            invokevirtual java.io.InputStream.read:()I
            istore 2 /* read */
        start local 2 // int read
         8: .line 79
      StackMap locals: jdk.internal.jshell.tool.StopDetectingInputStream java.io.InputStream int jdk.internal.jshell.tool.StopDetectingInputStream$State
      StackMap stack:
            iload 2 /* read */
            iconst_m1
            if_icmpne 10
         9: .line 80
            goto 21
        10: .line 82
      StackMap locals:
      StackMap stack:
            iload 2 /* read */
            iconst_3
            if_icmpne 13
            aload 0 /* this */
            invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.getState:()Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            getstatic jdk.internal.jshell.tool.StopDetectingInputStream$State.BUFFER:Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
            if_acmpne 13
        11: .line 83
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.stop:Ljava/lang/Runnable;
            invokeinterface java.lang.Runnable.run:()V
        12: .line 84
            goto 0
        13: .line 85
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 2 /* read */
            invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.write:(I)V
        end local 3 // jdk.internal.jshell.tool.StopDetectingInputStream$State currentState
        end local 2 // int read
        14: .line 58
            goto 0
        15: .line 88
      StackMap locals: jdk.internal.jshell.tool.StopDetectingInputStream java.io.InputStream
      StackMap stack: java.io.IOException
            astore 2 /* ex */
        start local 2 // java.io.IOException ex
        16: .line 89
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.StopDetectingInputStream.errorHandler:Ljava/util/function/Consumer;
            aload 2 /* ex */
            invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
        end local 2 // java.io.IOException ex
        17: .line 91
            aload 0 /* this */
            invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.shutdown:()V
            goto 22
        18: .line 90
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 4
        19: .line 91
            aload 0 /* this */
            invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.shutdown:()V
        20: .line 92
            aload 4
            athrow
        21: .line 91
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual jdk.internal.jshell.tool.StopDetectingInputStream.shutdown:()V
        22: .line 93
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.internal.jshell.tool.StopDetectingInputStream this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   23     0          this  Ljdk/internal/jshell/tool/StopDetectingInputStream;
            5    7     2          read  I
            8   14     2          read  I
            1   14     3  currentState  Ljdk/internal/jshell/tool/StopDetectingInputStream$State;
           16   17     2            ex  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           0    15      15  Class java.io.IOException
           0    17      18  any
}
SourceFile: "StopDetectingInputStream.java"
NestMembers:
  jdk.internal.jshell.tool.StopDetectingInputStream$State
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public final State = jdk.internal.jshell.tool.StopDetectingInputStream$State of jdk.internal.jshell.tool.StopDetectingInputStream