//
// FLAlertLayer::keyBackClicked from 0x14005b550 to 0x14005b638 (232 bytes)
//
// 3 xrefs:
// > ??> @ 0x14070dae8
// > ??> @ 0x1407460c0
// > ??> @ 0x14091070c
//
// 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::keyBackClicked(__int64 a1)
{
__int64 v1; // rdi
__int64 v3; // rax
cocos2d::CCTouchDispatcher *v4; // rax
__int64 v5; // rdx
__int64 v6; // rax
cocos2d::CCTouchDispatcher *v7; // rax
void (__fastcall ***v8)(_QWORD, __int64, __int64); // rcx
__int64 v9; // r8
__int64 v10; // rax
cocos2d::CCTouchDispatcher *v11; // rax
v1 = a1 - 336;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 336) + 992LL))(a1 - 336, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v1 + 1008LL))(v1, 0);
if ( !*(_BYTE *)(a1 + 320) )
{
if ( *(_BYTE *)(v1 + 576) )
{
v10 = cocos2d::CCDirector::sharedDirector();
v11 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 144LL))(v10);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v11, (struct cocos2d::CCObject *)v1);
v8 = *(void (__fastcall ****)(_QWORD, __int64, __int64))(v1 + 560);
if ( !v8 )
goto LABEL_9;
LOBYTE(v9) = 1;
}
else
{
v6 = cocos2d::CCDirector::sharedDirector();
v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 144LL))(v6);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, (struct cocos2d::CCObject *)v1);
v8 = *(void (__fastcall ****)(_QWORD, __int64, __int64))(v1 + 560);
if ( !v8 )
goto LABEL_9;
v9 = 0;
}
(**v8)(v8, v1, v9);
goto LABEL_9;
}
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (struct cocos2d::CCObject *)v1);
LABEL_9:
LOBYTE(v5) = 1;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 520LL))(v1, v5);
}