// // cocos2d::CCFileUtilsIOS::createCCArrayWithContentsOfFile from 0x1002d38f8 to 0x1002d3a5c (356 bytes) // // 1 xrefs: // > @ 0x1009203e8 // // 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::createCCArrayWithContentsOfFile() { __int64 v0; // x0 void **v1; // x2 NSArray *v2; // x20 void *v3; // x19 void *v4; // x21 __int64 v5; // x22 void *i; // x23 __int128 v8; // [xsp+0h] [xbp-110h] BYREF __int128 v9; // [xsp+10h] [xbp-100h] __int128 v10; // [xsp+20h] [xbp-F0h] __int128 v11; // [xsp+30h] [xbp-E0h] void *__p[2]; // [xsp+40h] [xbp-D0h] BYREF char v13; // [xsp+57h] [xbp-B9h] _BYTE v14[128]; // [xsp+58h] [xbp-B8h] BYREF v0 = cocos2d::CCFileUtils::sharedFileUtils(); (*(void (__fastcall **)(void **__return_ptr))(*(_QWORD *)v0 + 48LL))(__p); if ( v13 >= 0 ) v1 = __p; else v1 = (void **)__p[0]; v2 = +[NSArray arrayWithContentsOfFile:]( &OBJC_CLASS___NSArray, "arrayWithContentsOfFile:", +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", v1)); v3 = operator new(0x40u); sub_1002E7330(); v10 = 0u; v11 = 0u; v8 = 0u; v9 = 0u; v4 = -[NSArray countByEnumeratingWithState:objects:count:]( v2, "countByEnumeratingWithState:objects:count:", &v8, v14, 16); if ( v4 ) { v5 = *(_QWORD *)v9; do { for ( i = nullptr; i != v4; i = (char *)i + 1 ) { if ( *(_QWORD *)v9 != v5 ) objc_enumerationMutation(v2); sub_1002D3AA4(*(_QWORD *)(*((_QWORD *)&v8 + 1) + 8LL * (_QWORD)i), v3); } v4 = -[NSArray countByEnumeratingWithState:objects:count:]( v2, "countByEnumeratingWithState:objects:count:", &v8, v14, 16); } while ( v4 ); } if ( v13 < 0 ) operator delete(__p[0]); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source