//
// cocos2d::CCTargetedTouchHandler::handlerWithDelegate from 0xdb2860 to 0xdb290c (172 bytes)
//
// 2 xrefs:
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0xdb1910
// > ??> @ 0xca690
//
// 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:40 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCTargetedTouchHandler::handlerWithDelegate(
cocos2d::CCTargetedTouchHandler *this,
cocos2d::CCTouchDelegate *a2,
char a3)
{
int v4; // w21
cocos2d::CCObject *v6; // x0
cocos2d::CCObject *v7; // x19
v4 = (int)a2;
v6 = (cocos2d::CCObject *)operator new(0x58u);
*(_QWORD *)v6 = 0;
*((_QWORD *)v6 + 1) = 0;
*((_QWORD *)v6 + 2) = 0;
*((_QWORD *)v6 + 3) = 0;
*((_QWORD *)v6 + 4) = 0;
*((_QWORD *)v6 + 5) = 0;
*((_QWORD *)v6 + 6) = 0;
*((_QWORD *)v6 + 7) = 0;
*((_QWORD *)v6 + 8) = 0;
*((_QWORD *)v6 + 9) = 0;
*((_QWORD *)v6 + 10) = 0;
v7 = v6;
cocos2d::CCObject::CCObject((__int64)v6);
*(_QWORD *)v7 = &off_1531B90;
if ( (unsigned __int8)cocos2d::CCTargetedTouchHandler::initWithDelegate(v7, this, v4, a3) )
{
cocos2d::CCObject::autorelease(v7);
return v7;
}
else
{
cocos2d::CCObject::release(v7);
return nullptr;
}
}