//
// CommentCell::onDelete from 0x433eac to 0x433f32 (134 bytes)
//
// 1 xrefs:
// > CommentCell::FLAlert_Clicked @ 0x433f4a
//
// 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:48:18 +0000
//
cocos2d::CCMenu *__fastcall CommentCell::onDelete(cocos2d::CCMenu *this)
{
GJComment **v1; // r4
int v2; // r3
int v3; // r3
int v4; // r5
int v5; // r0
GameLevelManager *v6; // r0
GameLevelManager *v7; // r0
v1 = (GJComment **)this;
v2 = *((_DWORD *)this + 109);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 344);
switch ( v3 )
{
case 3:
v4 = 6;
break;
case 4:
v4 = 7;
break;
case 5:
v4 = 8;
break;
default:
if ( *((_BYTE *)this + 440) )
{
v7 = (GameLevelManager *)GameLevelManager::sharedState(this);
GameLevelManager::deleteAccountComment(v7, *((_DWORD *)v1[109] + 77), *((_DWORD *)v1[109] + 72));
}
else
{
v6 = (GameLevelManager *)GameLevelManager::sharedState(this);
GameLevelManager::deleteLevelComment(v6, *((_DWORD *)v1[109] + 75), *((_DWORD *)v1[109] + 72));
}
goto LABEL_9;
}
v5 = GameLevelManager::sharedState(this);
GameLevelManager::deleteComment(v5, *((_DWORD *)v1[109] + 72), v4, *((_DWORD *)v1[109] + 75));
LABEL_9:
*((_BYTE *)v1[109] + 324) = 1;
return CommentCell::loadFromComment((CommentCell *)v1, v1[109]);
}
return this;
}