//
// FLAlertLayer::ownedTouchPrio from 0x699de4 to 0x699e8c (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x63d18
//
// This function is hookable on this platform (idp: arm, 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:50:39 +0000
//
__int64 __fastcall FLAlertLayer::ownedTouchPrio(FLAlertLayer *this, int a2)
{
__int64 v4; // x0
cocos2d::CCTouchDispatcher *v5; // x0
cocos2d::CCDirector *v6; // x0
__int64 v8; // x0
int v9; // [xsp+44h] [xbp+44h] BYREF
v9 = 0;
v4 = cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
v6 = (cocos2d::CCDirector *)(unsigned __int8)cocos2d::CCTouchDispatcher::ownerLevelOf(v5, this, &v9);
if ( (_BYTE)v6 )
return (unsigned int)(a2 + v9);
v8 = cocos2d::CCDirector::sharedDirector(v6);
return (unsigned int)(a2 + *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8) + 128));
}