//
// GameLevelManager::onDeleteCommentCompleted from 0x3c2534 to 0x3c25ec (184 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x3d71ce
//
// 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
//
int __fastcall GameLevelManager::onDeleteCommentCompleted(GameLevelManager *a1, int a2, char **a3, int a4)
{
const char *v4; // r8
cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r5
int v8; // r5
GJAccountManager *v9; // r0
int v10; // r8
_BOOL4 v11; // r9
int result; // r0
_DWORD v15[2]; // [sp+8h] [bp-8h] BYREF
v15[0] = a3;
v15[1] = a4;
v4 = *a3;
m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;
sub_776584((int)v15, *a3);
cocos2d::CCDictionary::removeObjectForKey(m_friendReqAndUserBlocks);
sub_774008(v15);
if ( GameLevelManager::typeFromCommentKey(a1, v4) == Account )
{
v9 = GJAccountManager::sharedState();
v8 = v9->m_accountID - v9->m_unkInt1;
}
else
{
v8 = GameLevelManager::levelIDFromCommentKey(a1, v4);
}
v10 = GameLevelManager::pageFromCommentKey(a1, v4);
sub_776584((int)v15, "-1");
v11 = sub_3BE0D8(a2, (int)v15);
result = sub_774008(v15);
if ( v11 )
{
result = (int)a1->m_commentUploadDelegate;
if ( result )
return (*(int (__fastcall **)(int, int, int, _DWORD, GameLevelManager *, int))(*(_DWORD *)result + 8))(
result,
v8,
v10,
*(_DWORD *)(*(_DWORD *)result + 8),
a1,
a2);
}
return result;
}