//
// FLAlertLayer::keyBackClicked from 0x1400528f0 to 0x1400529a6 (182 bytes)
//
// 2 xrefs:
// > ??> @ 0x140532890
// > ??> @ 0x1406c4e3c
//
// 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 FLAlertLayer::keyBackClicked(FLAlertLayer *a1)
{
char *p_m_nUpdateScriptHandler; // rdi
__int64 v3; // rax
cocos2d::CCTouchDispatcher *v4; // rax
__int64 v5; // rdx
void (__fastcall ***v6)(_QWORD, char *, __int64); // rcx
__int64 v7; // r8
__int64 v8; // rax
cocos2d::CCTouchDispatcher *v9; // rax
p_m_nUpdateScriptHandler = (char *)&a1[-1].m_nUpdateScriptHandler;
(*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)&a1[-1].m_nUpdateScriptHandler + 976LL))(
&a1[-1].m_nUpdateScriptHandler,
0);
(*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)p_m_nUpdateScriptHandler + 992LL))(p_m_nUpdateScriptHandler, 0);
if ( LOBYTE(a1->m_pUserObject) )
{
v8 = cocos2d::CCDirector::sharedDirector();
v9 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 144LL))(v8);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, (struct cocos2d::CCObject *)p_m_nUpdateScriptHandler);
v6 = *((void (__fastcall ****)(_QWORD, char *, __int64))p_m_nUpdateScriptHandler + 69);
if ( v6 )
{
LOBYTE(v7) = 1;
goto LABEL_6;
}
}
else
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (struct cocos2d::CCObject *)p_m_nUpdateScriptHandler);
v6 = *((void (__fastcall ****)(_QWORD, char *, __int64))p_m_nUpdateScriptHandler + 69);
if ( v6 )
{
v7 = 0;
LABEL_6:
(**v6)(v6, p_m_nUpdateScriptHandler, v7);
}
}
LOBYTE(v5) = 1;
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)p_m_nUpdateScriptHandler + 504LL))(p_m_nUpdateScriptHandler, v5);
}