private static boolean matchesWindowsNativeArch() {
    try {
      if (JnaLoader.isLoaded()) {
        WinBase.SYSTEM_INFO systemInfo = new WinBase.SYSTEM_INFO();
        Kernel32.INSTANCE.GetNativeSystemInfo(systemInfo);
        int arch = systemInfo.processorArchitecture.dwOemID.getLow().intValue();
        if (arch == 0) return CURRENT == X86;
        if (arch == 9) return CURRENT == X86_64;
        if (arch == 12) return CURRENT == ARM64;
      }
    }
    catch (Throwable t) {
      Logger.getInstance(CpuArch.class).error(t);
    }

    return true;
  }
private static boolean matchesWindowsNativeArch()