//
// GameManager::didEncodeForSave from 0x4151cc to 0x41523e (114 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::didEncodeForSave(void **this)
{
char v2; // r0
int v3; // r7
int v4; // r0
int v5; // r0
void *v7; // [sp+0h] [bp-14h] BYREF
void *v8; // [sp+4h] [bp-10h]
void *v9; // [sp+8h] [bp-Ch]
v2 = GameLevelManager::sharedState((GameLevelManager *)this);
GameLevelManager::collectPlatformerJournalKeys((GameLevelManager *)&v7, v2);
v3 = (int)*(this + 70);
if ( v3 )
{
while ( 1 )
{
v4 = (int)*(this + 71);
if ( v3 == v4 )
break;
v5 = v4 - 16;
*(this + 71) = (void *)v5;
std::string::~string(v5);
}
operator delete(*(this + 70));
}
*(this + 70) = v7;
*(this + 71) = v8;
*(this + 72) = v9;
v9 = nullptr;
v8 = nullptr;
v7 = nullptr;
return std::__vector_base>::~__vector_base((int)&v7);
}