// // sub_10060D130 from 0x10060d130 to 0x10060d519 (1001 bytes) // // 3 xrefs: // > sub_10060C3E0 @ 0x10060c966 // > cocos2d::CCFileUtilsMac::createCCArrayWithContentsOfFile @ 0x10060d052 // > sub_10060D130 @ 0x10060d4a2 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall sub_10060D130(id a1, __int64 a2) { __int64 v2; // rax cocos2d::CCObject *v3; // rbx id v4; // rax __int64 v5; // rax id v6; // rbx cocos2d::CCObject *v7; // r12 id v8; // rax __int64 v9; // rax id v10; // rbx __int64 v11; // r14 void *i; // r12 void *v13; // r15 id v14; // rax __int64 v15; // rax cocos2d::CCObject *v16; // rbx cocos2d::CCObject *v17; // r13 id v18; // r12 __int64 v19; // r14 void *j; // rbx __int128 v21; // [rsp+0h] [rbp-1D0h] BYREF __int128 v22; // [rsp+10h] [rbp-1C0h] __int128 v23; // [rsp+20h] [rbp-1B0h] __int128 v24; // [rsp+30h] [rbp-1A0h] __int128 v25; // [rsp+40h] [rbp-190h] BYREF __int128 v26; // [rsp+50h] [rbp-180h] __int128 v27; // [rsp+60h] [rbp-170h] __int128 v28; // [rsp+70h] [rbp-160h] id v29; // [rsp+80h] [rbp-150h] id obj; // [rsp+88h] [rbp-148h] __int64 v31; // [rsp+90h] [rbp-140h] cocos2d::CCObject *v32; // [rsp+98h] [rbp-138h] _BYTE v33[128]; // [rsp+A0h] [rbp-130h] BYREF _BYTE v34[128]; // [rsp+120h] [rbp-B0h] BYREF v2 = objc_opt_class(&OBJC_CLASS___NSString); if ( (unsigned __int8)objc_opt_isKindOfClass(a1, v2) ) { v3 = (cocos2d::CCObject *)operator new(0x50u); v4 = objc_msgSend(a1, "UTF8String"); sub_1007AAB20(v3, v4); sub_10071FCD0(a2, v3); cocos2d::CCObject::release(v3); } else { v5 = objc_opt_class(&OBJC_CLASS___NSNumber); if ( (unsigned __int8)objc_opt_isKindOfClass(a1, v5) ) { v6 = objc_msgSend(a1, "stringValue"); v7 = (cocos2d::CCObject *)operator new(0x50u); v8 = objc_msgSend(v6, "UTF8String"); sub_1007AAB20(v7, v8); sub_10071FCD0(a2, v7); cocos2d::CCObject::release(v7); } else { v9 = objc_opt_class(&OBJC_CLASS___NSDictionary); if ( (unsigned __int8)objc_opt_isKindOfClass(a1, v9) ) { v31 = a2; v32 = (cocos2d::CCObject *)operator new(0x48u); cocos2d::CCDictionary::CCDictionary((__int64)v32); v24 = 0; v23 = 0; v22 = 0; v21 = 0; v29 = a1; obj = objc_msgSend(a1, "allKeys"); v10 = objc_msgSend(obj, "countByEnumeratingWithState:objects:count:", &v21, v34, 16); if ( v10 ) { v11 = *(_QWORD *)v22; do { for ( i = nullptr; i != v10; i = (char *)i + 1 ) { if ( *(_QWORD *)v22 != v11 ) objc_enumerationMutation(obj); v13 = *(void **)(*((_QWORD *)&v21 + 1) + 8LL * (_QWORD)i); v14 = objc_msgSend(v29, "objectForKey:", v13); sub_10060C3E0(v13, v14, (__int64)v32, 0.0); } v10 = objc_msgSend(obj, "countByEnumeratingWithState:objects:count:", &v21, v34, 16); } while ( v10 ); } sub_10071FCD0(v31, v32); cocos2d::CCObject::release(v32); } else { v15 = objc_opt_class(&OBJC_CLASS___NSArray); if ( (unsigned __int8)objc_opt_isKindOfClass(a1, v15) ) { v31 = a2; v16 = (cocos2d::CCObject *)operator new(0x40u); sub_10071F890(v16); v17 = v16; sub_10071F860(v16); v25 = 0; v26 = 0; v27 = 0; v28 = 0; v18 = objc_msgSend(a1, "countByEnumeratingWithState:objects:count:", &v25, v33, 16); if ( v18 ) { v19 = *(_QWORD *)v26; do { for ( j = nullptr; j != v18; j = (char *)j + 1 ) { if ( *(_QWORD *)v26 != v19 ) objc_enumerationMutation(a1); sub_10060D130(*(id *)(*((_QWORD *)&v25 + 1) + 8LL * (_QWORD)j)); } v18 = objc_msgSend(a1, "countByEnumeratingWithState:objects:count:", &v25, v33, 16); } while ( v18 ); } sub_10071FCD0(v31, v17); cocos2d::CCObject::release(v17); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source