//
// GameLevelManager::onDeleteServerLevelListCompleted from 0x8459fc to 0x845ae4 (232 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85b340
// > ??> @ 0x5bd50
//
// 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:55:20 +0000
//
__int64 __fastcall GameLevelManager::onDeleteServerLevelListCompleted(__int64 a1, __int64 a2, __int64 a3)
{
const char *v5; // x0
unsigned int v6; // w22
__int64 v7; // x0
void (__fastcall ***v9)(_QWORD, _QWORD); // x0
_QWORD v11[3]; // [xsp+40h] [xbp+40h] BYREF
std::__tree::__erase_unique((__int64 **)(a1 + 720), a3);
v5 = (const char *)(a3 + 1);
if ( (*(_BYTE *)a3 & 1) != 0 )
v5 = *(const char **)(a3 + 16);
v6 = atoi(v5);
v11[0] = 3222788;
v11[1] = 0;
v11[2] = 0;
if ( sub_7FEA60(a2, (__int64)v11) )
{
v7 = *(_QWORD *)(a1 + 1312);
if ( v7 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 8LL))(v7, v6);
}
else
{
v9 = *(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 1312);
if ( v9 )
(**v9)(v9, v6);
}
return _stack_chk_guard;
}