// // sub_1002D3AA4 from 0x1002d3aa4 to 0x1002d3d98 (756 bytes) // // 3 xrefs: // > sub_1002D3284 @ 0x1002d359c // > cocos2d::CCFileUtilsIOS::createCCArrayWithContentsOfFile @ 0x1002d39e8 // > sub_1002D3AA4 @ 0x1002d3d1c // // 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:40 +0000 // __int64 __fastcall sub_1002D3AA4(void *a1, __int64 a2) { __int64 v4; // x0 _DWORD *v5; // x20 __int64 v6; // x0 void *v7; // x21 __int64 result; // x0 __int64 v9; // x0 _DWORD *v10; // x20 void *v11; // x22 void *v12; // x23 __int64 v13; // x25 void *v14; // x26 __int64 v15; // x0 _DWORD *v16; // x20 void *v17; // x22 __int64 v18; // x23 void *v19; // x24 __int128 v20; // [xsp+0h] [xbp-1E0h] BYREF __int128 v21; // [xsp+10h] [xbp-1D0h] __int128 v22; // [xsp+20h] [xbp-1C0h] __int128 v23; // [xsp+30h] [xbp-1B0h] __int128 v24; // [xsp+40h] [xbp-1A0h] BYREF __int128 v25; // [xsp+50h] [xbp-190h] __int128 v26; // [xsp+60h] [xbp-180h] __int128 v27; // [xsp+70h] [xbp-170h] _BYTE v28[128]; // [xsp+88h] [xbp-158h] BYREF _BYTE v29[128]; // [xsp+108h] [xbp-D8h] BYREF v4 = objc_opt_class(&OBJC_CLASS___NSString); if ( (objc_opt_isKindOfClass(a1, v4) & 1) != 0 ) { v5 = operator new(0x50u); sub_10030611C(v5, objc_msgSend(a1, "UTF8String")); LABEL_5: sub_1002E74E0(a2, v5); return (__int64)cocos2d::CCObject::release(v5); } v6 = objc_opt_class(&OBJC_CLASS___NSNumber); if ( (objc_opt_isKindOfClass(a1, v6) & 1) != 0 ) { v7 = objc_msgSend(a1, "stringValue"); v5 = operator new(0x50u); sub_10030611C(v5, objc_msgSend(v7, "UTF8String")); goto LABEL_5; } v9 = objc_opt_class(&OBJC_CLASS___NSDictionary); if ( (objc_opt_isKindOfClass(a1, v9) & 1) != 0 ) { v10 = operator new(0x48u); cocos2d::CCDictionary::CCDictionary(); v26 = 0u; v27 = 0u; v24 = 0u; v25 = 0u; v11 = objc_msgSend(a1, "allKeys"); v12 = objc_msgSend(v11, "countByEnumeratingWithState:objects:count:", &v24, v29, 16); if ( v12 ) { v13 = *(_QWORD *)v25; do { v14 = nullptr; do { if ( *(_QWORD *)v25 != v13 ) objc_enumerationMutation(v11); sub_1002D3284( *(void **)(*((_QWORD *)&v24 + 1) + 8LL * (_QWORD)v14), objc_msgSend(a1, "objectForKey:", *(_QWORD *)(*((_QWORD *)&v24 + 1) + 8LL * (_QWORD)v14)), (__int64)v10); v14 = (char *)v14 + 1; } while ( v12 != v14 ); v12 = objc_msgSend(v11, "countByEnumeratingWithState:objects:count:", &v24, v29, 16); } while ( v12 ); } sub_1002E74E0(a2, v10); return (__int64)cocos2d::CCObject::release(v10); } else { v15 = objc_opt_class(&OBJC_CLASS___NSArray); result = objc_opt_isKindOfClass(a1, v15); if ( (result & 1) != 0 ) { v16 = operator new(0x40u); sub_1002E7330(); sub_1002E72FC(v16); v20 = 0u; v21 = 0u; v22 = 0u; v23 = 0u; v17 = objc_msgSend(a1, "countByEnumeratingWithState:objects:count:", &v20, v28, 16); if ( v17 ) { v18 = *(_QWORD *)v21; do { v19 = nullptr; do { if ( *(_QWORD *)v21 != v18 ) objc_enumerationMutation(a1); sub_1002D3AA4(*(_QWORD *)(*((_QWORD *)&v20 + 1) + 8LL * (_QWORD)v19), v16); v19 = (char *)v19 + 1; } while ( v17 != v19 ); v17 = objc_msgSend(a1, "countByEnumeratingWithState:objects:count:", &v20, v28, 16); } while ( v17 ); } sub_1002E74E0(a2, v16); return (__int64)cocos2d::CCObject::release(v16); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source