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, int);
    descriptor: (Lorg/bson/BsonWriter;Lorg/bson/io/BsonOutput;Lcom/mongodb/internal/connection/MessageSettings;ILcom/mongodb/connection/SplittablePayload;I)V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=6, locals=6, 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 // int messageStartPosition
        start local 4 // com.mongodb.connection.SplittablePayload payload
        start local 5 // int maxSplittableDocumentSize
         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 */
            iload 5 /* maxSplittableDocumentSize */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.writePayload:(Lorg/bson/BsonWriter;Lorg/bson/io/BsonOutput;Lcom/mongodb/internal/connection/MessageSettings;ILcom/mongodb/connection/SplittablePayload;I)V
         2: .line 52
            aload 0 /* writer */
            invokeinterface org.bson.BsonWriter.writeEndArray:()V
         3: .line 53
            return
        end local 5 // int maxSplittableDocumentSize
        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;
            0    4     5  maxSplittableDocumentSize  I
    MethodParameters:
                           Name  Flags
      writer                     final
      bsonOutput                 final
      settings                   final
      messageStartPosition       final
      payload                    final
      maxSplittableDocumentSize  final

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

  private static boolean writeDocument(org.bson.BsonWriter, org.bson.io.BsonOutput, com.mongodb.internal.connection.MessageSettings, org.bson.BsonDocument, int, int, int);
    descriptor: (Lorg/bson/BsonWriter;Lorg/bson/io/BsonOutput;Lcom/mongodb/internal/connection/MessageSettings;Lorg/bson/BsonDocument;III)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=10, args_size=7
        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
        start local 6 // int maxSplittableDocumentSize
         0: .line 76
            aload 1 /* bsonOutput */
            invokeinterface org.bson.io.BsonOutput.getPosition:()I
            istore 7 /* currentPosition */
        start local 7 // int currentPosition
         1: .line 77
            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 78
            aload 1 /* bsonOutput */
            invokeinterface org.bson.io.BsonOutput.getPosition:()I
            iload 4 /* messageStartPosition */
            isub
            istore 8 /* messageSize */
        start local 8 // int messageSize
         3: .line 79
            aload 1 /* bsonOutput */
            invokeinterface org.bson.io.BsonOutput.getPosition:()I
            iload 7 /* currentPosition */
            isub
            istore 9 /* documentSize */
        start local 9 // int documentSize
         4: .line 80
            aload 2 /* settings */
            iload 8 /* messageSize */
            iload 9 /* documentSize */
            iload 5 /* batchItemCount */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.exceedsLimits:(Lcom/mongodb/internal/connection/MessageSettings;III)Z
            ifne 6
         5: .line 81
            iload 5 /* batchItemCount */
            iconst_1
            if_icmple 8
            aload 1 /* bsonOutput */
            invokeinterface org.bson.io.BsonOutput.getPosition:()I
            iload 4 /* messageStartPosition */
            isub
            iload 6 /* maxSplittableDocumentSize */
            if_icmple 8
         6: .line 82
      StackMap locals: int int int
      StackMap stack:
            aload 1 /* bsonOutput */
            iload 7 /* currentPosition */
            invokeinterface org.bson.io.BsonOutput.truncateToPosition:(I)V
         7: .line 83
            iconst_0
            ireturn
         8: .line 85
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 9 // int documentSize
        end local 8 // int messageSize
        end local 7 // int currentPosition
        end local 6 // int maxSplittableDocumentSize
        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    9     0                     writer  Lorg/bson/BsonWriter;
            0    9     1                 bsonOutput  Lorg/bson/io/BsonOutput;
            0    9     2                   settings  Lcom/mongodb/internal/connection/MessageSettings;
            0    9     3                   document  Lorg/bson/BsonDocument;
            0    9     4       messageStartPosition  I
            0    9     5             batchItemCount  I
            0    9     6  maxSplittableDocumentSize  I
            1    9     7            currentPosition  I
            3    9     8                messageSize  I
            4    9     9               documentSize  I
    MethodParameters:
                           Name  Flags
      writer                     final
      bsonOutput                 final
      settings                   final
      document                   final
      messageStartPosition       final
      batchItemCount             final
      maxSplittableDocumentSize  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 90
            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 94
            aload 1 /* settings */
            astore 2 /* payloadMessageSettings */
        start local 2 // com.mongodb.internal.connection.MessageSettings payloadMessageSettings
         1: .line 95
            aload 0 /* type */
            getstatic com.mongodb.connection.SplittablePayload$Type.INSERT:Lcom/mongodb/connection/SplittablePayload$Type;
            if_acmpeq 6
         2: .line 96
            aload 1 /* settings */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.createMessageSettingsBuilder:(Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/MessageSettings$Builder;
         3: .line 97
            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 98
            invokevirtual com.mongodb.internal.connection.MessageSettings$Builder.build:()Lcom/mongodb/internal/connection/MessageSettings;
         5: .line 96
            astore 2 /* payloadMessageSettings */
         6: .line 100
      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 104
            aload 0 /* settings */
            invokestatic com.mongodb.internal.connection.BsonWriterHelper.createMessageSettingsBuilder:(Lcom/mongodb/internal/connection/MessageSettings;)Lcom/mongodb/internal/connection/MessageSettings$Builder;
         1: .line 105
            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 106
            invokevirtual com.mongodb.internal.connection.MessageSettings$Builder.build:()Lcom/mongodb/internal/connection/MessageSettings;
         3: .line 104
            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 110
            invokestatic com.mongodb.internal.connection.MessageSettings.builder:()Lcom/mongodb/internal/connection/MessageSettings$Builder;
         1: .line 111
            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 112
            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 113
            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 114
            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 110
            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 119
            iload 3 /* batchItemCount */
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxBatchCount:()I
            if_icmple 2
         1: .line 120
            iconst_1
            ireturn
         2: .line 121
      StackMap locals:
      StackMap stack:
            iload 1 /* messageSize */
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxMessageSize:()I
            if_icmple 4
         3: .line 122
            iconst_1
            ireturn
         4: .line 123
      StackMap locals:
      StackMap stack:
            iload 2 /* documentSize */
            aload 0 /* settings */
            invokevirtual com.mongodb.internal.connection.MessageSettings.getMaxDocumentSize:()I
            if_icmple 6
         5: .line 124
            iconst_1
            ireturn
         6: .line 126
      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 130
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 131
            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