// // sub_1002D378C from 0x1002d378c to 0x1002d38f8 (364 bytes) // // 3 xrefs: // > cocos2d::CCFileUtilsIOS::writeToFile @ 0x1002d3740 // > sub_1002D378C @ 0x1002d380c // > sub_1002D3DD8 @ 0x1002d3ef8 // // 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:39 +0000 // NSString *__fastcall sub_1002D378C(__int64 a1, const void *a2, void *a3) { NSString *result; // x0 NSString *v6; // x20 _QWORD *v7; // x0 _QWORD *v8; // x22 NSString *v9; // x21 __int64 v10; // x0 __int64 v11; // x22 void *v12; // x0 NSString *v13; // x22 unsigned int *v14; // x9 __int64 v15; // x8 _QWORD *v16; // x22 unsigned __int64 v17; // x23 result = +[NSString stringWithCString:encoding:](&OBJC_CLASS___NSString, "stringWithCString:encoding:", a1, 4); if ( a2 ) { v6 = result; v7 = __dynamic_cast( a2, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0); if ( v7 ) { v8 = v7; v9 = (NSString *)+[NSMutableDictionary dictionary](&OBJC_CLASS___NSMutableDictionary, "dictionary"); v10 = v8[7]; if ( v10 ) { do { v11 = *(_QWORD *)(v10 + 288); sub_1002D378C(v10, *(_QWORD *)(v10 + 264), v9); v10 = v11; } while ( v11 ); } return (NSString *)objc_msgSend(a3, "setObject:forKey:", v9, v6); } v12 = __dynamic_cast( a2, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0); if ( v12 ) { v9 = +[NSString stringWithCString:encoding:]( &OBJC_CLASS___NSString, "stringWithCString:encoding:", cocos2d::CCString::getCString(v12), 4); return (NSString *)objc_msgSend(a3, "setObject:forKey:", v9, v6); } result = (NSString *)__dynamic_cast( a2, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCArray, 0); if ( result ) { v13 = result; v9 = (NSString *)+[NSMutableArray array](&OBJC_CLASS___NSMutableArray, "array"); v14 = (unsigned int *)v13[7]; v15 = *v14; if ( (_DWORD)v15 ) { v16 = *((_QWORD **)v14 + 2); v17 = (unsigned __int64)&v16[v15 - 1]; do { if ( !*v16 ) break; sub_1002D3DD8(*v16++, v9); } while ( (unsigned __int64)v16 <= v17 ); } return (NSString *)objc_msgSend(a3, "setObject:forKey:", v9, v6); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source