// // sub_7888C8 from 0x7888c8 to 0x788ab4 (492 bytes) // // 2 xrefs: // > LevelEditorLayer::doAutoSave @ 0x7a8044 // > LevelEditorLayer::doAutoSave @ 0x7a805c // // 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 12:53:25 +0000 // __int64 __fastcall sub_7888C8(void *a1) { pthread_key_t *v2; // x0 const void *v3; // x23 pthread_key_t *v4; // x22 std::__thread_struct *v5; // x20 __int64 v6; // x5 __int64 v7; // x10 __int64 v8; // x11 __int64 v9; // x6 __int64 v10; // x7 __int64 v11; // x4 LocalLevelManager *v12; // x0 std::__thread_struct *v13; // x20 _QWORD v15[3]; // [xsp+50h] [xbp+50h] BYREF _QWORD v16[3]; // [xsp+68h] [xbp+68h] BYREF __int64 v17[3]; // [xsp+80h] [xbp+80h] BYREF v2 = (pthread_key_t *)std::__thread_local_data(); v3 = *(const void **)a1; v4 = v2; *(_QWORD *)a1 = 0; v5 = (std::__thread_struct *)pthread_getspecific(*v2); pthread_setspecific(*v4, v3); if ( v5 ) { std::__thread_struct::~__thread_struct(v5); operator delete(v5); } v6 = *((_QWORD *)a1 + 3); v7 = *((_QWORD *)a1 + 1); v8 = *((_QWORD *)a1 + 2); *((_QWORD *)a1 + 1) = 0; *((_QWORD *)a1 + 2) = 0; *((_QWORD *)a1 + 3) = 0; v16[2] = v6; v9 = *((_QWORD *)a1 + 4); v10 = *((_QWORD *)a1 + 5); v11 = *((_QWORD *)a1 + 6); *((_QWORD *)a1 + 4) = 0; *((_QWORD *)a1 + 5) = 0; *((_QWORD *)a1 + 6) = 0; v16[0] = v7; v16[1] = v8; v15[0] = v9; v15[1] = v10; v15[2] = v11; cocos2d::ZipUtils::compressString(v17, (int)v16, 0, 1); v12 = (LocalLevelManager *)GameToolbox::saveStringToFile((__int64)v15, (__int64)v17, 1u, 1u); atomic_store(0, (unsigned __int8 *)(LocalLevelManager::sharedState(v12) + 577)); if ( (v17[0] & 1) != 0 ) operator delete((void *)v17[2]); std::string::~string((__int64)v15); std::string::~string((__int64)v16); if ( (*((_BYTE *)a1 + 32) & 1) != 0 ) { operator delete(*((void **)a1 + 6)); if ( (*((_BYTE *)a1 + 8) & 1) == 0 ) goto LABEL_7; } else if ( (*((_BYTE *)a1 + 8) & 1) == 0 ) { goto LABEL_7; } operator delete(*((void **)a1 + 3)); LABEL_7: v13 = *(std::__thread_struct **)a1; *(_QWORD *)a1 = 0; if ( v13 ) { std::__thread_struct::~__thread_struct(v13); operator delete(v13); } operator delete(a1); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source