public class io.undertow.io.AsyncSenderImpl implements io.undertow.io.Sender
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: io.undertow.io.AsyncSenderImpl
  super_class: java.lang.Object
{
  private org.xnio.channels.StreamSinkChannel channel;
    descriptor: Lorg/xnio/channels/StreamSinkChannel;
    flags: (0x0002) ACC_PRIVATE

  private final io.undertow.server.HttpServerExchange exchange;
    descriptor: Lio/undertow/server/HttpServerExchange;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private java.nio.ByteBuffer[] buffer;
    descriptor: [Ljava/nio/ByteBuffer;
    flags: (0x0002) ACC_PRIVATE

  private io.undertow.connector.PooledByteBuffer[] pooledBuffers;
    descriptor: [Lio/undertow/connector/PooledByteBuffer;
    flags: (0x0002) ACC_PRIVATE

  private java.nio.channels.FileChannel fileChannel;
    descriptor: Ljava/nio/channels/FileChannel;
    flags: (0x0002) ACC_PRIVATE

  private io.undertow.io.IoCallback callback;
    descriptor: Lio/undertow/io/IoCallback;
    flags: (0x0002) ACC_PRIVATE

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

  private org.xnio.ChannelListener<org.xnio.channels.StreamSinkChannel> writeListener;
    descriptor: Lorg/xnio/ChannelListener;
    flags: (0x0002) ACC_PRIVATE
    Signature: Lorg/xnio/ChannelListener<Lorg/xnio/channels/StreamSinkChannel;>;

  private io.undertow.io.AsyncSenderImpl$TransferTask transferTask;
    descriptor: Lio/undertow/io/AsyncSenderImpl$TransferTask;
    flags: (0x0002) ACC_PRIVATE

  public void <init>(io.undertow.server.HttpServerExchange);
    descriptor: (Lio/undertow/server/HttpServerExchange;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // io.undertow.server.HttpServerExchange exchange
         0: .line 112
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 48
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
         2: .line 113
            aload 0 /* this */
            aload 1 /* exchange */
            putfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
         3: .line 114
            return
        end local 1 // io.undertow.server.HttpServerExchange exchange
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    4     0      this  Lio/undertow/io/AsyncSenderImpl;
            0    4     1  exchange  Lio/undertow/server/HttpServerExchange;
    MethodParameters:
          Name  Flags
      exchange  final

  public void send(java.nio.ByteBuffer, io.undertow.io.IoCallback);
    descriptor: (Ljava/nio/ByteBuffer;Lio/undertow/io/IoCallback;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=7, args_size=3
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // java.nio.ByteBuffer buffer
        start local 2 // io.undertow.io.IoCallback callback
         0: .line 119
            aload 2 /* callback */
            ifnonnull 2
         1: .line 120
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            ldc "callback"
            invokeinterface io.undertow.UndertowMessages.argumentCannotBeNull:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
            athrow
         2: .line 122
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getConnection:()Lio/undertow/server/ServerConnection;
            invokevirtual io.undertow.server.ServerConnection.isOpen:()Z
            ifne 5
         3: .line 123
            aload 0 /* this */
            aload 2 /* callback */
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
         4: .line 124
            return
         5: .line 126
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.isResponseComplete:()Z
            ifeq 7
         6: .line 127
            aload 0 /* this */
            aload 2 /* callback */
            new java.io.IOException
            dup
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.responseComplete:()Ljava/lang/IllegalStateException;
            invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
         7: .line 129
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
            ifnonnull 8
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.fileChannel:Ljava/nio/channels/FileChannel;
            ifnull 9
         8: .line 130
      StackMap locals:
      StackMap stack:
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.dataAlreadyQueued:()Ljava/lang/IllegalStateException;
            athrow
         9: .line 132
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getResponseContentLength:()J
            lstore 3 /* responseContentLength */
        start local 3 // long responseContentLength
        10: .line 133
            lload 3 /* responseContentLength */
            lconst_0
            lcmp
            ifle 13
            aload 1 /* buffer */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            i2l
            lload 3 /* responseContentLength */
            lcmp
            ifle 13
        11: .line 134
            aload 0 /* this */
            aload 2 /* callback */
            getstatic io.undertow.UndertowLogger.ROOT_LOGGER:Lio/undertow/UndertowLogger;
            aload 1 /* buffer */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            i2l
            lload 3 /* responseContentLength */
            invokeinterface io.undertow.UndertowLogger.dataLargerThanContentLength:(JJ)Ljava/io/IOException;
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
        12: .line 135
            return
        13: .line 137
      StackMap locals: long
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.channel:Lorg/xnio/channels/StreamSinkChannel;
            astore 5 /* channel */
        start local 5 // org.xnio.channels.StreamSinkChannel channel
        14: .line 138
            aload 5 /* channel */
            ifnonnull 21
        15: .line 139
            aload 2 /* callback */
            getstatic io.undertow.io.IoCallback.END_EXCHANGE:Lio/undertow/io/IoCallback;
            if_acmpne 18
        16: .line 140
            lload 3 /* responseContentLength */
            ldc -1
            lcmp
            ifne 18
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getResponseHeaders:()Lio/undertow/util/HeaderMap;
            getstatic io.undertow.util.Headers.TRANSFER_ENCODING:Lio/undertow/util/HttpString;
            invokevirtual io.undertow.util.HeaderMap.contains:(Lio/undertow/util/HttpString;)Z
            ifne 18
        17: .line 141
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            aload 1 /* buffer */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            i2l
            invokevirtual io.undertow.server.HttpServerExchange.setResponseContentLength:(J)Lio/undertow/server/HttpServerExchange;
            pop
        18: .line 144
      StackMap locals: org.xnio.channels.StreamSinkChannel
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getResponseChannel:()Lorg/xnio/channels/StreamSinkChannel;
            dup
            astore 5 /* channel */
            putfield io.undertow.io.AsyncSenderImpl.channel:Lorg/xnio/channels/StreamSinkChannel;
        19: .line 145
            aload 5 /* channel */
            ifnonnull 21
        20: .line 146
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.responseChannelAlreadyProvided:()Ljava/lang/IllegalStateException;
            athrow
        21: .line 149
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* callback */
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        22: .line 150
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.inCallback:Z
            ifeq 25
        23: .line 151
            aload 0 /* this */
            iconst_1
            anewarray java.nio.ByteBuffer
            dup
            iconst_0
            aload 1 /* buffer */
            aastore
            putfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
        24: .line 152
            return
        25: .line 156
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            ifne 28
        26: .line 157
            aload 2 /* callback */
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            aload 0 /* this */
            invokeinterface io.undertow.io.IoCallback.onComplete:(Lio/undertow/server/HttpServerExchange;Lio/undertow/io/Sender;)V
        27: .line 158
            return
        28: .line 160
      StackMap locals:
      StackMap stack:
            aload 5 /* channel */
            aload 1 /* buffer */
            invokeinterface org.xnio.channels.StreamSinkChannel.write:(Ljava/nio/ByteBuffer;)I
            istore 6 /* res */
        start local 6 // int res
        29: .line 161
            iload 6 /* res */
            ifne 37
        30: .line 162
            aload 0 /* this */
            iconst_1
            anewarray java.nio.ByteBuffer
            dup
            iconst_0
            aload 1 /* buffer */
            aastore
            putfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
        31: .line 163
            aload 0 /* this */
            aload 2 /* callback */
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        32: .line 165
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.writeListener:Lorg/xnio/ChannelListener;
            ifnonnull 34
        33: .line 166
            aload 0 /* this */
            invokevirtual io.undertow.io.AsyncSenderImpl.initWriteListener:()V
        34: .line 168
      StackMap locals: int
      StackMap stack:
            aload 5 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.getWriteSetter:()Lorg/xnio/ChannelListener$Setter;
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.writeListener:Lorg/xnio/ChannelListener;
            invokeinterface org.xnio.ChannelListener$Setter.set:(Lorg/xnio/ChannelListener;)V
        35: .line 169
            aload 5 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.resumeWrites:()V
        36: .line 170
            return
        end local 6 // int res
        37: .line 172
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
            ifne 25
        38: .line 173
            aload 0 /* this */
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnComplete:()V
        39: .line 175
            goto 42
      StackMap locals:
      StackMap stack: java.io.IOException
        40: astore 6 /* e */
        start local 6 // java.io.IOException e
        41: .line 177
            aload 0 /* this */
            aload 2 /* callback */
            aload 6 /* e */
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
        end local 6 // java.io.IOException e
        42: .line 179
      StackMap locals:
      StackMap stack:
            return
        end local 5 // org.xnio.channels.StreamSinkChannel channel
        end local 3 // long responseContentLength
        end local 2 // io.undertow.io.IoCallback callback
        end local 1 // java.nio.ByteBuffer buffer
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot                   Name  Signature
            0   43     0                   this  Lio/undertow/io/AsyncSenderImpl;
            0   43     1                 buffer  Ljava/nio/ByteBuffer;
            0   43     2               callback  Lio/undertow/io/IoCallback;
           10   43     3  responseContentLength  J
           14   43     5                channel  Lorg/xnio/channels/StreamSinkChannel;
           29   37     6                    res  I
           41   42     6                      e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          25    27      40  Class java.io.IOException
          28    36      40  Class java.io.IOException
          37    39      40  Class java.io.IOException
    MethodParameters:
          Name  Flags
      buffer    final
      callback  final

  public void send(java.nio.ByteBuffer[], io.undertow.io.IoCallback);
    descriptor: ([Ljava/nio/ByteBuffer;Lio/undertow/io/IoCallback;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=14, args_size=3
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // java.nio.ByteBuffer[] buffer
        start local 2 // io.undertow.io.IoCallback callback
         0: .line 183
            aload 2 /* callback */
            ifnonnull 2
         1: .line 184
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            ldc "callback"
            invokeinterface io.undertow.UndertowMessages.argumentCannotBeNull:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
            athrow
         2: .line 187
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getConnection:()Lio/undertow/server/ServerConnection;
            invokevirtual io.undertow.server.ServerConnection.isOpen:()Z
            ifne 5
         3: .line 188
            aload 0 /* this */
            aload 2 /* callback */
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
         4: .line 189
            return
         5: .line 191
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.isResponseComplete:()Z
            ifeq 7
         6: .line 192
            aload 0 /* this */
            aload 2 /* callback */
            new java.io.IOException
            dup
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.responseComplete:()Ljava/lang/IllegalStateException;
            invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
         7: .line 194
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
            ifnull 9
         8: .line 195
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.dataAlreadyQueued:()Ljava/lang/IllegalStateException;
            athrow
         9: .line 197
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* callback */
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        10: .line 198
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.inCallback:Z
            ifeq 13
        11: .line 199
            aload 0 /* this */
            aload 1 /* buffer */
            putfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
        12: .line 200
            return
        13: .line 203
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            invokestatic org.xnio.Buffers.remaining:([Ljava/nio/Buffer;)J
            lstore 3 /* totalToWrite */
        start local 3 // long totalToWrite
        14: .line 204
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getResponseContentLength:()J
            lstore 5 /* responseContentLength */
        start local 5 // long responseContentLength
        15: .line 205
            lload 5 /* responseContentLength */
            lconst_0
            lcmp
            ifle 18
            lload 3 /* totalToWrite */
            lload 5 /* responseContentLength */
            lcmp
            ifle 18
        16: .line 206
            aload 0 /* this */
            aload 2 /* callback */
            getstatic io.undertow.UndertowLogger.ROOT_LOGGER:Lio/undertow/UndertowLogger;
            lload 3 /* totalToWrite */
            lload 5 /* responseContentLength */
            invokeinterface io.undertow.UndertowLogger.dataLargerThanContentLength:(JJ)Ljava/io/IOException;
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
        17: .line 207
            return
        18: .line 210
      StackMap locals: long long
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.channel:Lorg/xnio/channels/StreamSinkChannel;
            astore 7 /* channel */
        start local 7 // org.xnio.channels.StreamSinkChannel channel
        19: .line 211
            aload 7 /* channel */
            ifnonnull 26
        20: .line 212
            aload 2 /* callback */
            getstatic io.undertow.io.IoCallback.END_EXCHANGE:Lio/undertow/io/IoCallback;
            if_acmpne 23
        21: .line 213
            lload 5 /* responseContentLength */
            ldc -1
            lcmp
            ifne 23
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getResponseHeaders:()Lio/undertow/util/HeaderMap;
            getstatic io.undertow.util.Headers.TRANSFER_ENCODING:Lio/undertow/util/HttpString;
            invokevirtual io.undertow.util.HeaderMap.contains:(Lio/undertow/util/HttpString;)Z
            ifne 23
        22: .line 214
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            lload 3 /* totalToWrite */
            invokevirtual io.undertow.server.HttpServerExchange.setResponseContentLength:(J)Lio/undertow/server/HttpServerExchange;
            pop
        23: .line 217
      StackMap locals: org.xnio.channels.StreamSinkChannel
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getResponseChannel:()Lorg/xnio/channels/StreamSinkChannel;
            dup
            astore 7 /* channel */
            putfield io.undertow.io.AsyncSenderImpl.channel:Lorg/xnio/channels/StreamSinkChannel;
        24: .line 218
            aload 7 /* channel */
            ifnonnull 26
        25: .line 219
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.responseChannelAlreadyProvided:()Ljava/lang/IllegalStateException;
            athrow
        26: .line 223
      StackMap locals:
      StackMap stack:
            lload 3 /* totalToWrite */
            lstore 8 /* total */
        start local 8 // long total
        27: .line 224
            lconst_0
            lstore 10 /* written */
        start local 10 // long written
        28: .line 228
      StackMap locals: long long
      StackMap stack:
            aload 7 /* channel */
            aload 1 /* buffer */
            invokeinterface org.xnio.channels.StreamSinkChannel.write:([Ljava/nio/ByteBuffer;)J
            lstore 12 /* res */
        start local 12 // long res
        29: .line 229
            lload 10 /* written */
            lload 12 /* res */
            ladd
            lstore 10 /* written */
        30: .line 230
            lload 12 /* res */
            lconst_0
            lcmp
            ifne 38
        31: .line 231
            aload 0 /* this */
            aload 1 /* buffer */
            putfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
        32: .line 232
            aload 0 /* this */
            aload 2 /* callback */
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        33: .line 234
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.writeListener:Lorg/xnio/ChannelListener;
            ifnonnull 35
        34: .line 235
            aload 0 /* this */
            invokevirtual io.undertow.io.AsyncSenderImpl.initWriteListener:()V
        35: .line 237
      StackMap locals: long
      StackMap stack:
            aload 7 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.getWriteSetter:()Lorg/xnio/ChannelListener$Setter;
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.writeListener:Lorg/xnio/ChannelListener;
            invokeinterface org.xnio.ChannelListener$Setter.set:(Lorg/xnio/ChannelListener;)V
        36: .line 238
            aload 7 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.resumeWrites:()V
        37: .line 239
            return
        end local 12 // long res
        38: .line 241
      StackMap locals:
      StackMap stack:
            lload 10 /* written */
            lload 8 /* total */
        39: .line 227
            lcmp
            iflt 28
        40: .line 242
            aload 0 /* this */
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnComplete:()V
        41: .line 244
            goto 44
      StackMap locals:
      StackMap stack: java.io.IOException
        42: astore 12 /* e */
        start local 12 // java.io.IOException e
        43: .line 245
            aload 0 /* this */
            aload 2 /* callback */
            aload 12 /* e */
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
        end local 12 // java.io.IOException e
        44: .line 247
      StackMap locals:
      StackMap stack:
            return
        end local 10 // long written
        end local 8 // long total
        end local 7 // org.xnio.channels.StreamSinkChannel channel
        end local 5 // long responseContentLength
        end local 3 // long totalToWrite
        end local 2 // io.undertow.io.IoCallback callback
        end local 1 // java.nio.ByteBuffer[] buffer
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot                   Name  Signature
            0   45     0                   this  Lio/undertow/io/AsyncSenderImpl;
            0   45     1                 buffer  [Ljava/nio/ByteBuffer;
            0   45     2               callback  Lio/undertow/io/IoCallback;
           14   45     3           totalToWrite  J
           15   45     5  responseContentLength  J
           19   45     7                channel  Lorg/xnio/channels/StreamSinkChannel;
           27   45     8                  total  J
           28   45    10                written  J
           29   38    12                    res  J
           43   44    12                      e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          28    37      42  Class java.io.IOException
          38    41      42  Class java.io.IOException
    MethodParameters:
          Name  Flags
      buffer    final
      callback  final

  public void transferFrom(java.nio.channels.FileChannel, io.undertow.io.IoCallback);
    descriptor: (Ljava/nio/channels/FileChannel;Lio/undertow/io/IoCallback;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=3, args_size=3
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // java.nio.channels.FileChannel source
        start local 2 // io.undertow.io.IoCallback callback
         0: .line 252
            aload 2 /* callback */
            ifnonnull 2
         1: .line 253
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            ldc "callback"
            invokeinterface io.undertow.UndertowMessages.argumentCannotBeNull:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
            athrow
         2: .line 256
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getConnection:()Lio/undertow/server/ServerConnection;
            invokevirtual io.undertow.server.ServerConnection.isOpen:()Z
            ifne 5
         3: .line 257
            aload 0 /* this */
            aload 2 /* callback */
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
         4: .line 258
            return
         5: .line 260
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.isResponseComplete:()Z
            ifeq 7
         6: .line 261
            aload 0 /* this */
            aload 2 /* callback */
            new java.io.IOException
            dup
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.responseComplete:()Ljava/lang/IllegalStateException;
            invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
         7: .line 263
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.fileChannel:Ljava/nio/channels/FileChannel;
            ifnonnull 8
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
            ifnull 9
         8: .line 264
      StackMap locals:
      StackMap stack:
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.dataAlreadyQueued:()Ljava/lang/IllegalStateException;
            athrow
         9: .line 267
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* callback */
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        10: .line 268
            aload 0 /* this */
            aload 1 /* source */
            putfield io.undertow.io.AsyncSenderImpl.fileChannel:Ljava/nio/channels/FileChannel;
        11: .line 269
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.inCallback:Z
            ifeq 13
        12: .line 270
            return
        13: .line 272
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.transferTask:Lio/undertow/io/AsyncSenderImpl$TransferTask;
            ifnonnull 15
        14: .line 273
            aload 0 /* this */
            new io.undertow.io.AsyncSenderImpl$TransferTask
            dup
            aload 0 /* this */
            invokespecial io.undertow.io.AsyncSenderImpl$TransferTask.<init>:(Lio/undertow/io/AsyncSenderImpl;)V
            putfield io.undertow.io.AsyncSenderImpl.transferTask:Lio/undertow/io/AsyncSenderImpl$TransferTask;
        15: .line 275
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.isInIoThread:()Z
            ifeq 18
        16: .line 276
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.transferTask:Lio/undertow/io/AsyncSenderImpl$TransferTask;
            invokevirtual io.undertow.server.HttpServerExchange.dispatch:(Ljava/lang/Runnable;)Lio/undertow/server/HttpServerExchange;
            pop
        17: .line 277
            return
        18: .line 280
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.transferTask:Lio/undertow/io/AsyncSenderImpl$TransferTask;
            invokevirtual io.undertow.io.AsyncSenderImpl$TransferTask.run:()V
        19: .line 281
            return
        end local 2 // io.undertow.io.IoCallback callback
        end local 1 // java.nio.channels.FileChannel source
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   20     0      this  Lio/undertow/io/AsyncSenderImpl;
            0   20     1    source  Ljava/nio/channels/FileChannel;
            0   20     2  callback  Lio/undertow/io/IoCallback;
    MethodParameters:
          Name  Flags
      source    
      callback  

  public void send(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // java.nio.ByteBuffer buffer
         0: .line 285
            aload 0 /* this */
            aload 1 /* buffer */
            getstatic io.undertow.io.IoCallback.END_EXCHANGE:Lio/undertow/io/IoCallback;
            invokevirtual io.undertow.io.AsyncSenderImpl.send:(Ljava/nio/ByteBuffer;Lio/undertow/io/IoCallback;)V
         1: .line 286
            return
        end local 1 // java.nio.ByteBuffer buffer
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lio/undertow/io/AsyncSenderImpl;
            0    2     1  buffer  Ljava/nio/ByteBuffer;
    MethodParameters:
        Name  Flags
      buffer  final

  public void send(java.nio.ByteBuffer[]);
    descriptor: ([Ljava/nio/ByteBuffer;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // java.nio.ByteBuffer[] buffer
         0: .line 290
            aload 0 /* this */
            aload 1 /* buffer */
            getstatic io.undertow.io.IoCallback.END_EXCHANGE:Lio/undertow/io/IoCallback;
            invokevirtual io.undertow.io.AsyncSenderImpl.send:([Ljava/nio/ByteBuffer;Lio/undertow/io/IoCallback;)V
         1: .line 291
            return
        end local 1 // java.nio.ByteBuffer[] buffer
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lio/undertow/io/AsyncSenderImpl;
            0    2     1  buffer  [Ljava/nio/ByteBuffer;
    MethodParameters:
        Name  Flags
      buffer  final

  public void send(java.lang.String, io.undertow.io.IoCallback);
    descriptor: (Ljava/lang/String;Lio/undertow/io/IoCallback;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // java.lang.String data
        start local 2 // io.undertow.io.IoCallback callback
         0: .line 295
            aload 0 /* this */
            aload 1 /* data */
            getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
            aload 2 /* callback */
            invokevirtual io.undertow.io.AsyncSenderImpl.send:(Ljava/lang/String;Ljava/nio/charset/Charset;Lio/undertow/io/IoCallback;)V
         1: .line 296
            return
        end local 2 // io.undertow.io.IoCallback callback
        end local 1 // java.lang.String data
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    2     0      this  Lio/undertow/io/AsyncSenderImpl;
            0    2     1      data  Ljava/lang/String;
            0    2     2  callback  Lio/undertow/io/IoCallback;
    MethodParameters:
          Name  Flags
      data      final
      callback  final

  public void send(java.lang.String, java.nio.charset.Charset, io.undertow.io.IoCallback);
    descriptor: (Ljava/lang/String;Ljava/nio/charset/Charset;Lio/undertow/io/IoCallback;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=9, args_size=4
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // java.lang.String data
        start local 2 // java.nio.charset.Charset charset
        start local 3 // io.undertow.io.IoCallback callback
         0: .line 301
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getConnection:()Lio/undertow/server/ServerConnection;
            invokevirtual io.undertow.server.ServerConnection.isOpen:()Z
            ifne 3
         1: .line 302
            aload 0 /* this */
            aload 3 /* callback */
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
         2: .line 303
            return
         3: .line 305
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.isResponseComplete:()Z
            ifeq 5
         4: .line 306
            aload 0 /* this */
            aload 3 /* callback */
            new java.io.IOException
            dup
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.responseComplete:()Ljava/lang/IllegalStateException;
            invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
         5: .line 308
      StackMap locals:
      StackMap stack:
            aload 1 /* data */
            aload 2 /* charset */
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
            astore 4 /* bytes */
        start local 4 // java.nio.ByteBuffer bytes
         6: .line 309
            aload 4 /* bytes */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            ifne 9
         7: .line 310
            aload 3 /* callback */
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            aload 0 /* this */
            invokeinterface io.undertow.io.IoCallback.onComplete:(Lio/undertow/server/HttpServerExchange;Lio/undertow/io/Sender;)V
         8: .line 311
            goto 24
         9: .line 312
      StackMap locals: java.nio.ByteBuffer
      StackMap stack:
            iconst_0
            istore 5 /* i */
        start local 5 // int i
        10: .line 313
            aconst_null
            astore 6 /* bufs */
        start local 6 // java.nio.ByteBuffer[] bufs
        11: .line 314
            goto 22
        12: .line 315
      StackMap locals: int java.nio.ByteBuffer[]
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getConnection:()Lio/undertow/server/ServerConnection;
            invokevirtual io.undertow.server.ServerConnection.getByteBufferPool:()Lio/undertow/connector/ByteBufferPool;
            invokeinterface io.undertow.connector.ByteBufferPool.allocate:()Lio/undertow/connector/PooledByteBuffer;
            astore 7 /* pooled */
        start local 7 // io.undertow.connector.PooledByteBuffer pooled
        13: .line 316
            aload 6 /* bufs */
            ifnonnull 17
        14: .line 317
            aload 4 /* bytes */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            aload 7 /* pooled */
            invokeinterface io.undertow.connector.PooledByteBuffer.getBuffer:()Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.remaining:()I
            iadd
            iconst_1
            isub
            aload 7 /* pooled */
            invokeinterface io.undertow.connector.PooledByteBuffer.getBuffer:()Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.remaining:()I
            idiv
            istore 8 /* noBufs */
        start local 8 // int noBufs
        15: .line 318
            aload 0 /* this */
            iload 8 /* noBufs */
            anewarray io.undertow.connector.PooledByteBuffer
            putfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
        16: .line 319
            iload 8 /* noBufs */
            anewarray java.nio.ByteBuffer
            astore 6 /* bufs */
        end local 8 // int noBufs
        17: .line 321
      StackMap locals: io.undertow.connector.PooledByteBuffer
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
            iload 5 /* i */
            aload 7 /* pooled */
            aastore
        18: .line 322
            aload 6 /* bufs */
            iload 5 /* i */
            aload 7 /* pooled */
            invokeinterface io.undertow.connector.PooledByteBuffer.getBuffer:()Ljava/nio/ByteBuffer;
            aastore
        19: .line 323
            aload 7 /* pooled */
            invokeinterface io.undertow.connector.PooledByteBuffer.getBuffer:()Ljava/nio/ByteBuffer;
            aload 4 /* bytes */
            invokestatic org.xnio.Buffers.copy:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
            pop
        20: .line 324
            aload 7 /* pooled */
            invokeinterface io.undertow.connector.PooledByteBuffer.getBuffer:()Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
            pop
        21: .line 325
            iinc 5 /* i */ 1
        end local 7 // io.undertow.connector.PooledByteBuffer pooled
        22: .line 314
      StackMap locals:
      StackMap stack:
            aload 4 /* bytes */
            invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
            ifne 12
        23: .line 327
            aload 0 /* this */
            aload 6 /* bufs */
            aload 3 /* callback */
            invokevirtual io.undertow.io.AsyncSenderImpl.send:([Ljava/nio/ByteBuffer;Lio/undertow/io/IoCallback;)V
        end local 6 // java.nio.ByteBuffer[] bufs
        end local 5 // int i
        24: .line 329
      StackMap locals:
      StackMap stack:
            return
        end local 4 // java.nio.ByteBuffer bytes
        end local 3 // io.undertow.io.IoCallback callback
        end local 2 // java.nio.charset.Charset charset
        end local 1 // java.lang.String data
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   25     0      this  Lio/undertow/io/AsyncSenderImpl;
            0   25     1      data  Ljava/lang/String;
            0   25     2   charset  Ljava/nio/charset/Charset;
            0   25     3  callback  Lio/undertow/io/IoCallback;
            6   25     4     bytes  Ljava/nio/ByteBuffer;
           10   24     5         i  I
           11   24     6      bufs  [Ljava/nio/ByteBuffer;
           13   22     7    pooled  Lio/undertow/connector/PooledByteBuffer;
           15   17     8    noBufs  I
    MethodParameters:
          Name  Flags
      data      final
      charset   final
      callback  final

  public void send(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // java.lang.String data
         0: .line 333
            aload 0 /* this */
            aload 1 /* data */
            getstatic io.undertow.io.IoCallback.END_EXCHANGE:Lio/undertow/io/IoCallback;
            invokevirtual io.undertow.io.AsyncSenderImpl.send:(Ljava/lang/String;Lio/undertow/io/IoCallback;)V
         1: .line 334
            return
        end local 1 // java.lang.String data
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lio/undertow/io/AsyncSenderImpl;
            0    2     1  data  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      data  final

  public void send(java.lang.String, java.nio.charset.Charset);
    descriptor: (Ljava/lang/String;Ljava/nio/charset/Charset;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // java.lang.String data
        start local 2 // java.nio.charset.Charset charset
         0: .line 338
            aload 0 /* this */
            aload 1 /* data */
            aload 2 /* charset */
            getstatic io.undertow.io.IoCallback.END_EXCHANGE:Lio/undertow/io/IoCallback;
            invokevirtual io.undertow.io.AsyncSenderImpl.send:(Ljava/lang/String;Ljava/nio/charset/Charset;Lio/undertow/io/IoCallback;)V
         1: .line 339
            return
        end local 2 // java.nio.charset.Charset charset
        end local 1 // java.lang.String data
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    2     0     this  Lio/undertow/io/AsyncSenderImpl;
            0    2     1     data  Ljava/lang/String;
            0    2     2  charset  Ljava/nio/charset/Charset;
    MethodParameters:
         Name  Flags
      data     final
      charset  final

  public void close(io.undertow.io.IoCallback);
    descriptor: (Lio/undertow/io/IoCallback;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=3, args_size=2
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // io.undertow.io.IoCallback callback
         0: .line 344
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.channel:Lorg/xnio/channels/StreamSinkChannel;
            astore 2 /* channel */
        start local 2 // org.xnio.channels.StreamSinkChannel channel
         1: .line 345
            aload 2 /* channel */
            ifnonnull 7
         2: .line 346
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getResponseContentLength:()J
            ldc -1
            lcmp
            ifne 4
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getResponseHeaders:()Lio/undertow/util/HeaderMap;
            getstatic io.undertow.util.Headers.TRANSFER_ENCODING:Lio/undertow/util/HttpString;
            invokevirtual io.undertow.util.HeaderMap.contains:(Lio/undertow/util/HttpString;)Z
            ifne 4
         3: .line 347
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            lconst_0
            invokevirtual io.undertow.server.HttpServerExchange.setResponseContentLength:(J)Lio/undertow/server/HttpServerExchange;
            pop
         4: .line 349
      StackMap locals: org.xnio.channels.StreamSinkChannel
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            invokevirtual io.undertow.server.HttpServerExchange.getResponseChannel:()Lorg/xnio/channels/StreamSinkChannel;
            dup
            astore 2 /* channel */
            putfield io.undertow.io.AsyncSenderImpl.channel:Lorg/xnio/channels/StreamSinkChannel;
         5: .line 350
            aload 2 /* channel */
            ifnonnull 7
         6: .line 351
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.responseChannelAlreadyProvided:()Ljava/lang/IllegalStateException;
            athrow
         7: .line 354
      StackMap locals:
      StackMap stack:
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.shutdownWrites:()V
         8: .line 355
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.flush:()Z
            ifne 15
         9: .line 356
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.getWriteSetter:()Lorg/xnio/ChannelListener$Setter;
        10: .line 357
            new io.undertow.io.AsyncSenderImpl$1
            dup
            aload 0 /* this */
            aload 1 /* callback */
            invokespecial io.undertow.io.AsyncSenderImpl$1.<init>:(Lio/undertow/io/AsyncSenderImpl;Lio/undertow/io/IoCallback;)V
        11: .line 364
            new io.undertow.io.AsyncSenderImpl$2
            dup
            aload 0 /* this */
            aload 1 /* callback */
            invokespecial io.undertow.io.AsyncSenderImpl$2.<init>:(Lio/undertow/io/AsyncSenderImpl;Lio/undertow/io/IoCallback;)V
        12: .line 356
            invokestatic org.xnio.ChannelListeners.flushingChannelListener:(Lorg/xnio/ChannelListener;Lorg/xnio/ChannelExceptionHandler;)Lorg/xnio/ChannelListener;
            invokeinterface org.xnio.ChannelListener$Setter.set:(Lorg/xnio/ChannelListener;)V
        13: .line 377
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.resumeWrites:()V
        14: .line 378
            goto 21
        15: .line 379
      StackMap locals:
      StackMap stack:
            aload 1 /* callback */
            ifnull 21
        16: .line 380
            aload 1 /* callback */
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            aload 0 /* this */
            invokeinterface io.undertow.io.IoCallback.onComplete:(Lio/undertow/server/HttpServerExchange;Lio/undertow/io/Sender;)V
        end local 2 // org.xnio.channels.StreamSinkChannel channel
        17: .line 383
            goto 21
      StackMap locals: io.undertow.io.AsyncSenderImpl io.undertow.io.IoCallback
      StackMap stack: java.io.IOException
        18: astore 2 /* e */
        start local 2 // java.io.IOException e
        19: .line 384
            aload 1 /* callback */
            ifnull 21
        20: .line 385
            aload 0 /* this */
            aload 1 /* callback */
            aload 2 /* e */
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
        end local 2 // java.io.IOException e
        21: .line 388
      StackMap locals:
      StackMap stack:
            return
        end local 1 // io.undertow.io.IoCallback callback
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   22     0      this  Lio/undertow/io/AsyncSenderImpl;
            0   22     1  callback  Lio/undertow/io/IoCallback;
            1   17     2   channel  Lorg/xnio/channels/StreamSinkChannel;
           19   21     2         e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           0    17      18  Class java.io.IOException
    MethodParameters:
          Name  Flags
      callback  final

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // io.undertow.io.AsyncSenderImpl this
         0: .line 392
            aload 0 /* this */
            aconst_null
            invokevirtual io.undertow.io.AsyncSenderImpl.close:(Lio/undertow/io/IoCallback;)V
         1: .line 393
            return
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lio/undertow/io/AsyncSenderImpl;

  private void invokeOnComplete();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=11, args_size=1
        start local 0 // io.undertow.io.AsyncSenderImpl this
         0: .line 401
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
            ifnull 7
         1: .line 402
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
            dup
            astore 4
            arraylength
            istore 3
            iconst_0
            istore 2
            goto 5
      StackMap locals: io.undertow.io.AsyncSenderImpl top int int io.undertow.connector.PooledByteBuffer[]
      StackMap stack:
         2: aload 4
            iload 2
            aaload
            astore 1 /* buffer */
        start local 1 // io.undertow.connector.PooledByteBuffer buffer
         3: .line 403
            aload 1 /* buffer */
            invokeinterface io.undertow.connector.PooledByteBuffer.close:()V
        end local 1 // io.undertow.connector.PooledByteBuffer buffer
         4: .line 402
            iinc 2 1
      StackMap locals:
      StackMap stack:
         5: iload 2
            iload 3
            if_icmplt 2
         6: .line 405
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
         7: .line 407
      StackMap locals: io.undertow.io.AsyncSenderImpl
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
            astore 1 /* callback */
        start local 1 // io.undertow.io.IoCallback callback
         8: .line 408
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
         9: .line 409
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.fileChannel:Ljava/nio/channels/FileChannel;
        10: .line 410
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        11: .line 411
            aload 0 /* this */
            iconst_1
            putfield io.undertow.io.AsyncSenderImpl.inCallback:Z
        12: .line 413
            aload 1 /* callback */
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            aload 0 /* this */
            invokeinterface io.undertow.io.IoCallback.onComplete:(Lio/undertow/server/HttpServerExchange;Lio/undertow/io/Sender;)V
        13: .line 414
            goto 17
      StackMap locals: io.undertow.io.AsyncSenderImpl io.undertow.io.IoCallback
      StackMap stack: java.lang.Throwable
        14: astore 2
        15: .line 415
            aload 0 /* this */
            iconst_0
            putfield io.undertow.io.AsyncSenderImpl.inCallback:Z
        16: .line 416
            aload 2
            athrow
        17: .line 415
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_0
            putfield io.undertow.io.AsyncSenderImpl.inCallback:Z
        18: .line 418
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.channel:Lorg/xnio/channels/StreamSinkChannel;
            astore 2 /* channel */
        start local 2 // org.xnio.channels.StreamSinkChannel channel
        19: .line 419
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
            ifnull 37
        20: .line 420
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
            invokestatic org.xnio.Buffers.remaining:([Ljava/nio/Buffer;)J
            lstore 3 /* t */
        start local 3 // long t
        21: .line 421
            lload 3 /* t */
            lstore 5 /* total */
        start local 5 // long total
        22: .line 422
            lconst_0
            lstore 7 /* written */
        start local 7 // long written
        23: .line 426
      StackMap locals: io.undertow.io.AsyncSenderImpl io.undertow.io.IoCallback org.xnio.channels.StreamSinkChannel long long long
      StackMap stack:
            aload 2 /* channel */
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
            invokeinterface org.xnio.channels.StreamSinkChannel.write:([Ljava/nio/ByteBuffer;)J
            lstore 9 /* res */
        start local 9 // long res
        24: .line 427
            lload 7 /* written */
            lload 9 /* res */
            ladd
            lstore 7 /* written */
        25: .line 428
            lload 9 /* res */
            lconst_0
            lcmp
            ifne 31
        26: .line 429
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.writeListener:Lorg/xnio/ChannelListener;
            ifnonnull 28
        27: .line 430
            aload 0 /* this */
            invokevirtual io.undertow.io.AsyncSenderImpl.initWriteListener:()V
        28: .line 432
      StackMap locals: long
      StackMap stack:
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.getWriteSetter:()Lorg/xnio/ChannelListener$Setter;
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.writeListener:Lorg/xnio/ChannelListener;
            invokeinterface org.xnio.ChannelListener$Setter.set:(Lorg/xnio/ChannelListener;)V
        29: .line 433
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.resumeWrites:()V
        30: .line 434
            return
        end local 9 // long res
        31: .line 436
      StackMap locals:
      StackMap stack:
            lload 7 /* written */
            lload 5 /* total */
        32: .line 425
            lcmp
            iflt 23
        33: .line 438
            goto 0
      StackMap locals:
      StackMap stack: java.io.IOException
        34: astore 9 /* e */
        start local 9 // java.io.IOException e
        35: .line 439
            aload 0 /* this */
            aload 1 /* callback */
            aload 9 /* e */
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnException:(Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
        end local 9 // java.io.IOException e
        end local 7 // long written
        end local 5 // long total
        end local 3 // long t
        36: .line 441
            goto 0
      StackMap locals:
      StackMap stack:
        37: aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.fileChannel:Ljava/nio/channels/FileChannel;
            ifnull 42
        38: .line 442
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.transferTask:Lio/undertow/io/AsyncSenderImpl$TransferTask;
            ifnonnull 40
        39: .line 443
            aload 0 /* this */
            new io.undertow.io.AsyncSenderImpl$TransferTask
            dup
            aload 0 /* this */
            invokespecial io.undertow.io.AsyncSenderImpl$TransferTask.<init>:(Lio/undertow/io/AsyncSenderImpl;)V
            putfield io.undertow.io.AsyncSenderImpl.transferTask:Lio/undertow/io/AsyncSenderImpl$TransferTask;
        40: .line 445
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.transferTask:Lio/undertow/io/AsyncSenderImpl$TransferTask;
            iconst_0
            invokevirtual io.undertow.io.AsyncSenderImpl$TransferTask.run:(Z)Z
            ifne 0
        41: .line 446
            return
        42: .line 449
      StackMap locals:
      StackMap stack:
            return
        end local 2 // org.xnio.channels.StreamSinkChannel channel
        end local 1 // io.undertow.io.IoCallback callback
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   43     0      this  Lio/undertow/io/AsyncSenderImpl;
            3    4     1    buffer  Lio/undertow/connector/PooledByteBuffer;
            8   43     1  callback  Lio/undertow/io/IoCallback;
           19   43     2   channel  Lorg/xnio/channels/StreamSinkChannel;
           21   36     3         t  J
           22   36     5     total  J
           23   36     7   written  J
           24   31     9       res  J
           35   36     9         e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          12    14      14  any
          23    30      34  Class java.io.IOException
          31    33      34  Class java.io.IOException

  private void invokeOnException(io.undertow.io.IoCallback, java.io.IOException);
    descriptor: (Lio/undertow/io/IoCallback;Ljava/io/IOException;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=7, args_size=3
        start local 0 // io.undertow.io.AsyncSenderImpl this
        start local 1 // io.undertow.io.IoCallback callback
        start local 2 // java.io.IOException e
         0: .line 458
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
            ifnull 7
         1: .line 459
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
            dup
            astore 6
            arraylength
            istore 5
            iconst_0
            istore 4
            goto 5
      StackMap locals: io.undertow.io.AsyncSenderImpl io.undertow.io.IoCallback java.io.IOException top int int io.undertow.connector.PooledByteBuffer[]
      StackMap stack:
         2: aload 6
            iload 4
            aaload
            astore 3 /* buffer */
        start local 3 // io.undertow.connector.PooledByteBuffer buffer
         3: .line 460
            aload 3 /* buffer */
            invokeinterface io.undertow.connector.PooledByteBuffer.close:()V
        end local 3 // io.undertow.connector.PooledByteBuffer buffer
         4: .line 459
            iinc 4 1
      StackMap locals:
      StackMap stack:
         5: iload 4
            iload 5
            if_icmplt 2
         6: .line 462
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
         7: .line 464
      StackMap locals: io.undertow.io.AsyncSenderImpl io.undertow.io.IoCallback java.io.IOException
      StackMap stack:
            aload 1 /* callback */
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
            aload 0 /* this */
            aload 2 /* e */
            invokeinterface io.undertow.io.IoCallback.onException:(Lio/undertow/server/HttpServerExchange;Lio/undertow/io/Sender;Ljava/io/IOException;)V
         8: .line 465
            return
        end local 2 // java.io.IOException e
        end local 1 // io.undertow.io.IoCallback callback
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    9     0      this  Lio/undertow/io/AsyncSenderImpl;
            0    9     1  callback  Lio/undertow/io/IoCallback;
            0    9     2         e  Ljava/io/IOException;
            3    4     3    buffer  Lio/undertow/connector/PooledByteBuffer;
    MethodParameters:
          Name  Flags
      callback  
      e         

  private void initWriteListener();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // io.undertow.io.AsyncSenderImpl this
         0: .line 468
            aload 0 /* this */
            new io.undertow.io.AsyncSenderImpl$3
            dup
            aload 0 /* this */
            invokespecial io.undertow.io.AsyncSenderImpl$3.<init>:(Lio/undertow/io/AsyncSenderImpl;)V
            putfield io.undertow.io.AsyncSenderImpl.writeListener:Lorg/xnio/ChannelListener;
         1: .line 489
            return
        end local 0 // io.undertow.io.AsyncSenderImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lio/undertow/io/AsyncSenderImpl;
}
SourceFile: "AsyncSenderImpl.java"
NestMembers:
  io.undertow.io.AsyncSenderImpl$1  io.undertow.io.AsyncSenderImpl$2  io.undertow.io.AsyncSenderImpl$3  io.undertow.io.AsyncSenderImpl$TransferTask
InnerClasses:
  io.undertow.io.AsyncSenderImpl$1
  io.undertow.io.AsyncSenderImpl$2
  io.undertow.io.AsyncSenderImpl$3
  public TransferTask = io.undertow.io.AsyncSenderImpl$TransferTask of io.undertow.io.AsyncSenderImpl
  public abstract Setter = org.xnio.ChannelListener$Setter of org.xnio.ChannelListener