//
// GJMessageCell::onDeleteMessage from 0x4280f4 to 0x428194 (160 bytes)
//
// 0 xrefs:
//
// 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:05 +0000
//
int __fastcall GJMessageCell::onDeleteMessage(int this, cocos2d::CCObject *a2)
{
int v2; // r7
int v3; // r2
char **v4; // r4
int v5[3]; // [sp+18h] [bp-14h] BYREF
v2 = this;
v3 = *(_DWORD *)(this + 432);
if ( v3 )
{
if ( *(int *)(v3 + 268) > 0 )
{
memset(v5, 0, sizeof(v5));
std::string::__init(v5, "Are you sure you want to delete this message?", 0x35u);
v4 = (char **)FLAlertLayer::create(
v2 + 420,
(cocos2d::CCLabelBMFont *)"Delete",
(int)v5,
(ButtonSprite *)"Back",
(ButtonSprite *)"Delete",
380.0,
0,
0,
1.0);
std::string::~string((int)v5);
ButtonSprite::updateBGImage(v4[121], "GJ_button_06.png");
(*((void (__fastcall **)(char **, int))*v4 + 9))(v4, 1);
return (*((int (__fastcall **)(char **))*v4 + 164))(v4);
}
}
return this;
}