//
// cocos2d::CCTouchDispatcher::ownerLevelFor from 0x807e38 to 0x807e6a (50 bytes)
//
// 2 xrefs:
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x807f4e
// > cocos2d::CCTouchDispatcher::addPrioTargetedDelegate @ 0x808012
//
// 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 12:01:26 +0000
//
int __fastcall cocos2d::CCTouchDispatcher::ownerLevelFor(
cocos2d::CCDictionary **this,
cocos2d::CCTouchDelegate *lpsrc,
int *a3)
{
cocos2d::CCNode *v5; // r1
if ( lpsrc
&& (v5 = (cocos2d::CCNode *)_dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
-2)) != nullptr )
{
return cocos2d::CCTouchDispatcher::ownerLevelOf(this, v5, a3);
}
else
{
return 0;
}
}