//
// GameLevelManager::onDeleteServerLevelCompleted from 0x80a690 to 0x80a7e4 (340 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85ba1c
// > ??> @ 0x81d60
//
// 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:54:47 +0000
//
__int64 __fastcall GameLevelManager::onDeleteServerLevelCompleted(__int64 a1, __int64 a2, char *a3)
{
char *v5; // x19
size_t v6; // x0
__int64 v7; // x24
unsigned int v8; // w24
_BOOL4 v9; // w19
__int64 v10; // x0
__int64 v12; // [xsp+40h] [xbp+40h] BYREF
__int64 v13; // [xsp+48h] [xbp+48h]
void *v14; // [xsp+50h] [xbp+50h]
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((char **)a3 + 2);
v12 = 0;
v13 = 0;
v14 = nullptr;
v6 = strlen(v5);
v7 = *(_QWORD *)(a1 + 1088);
std::string::__init(&v12, v5, v6);
cocos2d::CCDictionary::removeObjectForKey(v7, &v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
v8 = atoi(v5);
v12 = 0;
v13 = 0;
v14 = nullptr;
std::string::__init(&v12, &word_117CE08, 2u);
v9 = sub_7FEA60(a2, (__int64)&v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
v10 = *(_QWORD *)(a1 + 1304);
if ( v9 )
{
if ( v10 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 8LL))(v10, v8);
}
else if ( v10 )
{
(**(void (__fastcall ***)(__int64, _QWORD))v10)(v10, v8);
}
return _stack_chk_guard;
}