@SuppressWarnings("resource")
protected static void loadNativeLibrary() {
      String var0 = "JNativeHook";

      try {
         System.loadLibrary(var0);
      } catch (UnsatisfiedLinkError var13) {
         try {
            String var2 = "/org/jnativehook/lib/" + NativeSystem.getFamily() + "/" + NativeSystem.getArchitecture() + "/";
            String var3 = System.mapLibraryName(var0);
            var3 = var3.replaceAll("\\.jnilib$", "\\.dylib");
            int var4 = var3.lastIndexOf(46);
            String var5 = var3.substring(0, var4) + '_';
            String var6 = var3.substring(var4);
            File var7 = File.createTempFile(var5, var6);
            FileOutputStream var8 = new FileOutputStream(var7);
            byte[] var9 = new byte[4096];
            InputStream var10 = GlobalScreen.class.getResourceAsStream(var2.toLowerCase() + var3);
            if(var10 == null) {
               throw new IOException("Unable to locate the native library.");
            }

            int var11;
            while((var11 = var10.read(var9)) != -1) {
               var8.write(var9, 0, var11);
            }

            var8.close();
            var10.close();
            var7.deleteOnExit();
            System.load(var7.getPath());
         } catch (IOException var12) {
            throw new RuntimeException(var12.getMessage());
         }
      }

   }