//
// GameLevelManager::updateSavedLevelList from 0x4c5ff4 to 0x4c60b0 (188 bytes)
//
// 2 xrefs:
// > LevelListCell::onClick @ 0x424950
// > GameLevelManager::onGetLevelListsCompleted @ 0x4d1b92
//
// 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:50:31 +0000
//
int __fastcall GameLevelManager::updateSavedLevelList(GameLevelManager *this, GJLevelList *a2)
{
GameLevelManager *v3; // r0
int result; // r0
int v5; // r4
unsigned __int8 *v6; // r0
int v7[3]; // [sp+0h] [bp-14h] BYREF
v3 = (GameLevelManager *)GameLevelManager::sharedState(this);
result = GameLevelManager::getSavedLevelList(v3, *((const char **)a2 + 69));
v5 = result;
if ( result )
{
v6 = (unsigned __int8 *)(result + 336);
*((_DWORD *)v6 - 14) = *((_DWORD *)a2 + 70);
*((_DWORD *)v6 - 13) = *((_DWORD *)a2 + 71);
*((_DWORD *)v6 - 12) = *((_DWORD *)a2 + 72);
*((_DWORD *)v6 - 11) = *((_DWORD *)a2 + 73);
*((_DWORD *)v6 - 10) = *((_DWORD *)a2 + 74);
*(v6 - 7) = *((_BYTE *)a2 + 329);
std::string::operator=(v6, (unsigned __int8 *)a2 + 336);
std::string::operator=((unsigned __int8 *)(v5 + 348), (unsigned __int8 *)a2 + 348);
std::string::operator=((unsigned __int8 *)(v5 + 384), (unsigned __int8 *)a2 + 384);
*(_DWORD *)(v5 + 396) = *((_DWORD *)a2 + 99);
*(_DWORD *)(v5 + 400) = *((_DWORD *)a2 + 100);
std::string::basic_string(v7, (int)a2 + 372);
GJLevelList::parseListLevels(v5, (unsigned __int8 *)v7);
return std::string::~string((int)v7);
}
return result;
}