//
// cocos2d::CCConfiguration::getCString from 0xab0290 to 0xab038c (252 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::setDefaultValues @ 0xad5d2c
// > cocos2d::CCDirector::setDefaultValues @ 0xad5d60
// > ??> @ 0x92370
//
// 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
//
const char *cocos2d::CCConfiguration::getCString(cocos2d::CCConfiguration *a1, const char *a2, const char *a3)
{
cocos2d::CCDictionary *v3; // x22
const void *v5; // x22
char *v6; // x0
cocos2d::CCString *v7; // x0
unsigned int *v9; // x1
int v10; // w2
std::string v11; // [xsp+40h] [xbp+40h] BYREF
v3 = *(cocos2d::CCDictionary **)&a1[1].m_uIndexInArray;
sub_D153B8((int)&v11, (char *)a2);
v5 = (const void *)cocos2d::CCDictionary::objectForKey(v3, &v11);
v6 = (char *)v11.m_data.m_data - 24;
if ( (__int64 *)v11.m_data.m_data - 3 == &qword_124B6B0 )
goto LABEL_2;
if ( &pthread_create )
{
v9 = (unsigned int *)((char *)v11.m_data.m_data - 8);
do
v10 = __ldaxr(v9);
while ( __stlxr(v10 - 1, v9) );
}
else
{
v10 = *((_DWORD *)v11.m_data.m_data - 2);
*((_DWORD *)v11.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 = (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 ( !v7 )
return a3;
return cocos2d::CCString::getCString(v7);
}