class sun.nio.ch.KQueueSelectorImpl extends sun.nio.ch.SelectorImpl
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: sun.nio.ch.KQueueSelectorImpl
  super_class: sun.nio.ch.SelectorImpl
{
  private static final int MAX_KEVENTS;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 256

  private final int kqfd;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final long pollArrayAddress;
    descriptor: J
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final int fd0;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final int fd1;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.Map<java.lang.Integer, sun.nio.ch.SelectionKeyImpl> fdToKey;
    descriptor: Ljava/util/Map;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/Integer;Lsun/nio/ch/SelectionKeyImpl;>;

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

  private final java.util.Deque<sun.nio.ch.SelectionKeyImpl> updateKeys;
    descriptor: Ljava/util/Deque;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Deque<Lsun/nio/ch/SelectionKeyImpl;>;

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

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

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

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 49
            ldc Lsun/nio/ch/KQueueSelectorImpl;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
         3: .line 52
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>(java.nio.channels.spi.SelectorProvider);
    descriptor: (Ljava/nio/channels/spi/SelectorProvider;)V
    flags: (0x0000) 
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // sun.nio.ch.KQueueSelectorImpl this
        start local 1 // java.nio.channels.spi.SelectorProvider sp
         0: .line 80
            aload 0 /* this */
            aload 1 /* sp */
            invokespecial sun.nio.ch.SelectorImpl.<init>:(Ljava/nio/channels/spi/SelectorProvider;)V
         1: .line 65
            aload 0 /* this */
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putfield sun.nio.ch.KQueueSelectorImpl.fdToKey:Ljava/util/Map;
         2: .line 68
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield sun.nio.ch.KQueueSelectorImpl.updateLock:Ljava/lang/Object;
         3: .line 69
            aload 0 /* this */
            new java.util.ArrayDeque
            dup
            invokespecial java.util.ArrayDeque.<init>:()V
            putfield sun.nio.ch.KQueueSelectorImpl.updateKeys:Ljava/util/Deque;
         4: .line 72
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield sun.nio.ch.KQueueSelectorImpl.interruptLock:Ljava/lang/Object;
         5: .line 82
            aload 0 /* this */
            invokestatic sun.nio.ch.KQueue.create:()I
            putfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
         6: .line 83
            aload 0 /* this */
            sipush 256
            invokestatic sun.nio.ch.KQueue.allocatePollArray:(I)J
            putfield sun.nio.ch.KQueueSelectorImpl.pollArrayAddress:J
         7: .line 86
            iconst_0
            invokestatic sun.nio.ch.IOUtil.makePipe:(Z)J
            lstore 2 /* fds */
        start local 2 // long fds
         8: .line 87
            aload 0 /* this */
            lload 2 /* fds */
            bipush 32
            lushr
            l2i
            putfield sun.nio.ch.KQueueSelectorImpl.fd0:I
         9: .line 88
            aload 0 /* this */
            lload 2 /* fds */
            l2i
            putfield sun.nio.ch.KQueueSelectorImpl.fd1:I
        end local 2 // long fds
        10: .line 89
            goto 15
      StackMap locals: sun.nio.ch.KQueueSelectorImpl java.nio.channels.spi.SelectorProvider
      StackMap stack: java.io.IOException
        11: astore 2 /* ioe */
        start local 2 // java.io.IOException ioe
        12: .line 90
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.pollArrayAddress:J
            invokestatic sun.nio.ch.KQueue.freePollArray:(J)V
        13: .line 91
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
            invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(I)V
        14: .line 92
            aload 2 /* ioe */
            athrow
        end local 2 // java.io.IOException ioe
        15: .line 96
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.fd0:I
            iconst_m1
            iconst_1
            invokestatic sun.nio.ch.KQueue.register:(IIII)I
            pop
        16: .line 97
            return
        end local 1 // java.nio.channels.spi.SelectorProvider sp
        end local 0 // sun.nio.ch.KQueueSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   17     0  this  Lsun/nio/ch/KQueueSelectorImpl;
            0   17     1    sp  Ljava/nio/channels/spi/SelectorProvider;
            8   10     2   fds  J
           12   15     2   ioe  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           7    10      11  Class java.io.IOException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      sp    

  private void ensureOpen();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // sun.nio.ch.KQueueSelectorImpl this
         0: .line 100
            aload 0 /* this */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.isOpen:()Z
            ifne 2
         1: .line 101
            new java.nio.channels.ClosedSelectorException
            dup
            invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
            athrow
         2: .line 102
      StackMap locals:
      StackMap stack:
            return
        end local 0 // sun.nio.ch.KQueueSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lsun/nio/ch/KQueueSelectorImpl;

  protected int doSelect(java.util.function.Consumer<java.nio.channels.SelectionKey>, );
    descriptor: (Ljava/util/function/Consumer;J)I
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=6, locals=14, args_size=3
        start local 0 // sun.nio.ch.KQueueSelectorImpl this
        start local 1 // java.util.function.Consumer action
        start local 2 // long timeout
         0: .line 108
            getstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 110
      StackMap locals:
      StackMap stack:
            lload 2 /* timeout */
            ldc 2147483647
            invokestatic java.lang.Math.min:(JJ)J
            lstore 4 /* to */
        start local 4 // long to
         2: .line 111
            lload 4 /* to */
            lconst_0
            lcmp
            ifeq 3
            iconst_1
            goto 4
      StackMap locals: long
      StackMap stack:
         3: iconst_0
      StackMap locals:
      StackMap stack: int
         4: istore 6 /* blocking */
        start local 6 // boolean blocking
         5: .line 112
            lload 4 /* to */
            lconst_0
            lcmp
            ifle 6
            iconst_1
            goto 7
      StackMap locals: int
      StackMap stack:
         6: iconst_0
      StackMap locals:
      StackMap stack: int
         7: istore 7 /* timedPoll */
        start local 7 // boolean timedPoll
         8: .line 115
            aload 0 /* this */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.processUpdateQueue:()V
         9: .line 116
            aload 0 /* this */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.processDeregisterQueue:()V
        10: .line 118
            aload 0 /* this */
            iload 6 /* blocking */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.begin:(Z)V
        11: .line 121
      StackMap locals: int
      StackMap stack:
            iload 7 /* timedPoll */
            ifeq 12
            invokestatic java.lang.System.nanoTime:()J
            goto 13
      StackMap locals:
      StackMap stack:
        12: lconst_0
      StackMap locals:
      StackMap stack: long
        13: lstore 9 /* startTime */
        start local 9 // long startTime
        14: .line 122
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.pollArrayAddress:J
            sipush 256
            lload 4 /* to */
            invokestatic sun.nio.ch.KQueue.poll:(IJIJ)I
            istore 8 /* numEntries */
        start local 8 // int numEntries
        15: .line 123
            iload 8 /* numEntries */
            bipush -3
            if_icmpne 20
            iload 7 /* timedPoll */
            ifeq 20
        16: .line 125
            invokestatic java.lang.System.nanoTime:()J
            lload 9 /* startTime */
            lsub
            lstore 11 /* adjust */
        start local 11 // long adjust
        17: .line 126
            lload 4 /* to */
            getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
            lload 11 /* adjust */
            getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
            invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
            lsub
            lstore 4 /* to */
        18: .line 127
            lload 4 /* to */
            lconst_0
            lcmp
            ifgt 20
        19: .line 129
            iconst_0
            istore 8 /* numEntries */
        end local 11 // long adjust
        end local 9 // long startTime
        20: .line 132
      StackMap locals: int
      StackMap stack:
            iload 8 /* numEntries */
            bipush -3
            if_icmpeq 11
        21: .line 133
            getstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
            ifne 25
            iload 8 /* numEntries */
            invokestatic sun.nio.ch.IOStatus.check:(I)Z
            ifne 25
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        end local 8 // int numEntries
        22: .line 135
      StackMap locals: sun.nio.ch.KQueueSelectorImpl java.util.function.Consumer long long int int
      StackMap stack: java.lang.Throwable
            astore 13
        23: .line 136
            aload 0 /* this */
            iload 6 /* blocking */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.end:(Z)V
        24: .line 137
            aload 13
            athrow
        start local 8 // int numEntries
        25: .line 136
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            iload 6 /* blocking */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.end:(Z)V
        26: .line 138
            aload 0 /* this */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.processDeregisterQueue:()V
        27: .line 139
            aload 0 /* this */
            iload 8 /* numEntries */
            aload 1 /* action */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.processEvents:(ILjava/util/function/Consumer;)I
            ireturn
        end local 8 // int numEntries
        end local 7 // boolean timedPoll
        end local 6 // boolean blocking
        end local 4 // long to
        end local 2 // long timeout
        end local 1 // java.util.function.Consumer action
        end local 0 // sun.nio.ch.KQueueSelectorImpl this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   28     0        this  Lsun/nio/ch/KQueueSelectorImpl;
            0   28     1      action  Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
            0   28     2     timeout  J
            2   28     4          to  J
            5   28     6    blocking  Z
            8   28     7   timedPoll  Z
           15   22     8  numEntries  I
           25   28     8  numEntries  I
           14   20     9   startTime  J
           17   20    11      adjust  J
      Exception table:
        from    to  target  type
          10    22      22  any
    Exceptions:
      throws java.io.IOException
    Signature: (Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;J)I
    MethodParameters:
         Name  Flags
      action   
      timeout  

  private void processUpdateQueue();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=7, args_size=1
        start local 0 // sun.nio.ch.KQueueSelectorImpl this
         0: .line 146
            getstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 148
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.updateLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         2: .line 150
            goto 23
        start local 2 // sun.nio.ch.SelectionKeyImpl ski
         3: .line 151
      StackMap locals: java.lang.Object sun.nio.ch.SelectionKeyImpl
      StackMap stack:
            aload 2 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.isValid:()Z
            ifeq 23
         4: .line 152
            aload 2 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.getFDVal:()I
            istore 3 /* fd */
        start local 3 // int fd
         5: .line 154
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.fdToKey:Ljava/util/Map;
            iload 3 /* fd */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aload 2 /* ski */
            invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            checkcast sun.nio.ch.SelectionKeyImpl
            astore 4 /* previous */
        start local 4 // sun.nio.ch.SelectionKeyImpl previous
         6: .line 155
            getstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
            ifne 7
            aload 4 /* previous */
            ifnull 7
            aload 4 /* previous */
            aload 2 /* ski */
            if_acmpeq 7
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         7: .line 157
      StackMap locals: int sun.nio.ch.SelectionKeyImpl
      StackMap stack:
            aload 2 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.translateInterestOps:()I
            istore 5 /* newEvents */
        start local 5 // int newEvents
         8: .line 158
            aload 2 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.registeredEvents:()I
            istore 6 /* registeredEvents */
        start local 6 // int registeredEvents
         9: .line 159
            iload 5 /* newEvents */
            iload 6 /* registeredEvents */
            if_icmpeq 23
        10: .line 162
            iload 6 /* registeredEvents */
            getstatic sun.nio.ch.Net.POLLIN:S
            iand
            ifeq 14
        11: .line 163
            iload 5 /* newEvents */
            getstatic sun.nio.ch.Net.POLLIN:S
            iand
            ifne 16
        12: .line 164
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
            iload 3 /* fd */
            iconst_m1
            iconst_2
            invokestatic sun.nio.ch.KQueue.register:(IIII)I
            pop
        13: .line 166
            goto 16
      StackMap locals: int int
      StackMap stack:
        14: iload 5 /* newEvents */
            getstatic sun.nio.ch.Net.POLLIN:S
            iand
            ifeq 16
        15: .line 167
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
            iload 3 /* fd */
            iconst_m1
            iconst_1
            invokestatic sun.nio.ch.KQueue.register:(IIII)I
            pop
        16: .line 171
      StackMap locals:
      StackMap stack:
            iload 6 /* registeredEvents */
            getstatic sun.nio.ch.Net.POLLOUT:S
            iand
            ifeq 20
        17: .line 172
            iload 5 /* newEvents */
            getstatic sun.nio.ch.Net.POLLOUT:S
            iand
            ifne 22
        18: .line 173
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
            iload 3 /* fd */
            bipush -2
            iconst_2
            invokestatic sun.nio.ch.KQueue.register:(IIII)I
            pop
        19: .line 175
            goto 22
      StackMap locals:
      StackMap stack:
        20: iload 5 /* newEvents */
            getstatic sun.nio.ch.Net.POLLOUT:S
            iand
            ifeq 22
        21: .line 176
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
            iload 3 /* fd */
            bipush -2
            iconst_1
            invokestatic sun.nio.ch.KQueue.register:(IIII)I
            pop
        22: .line 179
      StackMap locals:
      StackMap stack:
            aload 2 /* ski */
            iload 5 /* newEvents */
            invokevirtual sun.nio.ch.SelectionKeyImpl.registeredEvents:(I)V
        end local 6 // int registeredEvents
        end local 5 // int newEvents
        end local 4 // sun.nio.ch.SelectionKeyImpl previous
        end local 3 // int fd
        end local 2 // sun.nio.ch.SelectionKeyImpl ski
        23: .line 150
      StackMap locals: sun.nio.ch.KQueueSelectorImpl java.lang.Object
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.updateKeys:Ljava/util/Deque;
            invokeinterface java.util.Deque.pollFirst:()Ljava/lang/Object;
            checkcast sun.nio.ch.SelectionKeyImpl
            dup
            astore 2 /* ski */
        start local 2 // sun.nio.ch.SelectionKeyImpl ski
        24: ifnonnull 3
        end local 2 // sun.nio.ch.SelectionKeyImpl ski
        25: .line 148
            aload 1
            monitorexit
        26: goto 29
      StackMap locals:
      StackMap stack: java.lang.Throwable
        27: aload 1
            monitorexit
        28: athrow
        29: .line 184
      StackMap locals:
      StackMap stack:
            return
        end local 0 // sun.nio.ch.KQueueSelectorImpl this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   30     0              this  Lsun/nio/ch/KQueueSelectorImpl;
            3   23     2               ski  Lsun/nio/ch/SelectionKeyImpl;
           24   25     2               ski  Lsun/nio/ch/SelectionKeyImpl;
            5   23     3                fd  I
            6   23     4          previous  Lsun/nio/ch/SelectionKeyImpl;
            8   23     5         newEvents  I
            9   23     6  registeredEvents  I
      Exception table:
        from    to  target  type
           2    26      27  any
          27    28      27  any

  private int processEvents(int, java.util.function.Consumer<java.nio.channels.SelectionKey>);
    descriptor: (ILjava/util/function/Consumer;)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=13, args_size=3
        start local 0 // sun.nio.ch.KQueueSelectorImpl this
        start local 1 // int numEntries
        start local 2 // java.util.function.Consumer action
         0: .line 193
            getstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 195
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 3 /* numKeysUpdated */
        start local 3 // int numKeysUpdated
         2: .line 196
            iconst_0
            istore 4 /* interrupted */
        start local 4 // boolean interrupted
         3: .line 204
            aload 0 /* this */
            dup
            getfield sun.nio.ch.KQueueSelectorImpl.pollCount:I
            iconst_1
            iadd
            putfield sun.nio.ch.KQueueSelectorImpl.pollCount:I
         4: .line 206
            iconst_0
            istore 5 /* i */
        start local 5 // int i
         5: goto 25
         6: .line 207
      StackMap locals: int int int
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.pollArrayAddress:J
            iload 5 /* i */
            invokestatic sun.nio.ch.KQueue.getEvent:(JI)J
            lstore 6 /* kevent */
        start local 6 // long kevent
         7: .line 208
            lload 6 /* kevent */
            invokestatic sun.nio.ch.KQueue.getDescriptor:(J)I
            istore 8 /* fd */
        start local 8 // int fd
         8: .line 209
            iload 8 /* fd */
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.fd0:I
            if_icmpne 11
         9: .line 210
            iconst_1
            istore 4 /* interrupted */
        10: .line 211
            goto 24
        11: .line 212
      StackMap locals: long int
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.fdToKey:Ljava/util/Map;
            iload 8 /* fd */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast sun.nio.ch.SelectionKeyImpl
            astore 9 /* ski */
        start local 9 // sun.nio.ch.SelectionKeyImpl ski
        12: .line 213
            aload 9 /* ski */
            ifnull 24
        13: .line 214
            iconst_0
            istore 10 /* rOps */
        start local 10 // int rOps
        14: .line 215
            lload 6 /* kevent */
            invokestatic sun.nio.ch.KQueue.getFilter:(J)S
            istore 11 /* filter */
        start local 11 // short filter
        15: .line 216
            iload 11 /* filter */
            iconst_m1
            if_icmpne 18
        16: .line 217
            iload 10 /* rOps */
            getstatic sun.nio.ch.Net.POLLIN:S
            ior
            istore 10 /* rOps */
        17: .line 218
            goto 20
      StackMap locals: sun.nio.ch.SelectionKeyImpl int int
      StackMap stack:
        18: iload 11 /* filter */
            bipush -2
            if_icmpne 20
        19: .line 219
            iload 10 /* rOps */
            getstatic sun.nio.ch.Net.POLLOUT:S
            ior
            istore 10 /* rOps */
        20: .line 221
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 10 /* rOps */
            aload 9 /* ski */
            aload 2 /* action */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.processReadyEvents:(ILsun/nio/ch/SelectionKeyImpl;Ljava/util/function/Consumer;)I
            istore 12 /* updated */
        start local 12 // int updated
        21: .line 222
            iload 12 /* updated */
            ifle 24
            aload 9 /* ski */
            getfield sun.nio.ch.SelectionKeyImpl.lastPolled:I
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.pollCount:I
            if_icmpeq 24
        22: .line 223
            iinc 3 /* numKeysUpdated */ 1
        23: .line 224
            aload 9 /* ski */
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.pollCount:I
            putfield sun.nio.ch.SelectionKeyImpl.lastPolled:I
        end local 12 // int updated
        end local 11 // short filter
        end local 10 // int rOps
        end local 9 // sun.nio.ch.SelectionKeyImpl ski
        end local 8 // int fd
        end local 6 // long kevent
        24: .line 206
      StackMap locals: sun.nio.ch.KQueueSelectorImpl int java.util.function.Consumer int int int
      StackMap stack:
            iinc 5 /* i */ 1
      StackMap locals:
      StackMap stack:
        25: iload 5 /* i */
            iload 1 /* numEntries */
            if_icmplt 6
        end local 5 // int i
        26: .line 230
            iload 4 /* interrupted */
            ifeq 28
        27: .line 231
            aload 0 /* this */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.clearInterrupt:()V
        28: .line 233
      StackMap locals:
      StackMap stack:
            iload 3 /* numKeysUpdated */
            ireturn
        end local 4 // boolean interrupted
        end local 3 // int numKeysUpdated
        end local 2 // java.util.function.Consumer action
        end local 1 // int numEntries
        end local 0 // sun.nio.ch.KQueueSelectorImpl this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   29     0            this  Lsun/nio/ch/KQueueSelectorImpl;
            0   29     1      numEntries  I
            0   29     2          action  Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
            2   29     3  numKeysUpdated  I
            3   29     4     interrupted  Z
            5   26     5               i  I
            7   24     6          kevent  J
            8   24     8              fd  I
           12   24     9             ski  Lsun/nio/ch/SelectionKeyImpl;
           14   24    10            rOps  I
           15   24    11          filter  S
           21   24    12         updated  I
    Exceptions:
      throws java.io.IOException
    Signature: (ILjava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;)I
    MethodParameters:
            Name  Flags
      numEntries  
      action      

  protected void implClose();
    descriptor: ()V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // sun.nio.ch.KQueueSelectorImpl this
         0: .line 238
            getstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.isOpen:()Z
            ifeq 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 239
      StackMap locals:
      StackMap stack:
            getstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
            ifne 2
            aload 0 /* this */
            invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
            ifne 2
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         2: .line 242
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.interruptLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         3: .line 243
            aload 0 /* this */
            iconst_1
            putfield sun.nio.ch.KQueueSelectorImpl.interruptTriggered:Z
         4: .line 242
            aload 1
            monitorexit
         5: goto 8
      StackMap locals: sun.nio.ch.KQueueSelectorImpl java.lang.Object
      StackMap stack: java.lang.Throwable
         6: aload 1
            monitorexit
         7: athrow
         8: .line 246
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
            invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(I)V
         9: .line 247
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.pollArrayAddress:J
            invokestatic sun.nio.ch.KQueue.freePollArray:(J)V
        10: .line 249
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.fd0:I
            invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(I)V
        11: .line 250
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.fd1:I
            invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(I)V
        12: .line 251
            return
        end local 0 // sun.nio.ch.KQueueSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   13     0  this  Lsun/nio/ch/KQueueSelectorImpl;
      Exception table:
        from    to  target  type
           3     5       6  any
           6     7       6  any
    Exceptions:
      throws java.io.IOException

  protected void implDereg(sun.nio.ch.SelectionKeyImpl);
    descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // sun.nio.ch.KQueueSelectorImpl this
        start local 1 // sun.nio.ch.SelectionKeyImpl ski
         0: .line 255
            getstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
            ifne 1
            aload 1 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.isValid:()Z
            ifeq 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 256
      StackMap locals:
      StackMap stack:
            getstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
            ifne 2
            aload 0 /* this */
            invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
            ifne 2
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         2: .line 258
      StackMap locals:
      StackMap stack:
            aload 1 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.getFDVal:()I
            istore 2 /* fd */
        start local 2 // int fd
         3: .line 259
            aload 1 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.registeredEvents:()I
            istore 3 /* registeredEvents */
        start local 3 // int registeredEvents
         4: .line 260
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.fdToKey:Ljava/util/Map;
            iload 2 /* fd */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
            ifnull 12
         5: .line 261
            iload 3 /* registeredEvents */
            ifeq 13
         6: .line 262
            iload 3 /* registeredEvents */
            getstatic sun.nio.ch.Net.POLLIN:S
            iand
            ifeq 8
         7: .line 263
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
            iload 2 /* fd */
            iconst_m1
            iconst_2
            invokestatic sun.nio.ch.KQueue.register:(IIII)I
            pop
         8: .line 264
      StackMap locals: int int
      StackMap stack:
            iload 3 /* registeredEvents */
            getstatic sun.nio.ch.Net.POLLOUT:S
            iand
            ifeq 10
         9: .line 265
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.kqfd:I
            iload 2 /* fd */
            bipush -2
            iconst_2
            invokestatic sun.nio.ch.KQueue.register:(IIII)I
            pop
        10: .line 266
      StackMap locals:
      StackMap stack:
            aload 1 /* ski */
            iconst_0
            invokevirtual sun.nio.ch.SelectionKeyImpl.registeredEvents:(I)V
        11: .line 268
            goto 13
        12: .line 269
      StackMap locals:
      StackMap stack:
            getstatic sun.nio.ch.KQueueSelectorImpl.$assertionsDisabled:Z
            ifne 13
            iload 3 /* registeredEvents */
            ifeq 13
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        13: .line 271
      StackMap locals:
      StackMap stack:
            return
        end local 3 // int registeredEvents
        end local 2 // int fd
        end local 1 // sun.nio.ch.SelectionKeyImpl ski
        end local 0 // sun.nio.ch.KQueueSelectorImpl this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   14     0              this  Lsun/nio/ch/KQueueSelectorImpl;
            0   14     1               ski  Lsun/nio/ch/SelectionKeyImpl;
            3   14     2                fd  I
            4   14     3  registeredEvents  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      ski   

  public void setEventOps(sun.nio.ch.SelectionKeyImpl);
    descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // sun.nio.ch.KQueueSelectorImpl this
        start local 1 // sun.nio.ch.SelectionKeyImpl ski
         0: .line 275
            aload 0 /* this */
            invokevirtual sun.nio.ch.KQueueSelectorImpl.ensureOpen:()V
         1: .line 276
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.updateLock:Ljava/lang/Object;
            dup
            astore 2
            monitorenter
         2: .line 277
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.updateKeys:Ljava/util/Deque;
            aload 1 /* ski */
            invokeinterface java.util.Deque.addLast:(Ljava/lang/Object;)V
         3: .line 276
            aload 2
            monitorexit
         4: goto 7
      StackMap locals: sun.nio.ch.KQueueSelectorImpl sun.nio.ch.SelectionKeyImpl java.lang.Object
      StackMap stack: java.lang.Throwable
         5: aload 2
            monitorexit
         6: athrow
         7: .line 279
      StackMap locals:
      StackMap stack:
            return
        end local 1 // sun.nio.ch.SelectionKeyImpl ski
        end local 0 // sun.nio.ch.KQueueSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lsun/nio/ch/KQueueSelectorImpl;
            0    8     1   ski  Lsun/nio/ch/SelectionKeyImpl;
      Exception table:
        from    to  target  type
           2     4       5  any
           5     6       5  any
    MethodParameters:
      Name  Flags
      ski   

  public java.nio.channels.Selector wakeup();
    descriptor: ()Ljava/nio/channels/Selector;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // sun.nio.ch.KQueueSelectorImpl this
         0: .line 283
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.interruptLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         1: .line 284
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.interruptTriggered:Z
            ifne 7
         2: .line 286
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.fd1:I
            iconst_0
            invokestatic sun.nio.ch.IOUtil.write1:(IB)I
            pop
         3: .line 287
            goto 6
      StackMap locals: sun.nio.ch.KQueueSelectorImpl java.lang.Object
      StackMap stack: java.io.IOException
         4: astore 2 /* ioe */
        start local 2 // java.io.IOException ioe
         5: .line 288
            new java.lang.InternalError
            dup
            aload 2 /* ioe */
            invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.io.IOException ioe
         6: .line 290
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield sun.nio.ch.KQueueSelectorImpl.interruptTriggered:Z
         7: .line 283
      StackMap locals:
      StackMap stack:
            aload 1
            monitorexit
         8: goto 11
      StackMap locals:
      StackMap stack: java.lang.Throwable
         9: aload 1
            monitorexit
        10: athrow
        11: .line 293
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            areturn
        end local 0 // sun.nio.ch.KQueueSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   12     0  this  Lsun/nio/ch/KQueueSelectorImpl;
            5    6     2   ioe  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           2     3       4  Class java.io.IOException
           1     8       9  any
           9    10       9  any

  private void clearInterrupt();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // sun.nio.ch.KQueueSelectorImpl this
         0: .line 297
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.interruptLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         1: .line 298
            aload 0 /* this */
            getfield sun.nio.ch.KQueueSelectorImpl.fd0:I
            invokestatic sun.nio.ch.IOUtil.drain:(I)Z
            pop
         2: .line 299
            aload 0 /* this */
            iconst_0
            putfield sun.nio.ch.KQueueSelectorImpl.interruptTriggered:Z
         3: .line 297
            aload 1
            monitorexit
         4: goto 7
      StackMap locals: sun.nio.ch.KQueueSelectorImpl java.lang.Object
      StackMap stack: java.lang.Throwable
         5: aload 1
            monitorexit
         6: athrow
         7: .line 301
      StackMap locals:
      StackMap stack:
            return
        end local 0 // sun.nio.ch.KQueueSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lsun/nio/ch/KQueueSelectorImpl;
      Exception table:
        from    to  target  type
           1     4       5  any
           5     6       5  any
    Exceptions:
      throws java.io.IOException
}
SourceFile: "KQueueSelectorImpl.java"