public class jdk.internal.foreign.abi.SharedUtils
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: jdk.internal.foreign.abi.SharedUtils
  super_class: java.lang.Object
{
  private static final java.lang.invoke.MethodHandle MH_ALLOC_BUFFER;
    descriptor: Ljava/lang/invoke/MethodHandle;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final java.lang.invoke.MethodHandle MH_BASEADDRESS;
    descriptor: Ljava/lang/invoke/MethodHandle;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final java.lang.invoke.MethodHandle MH_BUFFER_COPY;
    descriptor: Ljava/lang/invoke/MethodHandle;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static final jdk.internal.foreign.abi.SharedUtils$Allocator DEFAULT_ALLOCATOR;
    descriptor: Ljdk/internal/foreign/abi/SharedUtils$Allocator;
    flags: (0x0018) ACC_STATIC, ACC_FINAL

  private static volatile int[] $SWITCH_TABLE$jdk$internal$foreign$CABI;
    descriptor: [I
    flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=9, locals=1, args_size=0
         0: .line 68
            invokedynamic allocate()Ljdk/internal/foreign/abi/SharedUtils$Allocator;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (JJ)Ljdk/incubator/foreign/MemorySegment;
                  jdk/incubator/foreign/MemorySegment.allocateNative(JJ)Ljdk/incubator/foreign/MemorySegment; (6 itf)
                  (JJ)Ljdk/incubator/foreign/MemorySegment;
            putstatic jdk.internal.foreign.abi.SharedUtils.DEFAULT_ALLOCATOR:Ljdk/internal/foreign/abi/SharedUtils$Allocator;
         1: .line 72
            invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
            astore 0 /* lookup */
        start local 0 // java.lang.invoke.MethodHandles$Lookup lookup
         2: .line 73
            aload 0 /* lookup */
            ldc Ljdk/internal/foreign/abi/SharedUtils;
            ldc "allocateNative"
         3: .line 74
            ldc Ljdk/incubator/foreign/MemorySegment;
            ldc Ljdk/incubator/foreign/MemoryLayout;
            invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
         4: .line 73
            invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
            putstatic jdk.internal.foreign.abi.SharedUtils.MH_ALLOC_BUFFER:Ljava/lang/invoke/MethodHandle;
         5: .line 75
            aload 0 /* lookup */
            ldc Ljdk/incubator/foreign/MemorySegment;
            ldc "address"
         6: .line 76
            ldc Ljdk/incubator/foreign/MemoryAddress;
            invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
         7: .line 75
            invokevirtual java.lang.invoke.MethodHandles$Lookup.findVirtual:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
            putstatic jdk.internal.foreign.abi.SharedUtils.MH_BASEADDRESS:Ljava/lang/invoke/MethodHandle;
         8: .line 77
            aload 0 /* lookup */
            ldc Ljdk/internal/foreign/abi/SharedUtils;
            ldc "bufferCopy"
         9: .line 78
            ldc Ljdk/incubator/foreign/MemoryAddress;
            ldc Ljdk/incubator/foreign/MemoryAddress;
            iconst_1
            anewarray java.lang.Class
            dup
            iconst_0
            ldc Ljdk/incubator/foreign/MemorySegment;
            aastore
            invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
        10: .line 77
            invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
            putstatic jdk.internal.foreign.abi.SharedUtils.MH_BUFFER_COPY:Ljava/lang/invoke/MethodHandle;
        end local 0 // java.lang.invoke.MethodHandles$Lookup lookup
        11: .line 79
            goto 14
      StackMap locals:
      StackMap stack: java.lang.ReflectiveOperationException
        12: astore 0 /* e */
        start local 0 // java.lang.ReflectiveOperationException e
        13: .line 80
            new java.lang.BootstrapMethodError
            dup
            aload 0 /* e */
            invokespecial java.lang.BootstrapMethodError.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 0 // java.lang.ReflectiveOperationException e
        14: .line 82
      StackMap locals:
      StackMap stack:
            return
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            2   11     0  lookup  Ljava/lang/invoke/MethodHandles$Lookup;
           13   14     0       e  Ljava/lang/ReflectiveOperationException;
      Exception table:
        from    to  target  type
           1    11      12  Class java.lang.ReflectiveOperationException

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.foreign.abi.SharedUtils this
         0: .line 62
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // jdk.internal.foreign.abi.SharedUtils this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/foreign/abi/SharedUtils;

  private static jdk.incubator.foreign.MemorySegment allocateNative(jdk.incubator.foreign.MemoryLayout);
    descriptor: (Ljdk/incubator/foreign/MemoryLayout;)Ljdk/incubator/foreign/MemorySegment;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.incubator.foreign.MemoryLayout layout
         0: .line 86
            aload 0 /* layout */
            invokestatic jdk.incubator.foreign.MemorySegment.allocateNative:(Ljdk/incubator/foreign/MemoryLayout;)Ljdk/incubator/foreign/MemorySegment;
            areturn
        end local 0 // jdk.incubator.foreign.MemoryLayout layout
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    1     0  layout  Ljdk/incubator/foreign/MemoryLayout;
    MethodParameters:
        Name  Flags
      layout  

  public static long align(jdk.incubator.foreign.MemoryLayout, boolean, long);
    descriptor: (Ljdk/incubator/foreign/MemoryLayout;ZJ)J
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=4, args_size=3
        start local 0 // jdk.incubator.foreign.MemoryLayout t
        start local 1 // boolean isVar
        start local 2 // long addr
         0: .line 94
            lload 2 /* addr */
            aload 0 /* t */
            iload 1 /* isVar */
            invokestatic jdk.internal.foreign.abi.SharedUtils.alignment:(Ljdk/incubator/foreign/MemoryLayout;Z)J
            invokestatic jdk.internal.foreign.abi.SharedUtils.alignUp:(JJ)J
            lreturn
        end local 2 // long addr
        end local 1 // boolean isVar
        end local 0 // jdk.incubator.foreign.MemoryLayout t
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    1     0      t  Ljdk/incubator/foreign/MemoryLayout;
            0    1     1  isVar  Z
            0    1     2   addr  J
    MethodParameters:
       Name  Flags
      t      
      isVar  
      addr   

  public static long alignUp(long, long);
    descriptor: (JJ)J
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=4, args_size=2
        start local 0 // long addr
        start local 2 // long alignment
         0: .line 98
            lload 0 /* addr */
            lconst_1
            lsub
            lload 2 /* alignment */
            lconst_1
            lsub
            lor
            lconst_1
            ladd
            lreturn
        end local 2 // long alignment
        end local 0 // long addr
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    1     0       addr  J
            0    1     2  alignment  J
    MethodParameters:
           Name  Flags
      addr       
      alignment  

  public static long alignment(jdk.incubator.foreign.MemoryLayout, boolean);
    descriptor: (Ljdk/incubator/foreign/MemoryLayout;Z)J
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // jdk.incubator.foreign.MemoryLayout t
        start local 1 // boolean isVar
         0: .line 107
            aload 0 /* t */
            instanceof jdk.incubator.foreign.ValueLayout
            ifeq 2
         1: .line 108
            aload 0 /* t */
            checkcast jdk.incubator.foreign.ValueLayout
            invokestatic jdk.internal.foreign.abi.SharedUtils.alignmentOfScalar:(Ljdk/incubator/foreign/ValueLayout;)J
            lreturn
         2: .line 109
      StackMap locals:
      StackMap stack:
            aload 0 /* t */
            instanceof jdk.incubator.foreign.SequenceLayout
            ifeq 4
         3: .line 111
            aload 0 /* t */
            checkcast jdk.incubator.foreign.SequenceLayout
            iload 1 /* isVar */
            invokestatic jdk.internal.foreign.abi.SharedUtils.alignmentOfArray:(Ljdk/incubator/foreign/SequenceLayout;Z)J
            lreturn
         4: .line 112
      StackMap locals:
      StackMap stack:
            aload 0 /* t */
            instanceof jdk.incubator.foreign.GroupLayout
            ifeq 6
         5: .line 113
            aload 0 /* t */
            checkcast jdk.incubator.foreign.GroupLayout
            invokestatic jdk.internal.foreign.abi.SharedUtils.alignmentOfContainer:(Ljdk/incubator/foreign/GroupLayout;)J
            lreturn
         6: .line 114
      StackMap locals:
      StackMap stack:
            aload 0 /* t */
            invokeinterface jdk.incubator.foreign.MemoryLayout.isPadding:()Z
            ifeq 8
         7: .line 115
            lconst_1
            lreturn
         8: .line 117
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Invalid type: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* t */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        end local 1 // boolean isVar
        end local 0 // jdk.incubator.foreign.MemoryLayout t
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    9     0      t  Ljdk/incubator/foreign/MemoryLayout;
            0    9     1  isVar  Z
    MethodParameters:
       Name  Flags
      t      
      isVar  

  private static long alignmentOfScalar(jdk.incubator.foreign.ValueLayout);
    descriptor: (Ljdk/incubator/foreign/ValueLayout;)J
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.incubator.foreign.ValueLayout st
         0: .line 122
            aload 0 /* st */
            invokevirtual jdk.incubator.foreign.ValueLayout.byteSize:()J
            lreturn
        end local 0 // jdk.incubator.foreign.ValueLayout st
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0    st  Ljdk/incubator/foreign/ValueLayout;
    MethodParameters:
      Name  Flags
      st    

  private static long alignmentOfArray(jdk.incubator.foreign.SequenceLayout, boolean);
    descriptor: (Ljdk/incubator/foreign/SequenceLayout;Z)J
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // jdk.incubator.foreign.SequenceLayout ar
        start local 1 // boolean isVar
         0: .line 126
            aload 0 /* ar */
            invokevirtual jdk.incubator.foreign.SequenceLayout.elementCount:()Ljava/util/OptionalLong;
            invokevirtual java.util.OptionalLong.orElseThrow:()J
            lconst_0
            lcmp
            ifne 2
         1: .line 128
            ldc 16
            lreturn
         2: .line 129
      StackMap locals:
      StackMap stack:
            aload 0 /* ar */
            invokevirtual jdk.incubator.foreign.SequenceLayout.byteSize:()J
            ldc 16
            lcmp
            iflt 4
            iload 1 /* isVar */
            ifeq 4
         3: .line 130
            ldc 16
            lreturn
         4: .line 133
      StackMap locals:
      StackMap stack:
            aload 0 /* ar */
            invokevirtual jdk.incubator.foreign.SequenceLayout.elementLayout:()Ljdk/incubator/foreign/MemoryLayout;
            astore 2 /* elementType */
        start local 2 // jdk.incubator.foreign.MemoryLayout elementType
         5: .line 134
            aload 2 /* elementType */
            iconst_0
            invokestatic jdk.internal.foreign.abi.SharedUtils.alignment:(Ljdk/incubator/foreign/MemoryLayout;Z)J
            lreturn
        end local 2 // jdk.incubator.foreign.MemoryLayout elementType
        end local 1 // boolean isVar
        end local 0 // jdk.incubator.foreign.SequenceLayout ar
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    6     0           ar  Ljdk/incubator/foreign/SequenceLayout;
            0    6     1        isVar  Z
            5    6     2  elementType  Ljdk/incubator/foreign/MemoryLayout;
    MethodParameters:
       Name  Flags
      ar     
      isVar  

  private static long alignmentOfContainer(jdk.incubator.foreign.GroupLayout);
    descriptor: (Ljdk/incubator/foreign/GroupLayout;)J
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.incubator.foreign.GroupLayout ct
         0: .line 140
            aload 0 /* ct */
            invokevirtual jdk.incubator.foreign.GroupLayout.memberLayouts:()Ljava/util/List;
            invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
            invokedynamic applyAsLong()Ljava/util/function/ToLongFunction;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)J
                  jdk/internal/foreign/abi/SharedUtils.lambda$1(Ljdk/incubator/foreign/MemoryLayout;)J (6)
                  (Ljdk/incubator/foreign/MemoryLayout;)J
            invokeinterface java.util.stream.Stream.mapToLong:(Ljava/util/function/ToLongFunction;)Ljava/util/stream/LongStream;
            invokeinterface java.util.stream.LongStream.max:()Ljava/util/OptionalLong;
            lconst_1
            invokevirtual java.util.OptionalLong.orElse:(J)J
            lreturn
        end local 0 // jdk.incubator.foreign.GroupLayout ct
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0    ct  Ljdk/incubator/foreign/GroupLayout;
    MethodParameters:
      Name  Flags
      ct    

  public static java.lang.invoke.MethodHandle adaptDowncallForIMR(java.lang.invoke.MethodHandle, jdk.incubator.foreign.FunctionDescriptor);
    descriptor: (Ljava/lang/invoke/MethodHandle;Ljdk/incubator/foreign/FunctionDescriptor;)Ljava/lang/invoke/MethodHandle;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=8, locals=6, args_size=2
        start local 0 // java.lang.invoke.MethodHandle handle
        start local 1 // jdk.incubator.foreign.FunctionDescriptor cDesc
         0: .line 156
            aload 0 /* handle */
            invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
            invokevirtual java.lang.invoke.MethodType.returnType:()Ljava/lang/Class;
            getstatic java.lang.Void.TYPE:Ljava/lang/Class;
            if_acmpeq 2
         1: .line 157
            new java.lang.IllegalArgumentException
            dup
            ldc "return expected to be void for in memory returns"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 158
      StackMap locals:
      StackMap stack:
            aload 0 /* handle */
            invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
            iconst_0
            invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
            ldc Ljdk/incubator/foreign/MemoryAddress;
            if_acmpeq 4
         3: .line 159
            new java.lang.IllegalArgumentException
            dup
            ldc "MemoryAddress expected as first param"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 160
      StackMap locals:
      StackMap stack:
            aload 1 /* cDesc */
            invokevirtual jdk.incubator.foreign.FunctionDescriptor.returnLayout:()Ljava/util/Optional;
            invokevirtual java.util.Optional.isEmpty:()Z
            ifeq 6
         5: .line 161
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Return layout needed: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* cDesc */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 163
      StackMap locals:
      StackMap stack:
            ldc Ljdk/incubator/foreign/MemorySegment;
            invokestatic java.lang.invoke.MethodHandles.identity:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
            astore 2 /* ret */
        start local 2 // java.lang.invoke.MethodHandle ret
         7: .line 164
            aload 2 /* ret */
            iconst_1
            aload 0 /* handle */
            invokestatic java.lang.invoke.MethodHandles.collectArguments:(Ljava/lang/invoke/MethodHandle;ILjava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
            astore 0 /* handle */
         8: .line 165
            aload 0 /* handle */
            iconst_1
            getstatic jdk.internal.foreign.abi.SharedUtils.MH_BASEADDRESS:Ljava/lang/invoke/MethodHandle;
            invokestatic java.lang.invoke.MethodHandles.collectArguments:(Ljava/lang/invoke/MethodHandle;ILjava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
            astore 0 /* handle */
         9: .line 166
            aload 0 /* handle */
            invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
            astore 3 /* oldType */
        start local 3 // java.lang.invoke.MethodType oldType
        10: .line 167
            aload 3 /* oldType */
            iconst_0
            iconst_1
            invokevirtual java.lang.invoke.MethodType.dropParameterTypes:(II)Ljava/lang/invoke/MethodType;
            astore 4 /* newType */
        start local 4 // java.lang.invoke.MethodType newType
        11: .line 168
            iconst_m1
            aload 4 /* newType */
            invokevirtual java.lang.invoke.MethodType.parameterCount:()I
            invokestatic java.util.stream.IntStream.range:(II)Ljava/util/stream/IntStream;
            invokeinterface java.util.stream.IntStream.toArray:()[I
            astore 5 /* reorder */
        start local 5 // int[] reorder
        12: .line 169
            aload 5 /* reorder */
            iconst_0
            iconst_0
            iastore
        13: .line 170
            aload 0 /* handle */
            aload 4 /* newType */
            aload 5 /* reorder */
            invokestatic java.lang.invoke.MethodHandles.permuteArguments:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;[I)Ljava/lang/invoke/MethodHandle;
            astore 0 /* handle */
        14: .line 171
            aload 0 /* handle */
            iconst_0
            getstatic jdk.internal.foreign.abi.SharedUtils.MH_ALLOC_BUFFER:Ljava/lang/invoke/MethodHandle;
            iconst_0
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* cDesc */
            invokevirtual jdk.incubator.foreign.FunctionDescriptor.returnLayout:()Ljava/util/Optional;
            invokevirtual java.util.Optional.get:()Ljava/lang/Object;
            aastore
            invokestatic java.lang.invoke.MethodHandles.insertArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
            invokestatic java.lang.invoke.MethodHandles.collectArguments:(Ljava/lang/invoke/MethodHandle;ILjava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
            astore 0 /* handle */
        15: .line 173
            aload 0 /* handle */
            areturn
        end local 5 // int[] reorder
        end local 4 // java.lang.invoke.MethodType newType
        end local 3 // java.lang.invoke.MethodType oldType
        end local 2 // java.lang.invoke.MethodHandle ret
        end local 1 // jdk.incubator.foreign.FunctionDescriptor cDesc
        end local 0 // java.lang.invoke.MethodHandle handle
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   16     0   handle  Ljava/lang/invoke/MethodHandle;
            0   16     1    cDesc  Ljdk/incubator/foreign/FunctionDescriptor;
            7   16     2      ret  Ljava/lang/invoke/MethodHandle;
           10   16     3  oldType  Ljava/lang/invoke/MethodType;
           11   16     4  newType  Ljava/lang/invoke/MethodType;
           12   16     5  reorder  [I
    MethodParameters:
        Name  Flags
      handle  
      cDesc   

  public static java.lang.invoke.MethodHandle adaptUpcallForIMR(java.lang.invoke.MethodHandle);
    descriptor: (Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // java.lang.invoke.MethodHandle target
         0: .line 185
            aload 0 /* target */
            invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
            invokevirtual java.lang.invoke.MethodType.returnType:()Ljava/lang/Class;
            ldc Ljdk/incubator/foreign/MemorySegment;
            if_acmpeq 2
         1: .line 186
            new java.lang.IllegalArgumentException
            dup
            ldc "Must return MemorySegment for IMR"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 188
      StackMap locals:
      StackMap stack:
            getstatic jdk.internal.foreign.abi.SharedUtils.MH_BUFFER_COPY:Ljava/lang/invoke/MethodHandle;
            iconst_1
            aload 0 /* target */
            invokestatic java.lang.invoke.MethodHandles.collectArguments:(Ljava/lang/invoke/MethodHandle;ILjava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
            astore 0 /* target */
         3: .line 190
            aload 0 /* target */
            areturn
        end local 0 // java.lang.invoke.MethodHandle target
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0  target  Ljava/lang/invoke/MethodHandle;
    MethodParameters:
        Name  Flags
      target  

  private static jdk.incubator.foreign.MemoryAddress bufferCopy(jdk.incubator.foreign.MemoryAddress, jdk.incubator.foreign.MemorySegment);
    descriptor: (Ljdk/incubator/foreign/MemoryAddress;Ljdk/incubator/foreign/MemorySegment;)Ljdk/incubator/foreign/MemoryAddress;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // jdk.incubator.foreign.MemoryAddress dest
        start local 1 // jdk.incubator.foreign.MemorySegment buffer
         0: .line 194
            aload 0 /* dest */
            invokeinterface jdk.incubator.foreign.MemoryAddress.toRawLongValue:()J
            aload 1 /* buffer */
            invokeinterface jdk.incubator.foreign.MemorySegment.byteSize:()J
            invokestatic jdk.internal.foreign.MemoryAddressImpl.ofLongUnchecked:(JJ)Ljdk/incubator/foreign/MemorySegment;
            aload 1 /* buffer */
            invokeinterface jdk.incubator.foreign.MemorySegment.copyFrom:(Ljdk/incubator/foreign/MemorySegment;)V
         1: .line 195
            aload 0 /* dest */
            areturn
        end local 1 // jdk.incubator.foreign.MemorySegment buffer
        end local 0 // jdk.incubator.foreign.MemoryAddress dest
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    dest  Ljdk/incubator/foreign/MemoryAddress;
            0    2     1  buffer  Ljdk/incubator/foreign/MemorySegment;
    MethodParameters:
        Name  Flags
      dest    
      buffer  

  public static void checkCompatibleType(java.lang.Class<?>, jdk.incubator.foreign.MemoryLayout, );
    descriptor: (Ljava/lang/Class;Ljdk/incubator/foreign/MemoryLayout;J)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=4, args_size=3
        start local 0 // java.lang.Class carrier
        start local 1 // jdk.incubator.foreign.MemoryLayout layout
        start local 2 // long addressSize
         0: .line 199
            aload 0 /* carrier */
            invokevirtual java.lang.Class.isPrimitive:()Z
            ifeq 3
         1: .line 200
            aload 0 /* carrier */
            aload 1 /* layout */
            invokestatic jdk.internal.foreign.Utils.checkPrimitiveCarrierCompat:(Ljava/lang/Class;Ljdk/incubator/foreign/MemoryLayout;)V
         2: .line 201
            goto 11
      StackMap locals:
      StackMap stack:
         3: aload 0 /* carrier */
            ldc Ljdk/incubator/foreign/MemoryAddress;
            if_acmpne 7
         4: .line 202
            aload 1 /* layout */
            ldc Ljdk/incubator/foreign/ValueLayout;
            invokestatic jdk.internal.foreign.Utils.checkLayoutType:(Ljdk/incubator/foreign/MemoryLayout;Ljava/lang/Class;)V
         5: .line 203
            aload 1 /* layout */
            invokeinterface jdk.incubator.foreign.MemoryLayout.bitSize:()J
            lload 2 /* addressSize */
            lcmp
            ifeq 11
         6: .line 204
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Address size mismatch: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            lload 2 /* addressSize */
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            ldc " != "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 1 /* layout */
            invokeinterface jdk.incubator.foreign.MemoryLayout.bitSize:()J
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 205
      StackMap locals:
      StackMap stack:
            aload 0 /* carrier */
            ldc Ljdk/incubator/foreign/MemorySegment;
            if_acmpne 10
         8: .line 206
            aload 1 /* layout */
            ldc Ljdk/incubator/foreign/GroupLayout;
            invokestatic jdk.internal.foreign.Utils.checkLayoutType:(Ljdk/incubator/foreign/MemoryLayout;Ljava/lang/Class;)V
         9: .line 207
            goto 11
        10: .line 208
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Unsupported carrier: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* carrier */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 210
      StackMap locals:
      StackMap stack:
            return
        end local 2 // long addressSize
        end local 1 // jdk.incubator.foreign.MemoryLayout layout
        end local 0 // java.lang.Class carrier
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   12     0      carrier  Ljava/lang/Class<*>;
            0   12     1       layout  Ljdk/incubator/foreign/MemoryLayout;
            0   12     2  addressSize  J
    Signature: (Ljava/lang/Class<*>;Ljdk/incubator/foreign/MemoryLayout;J)V
    MethodParameters:
             Name  Flags
      carrier      
      layout       
      addressSize  

  public static void checkFunctionTypes(java.lang.invoke.MethodType, jdk.incubator.foreign.FunctionDescriptor, long);
    descriptor: (Ljava/lang/invoke/MethodType;Ljdk/incubator/foreign/FunctionDescriptor;J)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=7, args_size=3
        start local 0 // java.lang.invoke.MethodType mt
        start local 1 // jdk.incubator.foreign.FunctionDescriptor cDesc
        start local 2 // long addressSize
         0: .line 213
            aload 0 /* mt */
            invokevirtual java.lang.invoke.MethodType.returnType:()Ljava/lang/Class;
            getstatic java.lang.Void.TYPE:Ljava/lang/Class;
            if_acmpne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: aload 1 /* cDesc */
            invokevirtual jdk.incubator.foreign.FunctionDescriptor.returnLayout:()Ljava/util/Optional;
            invokevirtual java.util.Optional.isEmpty:()Z
            if_icmpeq 4
         3: .line 214
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Return type mismatch: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* mt */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            ldc " != "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 1 /* cDesc */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 215
      StackMap locals:
      StackMap stack:
            aload 1 /* cDesc */
            invokevirtual jdk.incubator.foreign.FunctionDescriptor.argumentLayouts:()Ljava/util/List;
            astore 4 /* argLayouts */
        start local 4 // java.util.List argLayouts
         5: .line 216
            aload 0 /* mt */
            invokevirtual java.lang.invoke.MethodType.parameterCount:()I
            aload 4 /* argLayouts */
            invokeinterface java.util.List.size:()I
            if_icmpeq 7
         6: .line 217
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Arity mismatch: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* mt */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            ldc " != "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 1 /* cDesc */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 219
      StackMap locals: java.util.List
      StackMap stack:
            aload 0 /* mt */
            invokevirtual java.lang.invoke.MethodType.parameterCount:()I
            istore 5 /* paramCount */
        start local 5 // int paramCount
         8: .line 220
            iconst_0
            istore 6 /* i */
        start local 6 // int i
         9: goto 12
        10: .line 221
      StackMap locals: int int
      StackMap stack:
            aload 0 /* mt */
            iload 6 /* i */
            invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
            aload 4 /* argLayouts */
            iload 6 /* i */
            invokeinterface java.util.List.get:(I)Ljava/lang/Object;
            checkcast jdk.incubator.foreign.MemoryLayout
            lload 2 /* addressSize */
            invokestatic jdk.internal.foreign.abi.SharedUtils.checkCompatibleType:(Ljava/lang/Class;Ljdk/incubator/foreign/MemoryLayout;J)V
        11: .line 220
            iinc 6 /* i */ 1
      StackMap locals:
      StackMap stack:
        12: iload 6 /* i */
            iload 5 /* paramCount */
            if_icmplt 10
        end local 6 // int i
        13: .line 223
            aload 1 /* cDesc */
            invokevirtual jdk.incubator.foreign.FunctionDescriptor.returnLayout:()Ljava/util/Optional;
            aload 0 /* mt */
            lload 2 /* addressSize */
            invokedynamic accept(Ljava/lang/invoke/MethodType;J)Ljava/util/function/Consumer;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)V
                  jdk/internal/foreign/abi/SharedUtils.lambda$2(Ljava/lang/invoke/MethodType;JLjdk/incubator/foreign/MemoryLayout;)V (6)
                  (Ljdk/incubator/foreign/MemoryLayout;)V
            invokevirtual java.util.Optional.ifPresent:(Ljava/util/function/Consumer;)V
        14: .line 224
            return
        end local 5 // int paramCount
        end local 4 // java.util.List argLayouts
        end local 2 // long addressSize
        end local 1 // jdk.incubator.foreign.FunctionDescriptor cDesc
        end local 0 // java.lang.invoke.MethodType mt
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   15     0           mt  Ljava/lang/invoke/MethodType;
            0   15     1        cDesc  Ljdk/incubator/foreign/FunctionDescriptor;
            0   15     2  addressSize  J
            5   15     4   argLayouts  Ljava/util/List<Ljdk/incubator/foreign/MemoryLayout;>;
            8   15     5   paramCount  I
            9   13     6            i  I
    MethodParameters:
             Name  Flags
      mt           
      cDesc        
      addressSize  

  public static java.lang.Class<?> primitiveCarrierForSize(long);
    descriptor: (J)Ljava/lang/Class;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=2, args_size=1
        start local 0 // long size
         0: .line 227
            lload 0 /* size */
            lconst_1
            lcmp
            ifne 2
         1: .line 228
            getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
            areturn
         2: .line 229
      StackMap locals:
      StackMap stack:
            lload 0 /* size */
            ldc 2
            lcmp
            ifne 4
         3: .line 230
            getstatic java.lang.Short.TYPE:Ljava/lang/Class;
            areturn
         4: .line 231
      StackMap locals:
      StackMap stack:
            lload 0 /* size */
            ldc 4
            lcmp
            ifgt 6
         5: .line 232
            getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
            areturn
         6: .line 233
      StackMap locals:
      StackMap stack:
            lload 0 /* size */
            ldc 8
            lcmp
            ifgt 8
         7: .line 234
            getstatic java.lang.Long.TYPE:Ljava/lang/Class;
            areturn
         8: .line 237
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Size too large: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            lload 0 /* size */
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        end local 0 // long size
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  size  J
    Signature: (J)Ljava/lang/Class<*>;
    MethodParameters:
      Name  Flags
      size  

  public static jdk.incubator.foreign.CLinker getSystemLinker();
    descriptor: ()Ljdk/incubator/foreign/CLinker;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=0, args_size=0
         0: .line 241
            invokestatic jdk.internal.foreign.abi.SharedUtils.$SWITCH_TABLE$jdk$internal$foreign$CABI:()[I
            invokestatic jdk.internal.foreign.CABI.current:()Ljdk/internal/foreign/CABI;
            invokevirtual jdk.internal.foreign.CABI.ordinal:()I
            iaload
            tableswitch { // 1 - 3
                    1: 2
                    2: 1
                    3: 3
              default: 4
          }
         1: .line 242
      StackMap locals:
      StackMap stack:
            invokestatic jdk.internal.foreign.abi.x64.windows.Windowsx64Linker.getInstance:()Ljdk/internal/foreign/abi/x64/windows/Windowsx64Linker;
            goto 5
         2: .line 243
      StackMap locals:
      StackMap stack:
            invokestatic jdk.internal.foreign.abi.x64.sysv.SysVx64Linker.getInstance:()Ljdk/internal/foreign/abi/x64/sysv/SysVx64Linker;
            goto 5
         3: .line 244
      StackMap locals:
      StackMap stack:
            invokestatic jdk.internal.foreign.abi.aarch64.AArch64Linker.getInstance:()Ljdk/internal/foreign/abi/aarch64/AArch64Linker;
            goto 5
      StackMap locals:
      StackMap stack:
         4: new java.lang.IncompatibleClassChangeError
            dup
            invokespecial java.lang.IncompatibleClassChangeError.<init>:()V
            athrow
         5: .line 241
      StackMap locals:
      StackMap stack: jdk.incubator.foreign.CLinker
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public static java.lang.String toJavaStringInternal(jdk.incubator.foreign.MemorySegment, long, java.nio.charset.Charset);
    descriptor: (Ljdk/incubator/foreign/MemorySegment;JLjava/nio/charset/Charset;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=6, args_size=3
        start local 0 // jdk.incubator.foreign.MemorySegment segment
        start local 1 // long start
        start local 3 // java.nio.charset.Charset charset
         0: .line 249
            aload 0 /* segment */
            lload 1 /* start */
            invokestatic jdk.internal.foreign.abi.SharedUtils.strlen:(Ljdk/incubator/foreign/MemorySegment;J)I
            istore 4 /* len */
        start local 4 // int len
         1: .line 250
            iload 4 /* len */
            newarray 8
            astore 5 /* bytes */
        start local 5 // byte[] bytes
         2: .line 251
            aload 5 /* bytes */
            invokestatic jdk.incubator.foreign.MemorySegment.ofArray:([B)Ljdk/incubator/foreign/MemorySegment;
         3: .line 252
            aload 0 /* segment */
            lload 1 /* start */
            iload 4 /* len */
            i2l
            invokeinterface jdk.incubator.foreign.MemorySegment.asSlice:(JJ)Ljdk/incubator/foreign/MemorySegment;
            invokeinterface jdk.incubator.foreign.MemorySegment.copyFrom:(Ljdk/incubator/foreign/MemorySegment;)V
         4: .line 253
            new java.lang.String
            dup
            aload 5 /* bytes */
            aload 3 /* charset */
            invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
            areturn
        end local 5 // byte[] bytes
        end local 4 // int len
        end local 3 // java.nio.charset.Charset charset
        end local 1 // long start
        end local 0 // jdk.incubator.foreign.MemorySegment segment
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    5     0  segment  Ljdk/incubator/foreign/MemorySegment;
            0    5     1    start  J
            0    5     3  charset  Ljava/nio/charset/Charset;
            1    5     4      len  I
            2    5     5    bytes  [B
    MethodParameters:
         Name  Flags
      segment  
      start    
      charset  

  private static int strlen(jdk.incubator.foreign.MemorySegment, long);
    descriptor: (Ljdk/incubator/foreign/MemorySegment;J)I
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=5, locals=5, args_size=2
        start local 0 // jdk.incubator.foreign.MemorySegment segment
        start local 1 // long start
         0: .line 258
            iconst_0
            istore 3 /* offset */
        start local 3 // int offset
         1: goto 6
         2: .line 259
      StackMap locals: int
      StackMap stack:
            aload 0 /* segment */
            lload 1 /* start */
            iload 3 /* offset */
            i2l
            ladd
            invokestatic jdk.incubator.foreign.MemoryAccess.getByteAtOffset:(Ljdk/incubator/foreign/MemorySegment;J)B
            istore 4 /* curr */
        start local 4 // byte curr
         3: .line 260
            iload 4 /* curr */
            ifne 5
         4: .line 261
            iload 3 /* offset */
            ireturn
        end local 4 // byte curr
         5: .line 258
      StackMap locals:
      StackMap stack:
            iinc 3 /* offset */ 1
      StackMap locals:
      StackMap stack:
         6: iload 3 /* offset */
            ifge 2
        end local 3 // int offset
         7: .line 264
            new java.lang.IllegalArgumentException
            dup
            ldc "String too large"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        end local 1 // long start
        end local 0 // jdk.incubator.foreign.MemorySegment segment
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    8     0  segment  Ljdk/incubator/foreign/MemorySegment;
            0    8     1    start  J
            1    7     3   offset  I
            3    5     4     curr  B
    MethodParameters:
         Name  Flags
      segment  
      start    

  public static jdk.incubator.foreign.MemoryAddress allocateMemoryInternal(long);
    descriptor: (J)Ljdk/incubator/foreign/MemoryAddress;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // long size
         0: .line 283
            getstatic jdk.internal.foreign.abi.SharedUtils$AllocHolder.MH_MALLOC:Ljava/lang/invoke/MethodHandle;
            lload 0 /* size */
            invokevirtual java.lang.invoke.MethodHandle.invokeExact:(J)Ljdk/incubator/foreign/MemoryAddress;
         1: areturn
         2: .line 284
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 2 /* th */
        start local 2 // java.lang.Throwable th
         3: .line 285
            new java.lang.RuntimeException
            dup
            aload 2 /* th */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.lang.Throwable th
        end local 0 // long size
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  size  J
            3    4     2    th  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           0     1       2  Class java.lang.Throwable
    MethodParameters:
      Name  Flags
      size  

  public static void freeMemoryInternal(jdk.incubator.foreign.MemoryAddress);
    descriptor: (Ljdk/incubator/foreign/MemoryAddress;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // jdk.incubator.foreign.MemoryAddress addr
         0: .line 291
            getstatic jdk.internal.foreign.abi.SharedUtils$AllocHolder.MH_FREE:Ljava/lang/invoke/MethodHandle;
            aload 0 /* addr */
            invokevirtual java.lang.invoke.MethodHandle.invokeExact:(Ljdk/incubator/foreign/MemoryAddress;)V
         1: .line 292
            goto 4
      StackMap locals:
      StackMap stack: java.lang.Throwable
         2: astore 1 /* th */
        start local 1 // java.lang.Throwable th
         3: .line 293
            new java.lang.RuntimeException
            dup
            aload 1 /* th */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.lang.Throwable th
         4: .line 295
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.incubator.foreign.MemoryAddress addr
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  addr  Ljdk/incubator/foreign/MemoryAddress;
            3    4     1    th  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           0     1       2  Class java.lang.Throwable
    MethodParameters:
      Name  Flags
      addr  

  public static jdk.incubator.foreign.CLinker$VaList newVaList(java.util.function.Consumer<jdk.incubator.foreign.CLinker$VaList$Builder>, jdk.internal.foreign.abi.SharedUtils$Allocator);
    descriptor: (Ljava/util/function/Consumer;Ljdk/internal/foreign/abi/SharedUtils$Allocator;)Ljdk/incubator/foreign/CLinker$VaList;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // java.util.function.Consumer actions
        start local 1 // jdk.internal.foreign.abi.SharedUtils$Allocator allocator
         0: .line 298
            invokestatic jdk.internal.foreign.abi.SharedUtils.$SWITCH_TABLE$jdk$internal$foreign$CABI:()[I
            invokestatic jdk.internal.foreign.CABI.current:()Ljdk/internal/foreign/CABI;
            invokevirtual jdk.internal.foreign.CABI.ordinal:()I
            iaload
            tableswitch { // 1 - 3
                    1: 2
                    2: 1
                    3: 3
              default: 4
          }
         1: .line 299
      StackMap locals:
      StackMap stack:
            aload 0 /* actions */
            aload 1 /* allocator */
            invokestatic jdk.internal.foreign.abi.x64.windows.Windowsx64Linker.newVaList:(Ljava/util/function/Consumer;Ljdk/internal/foreign/abi/SharedUtils$Allocator;)Ljdk/incubator/foreign/CLinker$VaList;
            goto 5
         2: .line 300
      StackMap locals:
      StackMap stack:
            aload 0 /* actions */
            aload 1 /* allocator */
            invokestatic jdk.internal.foreign.abi.x64.sysv.SysVx64Linker.newVaList:(Ljava/util/function/Consumer;Ljdk/internal/foreign/abi/SharedUtils$Allocator;)Ljdk/incubator/foreign/CLinker$VaList;
            goto 5
         3: .line 301
      StackMap locals:
      StackMap stack:
            aload 0 /* actions */
            aload 1 /* allocator */
            invokestatic jdk.internal.foreign.abi.aarch64.AArch64Linker.newVaList:(Ljava/util/function/Consumer;Ljdk/internal/foreign/abi/SharedUtils$Allocator;)Ljdk/incubator/foreign/CLinker$VaList;
            goto 5
      StackMap locals:
      StackMap stack:
         4: new java.lang.IncompatibleClassChangeError
            dup
            invokespecial java.lang.IncompatibleClassChangeError.<init>:()V
            athrow
         5: .line 298
      StackMap locals:
      StackMap stack: jdk.incubator.foreign.CLinker$VaList
            areturn
        end local 1 // jdk.internal.foreign.abi.SharedUtils$Allocator allocator
        end local 0 // java.util.function.Consumer actions
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    6     0    actions  Ljava/util/function/Consumer<Ljdk/incubator/foreign/CLinker$VaList$Builder;>;
            0    6     1  allocator  Ljdk/internal/foreign/abi/SharedUtils$Allocator;
    Signature: (Ljava/util/function/Consumer<Ljdk/incubator/foreign/CLinker$VaList$Builder;>;Ljdk/internal/foreign/abi/SharedUtils$Allocator;)Ljdk/incubator/foreign/CLinker$VaList;
    MethodParameters:
           Name  Flags
      actions    
      allocator  

  public static java.lang.invoke.VarHandle vhPrimitiveOrAddress(java.lang.Class<?>, jdk.incubator.foreign.MemoryLayout);
    descriptor: (Ljava/lang/Class;Ljdk/incubator/foreign/MemoryLayout;)Ljava/lang/invoke/VarHandle;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // java.lang.Class carrier
        start local 1 // jdk.incubator.foreign.MemoryLayout layout
         0: .line 306
            aload 0 /* carrier */
            ldc Ljdk/incubator/foreign/MemoryAddress;
            if_acmpne 2
         1: .line 307
            aload 1 /* layout */
            aload 1 /* layout */
            invokeinterface jdk.incubator.foreign.MemoryLayout.byteSize:()J
            invokestatic jdk.internal.foreign.abi.SharedUtils.primitiveCarrierForSize:(J)Ljava/lang/Class;
            iconst_0
            anewarray jdk.incubator.foreign.MemoryLayout$PathElement
            invokeinterface jdk.incubator.foreign.MemoryLayout.varHandle:(Ljava/lang/Class;[Ljdk/incubator/foreign/MemoryLayout$PathElement;)Ljava/lang/invoke/VarHandle;
            invokestatic jdk.incubator.foreign.MemoryHandles.asAddressVarHandle:(Ljava/lang/invoke/VarHandle;)Ljava/lang/invoke/VarHandle;
            goto 3
         2: .line 308
      StackMap locals:
      StackMap stack:
            aload 1 /* layout */
            aload 0 /* carrier */
            iconst_0
            anewarray jdk.incubator.foreign.MemoryLayout$PathElement
            invokeinterface jdk.incubator.foreign.MemoryLayout.varHandle:(Ljava/lang/Class;[Ljdk/incubator/foreign/MemoryLayout$PathElement;)Ljava/lang/invoke/VarHandle;
         3: .line 306
      StackMap locals:
      StackMap stack: java.lang.invoke.VarHandle
            areturn
        end local 1 // jdk.incubator.foreign.MemoryLayout layout
        end local 0 // java.lang.Class carrier
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    4     0  carrier  Ljava/lang/Class<*>;
            0    4     1   layout  Ljdk/incubator/foreign/MemoryLayout;
    Signature: (Ljava/lang/Class<*>;Ljdk/incubator/foreign/MemoryLayout;)Ljava/lang/invoke/VarHandle;
    MethodParameters:
         Name  Flags
      carrier  
      layout   

  public static jdk.incubator.foreign.CLinker$VaList newVaListOfAddress(jdk.incubator.foreign.MemoryAddress);
    descriptor: (Ljdk/incubator/foreign/MemoryAddress;)Ljdk/incubator/foreign/CLinker$VaList;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=1, args_size=1
        start local 0 // jdk.incubator.foreign.MemoryAddress ma
         0: .line 312
            invokestatic jdk.internal.foreign.abi.SharedUtils.$SWITCH_TABLE$jdk$internal$foreign$CABI:()[I
            invokestatic jdk.internal.foreign.CABI.current:()Ljdk/internal/foreign/CABI;
            invokevirtual jdk.internal.foreign.CABI.ordinal:()I
            iaload
            tableswitch { // 1 - 3
                    1: 2
                    2: 1
                    3: 3
              default: 4
          }
         1: .line 313
      StackMap locals:
      StackMap stack:
            aload 0 /* ma */
            invokestatic jdk.internal.foreign.abi.x64.windows.Windowsx64Linker.newVaListOfAddress:(Ljdk/incubator/foreign/MemoryAddress;)Ljdk/incubator/foreign/CLinker$VaList;
            goto 5
         2: .line 314
      StackMap locals:
      StackMap stack:
            aload 0 /* ma */
            invokestatic jdk.internal.foreign.abi.x64.sysv.SysVx64Linker.newVaListOfAddress:(Ljdk/incubator/foreign/MemoryAddress;)Ljdk/incubator/foreign/CLinker$VaList;
            goto 5
         3: .line 315
      StackMap locals:
      StackMap stack:
            aload 0 /* ma */
            invokestatic jdk.internal.foreign.abi.aarch64.AArch64Linker.newVaListOfAddress:(Ljdk/incubator/foreign/MemoryAddress;)Ljdk/incubator/foreign/CLinker$VaList;
            goto 5
      StackMap locals:
      StackMap stack:
         4: new java.lang.IncompatibleClassChangeError
            dup
            invokespecial java.lang.IncompatibleClassChangeError.<init>:()V
            athrow
         5: .line 312
      StackMap locals:
      StackMap stack: jdk.incubator.foreign.CLinker$VaList
            areturn
        end local 0 // jdk.incubator.foreign.MemoryAddress ma
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0    ma  Ljdk/incubator/foreign/MemoryAddress;
    MethodParameters:
      Name  Flags
      ma    

  public static jdk.incubator.foreign.CLinker$VaList emptyVaList();
    descriptor: ()Ljdk/incubator/foreign/CLinker$VaList;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=0, args_size=0
         0: .line 320
            invokestatic jdk.internal.foreign.abi.SharedUtils.$SWITCH_TABLE$jdk$internal$foreign$CABI:()[I
            invokestatic jdk.internal.foreign.CABI.current:()Ljdk/internal/foreign/CABI;
            invokevirtual jdk.internal.foreign.CABI.ordinal:()I
            iaload
            tableswitch { // 1 - 3
                    1: 2
                    2: 1
                    3: 3
              default: 4
          }
         1: .line 321
      StackMap locals:
      StackMap stack:
            invokestatic jdk.internal.foreign.abi.x64.windows.Windowsx64Linker.emptyVaList:()Ljdk/incubator/foreign/CLinker$VaList;
            goto 5
         2: .line 322
      StackMap locals:
      StackMap stack:
            invokestatic jdk.internal.foreign.abi.x64.sysv.SysVx64Linker.emptyVaList:()Ljdk/incubator/foreign/CLinker$VaList;
            goto 5
         3: .line 323
      StackMap locals:
      StackMap stack:
            invokestatic jdk.internal.foreign.abi.aarch64.AArch64Linker.emptyVaList:()Ljdk/incubator/foreign/CLinker$VaList;
            goto 5
      StackMap locals:
      StackMap stack:
         4: new java.lang.IncompatibleClassChangeError
            dup
            invokespecial java.lang.IncompatibleClassChangeError.<init>:()V
            athrow
         5: .line 320
      StackMap locals:
      StackMap stack: jdk.incubator.foreign.CLinker$VaList
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public static java.lang.invoke.MethodType convertVaListCarriers(java.lang.invoke.MethodType, java.lang.Class<?>);
    descriptor: (Ljava/lang/invoke/MethodType;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=5, args_size=2
        start local 0 // java.lang.invoke.MethodType mt
        start local 1 // java.lang.Class carrier
         0: .line 328
            aload 0 /* mt */
            invokevirtual java.lang.invoke.MethodType.parameterCount:()I
            anewarray java.lang.Class
            astore 2 /* params */
        start local 2 // java.lang.Class[] params
         1: .line 329
            iconst_0
            istore 3 /* i */
        start local 3 // int i
         2: goto 8
         3: .line 330
      StackMap locals: java.lang.Class[] int
      StackMap stack:
            aload 0 /* mt */
            iload 3 /* i */
            invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
            astore 4 /* pType */
        start local 4 // java.lang.Class pType
         4: .line 331
            aload 2 /* params */
            iload 3 /* i */
            aload 4 /* pType */
            ldc Ljdk/incubator/foreign/CLinker$VaList;
            if_acmpne 5
            aload 1 /* carrier */
            goto 6
      StackMap locals: java.lang.invoke.MethodType java.lang.Class java.lang.Class[] int java.lang.Class
      StackMap stack: java.lang.Class[] int
         5: aload 4 /* pType */
      StackMap locals: java.lang.invoke.MethodType java.lang.Class java.lang.Class[] int java.lang.Class
      StackMap stack: java.lang.Class[] int java.lang.Class
         6: aastore
        end local 4 // java.lang.Class pType
         7: .line 329
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
         8: iload 3 /* i */
            aload 2 /* params */
            arraylength
            if_icmplt 3
        end local 3 // int i
         9: .line 333
            aload 0 /* mt */
            invokevirtual java.lang.invoke.MethodType.returnType:()Ljava/lang/Class;
            aload 2 /* params */
            invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
            areturn
        end local 2 // java.lang.Class[] params
        end local 1 // java.lang.Class carrier
        end local 0 // java.lang.invoke.MethodType mt
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   10     0       mt  Ljava/lang/invoke/MethodType;
            0   10     1  carrier  Ljava/lang/Class<*>;
            1   10     2   params  [Ljava/lang/Class;
            2    9     3        i  I
            4    7     4    pType  Ljava/lang/Class<*>;
    Signature: (Ljava/lang/invoke/MethodType;Ljava/lang/Class<*>;)Ljava/lang/invoke/MethodType;
    MethodParameters:
         Name  Flags
      mt       
      carrier  

  public static java.lang.invoke.MethodHandle unboxVaLists(java.lang.invoke.MethodType, java.lang.invoke.MethodHandle, java.lang.invoke.MethodHandle);
    descriptor: (Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=4, args_size=3
        start local 0 // java.lang.invoke.MethodType type
        start local 1 // java.lang.invoke.MethodHandle handle
        start local 2 // java.lang.invoke.MethodHandle unboxer
         0: .line 337
            iconst_0
            istore 3 /* i */
        start local 3 // int i
         1: goto 5
         2: .line 338
      StackMap locals: int
      StackMap stack:
            aload 0 /* type */
            iload 3 /* i */
            invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
            ldc Ljdk/incubator/foreign/CLinker$VaList;
            if_acmpne 4
         3: .line 339
            aload 1 /* handle */
            iload 3 /* i */
            iconst_1
            anewarray java.lang.invoke.MethodHandle
            dup
            iconst_0
            aload 2 /* unboxer */
            aastore
            invokestatic java.lang.invoke.MethodHandles.filterArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
            astore 1 /* handle */
         4: .line 337
      StackMap locals:
      StackMap stack:
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
         5: iload 3 /* i */
            aload 0 /* type */
            invokevirtual java.lang.invoke.MethodType.parameterCount:()I
            if_icmplt 2
        end local 3 // int i
         6: .line 342
            aload 1 /* handle */
            areturn
        end local 2 // java.lang.invoke.MethodHandle unboxer
        end local 1 // java.lang.invoke.MethodHandle handle
        end local 0 // java.lang.invoke.MethodType type
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    7     0     type  Ljava/lang/invoke/MethodType;
            0    7     1   handle  Ljava/lang/invoke/MethodHandle;
            0    7     2  unboxer  Ljava/lang/invoke/MethodHandle;
            1    6     3        i  I
    MethodParameters:
         Name  Flags
      type     
      handle   
      unboxer  

  public static java.lang.invoke.MethodHandle boxVaLists(java.lang.invoke.MethodHandle, java.lang.invoke.MethodHandle);
    descriptor: (Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=4, args_size=2
        start local 0 // java.lang.invoke.MethodHandle handle
        start local 1 // java.lang.invoke.MethodHandle boxer
         0: .line 346
            aload 0 /* handle */
            invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
            astore 2 /* type */
        start local 2 // java.lang.invoke.MethodType type
         1: .line 347
            iconst_0
            istore 3 /* i */
        start local 3 // int i
         2: goto 6
         3: .line 348
      StackMap locals: java.lang.invoke.MethodType int
      StackMap stack:
            aload 2 /* type */
            iload 3 /* i */
            invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
            ldc Ljdk/incubator/foreign/CLinker$VaList;
            if_acmpne 5
         4: .line 349
            aload 0 /* handle */
            iload 3 /* i */
            iconst_1
            anewarray java.lang.invoke.MethodHandle
            dup
            iconst_0
            aload 1 /* boxer */
            aastore
            invokestatic java.lang.invoke.MethodHandles.filterArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
            astore 0 /* handle */
         5: .line 347
      StackMap locals:
      StackMap stack:
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
         6: iload 3 /* i */
            aload 2 /* type */
            invokevirtual java.lang.invoke.MethodType.parameterCount:()I
            if_icmplt 3
        end local 3 // int i
         7: .line 352
            aload 0 /* handle */
            areturn
        end local 2 // java.lang.invoke.MethodType type
        end local 1 // java.lang.invoke.MethodHandle boxer
        end local 0 // java.lang.invoke.MethodHandle handle
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    8     0  handle  Ljava/lang/invoke/MethodHandle;
            0    8     1   boxer  Ljava/lang/invoke/MethodHandle;
            1    8     2    type  Ljava/lang/invoke/MethodType;
            2    7     3       i  I
    MethodParameters:
        Name  Flags
      handle  
      boxer   

  static void checkType(java.lang.Class<?>, java.lang.Class<?>);
    descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=7, locals=2, args_size=2
        start local 0 // java.lang.Class actualType
        start local 1 // java.lang.Class expectedType
         0: .line 356
            aload 1 /* expectedType */
            aload 0 /* actualType */
            if_acmpeq 4
         1: .line 357
            new java.lang.IllegalArgumentException
            dup
         2: .line 358
            ldc "Invalid operand type: %s. %s expected"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* actualType */
            aastore
            dup
            iconst_1
            aload 1 /* expectedType */
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
         3: .line 357
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 360
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.Class expectedType
        end local 0 // java.lang.Class actualType
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    5     0    actualType  Ljava/lang/Class<*>;
            0    5     1  expectedType  Ljava/lang/Class<*>;
    Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
    MethodParameters:
              Name  Flags
      actualType    
      expectedType  

  public static boolean isTrivial(jdk.incubator.foreign.FunctionDescriptor);
    descriptor: (Ljdk/incubator/foreign/FunctionDescriptor;)Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.incubator.foreign.FunctionDescriptor cDesc
         0: .line 363
            aload 0 /* cDesc */
            ldc "abi/trivial"
            invokevirtual jdk.incubator.foreign.FunctionDescriptor.attribute:(Ljava/lang/String;)Ljava/util/Optional;
         1: .line 364
            ldc Ljava/lang/Boolean;
            dup
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            pop
            invokedynamic apply(Ljava/lang/Class;)Ljava/util/function/Function;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)Ljava/lang/Object;
                  java/lang/Class.cast(Ljava/lang/Object;)Ljava/lang/Object; (5)
                  (Ljava/lang/constant/Constable;)Ljava/lang/Boolean;
            invokevirtual java.util.Optional.map:(Ljava/util/function/Function;)Ljava/util/Optional;
         2: .line 365
            iconst_0
            invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
            invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Boolean
            invokevirtual java.lang.Boolean.booleanValue:()Z
         3: .line 363
            ireturn
        end local 0 // jdk.incubator.foreign.FunctionDescriptor cDesc
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    4     0  cDesc  Ljdk/incubator/foreign/FunctionDescriptor;
    MethodParameters:
       Name  Flags
      cDesc  

  static void writeOverSized(jdk.incubator.foreign.MemorySegment, java.lang.Class<?>, );
    descriptor: (Ljdk/incubator/foreign/MemorySegment;Ljava/lang/Class;Ljava/lang/Object;)V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=5, locals=3, args_size=3
        start local 0 // jdk.incubator.foreign.MemorySegment ptr
        start local 1 // java.lang.Class type
        start local 2 // java.lang.Object o
         0: .line 492
            aload 1 /* type */
            getstatic java.lang.Long.TYPE:Ljava/lang/Class;
            if_acmpne 3
         1: .line 493
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Long
            invokevirtual java.lang.Long.longValue:()J
            invokestatic jdk.incubator.foreign.MemoryAccess.setLong:(Ljdk/incubator/foreign/MemorySegment;J)V
         2: .line 494
            goto 22
      StackMap locals:
      StackMap stack:
         3: aload 1 /* type */
            getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
            if_acmpne 6
         4: .line 495
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Integer
            invokevirtual java.lang.Integer.intValue:()I
            i2l
            invokestatic jdk.incubator.foreign.MemoryAccess.setLong:(Ljdk/incubator/foreign/MemorySegment;J)V
         5: .line 496
            goto 22
      StackMap locals:
      StackMap stack:
         6: aload 1 /* type */
            getstatic java.lang.Short.TYPE:Ljava/lang/Class;
            if_acmpne 9
         7: .line 497
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Short
            invokevirtual java.lang.Short.shortValue:()S
            i2l
            invokestatic jdk.incubator.foreign.MemoryAccess.setLong:(Ljdk/incubator/foreign/MemorySegment;J)V
         8: .line 498
            goto 22
      StackMap locals:
      StackMap stack:
         9: aload 1 /* type */
            getstatic java.lang.Character.TYPE:Ljava/lang/Class;
            if_acmpne 12
        10: .line 499
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Character
            invokevirtual java.lang.Character.charValue:()C
            i2l
            invokestatic jdk.incubator.foreign.MemoryAccess.setLong:(Ljdk/incubator/foreign/MemorySegment;J)V
        11: .line 500
            goto 22
      StackMap locals:
      StackMap stack:
        12: aload 1 /* type */
            getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
            if_acmpne 15
        13: .line 501
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Byte
            invokevirtual java.lang.Byte.byteValue:()B
            i2l
            invokestatic jdk.incubator.foreign.MemoryAccess.setLong:(Ljdk/incubator/foreign/MemorySegment;J)V
        14: .line 502
            goto 22
      StackMap locals:
      StackMap stack:
        15: aload 1 /* type */
            getstatic java.lang.Float.TYPE:Ljava/lang/Class;
            if_acmpne 18
        16: .line 503
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Float
            invokevirtual java.lang.Float.floatValue:()F
            invokestatic jdk.incubator.foreign.MemoryAccess.setFloat:(Ljdk/incubator/foreign/MemorySegment;F)V
        17: .line 504
            goto 22
      StackMap locals:
      StackMap stack:
        18: aload 1 /* type */
            getstatic java.lang.Double.TYPE:Ljava/lang/Class;
            if_acmpne 21
        19: .line 505
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Double
            invokevirtual java.lang.Double.doubleValue:()D
            invokestatic jdk.incubator.foreign.MemoryAccess.setDouble:(Ljdk/incubator/foreign/MemorySegment;D)V
        20: .line 506
            goto 22
        21: .line 507
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Unsupported carrier: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* type */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        22: .line 509
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.lang.Object o
        end local 1 // java.lang.Class type
        end local 0 // jdk.incubator.foreign.MemorySegment ptr
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   23     0   ptr  Ljdk/incubator/foreign/MemorySegment;
            0   23     1  type  Ljava/lang/Class<*>;
            0   23     2     o  Ljava/lang/Object;
    Signature: (Ljdk/incubator/foreign/MemorySegment;Ljava/lang/Class<*>;Ljava/lang/Object;)V
    MethodParameters:
      Name  Flags
      ptr   
      type  
      o     

  static void write(jdk.incubator.foreign.MemorySegment, java.lang.Class<?>, );
    descriptor: (Ljdk/incubator/foreign/MemorySegment;Ljava/lang/Class;Ljava/lang/Object;)V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=5, locals=3, args_size=3
        start local 0 // jdk.incubator.foreign.MemorySegment ptr
        start local 1 // java.lang.Class type
        start local 2 // java.lang.Object o
         0: .line 512
            aload 1 /* type */
            getstatic java.lang.Long.TYPE:Ljava/lang/Class;
            if_acmpne 3
         1: .line 513
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Long
            invokevirtual java.lang.Long.longValue:()J
            invokestatic jdk.incubator.foreign.MemoryAccess.setLong:(Ljdk/incubator/foreign/MemorySegment;J)V
         2: .line 514
            goto 22
      StackMap locals:
      StackMap stack:
         3: aload 1 /* type */
            getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
            if_acmpne 6
         4: .line 515
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Integer
            invokevirtual java.lang.Integer.intValue:()I
            invokestatic jdk.incubator.foreign.MemoryAccess.setInt:(Ljdk/incubator/foreign/MemorySegment;I)V
         5: .line 516
            goto 22
      StackMap locals:
      StackMap stack:
         6: aload 1 /* type */
            getstatic java.lang.Short.TYPE:Ljava/lang/Class;
            if_acmpne 9
         7: .line 517
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Short
            invokevirtual java.lang.Short.shortValue:()S
            invokestatic jdk.incubator.foreign.MemoryAccess.setShort:(Ljdk/incubator/foreign/MemorySegment;S)V
         8: .line 518
            goto 22
      StackMap locals:
      StackMap stack:
         9: aload 1 /* type */
            getstatic java.lang.Character.TYPE:Ljava/lang/Class;
            if_acmpne 12
        10: .line 519
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Character
            invokevirtual java.lang.Character.charValue:()C
            invokestatic jdk.incubator.foreign.MemoryAccess.setChar:(Ljdk/incubator/foreign/MemorySegment;C)V
        11: .line 520
            goto 22
      StackMap locals:
      StackMap stack:
        12: aload 1 /* type */
            getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
            if_acmpne 15
        13: .line 521
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Byte
            invokevirtual java.lang.Byte.byteValue:()B
            invokestatic jdk.incubator.foreign.MemoryAccess.setByte:(Ljdk/incubator/foreign/MemorySegment;B)V
        14: .line 522
            goto 22
      StackMap locals:
      StackMap stack:
        15: aload 1 /* type */
            getstatic java.lang.Float.TYPE:Ljava/lang/Class;
            if_acmpne 18
        16: .line 523
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Float
            invokevirtual java.lang.Float.floatValue:()F
            invokestatic jdk.incubator.foreign.MemoryAccess.setFloat:(Ljdk/incubator/foreign/MemorySegment;F)V
        17: .line 524
            goto 22
      StackMap locals:
      StackMap stack:
        18: aload 1 /* type */
            getstatic java.lang.Double.TYPE:Ljava/lang/Class;
            if_acmpne 21
        19: .line 525
            aload 0 /* ptr */
            aload 2 /* o */
            checkcast java.lang.Double
            invokevirtual java.lang.Double.doubleValue:()D
            invokestatic jdk.incubator.foreign.MemoryAccess.setDouble:(Ljdk/incubator/foreign/MemorySegment;D)V
        20: .line 526
            goto 22
        21: .line 527
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Unsupported carrier: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* type */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        22: .line 529
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.lang.Object o
        end local 1 // java.lang.Class type
        end local 0 // jdk.incubator.foreign.MemorySegment ptr
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   23     0   ptr  Ljdk/incubator/foreign/MemorySegment;
            0   23     1  type  Ljava/lang/Class<*>;
            0   23     2     o  Ljava/lang/Object;
    Signature: (Ljdk/incubator/foreign/MemorySegment;Ljava/lang/Class<*>;Ljava/lang/Object;)V
    MethodParameters:
      Name  Flags
      ptr   
      type  
      o     

  static  read(jdk.incubator.foreign.MemorySegment, java.lang.Class<?>);
    descriptor: (Ljdk/incubator/foreign/MemorySegment;Ljava/lang/Class;)Ljava/lang/Object;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // jdk.incubator.foreign.MemorySegment ptr
        start local 1 // java.lang.Class type
         0: .line 532
            aload 1 /* type */
            getstatic java.lang.Long.TYPE:Ljava/lang/Class;
            if_acmpne 2
         1: .line 533
            aload 0 /* ptr */
            invokestatic jdk.incubator.foreign.MemoryAccess.getLong:(Ljdk/incubator/foreign/MemorySegment;)J
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            areturn
         2: .line 534
      StackMap locals:
      StackMap stack:
            aload 1 /* type */
            getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
            if_acmpne 4
         3: .line 535
            aload 0 /* ptr */
            invokestatic jdk.incubator.foreign.MemoryAccess.getInt:(Ljdk/incubator/foreign/MemorySegment;)I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            areturn
         4: .line 536
      StackMap locals:
      StackMap stack:
            aload 1 /* type */
            getstatic java.lang.Short.TYPE:Ljava/lang/Class;
            if_acmpne 6
         5: .line 537
            aload 0 /* ptr */
            invokestatic jdk.incubator.foreign.MemoryAccess.getShort:(Ljdk/incubator/foreign/MemorySegment;)S
            invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
            areturn
         6: .line 538
      StackMap locals:
      StackMap stack:
            aload 1 /* type */
            getstatic java.lang.Character.TYPE:Ljava/lang/Class;
            if_acmpne 8
         7: .line 539
            aload 0 /* ptr */
            invokestatic jdk.incubator.foreign.MemoryAccess.getChar:(Ljdk/incubator/foreign/MemorySegment;)C
            invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
            areturn
         8: .line 540
      StackMap locals:
      StackMap stack:
            aload 1 /* type */
            getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
            if_acmpne 10
         9: .line 541
            aload 0 /* ptr */
            invokestatic jdk.incubator.foreign.MemoryAccess.getByte:(Ljdk/incubator/foreign/MemorySegment;)B
            invokestatic java.lang.Byte.valueOf:(B)Ljava/lang/Byte;
            areturn
        10: .line 542
      StackMap locals:
      StackMap stack:
            aload 1 /* type */
            getstatic java.lang.Float.TYPE:Ljava/lang/Class;
            if_acmpne 12
        11: .line 543
            aload 0 /* ptr */
            invokestatic jdk.incubator.foreign.MemoryAccess.getFloat:(Ljdk/incubator/foreign/MemorySegment;)F
            invokestatic java.lang.Float.valueOf:(F)Ljava/lang/Float;
            areturn
        12: .line 544
      StackMap locals:
      StackMap stack:
            aload 1 /* type */
            getstatic java.lang.Double.TYPE:Ljava/lang/Class;
            if_acmpne 14
        13: .line 545
            aload 0 /* ptr */
            invokestatic jdk.incubator.foreign.MemoryAccess.getDouble:(Ljdk/incubator/foreign/MemorySegment;)D
            invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
            areturn
        14: .line 547
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Unsupported carrier: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* type */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        end local 1 // java.lang.Class type
        end local 0 // jdk.incubator.foreign.MemorySegment ptr
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   15     0   ptr  Ljdk/incubator/foreign/MemorySegment;
            0   15     1  type  Ljava/lang/Class<*>;
    Signature: (Ljdk/incubator/foreign/MemorySegment;Ljava/lang/Class<*>;)Ljava/lang/Object;
    MethodParameters:
      Name  Flags
      ptr   
      type  

  static int[] $SWITCH_TABLE$jdk$internal$foreign$CABI();
    descriptor: ()[I
    flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=3, locals=1, args_size=0
         0: .line 62
            getstatic jdk.internal.foreign.abi.SharedUtils.$SWITCH_TABLE$jdk$internal$foreign$CABI:[I
            dup
            ifnull 1
            areturn
      StackMap locals:
      StackMap stack: int[]
         1: pop
            invokestatic jdk.internal.foreign.CABI.values:()[Ljdk/internal/foreign/CABI;
            arraylength
            newarray 10
            astore 0
         2: aload 0
            getstatic jdk.internal.foreign.CABI.AArch64:Ljdk/internal/foreign/CABI;
            invokevirtual jdk.internal.foreign.CABI.ordinal:()I
            iconst_3
            iastore
         3: goto 5
      StackMap locals: int[]
      StackMap stack: java.lang.NoSuchFieldError
         4: pop
      StackMap locals:
      StackMap stack:
         5: aload 0
            getstatic jdk.internal.foreign.CABI.SysV:Ljdk/internal/foreign/CABI;
            invokevirtual jdk.internal.foreign.CABI.ordinal:()I
            iconst_1
            iastore
         6: goto 8
      StackMap locals:
      StackMap stack: java.lang.NoSuchFieldError
         7: pop
      StackMap locals:
      StackMap stack:
         8: aload 0
            getstatic jdk.internal.foreign.CABI.Win64:Ljdk/internal/foreign/CABI;
            invokevirtual jdk.internal.foreign.CABI.ordinal:()I
            iconst_2
            iastore
         9: goto 11
      StackMap locals:
      StackMap stack: java.lang.NoSuchFieldError
        10: pop
      StackMap locals:
      StackMap stack:
        11: aload 0
            dup
            putstatic jdk.internal.foreign.abi.SharedUtils.$SWITCH_TABLE$jdk$internal$foreign$CABI:[I
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature
      Exception table:
        from    to  target  type
           2     3       4  Class java.lang.NoSuchFieldError
           5     6       7  Class java.lang.NoSuchFieldError
           8     9      10  Class java.lang.NoSuchFieldError

  private static long lambda$1(jdk.incubator.foreign.MemoryLayout);
    descriptor: (Ljdk/incubator/foreign/MemoryLayout;)J
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.incubator.foreign.MemoryLayout t
         0: .line 140
            aload 0 /* t */
            iconst_0
            invokestatic jdk.internal.foreign.abi.SharedUtils.alignment:(Ljdk/incubator/foreign/MemoryLayout;Z)J
            lreturn
        end local 0 // jdk.incubator.foreign.MemoryLayout t
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0     t  Ljdk/incubator/foreign/MemoryLayout;

  private static void lambda$2(java.lang.invoke.MethodType, long, jdk.incubator.foreign.MemoryLayout);
    descriptor: (Ljava/lang/invoke/MethodType;JLjdk/incubator/foreign/MemoryLayout;)V
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=4, locals=4, args_size=3
        start local 3 // jdk.incubator.foreign.MemoryLayout rl
         0: .line 223
            aload 0
            invokevirtual java.lang.invoke.MethodType.returnType:()Ljava/lang/Class;
            aload 3 /* rl */
            lload 1
            invokestatic jdk.internal.foreign.abi.SharedUtils.checkCompatibleType:(Ljava/lang/Class;Ljdk/incubator/foreign/MemoryLayout;J)V
            return
        end local 3 // jdk.incubator.foreign.MemoryLayout rl
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     3    rl  Ljdk/incubator/foreign/MemoryLayout;
}
SourceFile: "SharedUtils.java"
NestMembers:
  jdk.internal.foreign.abi.SharedUtils$AllocHolder  jdk.internal.foreign.abi.SharedUtils$Allocator  jdk.internal.foreign.abi.SharedUtils$Allocator$1  jdk.internal.foreign.abi.SharedUtils$EmptyVaList  jdk.internal.foreign.abi.SharedUtils$SimpleVaArg
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public abstract VaList = jdk.incubator.foreign.CLinker$VaList of jdk.incubator.foreign.CLinker
  public abstract Builder = jdk.incubator.foreign.CLinker$VaList$Builder of jdk.incubator.foreign.CLinker$VaList
  public abstract PathElement = jdk.incubator.foreign.MemoryLayout$PathElement of jdk.incubator.foreign.MemoryLayout
  private AllocHolder = jdk.internal.foreign.abi.SharedUtils$AllocHolder of jdk.internal.foreign.abi.SharedUtils
  public abstract Allocator = jdk.internal.foreign.abi.SharedUtils$Allocator of jdk.internal.foreign.abi.SharedUtils
  public EmptyVaList = jdk.internal.foreign.abi.SharedUtils$EmptyVaList of jdk.internal.foreign.abi.SharedUtils
  public SimpleVaArg = jdk.internal.foreign.abi.SharedUtils$SimpleVaArg of jdk.internal.foreign.abi.SharedUtils