//
// cocos2d::CCTouchDispatcher::addPrioTargetedDelegate from 0x807ff4 to 0x808046 (82 bytes)
//
// 9 xrefs:
// > BoomScrollLayer::registerWithTouchDispatcher @ 0x3c1290
// > TableView::registerWithTouchDispatcher @ 0x3c9252
// > FLAlertLayer::registerWithTouchDispatcher @ 0x3cb36c
// > SliderTouchLogic::registerWithTouchDispatcher @ 0x3da872
// > CCTextInputNode::registerWithTouchDispatcher @ 0x3dc4ae
// > NumberInputLayer::registerWithTouchDispatcher @ 0x568726
// > DialogLayer::registerWithTouchDispatcher @ 0x60917e
// > cocos2d::extension::CCControlHuePicker::registerWithTouchDispatcher @ 0x7a888e
// > cocos2d::extension::CCControlSaturationBrightnessPicker::registerWithTouchDispatcher @ 0x7a8eda
//
// 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
//
unsigned int *__fastcall cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(
cocos2d::CCTouchDispatcher *this,
cocos2d::CCTouchDelegate *a2,
cocos2d::CCTouchDelegate *a3,
int a4)
{
int v8; // r4
int v10[2]; // [sp+0h] [bp-8h] BYREF
v10[1] = (int)a2;
v10[0] = 0;
if ( cocos2d::CCTouchDispatcher::ownerLevelFor((cocos2d::CCDictionary **)this, a2, v10) )
{
v8 = v10[0];
LABEL_5:
a3 = (cocos2d::CCTouchDelegate *)(v8 - 1);
return cocos2d::CCTouchDispatcher::addTargetedDelegate(this, a2, a3, a4);
}
if ( cocos2d::CCTouchDispatcher::isUsingForcePrio(this) )
{
v8 = *((_DWORD *)this + 25);
goto LABEL_5;
}
return cocos2d::CCTouchDispatcher::addTargetedDelegate(this, a2, a3, a4);
}