//
// FLAlertLayer::onButtonTag from 0x14005b670 to 0x14005b6d7 (103 bytes)
//
// 2 xrefs:
// > FLAlertLayer::onButton @ 0x14005b65c
// > ??> @ 0x140910724
//
// This function is hookable on this platform (idp: pc, 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 11:25:42 +0000
//
__int64 __fastcall FLAlertLayer::onButtonTag(struct cocos2d::CCObject *a1, int a2)
{
__int64 v4; // rax
cocos2d::CCTouchDispatcher *v5; // rax
__int64 v6; // rdx
__int64 v7; // r8
void (__fastcall ***v8)(_QWORD, struct cocos2d::CCObject *, __int64); // rcx
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1);
if ( a2 != 2 )
{
v8 = *((void (__fastcall ****)(_QWORD, struct cocos2d::CCObject *, __int64))a1 + 70);
if ( v8 )
{
LOBYTE(v7) = a2 == 1;
(**v8)(v8, a1, v7);
}
}
LOBYTE(v6) = 1;
return (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v6);
}