//
// cocos2d::CCConfiguration::getBool from 0x1003c2dd0 to 0x1003c2e78 (168 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::setDefaultValues @ 0x10020676c
// > cocos2d::CCDirector::setDefaultValues @ 0x10020685c
//
// 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 11:04:03 +0000
//
__int64 __fastcall cocos2d::CCConfiguration::getBool(__int64 a1, char *a2, char a3)
{
__int64 v4; // x20
const void *v5; // x20
_BYTE *v6; // x0
void *v7; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v10; // [xsp+1Fh] [xbp-11h]
v4 = *(_QWORD *)(a1 + 88);
sub_100009900(__p, a2);
v5 = (const void *)cocos2d::CCDictionary::objectForKey(v4, __p);
if ( v10 < 0 )
operator delete(__p[0]);
if ( v5 )
{
v6 = __dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&off_1009483C0,
0);
if ( v6 )
{
a3 = v6[56];
}
else
{
v7 = __dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0);
if ( v7 )
a3 = cocos2d::CCString::boolValue((__int64)v7);
}
}
return a3 & 1;
}