// // GManager::saveGMTo from 0x6a8e7c to 0x6a9154 (728 bytes) // // 2 xrefs: // > GManager::save @ 0x6a92a4 // > @ 0x4d698 // // 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:50:47 +0000 // __int64 __fastcall GManager::saveGMTo(unsigned __int8 *a1, _QWORD *a2, unsigned __int8 a3) { int v5; // w23 DS_Dictionary *v6; // x21 std::__thread_struct *v7; // x4 char *v8; // x3 std::__thread_struct *v9; // x5 bool v10; // zf const char *v11; // x1 unsigned int v12; // w20 char *v13; // x0 char *v14; // x3 std::__thread_struct *v16; // x26 std::__thread_struct *v17; // x2 std::__thread_struct *v18; // x3 void *v19; // x25 char v20; // w27 std::__thread_struct **v21; // x20 std::__thread_struct *v22; // x5 int v23; // w0 std::__thread_struct *v24; // x19 pthread_t newthread; // [xsp+68h] [xbp+68h] BYREF std::__thread_struct *v26; // [xsp+70h] [xbp+70h] BYREF std::__thread_struct *v27; // [xsp+78h] [xbp+78h] void *v28; // [xsp+80h] [xbp+80h] v5 = a3; v6 = (DS_Dictionary *)operator new(0xF0u); DS_Dictionary::DS_Dictionary(v6); (*(void (__fastcall **)(unsigned __int8 *, DS_Dictionary *))(*(_QWORD *)a1 + 904LL))(a1, v6); (*(void (__fastcall **)(unsigned __int8 *))(*(_QWORD *)a1 + 912LL))(a1); if ( v5 ) { v16 = (std::__thread_struct *)operator new(8u); std::__thread_struct::__thread_struct(v16); v17 = (std::__thread_struct *)*a2; v18 = (std::__thread_struct *)a2[1]; v19 = (void *)a2[2]; v20 = *(_BYTE *)a2; a2[1] = 0; *a2 = 0; a2[2] = 0; v26 = v17; v27 = v18; v28 = v19; v21 = (std::__thread_struct **)operator new(0x30u); *v21 = v16; v21[1] = (std::__thread_struct *)a1; v21[2] = v6; LOBYTE(v26) = v20; v28 = v19; v22 = v27; v21[3] = v26; v21[4] = v22; v21[5] = (std::__thread_struct *)v28; v23 = pthread_create(&newthread, nullptr, (void *(*)(void *))sub_6A89C0, v21); if ( v23 ) { std::__throw_system_error(v23, "thread constructor failed"); if ( ((_BYTE)v21[3] & 1) != 0 ) operator delete(v21[5]); v24 = *v21; *v21 = nullptr; if ( v24 ) { std::__thread_struct::~__thread_struct(v24); operator delete(v24); } operator delete(v21); } std::thread::detach((std::thread *)&newthread); std::thread::~thread((std::thread *)&newthread); } else { v7 = (std::__thread_struct *)*a2; v8 = (char *)a2[2]; v9 = (std::__thread_struct *)a2[1]; v10 = (*a2 & 1) == 0; v11 = (char *)&v26 + 1; *a2 = 0; if ( !v10 ) v11 = v8; a2[1] = 0; a2[2] = 0; v26 = v7; v27 = v9; v28 = v8; v12 = DS_Dictionary::saveRootSubDictToCompressedFile(v6, v11, 1); v13 = *((char **)v6 + 26); if ( v13 ) { v14 = *((char **)v6 + 27); if ( v13 != v14 ) *((_QWORD *)v6 + 27) = &v14[8 * ~((unsigned __int64)(v14 - 8 - v13) >> 3)]; operator delete(v13); } pugi::xml_document::~xml_document(v6); operator delete(v6); (*(void (__fastcall **)(unsigned __int8 *, _QWORD))(*(_QWORD *)a1 + 920LL))(a1, v12); atomic_store(0, a1 + 345); if ( ((unsigned __int8)v26 & 1) != 0 ) operator delete(v28); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source