//
// GameManager::saveFinished from 0x41517c to 0x4151a8 (44 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:47:40 +0000
//
int __fastcall GameManager::saveFinished(GameManager *this, int a2)
{
int v3; // r0
int v4; // r5
int result; // r0
int v6; // r0
if ( a2 )
{
v3 = GameLevelManager::sharedState(this);
GameLevelManager::prunePlatformerJournalKeys(v3, (char *)this + 280);
}
v4 = *((_DWORD *)this + 70);
while ( 1 )
{
result = *((_DWORD *)this + 71);
if ( v4 == result )
break;
v6 = result - 16;
*((_DWORD *)this + 71) = v6;
std::string::~string(v6);
}
return result;
}