//
// cocos2d::CCTouchDispatcher::addPrioTargetedDelegate from 0x1800b63f0 to 0x1800b6489 (153 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c28e0
//
// This function is hookable on this platform (idp: pc, 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 11:22:21 +0000
//
void __fastcall cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(
cocos2d::CCTouchDispatcher *this,
struct cocos2d::CCTouchDelegate *a2,
int a3,
bool a4)
{
struct cocos2d::CCNode *v8; // rax
int v9; // ebx
int v10[6]; // [rsp+30h] [rbp-18h] BYREF
v10[0] = 0;
v8 = (struct cocos2d::CCNode *)_RTDynamicCast(
a2,
0,
&cocos2d::CCTouchDelegate `RTTI Type Descriptor',
&cocos2d::CCNode `RTTI Type Descriptor',
0);
if ( v8 && cocos2d::CCTouchDispatcher::ownerLevelOf(this, v8, v10) )
{
v9 = v10[0];
LABEL_6:
a3 = v9 - 1;
goto LABEL_7;
}
if ( *((int *)this + 40) > 0 )
{
v9 = *((_DWORD *)this + 32);
goto LABEL_6;
}
LABEL_7:
cocos2d::CCTouchDispatcher::addTargetedDelegate(this, a2, a3, a4);
}