//
// GJMessageCell::onDeleteMessage from 0x73b8a4 to 0x73b9c0 (284 bytes)
//
// 3 xrefs:
// > ??> @ 0xa6750
// > GJMessageCell::loadFromMessage @ 0x73f730
// > ??> @ 0x1544ab0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:52:41 +0000
//
__int64 __fastcall GJMessageCell::onDeleteMessage(GJMessageCell *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
ButtonSprite **v4; // x20
__int64 v6[2]; // [xsp+30h] [xbp+30h] BYREF
void *v7; // [xsp+40h] [xbp+40h]
v3 = *((_QWORD *)this + 72);
if ( v3 && *(int *)(v3 + 320) > 0 )
{
v6[0] = 0;
v6[1] = 0;
v7 = nullptr;
std::string::__init(v6, "Are you sure you want to delete this message?", 0x35u);
v4 = (ButtonSprite **)FLAlertLayer::create(
(__int64)this + 552,
(cocos2d::CCLabelBMFont *)"Delete",
(char *)v6,
(ButtonSprite *)"Back",
(ButtonSprite *)"Delete",
0,
380.0,
0.0,
1.0);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
ButtonSprite::updateBGImage(v4[77], "GJ_button_06.png");
(*((void (__fastcall **)(ButtonSprite **, __int64))*v4 + 9))(v4, 1);
(*((void (__fastcall **)(ButtonSprite **))*v4 + 164))(v4);
}
return _stack_chk_guard;
}