//
// GameLevelManager::onDeleteCommentCompleted from 0x4c2da4 to 0x4c2e78 (212 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x4da8ea
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:50:25 +0000
//
int __fastcall GameLevelManager::onDeleteCommentCompleted(GameLevelManager *a1, unsigned __int8 *a2, char *a3)
{
cocos2d::CCDictionary *v5; // r9
char v6; // r1
const char *v7; // r4
size_t v8; // r0
int v9; // r2
int v10; // r3
int v11; // r2
int v12; // r3
int v13; // r2
int v14; // r3
int v15; // r9
int v16; // r0
int v17; // r4
_BOOL4 v18; // r7
int result; // r0
int v20; // [sp+0h] [bp-14h] BYREF
int v21; // [sp+4h] [bp-10h]
int v22; // [sp+8h] [bp-Ch]
v5 = *((cocos2d::CCDictionary **)a1 + 187);
v20 = 0;
v6 = *a3;
v21 = 0;
v22 = 0;
if ( (v6 & 1) != 0 )
v7 = *((const char **)a3 + 2);
else
v7 = a3 + 1;
v8 = strlen(v7);
std::string::__init(&v20, v7, v8);
cocos2d::CCDictionary::removeObjectForKey(v5);
std::string::~string((int)&v20);
if ( GameLevelManager::typeFromCommentKey(a1, v7, v9, v10) == 1 )
{
v16 = GJAccountManager::sharedState((GJAccountManager *)((char *)&dword_0 + 1));
v13 = *(_DWORD *)(v16 + 280);
v14 = *(_DWORD *)(v16 + 284);
v15 = v13 - v14;
}
else
{
v15 = GameLevelManager::levelIDFromCommentKey(a1, v7, v11, v12);
}
v17 = GameLevelManager::pageFromCommentKey(a1, v7, v13, v14);
v20 = 0;
v21 = 0;
v22 = 0;
std::string::__init(&v20, "-1", 2u);
v18 = sub_4A9CC4(a2, (unsigned __int8 *)&v20);
result = std::string::~string((int)&v20);
if ( v18 )
{
result = *((_DWORD *)a1 + 208);
if ( result )
return (*(int (__fastcall **)(int, int, int))(*(_DWORD *)result + 8))(result, v15, v17);
}
return result;
}