//
// JNI_OnLoad from 0xe6320 to 0xe638c (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x1240
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
jint JNI_OnLoad(JavaVM *vm, void *reserved)
{
jint result; // w0
__int64 v4; // x8
__int64 v5; // [xsp+8h] [xbp-8h] BYREF
v5 = 0;
if ( (*vm)->GetEnv(vm, (void **)&v5, 65542) )
return -1;
result = sub_E638C(v5, 0, 0);
if ( !result )
{
sub_E6934();
*(_QWORD *)(*(_QWORD *)v4 + 456LL) = vm;
return 65542;
}
return result;
}