//
// GameLevelManager::onAdminDeleteUserCommentsCompleted from 0x80a940 to 0x80aa9c (348 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85c85c
// > ??> @ 0x1059b8
//
// 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::onAdminDeleteUserCommentsCompleted(__int64 a1, __int64 a2, char *a3)
{
char *v5; // x19
__int64 v6; // x24
size_t v7; // x0
_BOOL4 v8; // w19
__int64 v9; // x0
const char *v11; // x0
__int64 v12; // x1
void (__fastcall ***v13)(_QWORD, __int64); // x0
__int64 v14; // [xsp+40h] [xbp+40h] BYREF
__int64 v15; // [xsp+48h] [xbp+48h]
void *v16; // [xsp+50h] [xbp+50h]
v5 = a3 + 1;
v6 = *(_QWORD *)(a1 + 1088);
if ( (*a3 & 1) != 0 )
v5 = *((char **)a3 + 2);
v14 = 0;
v15 = 0;
v16 = nullptr;
v7 = strlen(v5);
std::string::__init(&v14, v5, v7);
cocos2d::CCDictionary::removeObjectForKey(v6, &v14);
if ( (v14 & 1) != 0 )
operator delete(v16);
v14 = 0;
v15 = 0;
v16 = nullptr;
std::string::__init(&v14, &word_117CE08, 2u);
v8 = sub_7FEA60(a2, (__int64)&v14);
if ( (v14 & 1) != 0 )
operator delete(v16);
if ( v8 )
{
v9 = *(_QWORD *)(a1 + 1256);
if ( v9 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 8LL))(v9);
}
else
{
v11 = (const char *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v11 = *(const char **)(a2 + 16);
v12 = (unsigned int)atoi(v11);
v13 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 1256);
if ( v13 )
(**v13)(v13, v12);
}
return _stack_chk_guard;
}