//
// GameLevelManager::onDeleteServerLevelCompleted from 0x3c133c to 0x3c13d0 (148 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x3d70be
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall GameLevelManager::onDeleteServerLevelCompleted(int a1, int a2, char **a3, int a4)
{
const char *v4; // r6
cocos2d::CCDictionary *v6; // r10
int v8; // r6
_BOOL4 v9; // r8
int result; // r0
_DWORD v11[2]; // [sp+8h] [bp-8h] BYREF
v11[0] = a3;
v11[1] = a4;
v4 = *a3;
v6 = *(cocos2d::CCDictionary **)(a1 + 448);
sub_776584((int)v11, *a3);
cocos2d::CCDictionary::removeObjectForKey(v6);
sub_774008(v11);
v8 = atoi(v4);
sub_776584((int)v11, "-1");
v9 = sub_3BE0D8(a2, (int)v11);
sub_774008(v11);
result = *(_DWORD *)(a1 + 524);
if ( v9 )
{
if ( result )
return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 4))(result, v8);
}
else if ( result )
{
return (**(int (__fastcall ***)(int, int))result)(result, v8);
}
return result;
}