//
// cocos2d::CCFileUtils::loadFilenameLookupDictionaryFromFile from 0x10042b3d0 to 0x10042b4f7 (295 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b41df8
// > ??> @ 0x100b93f38
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:30:19 +0000
//
void __fastcall cocos2d::CCFileUtils::loadFilenameLookupDictionaryFromFile(__int64 a1, __int64 a2)
{
char *v3; // rdi
__int64 v4; // r14
__int64 v5; // r15
__int64 v6; // rax
int v7; // r15d
__int64 v8; // rax
char v9; // [rsp+8h] [rbp-48h] BYREF
char v10; // [rsp+9h] [rbp-47h] BYREF
__int64 v11; // [rsp+10h] [rbp-40h]
void *v12; // [rsp+18h] [rbp-38h]
char v13; // [rsp+20h] [rbp-30h] BYREF
char v14[15]; // [rsp+21h] [rbp-2Fh] BYREF
void *__p; // [rsp+30h] [rbp-20h]
(*(void (__fastcall **)(char *, __int64, __int64, _QWORD))(*(_QWORD *)a1 + 48LL))(&v9, a1, a2, 0);
if ( (v9 & 1) != 0 )
{
if ( !v11 )
goto LABEL_14;
v3 = (char *)v12;
}
else
{
if ( !v9 )
goto LABEL_14;
v3 = &v10;
}
v4 = cocos2d::CCDictionary::createWithContentsOfFile(v3);
if ( v4 )
{
v13 = 16;
strcpy(v14, "metadata");
v5 = cocos2d::CCDictionary::objectForKey(v4, &v13);
if ( (v13 & 1) != 0 )
operator delete(__p);
v13 = 14;
strcpy(v14, "version");
v6 = cocos2d::CCDictionary::objectForKey(v5, &v13);
v7 = cocos2d::CCString::intValue(v6);
if ( (v13 & 1) != 0 )
operator delete(__p);
if ( v7 == 1 )
{
v13 = 18;
strcpy(v14, "filenames");
v8 = cocos2d::CCDictionary::objectForKey(v4, &v13);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 72LL))(a1, v8);
if ( (v13 & 1) != 0 )
operator delete(__p);
}
}
LABEL_14:
if ( (v9 & 1) != 0 )
operator delete(v12);
}