//
// FLAlertLayer::ownedTouchPrio from 0x100495680 to 0x1004956e5 (101 bytes)
//
// 0 xrefs:
//
// 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 12:30:48 +0000
//
__int64 __fastcall FLAlertLayer::ownedTouchPrio(__int64 a1, int a2)
{
__int64 v2; // rax
__int64 v3; // rax
_DWORD *v4; // r14
__int64 v5; // rax
_DWORD v7[7]; // [rsp+0h] [rbp-1Ch] BYREF
v7[0] = 0;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
v4 = v7;
if ( !(unsigned __int8)sub_1004C74E0(v3, a1, v7) )
{
v5 = cocos2d::CCDirector::sharedDirector();
v4 = (_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5) + 128);
}
return (unsigned int)(*v4 + a2);
}