//
// GameLevelManager::onDeleteCommentCompleted from 0x80f1f0 to 0x80f384 (404 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85b098
// > ??> @ 0xc02f8
//
// 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:49 +0000
//
__int64 __fastcall GameLevelManager::onDeleteCommentCompleted(GameLevelManager *a1, __int64 a2, char *a3)
{
char *v5; // x19
size_t v6; // x0
__int64 v7; // x23
GJAccountManager *v8; // x0
unsigned int v9; // w23
unsigned int v10; // w25
_BOOL4 v11; // w19
__int64 v12; // x0
__int64 v14; // x0
__int64 v15; // [xsp+50h] [xbp+50h] BYREF
__int64 v16; // [xsp+58h] [xbp+58h]
void *v17; // [xsp+60h] [xbp+60h]
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((char **)a3 + 2);
v15 = 0;
v16 = 0;
v17 = nullptr;
v6 = strlen(v5);
v7 = *((_QWORD *)a1 + 136);
std::string::__init(&v15, v5, v6);
cocos2d::CCDictionary::removeObjectForKey(v7, &v15);
if ( (v15 & 1) != 0 )
{
operator delete(v17);
v8 = (GJAccountManager *)GameLevelManager::typeFromCommentKey(a1, v5);
if ( (_DWORD)v8 != 1 )
goto LABEL_5;
}
else
{
v8 = (GJAccountManager *)GameLevelManager::typeFromCommentKey(a1, v5);
if ( (_DWORD)v8 != 1 )
{
LABEL_5:
v9 = GameLevelManager::levelIDFromCommentKey(a1, v5);
goto LABEL_6;
}
}
v14 = GJAccountManager::sharedState(v8);
v9 = *(_DWORD *)(v14 + 352) - *(_DWORD *)(v14 + 356);
LABEL_6:
v10 = GameLevelManager::pageFromCommentKey(a1, v5);
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, &word_117CE08, 2u);
v11 = sub_7FEA60(a2, (__int64)&v15);
if ( (v15 & 1) != 0 )
operator delete(v17);
if ( v11 )
{
v12 = *((_QWORD *)a1 + 156);
if ( v12 )
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v12 + 16LL))(v12, v9, v10);
}
return _stack_chk_guard;
}