//
// cocos2d::CCTouchDispatcher::addPrioTargetedDelegate from 0xdb19fc to 0xdb1aac (176 bytes)
//
// 10 xrefs:
// > BoomScrollLayer::registerWithTouchDispatcher @ 0x689234
// > TableView::registerWithTouchDispatcher @ 0x695ce8
// > FLAlertLayer::registerWithTouchDispatcher @ 0x699438
// > SliderTouchLogic::registerWithTouchDispatcher @ 0x6b5124
// > CCTextInputNode::registerWithTouchDispatcher @ 0x6b7a74
// > NumberInputLayer::registerWithTouchDispatcher @ 0x956578
// > DialogLayer::registerWithTouchDispatcher @ 0xa7029c
// > cocos2d::extension::CCControlHuePicker::registerWithTouchDispatcher @ 0xd0ea7c
// > cocos2d::extension::CCControlSaturationBrightnessPicker::registerWithTouchDispatcher @ 0xd0f354
// > ??> @ 0xe5fa8
//
// 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 13:08:39 +0000
//
__int64 __fastcall cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(
cocos2d::CCTouchDispatcher *this,
cocos2d::CCTouchDelegate *a2,
int a3,
unsigned __int8 a4)
{
int v9; // [xsp+44h] [xbp+44h] BYREF
v9 = 0;
if ( (unsigned __int8)cocos2d::CCTouchDispatcher::ownerLevelFor((cocos2d::CCDictionary **)this, a2, &v9) )
{
a3 = v9 - 1;
}
else if ( cocos2d::CCTouchDispatcher::isUsingForcePrio(this) )
{
a3 = *((_DWORD *)this + 32) - 1;
}
cocos2d::CCTouchDispatcher::addTargetedDelegate(this, a2, a3, a4);
return _stack_chk_guard;
}