// // GJSmartTemplate::saveRemapToDict from 0x66f6a0 to 0x66f750 (176 bytes) // // 7 xrefs: // > GJSmartTemplate::saveRemap @ 0x670252 // > GJSmartTemplate::saveRemap @ 0x670290 // > GJSmartTemplate::saveRemap @ 0x6702d4 // > GJSmartTemplate::saveRemap @ 0x670332 // > GJSmartTemplate::saveRemap @ 0x670370 // > GJSmartTemplate::saveRemap @ 0x6703ce // > GJSmartTemplate::saveRemap @ 0x670408 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:55:49 +0000 // int __fastcall GJSmartTemplate::saveRemapToDict(int result, unsigned __int8 *a2, unsigned __int8 *a3, int a4) { int v5; // r4 int v7; // r4 cocos2d::CCObject *v8; // r4 unsigned int i; // r5 cocos2d::CCString *v10; // r0 const char *CString; // r0 const char *v12; // r10 size_t v13; // r0 _BOOL4 v14; // r10 cocos2d::CCObject *v15; // r0 int v16; // [sp+0h] [bp-10h] BYREF unsigned __int8 *v17; // [sp+4h] [bp-Ch] unsigned __int8 *v18; // [sp+8h] [bp-8h] int v19; // [sp+Ch] [bp-4h] v16 = result; v17 = a2; v18 = a3; v19 = a4; v5 = *a2; if ( (v5 & 1) != 0 ) v7 = *((_DWORD *)a2 + 1); else v7 = v5 >> 1; if ( v7 ) { v8 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(a4, a2); if ( !v8 ) { v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr); cocos2d::CCDictionary::setObject(a4, v8); } for ( i = 0; i < cocos2d::CCArray::count(v8); ++i ) { v10 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v8, i); CString = (const char *)cocos2d::CCString::getCString(v10); v16 = 0; v17 = nullptr; v18 = nullptr; v12 = CString; v13 = strlen(CString); std::string::__init(&v16, v12, v13); v14 = sub_66E7A8((unsigned __int8 *)&v16, a3); result = std::string::~string((int)&v16); if ( v14 ) return result; } v15 = (cocos2d::CCObject *)cocos2d::CCString::create(a3); return cocos2d::CCArray::addObject(v8, v15); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source