//
// GameManager::saveFinished from 0x71491c to 0x714984 (104 bytes)
//
// 2 xrefs:
// > ??> @ 0x63d48
// > ??> @ 0x14295f8
//
// 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:52:15 +0000
//
__int64 __fastcall GameManager::saveFinished(GameManager *this, char a2)
{
__int64 v3; // x20
__int64 result; // x0
__int64 v5; // x0
if ( a2 )
{
v5 = GameLevelManager::sharedState(this);
GameLevelManager::prunePlatformerJournalKeys(v5, (char *)this + 352);
}
v3 = *((_QWORD *)this + 44);
while ( 1 )
{
result = *((_QWORD *)this + 45);
if ( v3 == result )
break;
while ( 1 )
{
*((_QWORD *)this + 45) = result - 32;
if ( (*(_BYTE *)(result - 32) & 1) == 0 )
break;
operator delete(*(void **)(result - 16));
result = *((_QWORD *)this + 45);
if ( v3 == result )
return result;
}
}
return result;
}