//
// FLAlertLayer::onButtonTag from 0x3cb604 to 0x3cb642 (62 bytes)
//
// 3 xrefs:
// > FLAlertLayer::keyBackClicked @ 0x3cb676
// > FLAlertLayer::onButton @ 0x3cb696
// > FLAlertLayer::keyDown @ 0x3cc3e8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:37 +0000
//
int __fastcall FLAlertLayer::onButtonTag(FLAlertLayer *this, int a2)
{
int v4; // r0
cocos2d::CCTouchDispatcher *v5; // r0
void (__fastcall ***v6)(_DWORD, FLAlertLayer *, bool); // r0
v4 = cocos2d::CCDirector::sharedDirector(this);
v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, this);
if ( a2 != 2 )
{
v6 = *((void (__fastcall ****)(_DWORD, FLAlertLayer *, bool))this + 112);
if ( v6 )
(**v6)(v6, this, a2 == 1);
}
return (*(int (__fastcall **)(FLAlertLayer *, int))(*(_DWORD *)this + 264))(this, 1);
}