//
// GJWriteMessagePopup::onClearBody from 0xa1f284 to 0xa1f3b8 (308 bytes)
//
// 3 xrefs:
// > ??> @ 0xcdb58
// > GJWriteMessagePopup::init @ 0xa32bd4
// > ??> @ 0x15460d0
//
// 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:59:39 +0000
//
__int64 __fastcall GJWriteMessagePopup::onClearBody(GJWriteMessagePopup *this, cocos2d::CCObject *a2)
{
ButtonSprite **v3; // x19
_QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF
void *v6; // [xsp+30h] [xbp+30h]
v6 = (void *)operator new(0x30u);
v5[1] = 44;
v5[0] = 49;
strcpy((char *)v6, "Are you sure you want to reset this message?");
v3 = (ButtonSprite **)FLAlertLayer::create(
(__int64)this + 680,
(cocos2d::CCLabelBMFont *)"Reset Message",
(char *)v5,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Reset",
0,
380.0,
0.0,
1.0);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
ButtonSprite::updateBGImage(v3[77], "GJ_button_05.png");
(*((void (__fastcall **)(ButtonSprite **, __int64))*v3 + 9))(v3, 1);
(*((void (__fastcall **)(ButtonSprite **))*v3 + 164))(v3);
return _stack_chk_guard;
}