//
// JNI_OnLoad from 0xbfc24 to 0xbfc62 (62 bytes)
//
// 0 xrefs:
//
// 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; // r0
int v4; // [sp+4h] [bp-Ch] BYREF
v4 = 0;
if ( (*vm)->GetEnv(vm, (void **)&v4, 65542) )
return -1;
result = sub_BFC6C(v4, 0, 0);
if ( !result )
{
*(int *)((char *)&dword_158 + (_DWORD)off_E8000) = (int)vm;
return 65542;
}
return result;
}