// // sub_1006E6910 from 0x1006e6910 to 0x1006e6cf9 (1001 bytes) // // 3 xrefs: // > sub_1006E5BC0 @ 0x1006e6146 // > cocos2d::CCFileUtilsMac::createCCArrayWithContentsOfFile @ 0x1006e6832 // > sub_1006E6910 @ 0x1006e6c82 // // 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:35:47 +0000 // char __fastcall sub_1006E6910(id a1, __int64 a2) { __int64 v2; // rax _DWORD *v3; // rbx id v4; // rax __int64 v6; // rax id v7; // rbx _DWORD *v8; // r12 id v9; // rax __int64 v10; // rax id v11; // rbx __int64 v12; // r14 void *i; // r12 void *v14; // r15 id v15; // rax __int64 v16; // rax _DWORD *v17; // rbx _DWORD *v18; // r13 id v19; // r12 __int64 v20; // r14 void *j; // rbx __int128 v22; // [rsp+0h] [rbp-1D0h] BYREF __int128 v23; // [rsp+10h] [rbp-1C0h] __int128 v24; // [rsp+20h] [rbp-1B0h] __int128 v25; // [rsp+30h] [rbp-1A0h] __int128 v26; // [rsp+40h] [rbp-190h] BYREF __int128 v27; // [rsp+50h] [rbp-180h] __int128 v28; // [rsp+60h] [rbp-170h] __int128 v29; // [rsp+70h] [rbp-160h] id v30; // [rsp+80h] [rbp-150h] id obj; // [rsp+88h] [rbp-148h] __int64 v32; // [rsp+90h] [rbp-140h] _DWORD *v33; // [rsp+98h] [rbp-138h] _BYTE v34[128]; // [rsp+A0h] [rbp-130h] BYREF _BYTE v35[128]; // [rsp+120h] [rbp-B0h] BYREF v2 = objc_opt_class(&OBJC_CLASS___NSString); if ( (unsigned __int8)objc_opt_isKindOfClass(a1, v2) ) { v3 = operator new(0x50u); v4 = objc_msgSend(a1, "UTF8String"); sub_10088DDC0(v3, v4); sub_1007FEBF0(a2, v3); return cocos2d::CCObject::release(v3); } else { v6 = objc_opt_class(&OBJC_CLASS___NSNumber); if ( (unsigned __int8)objc_opt_isKindOfClass(a1, v6) ) { v7 = objc_msgSend(a1, "stringValue"); v8 = operator new(0x50u); v9 = objc_msgSend(v7, "UTF8String"); sub_10088DDC0(v8, v9); sub_1007FEBF0(a2, v8); return cocos2d::CCObject::release(v8); } else { v10 = objc_opt_class(&OBJC_CLASS___NSDictionary); if ( (unsigned __int8)objc_opt_isKindOfClass(a1, v10) ) { v32 = a2; v33 = operator new(0x48u); cocos2d::CCDictionary::CCDictionary((__int64)v33); v25 = 0; v24 = 0; v23 = 0; v22 = 0; v30 = a1; obj = objc_msgSend(a1, "allKeys"); v11 = objc_msgSend(obj, "countByEnumeratingWithState:objects:count:", &v22, v35, 16); if ( v11 ) { v12 = *(_QWORD *)v23; do { for ( i = nullptr; i != v11; i = (char *)i + 1 ) { if ( *(_QWORD *)v23 != v12 ) objc_enumerationMutation(obj); v14 = *(void **)(*((_QWORD *)&v22 + 1) + 8LL * (_QWORD)i); v15 = objc_msgSend(v30, "objectForKey:", v14); sub_1006E5BC0(v14, v15, (__int64)v33); } v11 = objc_msgSend(obj, "countByEnumeratingWithState:objects:count:", &v22, v35, 16); } while ( v11 ); } sub_1007FEBF0(v32, v33); cocos2d::CCObject::release(v33); } else { v16 = objc_opt_class(&OBJC_CLASS___NSArray); if ( (unsigned __int8)objc_opt_isKindOfClass(a1, v16) ) { v32 = a2; v17 = operator new(0x40u); sub_1007FE7B0(v17); v18 = v17; sub_1007FE780(v17); v26 = 0; v27 = 0; v28 = 0; v29 = 0; v19 = objc_msgSend(a1, "countByEnumeratingWithState:objects:count:", &v26, v34, 16); if ( v19 ) { v20 = *(_QWORD *)v27; do { for ( j = nullptr; j != v19; j = (char *)j + 1 ) { if ( *(_QWORD *)v27 != v20 ) objc_enumerationMutation(a1); sub_1006E6910(*(id *)(*((_QWORD *)&v26 + 1) + 8LL * (_QWORD)j)); } v19 = objc_msgSend(a1, "countByEnumeratingWithState:objects:count:", &v26, v34, 16); } while ( v19 ); } sub_1007FEBF0(v32, v18); cocos2d::CCObject::release(v18); } } return __stack_chk_guard; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source