// // FileSaveManager::firstLoad from 0x3caf20 to 0x3cb14c (556 bytes) // // 0 xrefs: // // 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:46:37 +0000 // unsigned int __fastcall FileSaveManager::firstLoad(cocos2d::CCDictionary **this) { unsigned int v2; // r7 cocos2d::CCObject *StoreData; // r5 unsigned int result; // r0 cocos2d::CCString *v5; // r0 const char *CString; // r0 int v7; // r6 const char *v8; // r11 size_t v9; // r0 cocos2d::CCString *v10; // r0 const char *v11; // r6 size_t v12; // r0 int v13; // r3 size_t v14; // r10 unsigned int v15; // r6 char *v16; // r0 char *v17; // r1 size_t v18; // r2 int v19; // r3 unsigned int v20; // r6 cocos2d::CCString *v21; // r0 const char *v22; // r0 const char *v23; // r10 size_t v24; // r0 cocos2d::CCObject *v25; // r9 int v26; // r3 size_t v27; // r0 size_t v28; // r0 cocos2d::CCDictionary *v29; // r6 cocos2d::CCDictionary *v30; // [sp+4h] [bp-40h] cocos2d::CCArray *v31; // [sp+8h] [bp-3Ch] cocos2d::CCArray *v32; // [sp+Ch] [bp-38h] cocos2d::CCArray *v33; // [sp+Ch] [bp-38h] int v34; // [sp+1Ch] [bp-28h] int v35; // [sp+24h] [bp-20h] BYREF size_t v36; // [sp+28h] [bp-1Ch] char *v37; // [sp+2Ch] [bp-18h] int v38; // [sp+30h] [bp-14h] BYREF unsigned int v39; // [sp+34h] [bp-10h] char *v40; // [sp+38h] [bp-Ch] v2 = 0; StoreData = (cocos2d::CCObject *)FileSaveManager::getStoreData((FileSaveManager *)this); cocos2d::CCObject::retain(StoreData); *(this + 70) = StoreData; v31 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(StoreData); while ( 1 ) { result = cocos2d::CCArray::count(v31); if ( v2 >= result ) return result; v5 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v31, v2); CString = (const char *)cocos2d::CCString::getCString(v5); v38 = 0; v39 = 0; v40 = nullptr; v7 = (int)*(this + 70); v8 = CString; v9 = strlen(CString); std::string::__init(&v38, v8, v9); v30 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v7, &v38); std::string::~string((int)&v38); v38 = 0; v39 = 0; v40 = nullptr; std::string::__init(&v38, "category", 8u); v10 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v30, &v38); v11 = (const char *)cocos2d::CCString::getCString(v10); std::string::~string((int)&v38); v35 = 0; v36 = 0; v37 = nullptr; v12 = strlen(v11); std::string::__init(&v35, v11, v12); v38 = 0; v39 = 0; v40 = nullptr; std::string::__init(&v38, "group", 5u); v13 = v35 & 1; if ( v13 ) v14 = v36; else v14 = (int)(unsigned __int8)v35 >> 1; if ( (v38 & 1) != 0 ) { v15 = v39; if ( !v13 ) { v16 = (char *)&v35 + 1; LABEL_11: v17 = v40; goto LABEL_14; } } else { v15 = (int)(unsigned __int8)v38 >> 1; if ( !v13 ) { v16 = (char *)&v35 + 1; goto LABEL_13; } } v16 = v37; if ( (v38 & 1) != 0 ) goto LABEL_11; LABEL_13: v17 = (char *)&v38 + 1; LABEL_14: v18 = v15; if ( v15 >= v14 ) v18 = v14; if ( !v18 || (v19 = memcmp(v16, v17, v18)) == 0 ) { if ( v14 < v15 ) v19 = -1; else v19 = v14 > v15; } v32 = (cocos2d::CCArray *)v19; std::string::~string((int)&v38); std::string::~string((int)&v35); if ( !v32 ) { v20 = 0; v33 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v30); while ( v20 < cocos2d::CCArray::count(v33) ) { v21 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v33, v20); v22 = (const char *)cocos2d::CCString::getCString(v21); v38 = 0; v39 = 0; v40 = nullptr; v23 = v22; v24 = strlen(v22); std::string::__init(&v38, v23, v24); v25 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v30, &v38); std::string::~string((int)&v38); if ( v25 ) { if ( _dynamic_cast( v25, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { v26 = (int)*(this + 70); v38 = 0; v39 = 0; v34 = v26; v40 = nullptr; v27 = strlen(v23); std::string::__init(&v38, v23, v27); cocos2d::CCDictionary::setObject(v34, v25); std::string::~string((int)&v38); } } ++v20; } v38 = 0; v39 = 0; v40 = nullptr; v28 = strlen(v8); v29 = *(this + 70); std::string::__init(&v38, v8, v28); cocos2d::CCDictionary::removeObjectForKey(v29); std::string::~string((int)&v38); } ++v2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source