//
// cocos2d::CCConfiguration::loadConfigFile from 0x5adff0 to 0x5ae142 (338 bytes)
//
// 0 xrefs:
//
// 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
//
void cocos2d::CCConfiguration::loadConfigFile(cocos2d::CCConfiguration *a1, const char *a2)
{
cocos2d::CCDictionary *v3; // r11
cocos2d::CCDictionary *v4; // r10
cocos2d::CCString *v5; // r10
_DWORD *v6; // r8
int v7; // r5
int v8; // r7
cocos2d::CCDictionary *m_uIndexInArray; // r10
int v10; // r10
int v11; // r11
cocos2d::CCObject *v12; // r10
int v13; // r3
cocos2d::CCDirector *v14; // r0
std::string v15; // [sp+8h] [bp-Ch] BYREF
v3 = cocos2d::CCDictionary::createWithContentsOfFile(a2);
sub_776584((int)&v15, "metadata");
v4 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v3, &v15);
sub_774008(&v15);
if ( v4 )
{
if ( _dynamic_cast(
v4,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary,
0) )
{
sub_776584((int)&v15, "format");
v5 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v4, &v15);
sub_774008(&v15);
if ( v5 )
{
if ( _dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0) )
{
if ( cocos2d::CCString::intValue(v5) == 1 )
{
sub_776584((int)&v15, "data");
v6 = (_DWORD *)cocos2d::CCDictionary::objectForKey(v3, &v15);
sub_774008(&v15);
if ( v6 )
{
if ( _dynamic_cast(
v6,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary,
0) )
{
v7 = v6[13];
if ( v7 )
v8 = *(_DWORD *)(v7 + 272);
else
v8 = 0;
while ( v7 )
{
m_uIndexInArray = (cocos2d::CCDictionary *)a1[1].m_uIndexInArray;
sub_776584((int)&v15, (char *)v7);
v10 = cocos2d::CCDictionary::objectForKey(m_uIndexInArray, &v15);
sub_774008(&v15);
if ( !v10 )
{
v11 = a1[1].m_uIndexInArray;
v12 = *(cocos2d::CCObject **)(v7 + 260);
sub_776584((int)&v15, (char *)v7);
cocos2d::CCDictionary::setObject(v11, v12);
sub_774008(&v15);
}
if ( v8 )
v13 = *(_DWORD *)(v8 + 272);
else
v13 = 0;
v7 = v8;
v8 = v13;
}
v14 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::setDefaultValues(v14);
}
}
}
}
}
}
}
}