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 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 java.nio.ByteBuffer[] buffer;
    descriptor: [Ljava/nio/ByteBuffer;
    flags: (0x0002) ACC_PRIVATE

  private volatile java.lang.Thread writeThread;
    descriptor: Ljava/lang/Thread;
    flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE

  private volatile java.lang.Thread inCallback;
    descriptor: Ljava/lang/Thread;
    flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE

  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 130
            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 131
            aload 0 /* this */
            aload 1 /* exchange */
            putfield io.undertow.io.AsyncSenderImpl.exchange:Lio/undertow/server/HttpServerExchange;
         3: .line 132
            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 137
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            putfield io.undertow.io.AsyncSenderImpl.writeThread:Ljava/lang/Thread;
         1: .line 138
            aload 2 /* callback */
            ifnonnull 3
         2: .line 139
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            ldc "callback"
            invokeinterface io.undertow.UndertowMessages.argumentCannotBeNull:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
            athrow
         3: .line 141
      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 6
         4: .line 142
            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
         5: .line 143
            return
         6: .line 145
      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 8
         7: .line 146
            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
         8: .line 148
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
            ifnonnull 9
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.fileChannel:Ljava/nio/channels/FileChannel;
            ifnull 10
         9: .line 149
      StackMap locals:
      StackMap stack:
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.dataAlreadyQueued:()Ljava/lang/IllegalStateException;
            athrow
        10: .line 151
      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
        11: .line 152
            lload 3 /* responseContentLength */
            lconst_0
            lcmp
            ifle 14
            aload 1 /* buffer */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            i2l
            lload 3 /* responseContentLength */
            lcmp
            ifle 14
        12: .line 153
            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
        13: .line 154
            return
        14: .line 156
      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
        15: .line 157
            aload 5 /* channel */
            ifnonnull 22
        16: .line 158
            aload 2 /* callback */
            getstatic io.undertow.io.IoCallback.END_EXCHANGE:Lio/undertow/io/IoCallback;
            if_acmpne 19
        17: .line 159
            lload 3 /* responseContentLength */
            ldc -1
            lcmp
            ifne 19
            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 19
        18: .line 160
            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
        19: .line 163
      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;
        20: .line 164
            aload 5 /* channel */
            ifnonnull 22
        21: .line 165
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.responseChannelAlreadyProvided:()Ljava/lang/IllegalStateException;
            athrow
        22: .line 168
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* callback */
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        23: .line 169
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.inCallback:Ljava/lang/Thread;
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            if_acmpne 26
        24: .line 170
            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;
        25: .line 171
            return
        26: .line 175
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            ifne 29
        27: .line 176
            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
        28: .line 177
            return
        29: .line 179
      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
        30: .line 180
            iload 6 /* res */
            ifne 38
        31: .line 181
            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;
        32: .line 182
            aload 0 /* this */
            aload 2 /* callback */
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        33: .line 184
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.writeListener:Lorg/xnio/ChannelListener;
            ifnonnull 35
        34: .line 185
            aload 0 /* this */
            invokevirtual io.undertow.io.AsyncSenderImpl.initWriteListener:()V
        35: .line 187
      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
        36: .line 188
            aload 5 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.resumeWrites:()V
        37: .line 189
            return
        end local 6 // int res
        38: .line 191
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
            ifne 26
        39: .line 192
            aload 0 /* this */
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnComplete:()V
        40: .line 194
            goto 43
      StackMap locals:
      StackMap stack: java.io.IOException
        41: astore 6 /* e */
        start local 6 // java.io.IOException e
        42: .line 196
            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
        43: .line 198
      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   44     0                   this  Lio/undertow/io/AsyncSenderImpl;
            0   44     1                 buffer  Ljava/nio/ByteBuffer;
            0   44     2               callback  Lio/undertow/io/IoCallback;
           11   44     3  responseContentLength  J
           15   44     5                channel  Lorg/xnio/channels/StreamSinkChannel;
           30   38     6                    res  I
           42   43     6                      e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          26    28      41  Class java.io.IOException
          29    37      41  Class java.io.IOException
          38    40      41  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 202
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            putfield io.undertow.io.AsyncSenderImpl.writeThread:Ljava/lang/Thread;
         1: .line 203
            aload 2 /* callback */
            ifnonnull 3
         2: .line 204
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            ldc "callback"
            invokeinterface io.undertow.UndertowMessages.argumentCannotBeNull:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
            athrow
         3: .line 207
      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 6
         4: .line 208
            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
         5: .line 209
            return
         6: .line 211
      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 8
         7: .line 212
            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
         8: .line 214
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
            ifnull 10
         9: .line 215
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.dataAlreadyQueued:()Ljava/lang/IllegalStateException;
            athrow
        10: .line 217
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* callback */
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        11: .line 218
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.inCallback:Ljava/lang/Thread;
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            if_acmpne 14
        12: .line 219
            aload 0 /* this */
            aload 1 /* buffer */
            putfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
        13: .line 220
            return
        14: .line 223
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            invokestatic org.xnio.Buffers.remaining:([Ljava/nio/Buffer;)J
            lstore 3 /* totalToWrite */
        start local 3 // long totalToWrite
        15: .line 224
            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
        16: .line 225
            lload 5 /* responseContentLength */
            lconst_0
            lcmp
            ifle 19
            lload 3 /* totalToWrite */
            lload 5 /* responseContentLength */
            lcmp
            ifle 19
        17: .line 226
            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
        18: .line 227
            return
        19: .line 230
      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
        20: .line 231
            aload 7 /* channel */
            ifnonnull 27
        21: .line 232
            aload 2 /* callback */
            getstatic io.undertow.io.IoCallback.END_EXCHANGE:Lio/undertow/io/IoCallback;
            if_acmpne 24
        22: .line 233
            lload 5 /* responseContentLength */
            ldc -1
            lcmp
            ifne 24
            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 24
        23: .line 234
            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
        24: .line 237
      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;
        25: .line 238
            aload 7 /* channel */
            ifnonnull 27
        26: .line 239
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.responseChannelAlreadyProvided:()Ljava/lang/IllegalStateException;
            athrow
        27: .line 243
      StackMap locals:
      StackMap stack:
            lload 3 /* totalToWrite */
            lstore 8 /* total */
        start local 8 // long total
        28: .line 244
            lconst_0
            lstore 10 /* written */
        start local 10 // long written
        29: .line 248
      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
        30: .line 249
            lload 10 /* written */
            lload 12 /* res */
            ladd
            lstore 10 /* written */
        31: .line 250
            lload 12 /* res */
            lconst_0
            lcmp
            ifne 39
        32: .line 251
            aload 0 /* this */
            aload 1 /* buffer */
            putfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
        33: .line 252
            aload 0 /* this */
            aload 2 /* callback */
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        34: .line 254
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.writeListener:Lorg/xnio/ChannelListener;
            ifnonnull 36
        35: .line 255
            aload 0 /* this */
            invokevirtual io.undertow.io.AsyncSenderImpl.initWriteListener:()V
        36: .line 257
      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
        37: .line 258
            aload 7 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.resumeWrites:()V
        38: .line 259
            return
        end local 12 // long res
        39: .line 261
      StackMap locals:
      StackMap stack:
            lload 10 /* written */
            lload 8 /* total */
        40: .line 247
            lcmp
            iflt 29
        41: .line 262
            aload 0 /* this */
            invokevirtual io.undertow.io.AsyncSenderImpl.invokeOnComplete:()V
        42: .line 264
            goto 45
      StackMap locals:
      StackMap stack: java.io.IOException
        43: astore 12 /* e */
        start local 12 // java.io.IOException e
        44: .line 265
            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
        45: .line 267
      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   46     0                   this  Lio/undertow/io/AsyncSenderImpl;
            0   46     1                 buffer  [Ljava/nio/ByteBuffer;
            0   46     2               callback  Lio/undertow/io/IoCallback;
           15   46     3           totalToWrite  J
           16   46     5  responseContentLength  J
           20   46     7                channel  Lorg/xnio/channels/StreamSinkChannel;
           28   46     8                  total  J
           29   46    10                written  J
           30   39    12                    res  J
           44   45    12                      e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          29    38      43  Class java.io.IOException
          39    42      43  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 272
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            putfield io.undertow.io.AsyncSenderImpl.writeThread:Ljava/lang/Thread;
         1: .line 273
            aload 2 /* callback */
            ifnonnull 3
         2: .line 274
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            ldc "callback"
            invokeinterface io.undertow.UndertowMessages.argumentCannotBeNull:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
            athrow
         3: .line 277
      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 6
         4: .line 278
            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
         5: .line 279
            return
         6: .line 281
      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 8
         7: .line 282
            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
         8: .line 284
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.fileChannel:Ljava/nio/channels/FileChannel;
            ifnonnull 9
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
            ifnull 10
         9: .line 285
      StackMap locals:
      StackMap stack:
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.dataAlreadyQueued:()Ljava/lang/IllegalStateException;
            athrow
        10: .line 288
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* callback */
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        11: .line 289
            aload 0 /* this */
            aload 1 /* source */
            putfield io.undertow.io.AsyncSenderImpl.fileChannel:Ljava/nio/channels/FileChannel;
        12: .line 290
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.inCallback:Ljava/lang/Thread;
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            if_acmpne 14
        13: .line 291
            return
        14: .line 293
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.transferTask:Lio/undertow/io/AsyncSenderImpl$TransferTask;
            ifnonnull 16
        15: .line 294
            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;
        16: .line 296
      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 19
        17: .line 297
            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
        18: .line 298
            return
        19: .line 301
      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
        20: .line 302
            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   21     0      this  Lio/undertow/io/AsyncSenderImpl;
            0   21     1    source  Ljava/nio/channels/FileChannel;
            0   21     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 306
            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 307
            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 311
            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 312
            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 316
            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 317
            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 321
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            putfield io.undertow.io.AsyncSenderImpl.writeThread:Ljava/lang/Thread;
         1: .line 322
            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 4
         2: .line 323
            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
         3: .line 324
            return
         4: .line 326
      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 6
         5: .line 327
            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
         6: .line 329
      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
         7: .line 330
            aload 4 /* bytes */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            ifne 10
         8: .line 331
            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
         9: .line 332
            goto 25
        10: .line 333
      StackMap locals: java.nio.ByteBuffer
      StackMap stack:
            iconst_0
            istore 5 /* i */
        start local 5 // int i
        11: .line 334
            aconst_null
            astore 6 /* bufs */
        start local 6 // java.nio.ByteBuffer[] bufs
        12: .line 335
            goto 23
        13: .line 336
      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
        14: .line 337
            aload 6 /* bufs */
            ifnonnull 18
        15: .line 338
            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
        16: .line 339
            aload 0 /* this */
            iload 8 /* noBufs */
            anewarray io.undertow.connector.PooledByteBuffer
            putfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
        17: .line 340
            iload 8 /* noBufs */
            anewarray java.nio.ByteBuffer
            astore 6 /* bufs */
        end local 8 // int noBufs
        18: .line 342
      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
        19: .line 343
            aload 6 /* bufs */
            iload 5 /* i */
            aload 7 /* pooled */
            invokeinterface io.undertow.connector.PooledByteBuffer.getBuffer:()Ljava/nio/ByteBuffer;
            aastore
        20: .line 344
            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
        21: .line 345
            aload 7 /* pooled */
            invokeinterface io.undertow.connector.PooledByteBuffer.getBuffer:()Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
            pop
        22: .line 346
            iinc 5 /* i */ 1
        end local 7 // io.undertow.connector.PooledByteBuffer pooled
        23: .line 335
      StackMap locals:
      StackMap stack:
            aload 4 /* bytes */
            invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
            ifne 13
        24: .line 348
            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
        25: .line 350
      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   26     0      this  Lio/undertow/io/AsyncSenderImpl;
            0   26     1      data  Ljava/lang/String;
            0   26     2   charset  Ljava/nio/charset/Charset;
            0   26     3  callback  Lio/undertow/io/IoCallback;
            7   26     4     bytes  Ljava/nio/ByteBuffer;
           11   25     5         i  I
           12   25     6      bufs  [Ljava/nio/ByteBuffer;
           14   23     7    pooled  Lio/undertow/connector/PooledByteBuffer;
           16   18     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 354
            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 355
            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 359
            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 360
            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 365
            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 366
            aload 2 /* channel */
            ifnonnull 7
         2: .line 367
            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 368
            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 370
      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 371
            aload 2 /* channel */
            ifnonnull 7
         6: .line 372
            getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
            invokeinterface io.undertow.UndertowMessages.responseChannelAlreadyProvided:()Ljava/lang/IllegalStateException;
            athrow
         7: .line 375
      StackMap locals:
      StackMap stack:
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.shutdownWrites:()V
         8: .line 376
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.flush:()Z
            ifne 15
         9: .line 377
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.getWriteSetter:()Lorg/xnio/ChannelListener$Setter;
        10: .line 378
            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 385
            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 377
            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 398
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.resumeWrites:()V
        14: .line 399
            goto 21
        15: .line 400
      StackMap locals:
      StackMap stack:
            aload 1 /* callback */
            ifnull 21
        16: .line 401
            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 404
            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 405
            aload 1 /* callback */
            ifnull 21
        20: .line 406
            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 409
      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 413
            aload 0 /* this */
            aconst_null
            invokevirtual io.undertow.io.AsyncSenderImpl.close:(Lio/undertow/io/IoCallback;)V
         1: .line 414
            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 422
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
            ifnull 7
         1: .line 423
            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 424
            aload 1 /* buffer */
            invokeinterface io.undertow.connector.PooledByteBuffer.close:()V
        end local 1 // io.undertow.connector.PooledByteBuffer buffer
         4: .line 423
            iinc 2 1
      StackMap locals:
      StackMap stack:
         5: iload 2
            iload 3
            if_icmplt 2
         6: .line 426
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
         7: .line 428
      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 429
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
         9: .line 430
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.fileChannel:Ljava/nio/channels/FileChannel;
        10: .line 431
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.callback:Lio/undertow/io/IoCallback;
        11: .line 432
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.writeThread:Ljava/lang/Thread;
        12: .line 433
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            putfield io.undertow.io.AsyncSenderImpl.inCallback:Ljava/lang/Thread;
        13: .line 435
            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
        14: .line 436
            goto 18
      StackMap locals: io.undertow.io.AsyncSenderImpl io.undertow.io.IoCallback
      StackMap stack: java.lang.Throwable
        15: astore 2
        16: .line 437
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.inCallback:Ljava/lang/Thread;
        17: .line 438
            aload 2
            athrow
        18: .line 437
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.inCallback:Ljava/lang/Thread;
        19: .line 439
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.writeThread:Ljava/lang/Thread;
            if_acmpeq 21
        20: .line 440
            return
        21: .line 443
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.channel:Lorg/xnio/channels/StreamSinkChannel;
            astore 2 /* channel */
        start local 2 // org.xnio.channels.StreamSinkChannel channel
        22: .line 444
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.buffer:[Ljava/nio/ByteBuffer;
            ifnull 40
        23: .line 445
            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
        24: .line 446
            lload 3 /* t */
            lstore 5 /* total */
        start local 5 // long total
        25: .line 447
            lconst_0
            lstore 7 /* written */
        start local 7 // long written
        26: .line 451
      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
        27: .line 452
            lload 7 /* written */
            lload 9 /* res */
            ladd
            lstore 7 /* written */
        28: .line 453
            lload 9 /* res */
            lconst_0
            lcmp
            ifne 34
        29: .line 454
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.writeListener:Lorg/xnio/ChannelListener;
            ifnonnull 31
        30: .line 455
            aload 0 /* this */
            invokevirtual io.undertow.io.AsyncSenderImpl.initWriteListener:()V
        31: .line 457
      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
        32: .line 458
            aload 2 /* channel */
            invokeinterface org.xnio.channels.StreamSinkChannel.resumeWrites:()V
        33: .line 459
            return
        end local 9 // long res
        34: .line 461
      StackMap locals:
      StackMap stack:
            lload 7 /* written */
            lload 5 /* total */
        35: .line 450
            lcmp
            iflt 26
        36: .line 463
            goto 0
      StackMap locals:
      StackMap stack: java.io.IOException
        37: astore 9 /* e */
        start local 9 // java.io.IOException e
        38: .line 464
            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
        39: .line 466
            goto 0
      StackMap locals:
      StackMap stack:
        40: aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.fileChannel:Ljava/nio/channels/FileChannel;
            ifnull 45
        41: .line 467
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.transferTask:Lio/undertow/io/AsyncSenderImpl$TransferTask;
            ifnonnull 43
        42: .line 468
            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;
        43: .line 470
      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
        44: .line 471
            return
        45: .line 474
      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   46     0      this  Lio/undertow/io/AsyncSenderImpl;
            3    4     1    buffer  Lio/undertow/connector/PooledByteBuffer;
            8   46     1  callback  Lio/undertow/io/IoCallback;
           22   46     2   channel  Lorg/xnio/channels/StreamSinkChannel;
           24   39     3         t  J
           25   39     5     total  J
           26   39     7   written  J
           27   34     9       res  J
           38   39     9         e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          13    15      15  any
          26    33      37  Class java.io.IOException
          34    36      37  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 483
            aload 0 /* this */
            getfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
            ifnull 7
         1: .line 484
            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 485
            aload 3 /* buffer */
            invokeinterface io.undertow.connector.PooledByteBuffer.close:()V
        end local 3 // io.undertow.connector.PooledByteBuffer buffer
         4: .line 484
            iinc 4 1
      StackMap locals:
      StackMap stack:
         5: iload 4
            iload 5
            if_icmplt 2
         6: .line 487
            aload 0 /* this */
            aconst_null
            putfield io.undertow.io.AsyncSenderImpl.pooledBuffers:[Lio/undertow/connector/PooledByteBuffer;
         7: .line 489
      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 490
            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 493
            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 514
            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