//
// GJMessagePopup::onRemove from 0x140298750 to 0x1402988d8 (392 bytes)
//
// 2 xrefs:
// > GJMessagePopup::loadFromGJMessage @ 0x14029834a
// > ??> @ 0x1406d1c7c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
void GJMessagePopup::onRemove(GJMessagePopup *a1, cocos2d::CCObject *a2)
{
FLAlertLayerProtocol *v2; // rdi
FLAlertLayer *v3; // rbx
__int64 v4; // rax
__int128 v5; // [rsp+50h] [rbp-48h] BYREF
__int64 v6; // [rsp+60h] [rbp-38h]
__int64 v7; // [rsp+68h] [rbp-30h]
_BYTE v8[32]; // [rsp+70h] [rbp-28h] BYREF
FLAlertLayer *v9; // [rsp+B0h] [rbp+18h]
v2 = &a1->FLAlertLayerProtocol;
if ( !a1 )
v2 = nullptr;
v5 = 0;
*(_QWORD *)&v5 = sub_14003AA10(0x40u);
v6 = 53;
v7 = 63;
strcpy((char *)v5, "Are you sure you want to delete this message?");
v9 = (FLAlertLayer *)operator new(0x278u);
v3 = FLAlertLayer::FLAlertLayer(v9);
if ( v3 )
{
v4 = sub_14003BDB0((__int64)v8, (__int64)&v5);
if ( FLAlertLayer::init((__int64)v3, (__int64)v2, "Delete", v4, "Back", "Delete", 380.0, 0, 0, 1.0) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
((void (__fastcall *)(FLAlertLayer *, __int64))v3->~FLAlertLayer)(v3, 1);
v3 = nullptr;
}
}
sub_14003A830((__int64)&v5);
ButtonSprite::updateBGImage(v3->m_button2, "GJ_button_06.png");
v3->setTag(v3, 2);
v3->show(v3);
}