//
// cocos2d::CCTargetedTouchHandler::handlerWithDelegate from 0x100475eb0 to 0x100475f6f (191 bytes)
//
// 1 xrefs:
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1004c77fc
//
// 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 12:30:35 +0000
//
_OWORD *__fastcall cocos2d::CCTargetedTouchHandler::handlerWithDelegate(void *lpsrc, int a2, char a3)
{
_OWORD *v4; // rbx
void *v5; // rdi
void *v6; // r15
v4 = operator new(0x58u);
*v4 = 0;
v4[1] = 0;
v4[2] = 0;
v4[3] = 0;
v4[4] = 0;
*((_QWORD *)v4 + 10) = 0;
cocos2d::CCObject::CCObject(v4);
*(_QWORD *)v4 = off_100B466C8;
*((_QWORD *)v4 + 7) = lpsrc;
if ( lpsrc )
v5 = __dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
else
v5 = nullptr;
cocos2d::CCObject::retain(v5);
*((_DWORD *)v4 + 16) = a2;
*((_DWORD *)v4 + 17) = 0;
v6 = operator new(0x40u);
cocos2d::CCSet::CCSet(v6);
*((_QWORD *)v4 + 10) = v6;
*((_BYTE *)v4 + 72) = a3;
cocos2d::CCObject::autorelease(v4);
return v4;
}