//
// FLAlertLayer::ownedTouchPrio from 0x3cb94c to 0x3cb99a (78 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:37 +0000
//
int __fastcall FLAlertLayer::ownedTouchPrio(FLAlertLayer *this, int a2, int a3)
{
int v5; // r0
cocos2d::CCTouchDispatcher *v6; // r0
int v7; // r0
int v8; // r0
int v10[3]; // [sp+0h] [bp-Ch] BYREF
v10[1] = a2;
v10[2] = a3;
v10[0] = 0;
v5 = cocos2d::CCDirector::sharedDirector(this);
v6 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 80))(v5);
if ( cocos2d::CCTouchDispatcher::ownerLevelOf(v6, this, v10) )
{
v7 = v10[0];
}
else
{
v8 = cocos2d::CCDirector::sharedDirector(nullptr);
v7 = *(_DWORD *)((*(int (__fastcall **)(int))(*(_DWORD *)v8 + 80))(v8) + 100);
}
return v7 + a2;
}