//
// cocos2d::CCConfiguration::getBool from 0xd21390 to 0xd21500 (368 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::setDefaultValues @ 0xd4893c
// > cocos2d::CCDirector::setDefaultValues @ 0xd489d4
// > ??> @ 0x66dd8
//
// 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:07:11 +0000
//
__int64 __fastcall cocos2d::CCConfiguration::getBool(
cocos2d::CCConfiguration *this,
const char *a2,
unsigned __int8 a3)
{
unsigned int v3; // w22
__int64 v4; // x24
size_t v5; // x0
size_t v6; // x19
const char *v7; // x1
char *v8; // x3
const void *v9; // x19
unsigned __int8 *v10; // x0
unsigned __int64 v12; // x0
__int64 v13; // x21
char *v14; // x0
cocos2d::CCString *v15; // x0
__int64 v17; // [xsp+50h] [xbp+50h] BYREF
size_t v18; // [xsp+58h] [xbp+58h]
void *v19; // [xsp+60h] [xbp+60h]
v3 = a3;
v17 = 0;
v4 = *((_QWORD *)this + 11);
v18 = 0;
v19 = nullptr;
v5 = strlen(a2);
v6 = v5;
v7 = a2;
if ( v5 > 0x16 )
{
v12 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v13 = v12 | 1;
v14 = (char *)operator new(v12);
v17 = v13;
v7 = a2;
v8 = v14;
v19 = v14;
v18 = v6;
}
else
{
LOBYTE(v17) = 2 * v5;
v8 = (char *)&v17 + 1;
if ( !v5 )
{
BYTE1(v17) = 0;
v9 = (const void *)cocos2d::CCDictionary::objectForKey(v4, &v17);
if ( (v17 & 1) == 0 )
goto LABEL_4;
LABEL_10:
operator delete(v19);
if ( !v9 )
return v3;
goto LABEL_5;
}
}
*((_BYTE *)memcpy(v8, v7, v6) + v6) = 0;
v9 = (const void *)cocos2d::CCDictionary::objectForKey(v4, &v17);
if ( (v17 & 1) != 0 )
goto LABEL_10;
LABEL_4:
if ( !v9 )
return v3;
LABEL_5:
v10 = (unsigned __int8 *)_dynamic_cast(
v9,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCBool,
0);
if ( !v10 )
{
v15 = (cocos2d::CCString *)_dynamic_cast(
v9,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0);
if ( v15 )
return (unsigned __int8)cocos2d::CCString::boolValue(v15);
return v3;
}
return v10[56];
}