// // GManager::save from 0x6a9224 to 0x6a932c (264 bytes) // // 5 xrefs: // > AppDelegate::trySaveGame @ 0x6e66b0 // > AppDelegate::trySaveGame @ 0x6e66c8 // > GameManager::doQuickSave @ 0x717f34 // > LevelEditorLayer::saveLevel @ 0x7a7c98 // > @ 0xaf558 // // 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::save(GManager *this, unsigned __int8 a2) { unsigned __int8 *v4; // x0 unsigned __int8 v5; // w1 char v6; // w0 __int64 v7; // x0 __int64 v8; // x1 __int64 v10; // [xsp+30h] [xbp+30h] BYREF __int64 v11; // [xsp+38h] [xbp+38h] void *v12; // [xsp+40h] [xbp+40h] if ( !a2 ) GManager::waitForSave(this, 30.0); v4 = (unsigned __int8 *)this + 345; do v5 = __ldaxr(v4); while ( __stlxr(1u, v4) ); if ( v5 ) return 0; v6 = *((_BYTE *)this + 320); v10 = 0; v11 = 0; v12 = nullptr; if ( (v6 & 1) != 0 ) { std::string::__init(&v10, *((void **)this + 42), *((_QWORD *)this + 41)); } else { v7 = *((_QWORD *)this + 40); v8 = *((_QWORD *)this + 41); v12 = *((void **)this + 42); v10 = v7; v11 = v8; } GManager::saveGMTo((unsigned __int8 *)this, &v10, a2); if ( (v10 & 1) != 0 ) operator delete(v12); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source