//
// GameLevelManager::onAdminDeleteUserCommentsCompleted from 0x140241620 to 0x1402417a8 (392 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x14021ac28
// > ??> @ 0x14091c1d8
//
// This function is hookable on this platform (idp: pc, 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 11:28:36 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall GameLevelManager::onAdminDeleteUserCommentsCompleted(__int64 a1, const void **a2, _QWORD *a3)
{
_BYTE *v6; // rdx
size_t v7; // r8
void *v8; // rcx
const void *v9; // rcx
size_t v10; // r8
__int64 v11; // rcx
const char *v12; // rcx
unsigned int v13; // eax
void (__fastcall ***v14)(_QWORD, _QWORD); // rcx
void *Block[2]; // [rsp+40h] [rbp-48h] BYREF
__int128 v16; // [rsp+50h] [rbp-38h]
v6 = a3;
if ( a3[3] > 0xFu )
v6 = (_BYTE *)*a3;
*(_OWORD *)Block = 0;
v16 = 0;
v7 = -1;
do
++v7;
while ( v6[v7] );
sub_14003D230(Block, v6, v7);
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1200), Block);
if ( *((_QWORD *)&v16 + 1) > 0xFu )
{
v8 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v16 + 1) + 1LL) >= 0x1000 )
{
v8 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v8);
}
*(_OWORD *)Block = 0;
*(_QWORD *)&v16 = 2;
*((_QWORD *)&v16 + 1) = 15;
strcpy((char *)Block, "-1");
v9 = a2;
if ( (unsigned __int64)a2[3] > 0xF )
v9 = *a2;
v10 = (size_t)a2[2];
if ( v10 > 2 )
v10 = 2;
if ( !memcmp(v9, Block, v10) && a2[2] == (const void *)2 )
{
v11 = *(_QWORD *)(a1 + 1384);
if ( v11 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 8LL))(v11);
}
else
{
v12 = (const char *)a2;
if ( (unsigned __int64)a2[3] > 0xF )
v12 = (const char *)*a2;
v13 = atoi(v12);
v14 = *(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 1384);
if ( v14 )
(**v14)(v14, v13);
}
sub_14003D310((__int64)a2);
sub_14003D310((__int64)a3);
}