public class org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature implements org.graalvm.nativeimage.hosted.Feature
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature
  super_class: java.lang.Object
{
  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature this
         0: .line 46
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/polyglot/nativeapi/PolyglotNativeAPIFeature;

  public void afterRegistration(org.graalvm.nativeimage.hosted.Feature$AfterRegistrationAccess);
    descriptor: (Lorg/graalvm/nativeimage/hosted/Feature$AfterRegistrationAccess;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature this
        start local 1 // org.graalvm.nativeimage.hosted.Feature$AfterRegistrationAccess access
         0: .line 50
            invokestatic com.oracle.svm.hosted.NativeImageOptions.getCStandard:()Lcom/oracle/svm/hosted/NativeImageOptions$CStandards;
            getstatic com.oracle.svm.hosted.NativeImageOptions$CStandards.C11:Lcom/oracle/svm/hosted/NativeImageOptions$CStandards;
            invokevirtual com.oracle.svm.hosted.NativeImageOptions$CStandards.compatibleWith:(Lcom/oracle/svm/hosted/NativeImageOptions$CStandards;)Z
            ifne 2
         1: .line 51
            ldc "Polyglot native API supports only the C11 standard. Pass -H:CStandard=C11 on the command line to make the build work."
            iconst_0
            anewarray java.lang.Object
            invokestatic com.oracle.svm.core.util.UserError.abort:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/oracle/svm/core/util/UserError$UserException;
            athrow
         2: .line 53
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.graalvm.nativeimage.hosted.Feature$AfterRegistrationAccess access
        end local 0 // org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    3     0    this  Lorg/graalvm/polyglot/nativeapi/PolyglotNativeAPIFeature;
            0    3     1  access  Lorg/graalvm/nativeimage/hosted/Feature$AfterRegistrationAccess;
    MethodParameters:
        Name  Flags
      access  

  public void afterImageWrite(org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess);
    descriptor: (Lorg/graalvm/nativeimage/hosted/Feature$AfterImageWriteAccess;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=9, args_size=2
        start local 0 // org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature this
        start local 1 // org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess access
         0: .line 57
            ldc "polyglot_types.h"
            invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
            astore 2 /* headerFiles */
        start local 2 // java.util.List headerFiles
         1: .line 58
            aload 1 /* access */
            invokeinterface org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess.getImagePath:()Ljava/nio/file/Path;
            astore 3 /* imagePath */
        start local 3 // java.nio.file.Path imagePath
         2: .line 59
            aload 2 /* headerFiles */
            aload 3 /* imagePath */
            invokedynamic accept(Ljava/nio/file/Path;)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
                  org/graalvm/polyglot/nativeapi/PolyglotNativeAPIFeature.lambda$0(Ljava/nio/file/Path;Ljava/lang/String;)V (6)
                  (Ljava/lang/String;)V
            invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
         3: .line 68
            ldc Lorg/graalvm/nativeimage/Platform$DARWIN;
            invokestatic org.graalvm.nativeimage.Platform.includedIn:(Ljava/lang/Class;)Z
            ifeq 28
         4: .line 70
            ldc "org.graalvm.polyglot.install_name_id"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 4 /* id */
        start local 4 // java.lang.String id
         5: .line 71
            aload 4 /* id */
            ifnonnull 11
         6: .line 73
            ldc "Warning: no id passed through `org.graalvm.polyglot.install_name_id`:\n%s might include its absolute path as id (see man install_name_tool)"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
         7: .line 74
            aload 3 /* imagePath */
            aastore
         8: .line 73
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            astore 5 /* msg */
        start local 5 // java.lang.String msg
         9: .line 75
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            aload 5 /* msg */
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        end local 5 // java.lang.String msg
        10: .line 77
            goto 28
        11: .line 78
      StackMap locals: java.util.List java.nio.file.Path java.lang.String
      StackMap stack:
            iconst_4
            anewarray java.lang.String
            dup
            iconst_0
            ldc "install_name_tool"
            aastore
            dup
            iconst_1
            ldc "-id"
            aastore
            dup
            iconst_2
            aload 4 /* id */
            aastore
            dup
            iconst_3
            aload 3 /* imagePath */
            invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
            aastore
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            astore 5 /* command */
        start local 5 // java.util.List command
        12: .line 79
            aconst_null
            astore 6 /* installToolProcess */
        start local 6 // java.lang.Process installToolProcess
        13: .line 81
            aload 5 /* command */
            invokestatic com.oracle.svm.hosted.c.util.FileUtils.executeCommand:(Ljava/util/List;)Ljava/lang/Process;
            astore 6 /* installToolProcess */
        14: .line 82
            aload 6 /* installToolProcess */
            invokevirtual java.lang.Process.exitValue:()I
            istore 7 /* exitCode */
        start local 7 // int exitCode
        15: .line 83
            iload 7 /* exitCode */
            ifeq 26
        16: .line 85
            getstatic java.lang.System.err:Ljava/io/PrintStream;
            ldc "Failed to set `id` install name. install_name_tool exited with code %d"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            iload 7 /* exitCode */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        end local 7 // int exitCode
        17: .line 88
            goto 26
      StackMap locals: org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess java.util.List java.nio.file.Path java.lang.String java.util.List java.lang.Process
      StackMap stack: java.io.IOException
        18: astore 7 /* e */
        start local 7 // java.io.IOException e
        19: .line 89
            new java.lang.RuntimeException
            dup
            aload 7 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 7 // java.io.IOException e
        20: .line 90
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
            pop
        21: .line 91
            new com.oracle.svm.core.util.InterruptImageBuilding
            dup
            new java.lang.StringBuilder
            dup
            ldc "Interrupted in call to: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc " "
            aload 5 /* command */
            invokestatic java.lang.String.join:(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial com.oracle.svm.core.util.InterruptImageBuilding.<init>:(Ljava/lang/String;)V
            athrow
        22: .line 92
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 8
        23: .line 93
            aload 6 /* installToolProcess */
            ifnull 25
        24: .line 94
            aload 6 /* installToolProcess */
            invokevirtual java.lang.Process.destroy:()V
        25: .line 96
      StackMap locals: org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess java.util.List java.nio.file.Path java.lang.String java.util.List java.lang.Process top java.lang.Throwable
      StackMap stack:
            aload 8
            athrow
        26: .line 93
      StackMap locals: org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess java.util.List java.nio.file.Path java.lang.String java.util.List java.lang.Process
      StackMap stack:
            aload 6 /* installToolProcess */
            ifnull 28
        27: .line 94
            aload 6 /* installToolProcess */
            invokevirtual java.lang.Process.destroy:()V
        end local 6 // java.lang.Process installToolProcess
        end local 5 // java.util.List command
        end local 4 // java.lang.String id
        28: .line 99
      StackMap locals:
      StackMap stack:
            return
        end local 3 // java.nio.file.Path imagePath
        end local 2 // java.util.List headerFiles
        end local 1 // org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess access
        end local 0 // org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature this
      LocalVariableTable:
        Start  End  Slot                Name  Signature
            0   29     0                this  Lorg/graalvm/polyglot/nativeapi/PolyglotNativeAPIFeature;
            0   29     1              access  Lorg/graalvm/nativeimage/hosted/Feature$AfterImageWriteAccess;
            1   29     2         headerFiles  Ljava/util/List<Ljava/lang/String;>;
            2   29     3           imagePath  Ljava/nio/file/Path;
            5   28     4                  id  Ljava/lang/String;
            9   10     5                 msg  Ljava/lang/String;
           12   28     5             command  Ljava/util/List<Ljava/lang/String;>;
           13   28     6  installToolProcess  Ljava/lang/Process;
           15   17     7            exitCode  I
           19   20     7                   e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          13    17      18  Class java.io.IOException
          13    17      20  Class java.lang.InterruptedException
          13    22      22  any
    MethodParameters:
        Name  Flags
      access  

  private static void lambda$0(java.nio.file.Path, java.lang.String);
    descriptor: (Ljava/nio/file/Path;Ljava/lang/String;)V
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=6, locals=5, args_size=2
        start local 1 // java.lang.String headerFile
         0: .line 60
            ldc "org.graalvm.polyglot.nativeapi.libraryPath"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            iconst_1
            anewarray java.lang.String
            dup
            iconst_0
            aload 1 /* headerFile */
            aastore
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            astore 2 /* source */
        start local 2 // java.nio.file.Path source
         1: .line 61
            aload 0
            invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
            aload 1 /* headerFile */
            invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
            astore 3 /* destination */
        start local 3 // java.nio.file.Path destination
         2: .line 63
            aload 2 /* source */
            aload 3 /* destination */
            iconst_1
            anewarray java.nio.file.CopyOption
            dup
            iconst_0
            getstatic java.nio.file.StandardCopyOption.REPLACE_EXISTING:Ljava/nio/file/StandardCopyOption;
            aastore
            invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
            pop
         3: .line 64
            goto 6
      StackMap locals: java.nio.file.Path java.lang.String java.nio.file.Path java.nio.file.Path
      StackMap stack: java.io.IOException
         4: astore 4 /* e */
        start local 4 // java.io.IOException e
         5: .line 65
            new java.lang.RuntimeException
            dup
            aload 4 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 4 // java.io.IOException e
        end local 3 // java.nio.file.Path destination
        end local 2 // java.nio.file.Path source
         6: .line 67
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.String headerFile
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    7     1   headerFile  Ljava/lang/String;
            1    6     2       source  Ljava/nio/file/Path;
            2    6     3  destination  Ljava/nio/file/Path;
            5    6     4            e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           2     3       4  Class java.io.IOException
}
SourceFile: "PolyglotNativeAPIFeature.java"
InnerClasses:
  public UserException = com.oracle.svm.core.util.UserError$UserException of com.oracle.svm.core.util.UserError
  public final CStandards = com.oracle.svm.hosted.NativeImageOptions$CStandards of com.oracle.svm.hosted.NativeImageOptions
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public abstract DARWIN = org.graalvm.nativeimage.Platform$DARWIN of org.graalvm.nativeimage.Platform
  public abstract AfterImageWriteAccess = org.graalvm.nativeimage.hosted.Feature$AfterImageWriteAccess of org.graalvm.nativeimage.hosted.Feature
  public abstract AfterRegistrationAccess = org.graalvm.nativeimage.hosted.Feature$AfterRegistrationAccess of org.graalvm.nativeimage.hosted.Feature