//
// cocos2d::CCConfiguration::getBool from 0xab038c to 0xab04b4 (296 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::setDefaultValues @ 0xad5d14
// > cocos2d::CCDirector::setDefaultValues @ 0xad5dac
// > ??> @ 0x48cf0
//
// 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 cocos2d::CCConfiguration::getBool(cocos2d::CCConfiguration *a1, const char *a2, bool a3)
{
cocos2d::CCDictionary *v3; // x22
const void *v5; // x22
char *v6; // x0
_BYTE *v7; // x0
unsigned int *v9; // x1
int v10; // w2
cocos2d::CCString *v11; // x0
std::string v12; // [xsp+40h] [xbp+40h] BYREF
v3 = *(cocos2d::CCDictionary **)&a1[1].m_uIndexInArray;
sub_D153B8((int)&v12, (char *)a2);
v5 = (const void *)cocos2d::CCDictionary::objectForKey(v3, &v12);
v6 = (char *)v12.m_data.m_data - 24;
if ( (__int64 *)v12.m_data.m_data - 3 == &qword_124B6B0 )
goto LABEL_2;
if ( &pthread_create )
{
v9 = (unsigned int *)((char *)v12.m_data.m_data - 8);
do
v10 = __ldaxr(v9);
while ( __stlxr(v10 - 1, v9) );
}
else
{
v10 = *((_DWORD *)v12.m_data.m_data - 2);
*((_DWORD *)v12.m_data.m_data - 2) = v10 - 1;
}
if ( v10 > 0 )
{
LABEL_2:
if ( !v5 )
return a3;
}
else
{
operator delete(v6);
if ( !v5 )
return a3;
}
v7 = _dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCBool,
0);
if ( v7 )
return v7[56];
v11 = (cocos2d::CCString *)_dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0);
if ( !v11 )
return a3;
return cocos2d::CCString::boolValue(v11);
}