// // sub_10060D580 from 0x10060d580 to 0x10060d6dc (348 bytes) // // 2 xrefs: // > sub_10060CD10 @ 0x10060ce80 // > sub_10060D580 @ 0x10060d64b // // 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 // _QWORD *__fastcall sub_10060D580(const void *a1, void *a2) { cocos2d::CCString *v2; // rax const char *CString; // rax NSString *v4; // r14 _QWORD *result; // rax _QWORD *v6; // rax _QWORD *v7; // r15 unsigned int *v8; // rax _QWORD *v9; // r15 unsigned __int64 v10; // r12 _QWORD *v11; // r15 __int64 v12; // rdi __int64 v13; // r15 v2 = (cocos2d::CCString *)__dynamic_cast( a1, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0); if ( v2 ) { CString = cocos2d::CCString::getCString(v2); v4 = +[NSString stringWithCString:encoding:](&OBJC_CLASS___NSString, "stringWithCString:encoding:", CString, 4); return objc_msgSend(a2, "addObject:", v4); } v6 = __dynamic_cast( a1, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCArray, 0); if ( v6 ) { v7 = v6; v4 = (NSString *)+[NSMutableArray array](&OBJC_CLASS___NSMutableArray, "array"); v8 = (unsigned int *)v7[7]; if ( *v8 ) { v9 = *((_QWORD **)v8 + 2); v10 = (unsigned __int64)&v9[*v8 - 1]; do { if ( !*v9 ) break; sub_10060D580(*v9++, v4); } while ( (unsigned __int64)v9 <= v10 ); } return objc_msgSend(a2, "addObject:", v4); } result = __dynamic_cast( a1, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0); if ( result ) { v11 = result; v4 = (NSString *)+[NSMutableDictionary dictionary](&OBJC_CLASS___NSMutableDictionary, "dictionary"); v12 = v11[7]; if ( v12 ) { do { v13 = *(_QWORD *)(v12 + 288); sub_10060CD10(v12, *(const void **)(v12 + 264), v4); v12 = v13; } while ( v13 ); } return objc_msgSend(a2, "addObject:", v4); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source