//
// GameLevelManager::onDeleteServerLevelListCompleted from 0x4d1000 to 0x4d107c (124 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x4db06a
//
// 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:47 +0000
//
int (***__fastcall GameLevelManager::onDeleteServerLevelListCompleted(
int a1,
unsigned __int8 *a2,
int a3,
int a4))(void)
{
const char *v7; // r0
_BOOL4 v8; // r7
int (***result)(void); // r0
int (*v10)(void); // r3
int v11; // [sp+0h] [bp-10h] BYREF
unsigned __int8 *v12; // [sp+4h] [bp-Ch]
int v13; // [sp+8h] [bp-8h]
int v14; // [sp+Ch] [bp-4h]
v11 = a1;
v12 = a2;
v13 = a3;
v14 = a4;
std::__tree::__erase_unique((int **)(a1 + 524), (unsigned __int8 *)a3);
if ( (*(_BYTE *)a3 & 1) != 0 )
v7 = *(const char **)(a3 + 8);
else
v7 = (const char *)(a3 + 1);
v11 = 0;
v12 = nullptr;
v13 = 0;
atoi(v7);
std::string::__init(&v11, "-1", 2u);
v8 = sub_4A9CC4(a2, (unsigned __int8 *)&v11);
std::string::~string((int)&v11);
result = *(int (****)(void))(a1 + 864);
if ( v8 )
{
if ( !result )
return result;
v10 = (*result)[1];
}
else
{
if ( !result )
return result;
v10 = **result;
}
return (int (***)(void))v10();
}