//
// getBoolForKeyJNI from 0xd7f79c to 0xd7f888 (236 bytes)
//
// 2 xrefs:
// > cocos2d::CCUserDefault::getBoolForKey @ 0xd907f0
// > ??> @ 0x528d0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:08:09 +0000
//
__int64 __fastcall getBoolForKeyJNI(const char *a1, unsigned __int8 a2)
{
unsigned int v2; // w20
__int64 v4; // x21
int v5; // w20
__int64 v7; // [xsp+30h] [xbp+30h] BYREF
__int64 v8; // [xsp+38h] [xbp+38h]
__int64 v9; // [xsp+40h] [xbp+40h]
v2 = a2;
if ( (unsigned __int8)cocos2d::JniHelper::getStaticMethodInfo(
&v7,
"org/cocos2dx/lib/Cocos2dxHelper",
"getBoolForKey",
"(Ljava/lang/String;Z)Z") )
{
v4 = (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v7 + 1336LL))(v7, a1);
v5 = (unsigned __int8)_JNIEnv::CallStaticBooleanMethod(v7, v8, v9, v4, v2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 184LL))(v7, v8);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 184LL))(v7, v4);
return v5 != 0;
}
return v2;
}