//
// GameLevelManager::onDeleteCommentCompleted from 0x10008c61c to 0x10008c71c (256 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100089690
//
// 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
//
void __fastcall GameLevelManager::onDeleteCommentCompleted(__int64 a1, _QWORD *a2, char *__s)
{
char *v3; // x21
__int64 v6; // x22
GameLevelManager *v7; // x0
GameLevelManager *v8; // x0
GJAccountManager *v9; // x0
unsigned __int64 v10; // x22
__int64 v11; // x21
_BOOL4 v12; // w0
_BOOL4 v13; // w20
__int64 v14; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v16; // [xsp+1Fh] [xbp-21h]
v3 = __s;
if ( __s[23] < 0 )
v3 = *(char **)__s;
v6 = *(_QWORD *)(a1 + 608);
sub_100009900(__p, v3);
v7 = (GameLevelManager *)cocos2d::CCDictionary::removeObjectForKey_1(v6, (char *)__p);
if ( v16 < 0 )
operator delete(__p[0]);
v8 = (GameLevelManager *)(int)GameLevelManager::typeFromCommentKey(v7, v3);
if ( (_DWORD)v8 == 1 )
{
v9 = GJAccountManager::sharedState();
v10 = (unsigned int)(v9->m_accountID - v9->m_unkInt1);
}
else
{
v9 = (GJAccountManager *)GameLevelManager::levelIDFromCommentKey(v8, v3);
v10 = (unsigned __int64)v9;
}
v11 = GameLevelManager::pageFromCommentKey((GameLevelManager *)v9, v3);
sub_100009900(__p, "-1");
v12 = sub_1000045BC(a2, __p);
v13 = v12;
if ( v16 < 0 )
{
operator delete(__p[0]);
if ( !v13 )
return;
}
else if ( !v12 )
{
return;
}
v14 = *(_QWORD *)(a1 + 744);
if ( v14 )
(*(void (__fastcall **)(__int64, unsigned __int64, __int64))(*(_QWORD *)v14 + 16LL))(v14, v10, v11);
}