// // sub_1006E6D60 from 0x1006e6d60 to 0x1006e6ebc (348 bytes) // // 2 xrefs: // > sub_1006E64F0 @ 0x1006e6660 // > sub_1006E6D60 @ 0x1006e6e2b // // 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 // _QWORD *__fastcall sub_1006E6D60(const void *a1, void *a2) { void *v2; // rax __int64 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 = __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_1006E6D60(*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_1006E64F0(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