//
// MenuLayer::onQuit from 0x100391920 to 0x1003919d1 (177 bytes)
//
// 3 xrefs:
// > MenuLayer::keyBackClicked @ 0x1003920a5
// > sub_1003920B0 @ 0x1003920bc
// > MenuLayer::init @ 0x100390bcf
//
// 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
//
void __fastcall MenuLayer::onQuit(MenuLayer *a1, cocos2d::CCObject *a2)
{
__int64 v2; // rbx
_QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
__p = operator new(0x28u);
v3[0] = 41;
v3[1] = 38;
strcpy((char *)__p, "Are you sure you want to quit?");
v2 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, "Quit Game", v3, "Cancel", "Yes", 300.0);
if ( (v3[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 72LL))(v2, 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1288LL))(v2);
}