public class com.mongodb.internal.connection.PowerOfTwoBufferPool implements com.mongodb.connection.BufferProvider
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.mongodb.internal.connection.PowerOfTwoBufferPool
  super_class: java.lang.Object
{
  private final java.util.Map<java.lang.Integer, com.mongodb.internal.connection.ConcurrentPool<java.nio.ByteBuffer>> powerOfTwoToPoolMap;
    descriptor: Ljava/util/Map;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/Integer;Lcom/mongodb/internal/connection/ConcurrentPool<Ljava/nio/ByteBuffer;>;>;

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.mongodb.internal.connection.PowerOfTwoBufferPool this
         0: .line 43
            aload 0 /* this */
            bipush 24
            invokespecial com.mongodb.internal.connection.PowerOfTwoBufferPool.<init>:(I)V
         1: .line 44
            return
        end local 0 // com.mongodb.internal.connection.PowerOfTwoBufferPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/mongodb/internal/connection/PowerOfTwoBufferPool;

  public void <init>(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=9, locals=5, args_size=2
        start local 0 // com.mongodb.internal.connection.PowerOfTwoBufferPool this
        start local 1 // int highestPowerOfTwo
         0: .line 51
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 37
            aload 0 /* this */
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putfield com.mongodb.internal.connection.PowerOfTwoBufferPool.powerOfTwoToPoolMap:Ljava/util/Map;
         2: .line 52
            iconst_1
            istore 2 /* powerOfTwo */
        start local 2 // int powerOfTwo
         3: .line 53
            iconst_0
            istore 3 /* i */
        start local 3 // int i
         4: goto 11
         5: .line 54
      StackMap locals: com.mongodb.internal.connection.PowerOfTwoBufferPool int int int
      StackMap stack:
            iload 2 /* powerOfTwo */
            istore 4 /* size */
        start local 4 // int size
         6: .line 55
            aload 0 /* this */
            getfield com.mongodb.internal.connection.PowerOfTwoBufferPool.powerOfTwoToPoolMap:Ljava/util/Map;
            iload 3 /* i */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            new com.mongodb.internal.connection.ConcurrentPool
            dup
            ldc 2147483647
         7: .line 56
            new com.mongodb.internal.connection.PowerOfTwoBufferPool$1
            dup
            aload 0 /* this */
            iload 4 /* size */
            invokespecial com.mongodb.internal.connection.PowerOfTwoBufferPool$1.<init>:(Lcom/mongodb/internal/connection/PowerOfTwoBufferPool;I)V
            invokespecial com.mongodb.internal.connection.ConcurrentPool.<init>:(ILcom/mongodb/internal/connection/ConcurrentPool$ItemFactory;)V
         8: .line 55
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         9: .line 71
            iload 2 /* powerOfTwo */
            iconst_1
            ishl
            istore 2 /* powerOfTwo */
        end local 4 // int size
        10: .line 53
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
        11: iload 3 /* i */
            iload 1 /* highestPowerOfTwo */
            if_icmple 5
        end local 3 // int i
        12: .line 73
            return
        end local 2 // int powerOfTwo
        end local 1 // int highestPowerOfTwo
        end local 0 // com.mongodb.internal.connection.PowerOfTwoBufferPool this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0   13     0               this  Lcom/mongodb/internal/connection/PowerOfTwoBufferPool;
            0   13     1  highestPowerOfTwo  I
            3   13     2         powerOfTwo  I
            4   12     3                  i  I
            6   10     4               size  I
    MethodParameters:
                   Name  Flags
      highestPowerOfTwo  final

  public org.bson.ByteBuf getBuffer(int);
    descriptor: (I)Lorg/bson/ByteBuf;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // com.mongodb.internal.connection.PowerOfTwoBufferPool this
        start local 1 // int size
         0: .line 77
            aload 0 /* this */
            getfield com.mongodb.internal.connection.PowerOfTwoBufferPool.powerOfTwoToPoolMap:Ljava/util/Map;
            iload 1 /* size */
            invokestatic com.mongodb.internal.connection.PowerOfTwoBufferPool.roundUpToNextHighestPowerOfTwo:(I)I
            invokestatic com.mongodb.internal.connection.PowerOfTwoBufferPool.log2:(I)I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast com.mongodb.internal.connection.ConcurrentPool
            astore 2 /* pool */
        start local 2 // com.mongodb.internal.connection.ConcurrentPool pool
         1: .line 78
            aload 2 /* pool */
            ifnonnull 2
            aload 0 /* this */
            iload 1 /* size */
            invokevirtual com.mongodb.internal.connection.PowerOfTwoBufferPool.createNew:(I)Ljava/nio/ByteBuffer;
            goto 3
      StackMap locals: com.mongodb.internal.connection.ConcurrentPool
      StackMap stack:
         2: aload 2 /* pool */
            invokevirtual com.mongodb.internal.connection.ConcurrentPool.get:()Ljava/lang/Object;
            checkcast java.nio.ByteBuffer
      StackMap locals:
      StackMap stack: java.nio.ByteBuffer
         3: astore 3 /* byteBuffer */
        start local 3 // java.nio.ByteBuffer byteBuffer
         4: .line 80
            aload 3 /* byteBuffer */
            invokevirtual java.nio.Buffer.clear:()Ljava/nio/Buffer;
            pop
         5: .line 81
            aload 3 /* byteBuffer */
            iload 1 /* size */
            invokevirtual java.nio.Buffer.limit:(I)Ljava/nio/Buffer;
            pop
         6: .line 82
            new com.mongodb.internal.connection.PowerOfTwoBufferPool$PooledByteBufNIO
            dup
            aload 0 /* this */
            aload 3 /* byteBuffer */
            invokespecial com.mongodb.internal.connection.PowerOfTwoBufferPool$PooledByteBufNIO.<init>:(Lcom/mongodb/internal/connection/PowerOfTwoBufferPool;Ljava/nio/ByteBuffer;)V
            areturn
        end local 3 // java.nio.ByteBuffer byteBuffer
        end local 2 // com.mongodb.internal.connection.ConcurrentPool pool
        end local 1 // int size
        end local 0 // com.mongodb.internal.connection.PowerOfTwoBufferPool this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    7     0        this  Lcom/mongodb/internal/connection/PowerOfTwoBufferPool;
            0    7     1        size  I
            1    7     2        pool  Lcom/mongodb/internal/connection/ConcurrentPool<Ljava/nio/ByteBuffer;>;
            4    7     3  byteBuffer  Ljava/nio/ByteBuffer;
    MethodParameters:
      Name  Flags
      size  final

  private java.nio.ByteBuffer createNew(int);
    descriptor: (I)Ljava/nio/ByteBuffer;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // com.mongodb.internal.connection.PowerOfTwoBufferPool this
        start local 1 // int size
         0: .line 86
            iload 1 /* size */
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
            astore 2 /* buf */
        start local 2 // java.nio.ByteBuffer buf
         1: .line 87
            aload 2 /* buf */
            getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
            invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
            pop
         2: .line 88
            aload 2 /* buf */
            areturn
        end local 2 // java.nio.ByteBuffer buf
        end local 1 // int size
        end local 0 // com.mongodb.internal.connection.PowerOfTwoBufferPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/mongodb/internal/connection/PowerOfTwoBufferPool;
            0    3     1  size  I
            1    3     2   buf  Ljava/nio/ByteBuffer;
    MethodParameters:
      Name  Flags
      size  final

  private void release(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // com.mongodb.internal.connection.PowerOfTwoBufferPool this
        start local 1 // java.nio.ByteBuffer buffer
         0: .line 92
            aload 0 /* this */
            getfield com.mongodb.internal.connection.PowerOfTwoBufferPool.powerOfTwoToPoolMap:Ljava/util/Map;
            aload 1 /* buffer */
            invokevirtual java.nio.ByteBuffer.capacity:()I
            invokestatic com.mongodb.internal.connection.PowerOfTwoBufferPool.roundUpToNextHighestPowerOfTwo:(I)I
            invokestatic com.mongodb.internal.connection.PowerOfTwoBufferPool.log2:(I)I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast com.mongodb.internal.connection.ConcurrentPool
            astore 2 /* pool */
        start local 2 // com.mongodb.internal.connection.ConcurrentPool pool
         1: .line 93
            aload 2 /* pool */
            ifnull 3
         2: .line 94
            aload 2 /* pool */
            aload 1 /* buffer */
            invokevirtual com.mongodb.internal.connection.ConcurrentPool.release:(Ljava/lang/Object;)V
         3: .line 96
      StackMap locals: com.mongodb.internal.connection.ConcurrentPool
      StackMap stack:
            return
        end local 2 // com.mongodb.internal.connection.ConcurrentPool pool
        end local 1 // java.nio.ByteBuffer buffer
        end local 0 // com.mongodb.internal.connection.PowerOfTwoBufferPool this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0    this  Lcom/mongodb/internal/connection/PowerOfTwoBufferPool;
            0    4     1  buffer  Ljava/nio/ByteBuffer;
            1    4     2    pool  Lcom/mongodb/internal/connection/ConcurrentPool<Ljava/nio/ByteBuffer;>;
    MethodParameters:
        Name  Flags
      buffer  final

  static int log2(int);
    descriptor: (I)I
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // int powerOfTwo
         0: .line 99
            bipush 31
            iload 0 /* powerOfTwo */
            invokestatic java.lang.Integer.numberOfLeadingZeros:(I)I
            isub
            ireturn
        end local 0 // int powerOfTwo
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    1     0  powerOfTwo  I
    MethodParameters:
            Name  Flags
      powerOfTwo  final

  static int roundUpToNextHighestPowerOfTwo(int);
    descriptor: (I)I
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // int size
         0: .line 103
            iload 0 /* size */
            istore 1 /* v */
        start local 1 // int v
         1: .line 104
            iinc 1 /* v */ -1
         2: .line 105
            iload 1 /* v */
            iload 1 /* v */
            iconst_1
            ishr
            ior
            istore 1 /* v */
         3: .line 106
            iload 1 /* v */
            iload 1 /* v */
            iconst_2
            ishr
            ior
            istore 1 /* v */
         4: .line 107
            iload 1 /* v */
            iload 1 /* v */
            iconst_4
            ishr
            ior
            istore 1 /* v */
         5: .line 108
            iload 1 /* v */
            iload 1 /* v */
            bipush 8
            ishr
            ior
            istore 1 /* v */
         6: .line 109
            iload 1 /* v */
            iload 1 /* v */
            bipush 16
            ishr
            ior
            istore 1 /* v */
         7: .line 110
            iinc 1 /* v */ 1
         8: .line 111
            iload 1 /* v */
            ireturn
        end local 1 // int v
        end local 0 // int size
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  size  I
            1    9     1     v  I
    MethodParameters:
      Name  Flags
      size  final
}
SourceFile: "PowerOfTwoBufferPool.java"
NestMembers:
  com.mongodb.internal.connection.PowerOfTwoBufferPool$1  com.mongodb.internal.connection.PowerOfTwoBufferPool$PooledByteBufNIO
InnerClasses:
  public abstract ItemFactory = com.mongodb.internal.connection.ConcurrentPool$ItemFactory of com.mongodb.internal.connection.ConcurrentPool
  com.mongodb.internal.connection.PowerOfTwoBufferPool$1
  private PooledByteBufNIO = com.mongodb.internal.connection.PowerOfTwoBufferPool$PooledByteBufNIO of com.mongodb.internal.connection.PowerOfTwoBufferPool