//
// cocos2d::CCFileUtilsIOS::createCCDictionaryWithContentsOfFile from 0x1002d30a4 to 0x1002d3238 (404 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009203d8
//
// This function is hookable on this platform (idp: arm, 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 11:02:39 +0000
//
void *cocos2d::CCFileUtilsIOS::createCCDictionaryWithContentsOfFile()
{
__int64 v0; // x0
void **v1; // x2
NSDictionary *v2; // x20
void *v3; // x19
NSArray *v4; // x21
void *v5; // x22
__int64 v6; // x24
void *i; // x25
__int128 v9; // [xsp+0h] [xbp-120h] BYREF
__int128 v10; // [xsp+10h] [xbp-110h]
__int128 v11; // [xsp+20h] [xbp-100h]
__int128 v12; // [xsp+30h] [xbp-F0h]
void *__p[2]; // [xsp+40h] [xbp-E0h] BYREF
char v14; // [xsp+57h] [xbp-C9h]
_BYTE v15[128]; // [xsp+58h] [xbp-C8h] BYREF
v0 = cocos2d::CCFileUtils::sharedFileUtils();
(*(void (__fastcall **)(void **__return_ptr))(*(_QWORD *)v0 + 48LL))(__p);
if ( v14 >= 0 )
v1 = __p;
else
v1 = (void **)__p[0];
v2 = +[NSDictionary dictionaryWithContentsOfFile:](
&OBJC_CLASS___NSDictionary,
"dictionaryWithContentsOfFile:",
+[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", v1));
if ( v2 )
{
v3 = operator new(0x48u);
cocos2d::CCDictionary::CCDictionary();
v11 = 0u;
v12 = 0u;
v9 = 0u;
v10 = 0u;
v4 = -[NSDictionary allKeys](v2, "allKeys", 0);
v5 = -[NSArray countByEnumeratingWithState:objects:count:](
v4,
"countByEnumeratingWithState:objects:count:",
&v9,
v15,
16);
if ( v5 )
{
v6 = *(_QWORD *)v10;
do
{
for ( i = nullptr; i != v5; i = (char *)i + 1 )
{
if ( *(_QWORD *)v10 != v6 )
objc_enumerationMutation(v4);
sub_1002D3284(
*(_QWORD *)(*((_QWORD *)&v9 + 1) + 8LL * (_QWORD)i),
-[NSDictionary objectForKey:](v2, "objectForKey:", *(_QWORD *)(*((_QWORD *)&v9 + 1) + 8LL * (_QWORD)i)),
v3);
}
v5 = -[NSArray countByEnumeratingWithState:objects:count:](
v4,
"countByEnumeratingWithState:objects:count:",
&v9,
v15,
16);
}
while ( v5 );
}
}
else
{
v3 = nullptr;
}
if ( v14 < 0 )
operator delete(__p[0]);
return v3;
}