//
// GameLevelManager::onDeleteCommentsCompleted from 0x4b05d0 to 0x4b068c (188 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x4da91a
//
// 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:02 +0000
//
int __fastcall GameLevelManager::onDeleteCommentsCompleted(int a1, int a2, int a3, int a4)
{
cocos2d::CCDictionary *v6; // r10
const char *v7; // r7
size_t v8; // r0
_BOOL4 v9; // r7
int result; // r0
int v11; // r4
const char *v12; // r0
int v13; // [sp+0h] [bp-10h] BYREF
int v14; // [sp+4h] [bp-Ch]
int v15; // [sp+8h] [bp-8h]
int v16; // [sp+Ch] [bp-4h]
v13 = a1;
v14 = a2;
v15 = a3;
v16 = a4;
v6 = *(cocos2d::CCDictionary **)(a1 + 748);
v13 = 0;
v14 = 0;
v15 = 0;
if ( (*(_BYTE *)a3 & 1) != 0 )
v7 = *(const char **)(a3 + 8);
else
v7 = (const char *)(a3 + 1);
v8 = strlen(v7);
std::string::__init(&v13, v7, v8);
cocos2d::CCDictionary::removeObjectForKey(v6);
std::string::~string((int)&v13);
v13 = 0;
v14 = 0;
v15 = 0;
std::string::__init(&v13, "-1", 2u);
v9 = sub_4A9CC4((unsigned __int8 *)a2, (unsigned __int8 *)&v13);
result = std::string::~string((int)&v13);
v11 = *(_DWORD *)(a1 + 832);
if ( v9 )
{
if ( v11 )
return (*(int (__fastcall **)(_DWORD))(*(_DWORD *)v11 + 16))(*(_DWORD *)(a1 + 832));
}
else
{
if ( (*(_BYTE *)a2 & 1) != 0 )
v12 = *(const char **)(a2 + 8);
else
v12 = (const char *)(a2 + 1);
result = atoi(v12);
if ( v11 )
return (*(int (__fastcall **)(int, int))(*(_DWORD *)v11 + 12))(v11, result);
}
return result;
}