final class com.mongodb.internal.connection.BsonWriterHelper
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: com.mongodb.internal.connection.BsonWriterHelper
  super_class: java.lang.Object
{
  private static final int DOCUMENT_HEADROOM;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 16384

  private static final org.bson.codecs.configuration.CodecRegistry REGISTRY;
    descriptor: Lorg/bson/codecs/configuration/CodecRegistry;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final org.bson.codecs.EncoderContext ENCODER_CONTEXT;
    descriptor: Lorg/bson/codecs/EncoderContext;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=5, locals=0, args_size=0
         0: .line 38
            iconst_1
            anewarray org.bson.codecs.configuration.CodecProvider
            dup
            iconst_0
            new org.bson.codecs.BsonValueCodecProvider
            dup
            invokespecial org.bson.codecs.BsonValueCodecProvider.<init>:()V
            aastore
            invokestatic org.bson.codecs.configuration.CodecRegistries.fromProviders:([Lorg/bson/codecs/configuration/CodecProvider;)Lorg/bson/codecs/configuration/CodecRegistry;
            putstatic com.mongodb.internal.connection.BsonWriterHelper.REGISTRY:Lorg/bson/codecs/configuration/CodecRegistry;
         1: .line 39
            invokestatic org.bson.codecs.EncoderContext.builder:()Lorg/bson/codecs/EncoderContext$Builder;
            invokevirtual org.bson.codecs.EncoderContext$Builder.build:()Lorg/bson/codecs/EncoderContext;
            putstatic com.mongodb.internal.connection.BsonWriterHelper.ENCODER_CONTEXT:Lorg/bson/codecs/EncoderContext;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  static void writeElements(org.bson.BsonWriter, java.util.List<org.bson.BsonElement>);
    descriptor: (Lorg/bson/BsonWriter;Ljava/util/List;)V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // org.bson.BsonWriter writer
        start local 1 // java.util.List bsonElements
         0: .line 42
            aload 1 /* bsonElements */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 3
            goto 4
      StackMap locals: org.bson.BsonWriter java.util.List top java.util.Iterator
      StackMap stack:
         1: aload 3
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast org.bson.BsonElement
            astore 2 /* bsonElement */
        start local 2 // org.bson.BsonElement bsonElement
         2: .line 43
            aload 0 /* writer */
            aload 2 /* bsonElement */
            invokevirtual org.bson.BsonElement.getName:()Ljava/lang/String;
            invokeinterface org.bson.BsonWriter.writeName:(Ljava/lang/String;)V
         3: .line 44
            aload 2 /* bsonElement */
            invokevirtual org.bson.BsonElement.getValue:()Lorg/bson/BsonValue;
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.getCodec:(Lorg/bson/BsonValue;)Lorg/bson/codecs/Codec;
            aload 0 /* writer */
            aload 2 /* bsonElement */
            invokevirtual org.bson.BsonElement.getValue:()Lorg/bson/BsonValue;
            getstatic com.mongodb.internal.connection.BsonWriterHelper.ENCODER_CONTEXT:Lorg/bson/codecs/EncoderContext;
            invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
        end local 2 // org.bson.BsonElement bsonElement
         4: .line 42
      StackMap locals:
      StackMap stack:
            aload 3
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 1
         5: .line 46
            return
        end local 1 // java.util.List bsonElements
        end local 0 // org.bson.BsonWriter writer
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    6     0        writer  Lorg/bson/BsonWriter;
            0    6     1  bsonElements  Ljava/util/List<Lorg/bson/BsonElement;>;
            2    4     2   bsonElement  Lorg/bson/BsonElement;
    Signature: (Lorg/bson/BsonWriter;Ljava/util/List<Lorg/bson/BsonElement;>;)V
    MethodParameters:
              Name  Flags
      writer        final
      bsonElements  final

  static void writePayloadArray(org.bson.BsonWriter, org.bson.io.BsonOutput, com.mongodb.internal.connection.MessageSettings, int, com.mongodb.connection.SplittablePayload);
    descriptor: (Lorg/bson/BsonWriter;Lorg/bson/io/BsonOutput;Lcom/mongodb/internal/connection/MessageSettings;ILcom/mongodb/connection/SplittablePayload;)V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=5, locals=5, args_size=5
        start local 0 // org.bson.BsonWriter writer
        start local 1 // org.bson.io.BsonOutput bsonOutput
        start local 2 // com.mongodb.internal.connection.MessageSettings settings
        start local 3 // int messageStartPosition
        start local 4 // com.mongodb.connection.SplittablePayload payload
         0: .line 50
            aload 0 /* writer */
            aload 4 /* payload */
            invokevirtual com.mongodb.connection.SplittablePayload.getPayloadName:()Ljava/lang/String;
            invokeinterface org.bson.BsonWriter.writeStartArray:(Ljava/lang/String;)V
         1: .line 51
            aload 0 /* writer */
            aload 1 /* bsonOutput */
            aload 2 /* settings */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.getDocumentMessageSettings:(Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/MessageSettings;
            iload 3 /* messageStartPosition */
            aload 4 /* payload */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.writePayload:(Lorg/bson/BsonWriter;Lorg/bson/io/BsonOutput;Lcom/mongodb/internal/connection/MessageSettings;ILcom/mongodb/connection/SplittablePayload;)V
         2: .line 52
            aload 0 /* writer */
            invokeinterface org.bson.BsonWriter.writeEndArray:()V
         3: .line 53
            return
        end local 4 // com.mongodb.connection.SplittablePayload payload
        end local 3 // int messageStartPosition
        end local 2 // com.mongodb.internal.connection.MessageSettings settings
        end local 1 // org.bson.io.BsonOutput bsonOutput
        end local 0 // org.bson.BsonWriter writer
      LocalVariableTable:
        Start  End  Slot                  Name  Signature
            0    4     0                writer  Lorg/bson/BsonWriter;
            0    4     1            bsonOutput  Lorg/bson/io/BsonOutput;
            0    4     2              settings  Lcom/mongodb/internal/connection/MessageSettings;
            0    4     3  messageStartPosition  I
            0    4     4               payload  Lcom/mongodb/connection/SplittablePayload;
    MethodParameters:
                      Name  Flags
      writer                final
      bsonOutput            final
      settings              final
      messageStartPosition  final
      payload               final

  static void writePayload(org.bson.BsonWriter, org.bson.io.BsonOutput, com.mongodb.internal.connection.MessageSettings, int, com.mongodb.connection.SplittablePayload);
    descriptor: (Lorg/bson/BsonWriter;Lorg/bson/io/BsonOutput;Lcom/mongodb/internal/connection/MessageSettings;ILcom/mongodb/connection/SplittablePayload;)V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=7, locals=7, args_size=5
        start local 0 // org.bson.BsonWriter writer
        start local 1 // org.bson.io.BsonOutput bsonOutput
        start local 2 // com.mongodb.internal.connection.MessageSettings settings
        start local 3 // int messageStartPosition
        start local 4 // com.mongodb.connection.SplittablePayload payload
         0: .line 57
            aload 4 /* payload */
            invokevirtual com.mongodb.connection.SplittablePayload.getPayloadType:()Lcom/mongodb/connection/SplittablePayload$Type;
            aload 2 /* settings */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.getPayloadMessageSettings:(Lcom/mongodb/connection/SplittablePayload$Type;Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/MessageSettings;
            astore 5 /* payloadSettings */
        start local 5 // com.mongodb.internal.connection.MessageSettings payloadSettings
         1: .line 58
            iconst_0
            istore 6 /* i */
        start local 6 // int i
         2: goto 6
         3: .line 59
      StackMap locals: com.mongodb.internal.connection.MessageSettings int
      StackMap stack:
            aload 0 /* writer */
            aload 1 /* bsonOutput */
            aload 5 /* payloadSettings */
            aload 4 /* payload */
            invokevirtual com.mongodb.connection.SplittablePayload.getPayload:()Ljava/util/List;
            iload 6 /* i */
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast org.bson.BsonDocument
            iload 3 /* messageStartPosition */
            iload 6 /* i */
            iconst_1
            iadd
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.writeDocument:(Lorg/bson/BsonWriter;Lorg/bson/io/BsonOutput;Lcom/mongodb/internal/connection/MessageSettings;Lorg/bson/BsonDocument;II)Z
            ifeq 7
         4: .line 60
            aload 4 /* payload */
            iload 6 /* i */
            iconst_1
            iadd
            invokevirtual com.mongodb.connection.SplittablePayload.setPosition:(I)V
         5: .line 58
            iinc 6 /* i */ 1
      StackMap locals:
      StackMap stack:
         6: iload 6 /* i */
            aload 4 /* payload */
            invokevirtual com.mongodb.connection.SplittablePayload.getPayload:()Ljava/util/List;
            invokeinterface java.util.List.size:()I
            if_icmplt 3
        end local 6 // int i
         7: .line 66
      StackMap locals:
      StackMap stack:
            aload 4 /* payload */
            invokevirtual com.mongodb.connection.SplittablePayload.getPosition:()I
            ifne 11
         8: .line 67
            new org.bson.BsonMaximumSizeExceededException
            dup
            ldc "Payload document size is larger than maximum of %d."
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
         9: .line 68
            aload 5 /* payloadSettings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxDocumentSize:()I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
        10: .line 67
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokespecial org.bson.BsonMaximumSizeExceededException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 70
      StackMap locals:
      StackMap stack:
            return
        end local 5 // com.mongodb.internal.connection.MessageSettings payloadSettings
        end local 4 // com.mongodb.connection.SplittablePayload payload
        end local 3 // int messageStartPosition
        end local 2 // com.mongodb.internal.connection.MessageSettings settings
        end local 1 // org.bson.io.BsonOutput bsonOutput
        end local 0 // org.bson.BsonWriter writer
      LocalVariableTable:
        Start  End  Slot                  Name  Signature
            0   12     0                writer  Lorg/bson/BsonWriter;
            0   12     1            bsonOutput  Lorg/bson/io/BsonOutput;
            0   12     2              settings  Lcom/mongodb/internal/connection/MessageSettings;
            0   12     3  messageStartPosition  I
            0   12     4               payload  Lcom/mongodb/connection/SplittablePayload;
            1   12     5       payloadSettings  Lcom/mongodb/internal/connection/MessageSettings;
            2    7     6                     i  I
    MethodParameters:
                      Name  Flags
      writer                final
      bsonOutput            final
      settings              final
      messageStartPosition  final
      payload               final

  private static boolean writeDocument(org.bson.BsonWriter, org.bson.io.BsonOutput, com.mongodb.internal.connection.MessageSettings, org.bson.BsonDocument, int, int);
    descriptor: (Lorg/bson/BsonWriter;Lorg/bson/io/BsonOutput;Lcom/mongodb/internal/connection/MessageSettings;Lorg/bson/BsonDocument;II)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=9, args_size=6
        start local 0 // org.bson.BsonWriter writer
        start local 1 // org.bson.io.BsonOutput bsonOutput
        start local 2 // com.mongodb.internal.connection.MessageSettings settings
        start local 3 // org.bson.BsonDocument document
        start local 4 // int messageStartPosition
        start local 5 // int batchItemCount
         0: .line 74
            aload 1 /* bsonOutput */
            invokeinterface org.bson.io.BsonOutput.getPosition:()I
            istore 6 /* currentPosition */
        start local 6 // int currentPosition
         1: .line 75
            aload 3 /* document */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.getCodec:(Lorg/bson/BsonValue;)Lorg/bson/codecs/Codec;
            aload 0 /* writer */
            aload 3 /* document */
            getstatic com.mongodb.internal.connection.BsonWriterHelper.ENCODER_CONTEXT:Lorg/bson/codecs/EncoderContext;
            invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
         2: .line 76
            aload 1 /* bsonOutput */
            invokeinterface org.bson.io.BsonOutput.getPosition:()I
            iload 4 /* messageStartPosition */
            isub
            istore 7 /* messageSize */
        start local 7 // int messageSize
         3: .line 77
            aload 1 /* bsonOutput */
            invokeinterface org.bson.io.BsonOutput.getPosition:()I
            iload 6 /* currentPosition */
            isub
            istore 8 /* documentSize */
        start local 8 // int documentSize
         4: .line 78
            aload 2 /* settings */
            iload 7 /* messageSize */
            iload 8 /* documentSize */
            iload 5 /* batchItemCount */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.exceedsLimits:(Lcom/mongodb/internal/connection/MessageSettings;III)Z
            ifeq 7
         5: .line 79
            aload 1 /* bsonOutput */
            iload 6 /* currentPosition */
            invokeinterface org.bson.io.BsonOutput.truncateToPosition:(I)V
         6: .line 80
            iconst_0
            ireturn
         7: .line 82
      StackMap locals: int int int
      StackMap stack:
            iconst_1
            ireturn
        end local 8 // int documentSize
        end local 7 // int messageSize
        end local 6 // int currentPosition
        end local 5 // int batchItemCount
        end local 4 // int messageStartPosition
        end local 3 // org.bson.BsonDocument document
        end local 2 // com.mongodb.internal.connection.MessageSettings settings
        end local 1 // org.bson.io.BsonOutput bsonOutput
        end local 0 // org.bson.BsonWriter writer
      LocalVariableTable:
        Start  End  Slot                  Name  Signature
            0    8     0                writer  Lorg/bson/BsonWriter;
            0    8     1            bsonOutput  Lorg/bson/io/BsonOutput;
            0    8     2              settings  Lcom/mongodb/internal/connection/MessageSettings;
            0    8     3              document  Lorg/bson/BsonDocument;
            0    8     4  messageStartPosition  I
            0    8     5        batchItemCount  I
            1    8     6       currentPosition  I
            3    8     7           messageSize  I
            4    8     8          documentSize  I
    MethodParameters:
                      Name  Flags
      writer                final
      bsonOutput            final
      settings              final
      document              final
      messageStartPosition  final
      batchItemCount        final

  private static org.bson.codecs.Codec<org.bson.BsonValue> getCodec(org.bson.BsonValue);
    descriptor: (Lorg/bson/BsonValue;)Lorg/bson/codecs/Codec;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.bson.BsonValue bsonValue
         0: .line 87
            getstatic com.mongodb.internal.connection.BsonWriterHelper.REGISTRY:Lorg/bson/codecs/configuration/CodecRegistry;
            aload 0 /* bsonValue */
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            invokeinterface org.bson.codecs.configuration.CodecRegistry.get:(Ljava/lang/Class;)Lorg/bson/codecs/Codec;
            areturn
        end local 0 // org.bson.BsonValue bsonValue
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    1     0  bsonValue  Lorg/bson/BsonValue;
    Signature: (Lorg/bson/BsonValue;)Lorg/bson/codecs/Codec<Lorg/bson/BsonValue;>;
    MethodParameters:
           Name  Flags
      bsonValue  final

  private static com.mongodb.internal.connection.MessageSettings getPayloadMessageSettings(com.mongodb.connection.SplittablePayload$Type, com.mongodb.internal.connection.MessageSettings);
    descriptor: (Lcom/mongodb/connection/SplittablePayload$Type;Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/MessageSettings;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // com.mongodb.connection.SplittablePayload$Type type
        start local 1 // com.mongodb.internal.connection.MessageSettings settings
         0: .line 91
            aload 1 /* settings */
            astore 2 /* payloadMessageSettings */
        start local 2 // com.mongodb.internal.connection.MessageSettings payloadMessageSettings
         1: .line 92
            aload 0 /* type */
            getstatic com.mongodb.connection.SplittablePayload$Type.INSERT:Lcom/mongodb/connection/SplittablePayload$Type;
            if_acmpeq 6
         2: .line 93
            aload 1 /* settings */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.createMessageSettingsBuilder:(Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/MessageSettings$Builder;
         3: .line 94
            aload 1 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxDocumentSize:()I
            sipush 16384
            iadd
            invokevirtual com.mongodb.internal.connection.MessageSettings$Builder.maxDocumentSize:(I)Lcom/mongodb/internal/connection/MessageSettings$Builder;
         4: .line 95
            invokevirtual com.mongodb.internal.connection.MessageSettings$Builder.build:()Lcom/mongodb/internal/connection/MessageSettings;
         5: .line 93
            astore 2 /* payloadMessageSettings */
         6: .line 97
      StackMap locals: com.mongodb.internal.connection.MessageSettings
      StackMap stack:
            aload 2 /* payloadMessageSettings */
            areturn
        end local 2 // com.mongodb.internal.connection.MessageSettings payloadMessageSettings
        end local 1 // com.mongodb.internal.connection.MessageSettings settings
        end local 0 // com.mongodb.connection.SplittablePayload$Type type
      LocalVariableTable:
        Start  End  Slot                    Name  Signature
            0    7     0                    type  Lcom/mongodb/connection/SplittablePayload$Type;
            0    7     1                settings  Lcom/mongodb/internal/connection/MessageSettings;
            1    7     2  payloadMessageSettings  Lcom/mongodb/internal/connection/MessageSettings;
    MethodParameters:
          Name  Flags
      type      final
      settings  final

  private static com.mongodb.internal.connection.MessageSettings getDocumentMessageSettings(com.mongodb.internal.connection.MessageSettings);
    descriptor: (Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/MessageSettings;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.mongodb.internal.connection.MessageSettings settings
         0: .line 101
            aload 0 /* settings */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.createMessageSettingsBuilder:(Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/MessageSettings$Builder;
         1: .line 102
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxDocumentSize:()I
            sipush 16384
            iadd
            invokevirtual com.mongodb.internal.connection.MessageSettings$Builder.maxMessageSize:(I)Lcom/mongodb/internal/connection/MessageSettings$Builder;
         2: .line 103
            invokevirtual com.mongodb.internal.connection.MessageSettings$Builder.build:()Lcom/mongodb/internal/connection/MessageSettings;
         3: .line 101
            areturn
        end local 0 // com.mongodb.internal.connection.MessageSettings settings
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    4     0  settings  Lcom/mongodb/internal/connection/MessageSettings;
    MethodParameters:
          Name  Flags
      settings  final

  private static com.mongodb.internal.connection.MessageSettings$Builder createMessageSettingsBuilder(com.mongodb.internal.connection.MessageSettings);
    descriptor: (Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/MessageSettings$Builder;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.mongodb.internal.connection.MessageSettings settings
         0: .line 107
            invokestatic com.mongodb.internal.connection.MessageSettings.builder:()Lcom/mongodb/internal/connection/MessageSettings$Builder;
         1: .line 108
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxBatchCount:()I
            invokevirtual com.mongodb.internal.connection.MessageSettings$Builder.maxBatchCount:(I)Lcom/mongodb/internal/connection/MessageSettings$Builder;
         2: .line 109
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxMessageSize:()I
            invokevirtual com.mongodb.internal.connection.MessageSettings$Builder.maxMessageSize:(I)Lcom/mongodb/internal/connection/MessageSettings$Builder;
         3: .line 110
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxDocumentSize:()I
            invokevirtual com.mongodb.internal.connection.MessageSettings$Builder.maxDocumentSize:(I)Lcom/mongodb/internal/connection/MessageSettings$Builder;
         4: .line 111
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxWireVersion:()I
            invokevirtual com.mongodb.internal.connection.MessageSettings$Builder.maxWireVersion:(I)Lcom/mongodb/internal/connection/MessageSettings$Builder;
         5: .line 107
            areturn
        end local 0 // com.mongodb.internal.connection.MessageSettings settings
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    6     0  settings  Lcom/mongodb/internal/connection/MessageSettings;
    MethodParameters:
          Name  Flags
      settings  final

  private static boolean exceedsLimits(com.mongodb.internal.connection.MessageSettings, int, int, int);
    descriptor: (Lcom/mongodb/internal/connection/MessageSettings;III)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=4, args_size=4
        start local 0 // com.mongodb.internal.connection.MessageSettings settings
        start local 1 // int messageSize
        start local 2 // int documentSize
        start local 3 // int batchItemCount
         0: .line 116
            iload 3 /* batchItemCount */
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxBatchCount:()I
            if_icmple 2
         1: .line 117
            iconst_1
            ireturn
         2: .line 118
      StackMap locals:
      StackMap stack:
            iload 1 /* messageSize */
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxMessageSize:()I
            if_icmple 4
         3: .line 119
            iconst_1
            ireturn
         4: .line 120
      StackMap locals:
      StackMap stack:
            iload 2 /* documentSize */
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxDocumentSize:()I
            if_icmple 6
         5: .line 121
            iconst_1
            ireturn
         6: .line 123
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        end local 3 // int batchItemCount
        end local 2 // int documentSize
        end local 1 // int messageSize
        end local 0 // com.mongodb.internal.connection.MessageSettings settings
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    7     0        settings  Lcom/mongodb/internal/connection/MessageSettings;
            0    7     1     messageSize  I
            0    7     2    documentSize  I
            0    7     3  batchItemCount  I
    MethodParameters:
                Name  Flags
      settings        final
      messageSize     final
      documentSize    final
      batchItemCount  final

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.internal.connection.BsonWriterHelper this
         0: .line 127
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 128
            return
        end local 0 // com.mongodb.internal.connection.BsonWriterHelper this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/mongodb/internal/connection/BsonWriterHelper;
}
SourceFile: "BsonWriterHelper.java"
InnerClasses:
  public final Type = com.mongodb.connection.SplittablePayload$Type of com.mongodb.connection.SplittablePayload
  public final Builder = com.mongodb.internal.connection.MessageSettings$Builder of com.mongodb.internal.connection.MessageSettings
  public final Builder = org.bson.codecs.EncoderContext$Builder of org.bson.codecs.EncoderContext