//
// cocos2d::CCFileUtils::loadFilenameLookupDictionaryFromFile from 0x5de9c8 to 0x5dea80 (184 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::CCFileUtils::loadFilenameLookupDictionaryFromFile(cocos2d::CCFileUtils *a1, const char *a2)
{
cocos2d::CCDictionary *v3; // r7
int v4; // r10
cocos2d::CCString *v5; // r0
int v6; // r10
const unsigned __int8 *(__fastcall *fullPathFromRelativeFile)(cocos2d::CCFileUtils *__hidden, const unsigned __int8 *, const unsigned __int8 *); // r9
int v8; // r0
cocos2d::CCDictionary *v9; // [sp+4h] [bp-Ch] BYREF
const char *v10; // [sp+8h] [bp-8h] BYREF
v9 = (cocos2d::CCDictionary *)a2;
((void (__fastcall *)(cocos2d::CCDictionary **, cocos2d::CCFileUtils *, const char *, _DWORD, cocos2d::CCFileUtils *))a1->createCCArrayWithContentsOfFile)(
&v9,
a1,
a2,
0,
a1);
if ( v9[-1].m_unknown5 )
{
v3 = cocos2d::CCDictionary::createWithContentsOfFile((const char *)v9);
if ( v3 )
{
sub_776584((int)&v10, "metadata");
v4 = cocos2d::CCDictionary::objectForKey((int)v3, &v10);
sub_774008(&v10);
sub_776584((int)&v10, "version");
v5 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v4, &v10);
v6 = cocos2d::CCString::intValue(v5);
sub_774008(&v10);
if ( v6 == 1 )
{
fullPathFromRelativeFile = a1->fullPathFromRelativeFile;
sub_776584((int)&v10, "filenames");
v8 = cocos2d::CCDictionary::objectForKey((int)v3, &v10);
((void (__fastcall *)(cocos2d::CCFileUtils *, int))fullPathFromRelativeFile)(a1, v8);
sub_774008(&v10);
}
}
}
sub_774008(&v9);
}