//
// cocos2d::CCTargetedTouchHandler::handlerWithDelegate from 0x1800b3c70 to 0x1800b3d1a (170 bytes)
//
// 3 xrefs:
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b2b8e
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b87b4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCTargetedTouchHandler *__fastcall cocos2d::CCTargetedTouchHandler::handlerWithDelegate(
struct cocos2d::CCTouchDelegate *a1,
int a2,
bool a3)
{
cocos2d::CCTargetedTouchHandler *v6; // rbx
v6 = (cocos2d::CCTargetedTouchHandler *)operator new(0x58u);
if ( v6 )
{
*(_OWORD *)&v6->__vftable = 0;
*(_OWORD *)&v6->m_nTag = 0;
*(_OWORD *)&v6->m_uIndexInArray = 0;
*(_OWORD *)&v6->m_uOrderOfArrival = 0;
*(_OWORD *)&v6->m_nPriority = 0;
v6->m_pClaimedTouches = nullptr;
cocos2d::CCObject::CCObject(v6);
v6->__vftable = (cocos2d::CCTargetedTouchHandler_vtbl *)&cocos2d::CCTargetedTouchHandler::`vftable';
}
else
{
v6 = nullptr;
}
if ( !v6 )
return v6;
if ( cocos2d::CCTargetedTouchHandler::initWithDelegate(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v6);
return v6;
}
cocos2d::CCObject::release(v6);
return nullptr;
}