//
// PauseLayer::tryQuit from 0x3a8f38 to 0x3a8fc4 (140 bytes)
//
// 2 xrefs:
// > PauseLayer::keyDown @ 0x3a9020
// > PauseLayer::keyBackClicked @ 0x3a905e
//
// 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 PauseLayer::tryQuit(PauseLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v4; // r0
FLAlertLayer *v5; // r5
_BYTE v6[4]; // [sp+10h] [bp-8h] BYREF
v4 = GameManager::sharedState();
if ( GameManager::getGameVariable(v4, "0167") )
{
sub_776584((int)v6, "Are you sure you want to exit?");
v5 = FLAlertLayer::create(
(int)&a1->FLAlertLayerProtocol,
(int)"Exit Level",
(int)v6,
(int)"Cancel",
(int)"Exit",
300.0);
sub_774008(v6);
v5->setTag(v5, 0);
v5->show(v5);
}
else
{
PauseLayer::onQuit(a1, a2);
}
}