//
// cocos2d::CCConfiguration::getBool from 0x100519f10 to 0x10051a02e (286 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::setDefaultValues @ 0x1004828a6
// > cocos2d::CCDirector::setDefaultValues @ 0x100482989
//
// 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
//
bool __fastcall cocos2d::CCConfiguration::getBool(cocos2d::CCConfiguration *a1, const char *a2, bool a3)
{
double v3; // xmm0_8
__int64 v5; // r14
size_t v6; // rax
size_t v7; // r12
char *v8; // r13
bool v9; // r14
size_t v10; // rbx
const void *v11; // r14
_BYTE *v12; // rax
cocos2d::CCString *v13; // rax
__int64 v15; // [rsp+8h] [rbp-48h]
_QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF
void *__p; // [rsp+20h] [rbp-30h]
v5 = *(_QWORD *)&a1[1].m_uIndexInArray;
v6 = strlen(a2);
if ( v6 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(v3);
v7 = v6;
if ( v6 >= 0x17 )
{
v15 = *(_QWORD *)&a1[1].m_uIndexInArray;
v9 = a3;
v10 = 26;
if ( (v6 | 7) != 0x17 )
v10 = (v6 | 7) + 1;
v8 = (char *)operator new(v10);
__p = v8;
__dst[0] = v10 + 1;
a3 = v9;
v5 = v15;
__dst[1] = v7;
goto LABEL_8;
}
LOBYTE(__dst[0]) = 2 * v6;
v8 = (char *)__dst + 1;
if ( v6 )
LABEL_8:
memcpy(v8, a2, v7);
v8[v7] = 0;
v11 = (const void *)cocos2d::CCDictionary::objectForKey_1(v5, (char *)__dst);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
if ( v11 )
{
v12 = __dynamic_cast(
v11,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCBool,
0);
if ( v12 )
{
return v12[56];
}
else
{
v13 = (cocos2d::CCString *)__dynamic_cast(
v11,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0);
if ( v13 )
return cocos2d::CCString::boolValue(v13);
}
}
return a3;
}