//
// cocos2d::CCTargetedTouchHandler::handlerWithDelegate from 0x5faf9c to 0x5fafe6 (74 bytes)
//
// 1 xrefs:
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x5fa7ea
//
// 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
//
cocos2d::CCTargetedTouchHandler *cocos2d::CCTargetedTouchHandler::handlerWithDelegate(
cocos2d::CCTouchDelegate *a1,
int a2,
bool a3)
{
cocos2d::CCTargetedTouchHandler *v6; // r4
v6 = (cocos2d::CCTargetedTouchHandler *)operator new(0x48u);
memset(v6, 0, sizeof(cocos2d::CCTargetedTouchHandler));
cocos2d::CCObject::CCObject(v6);
v6->__vftable = (cocos2d::CCTargetedTouchHandler_vtbl *)&off_AAF130;
if ( cocos2d::CCTargetedTouchHandler::initWithDelegate(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
cocos2d::CCObject::release(v6);
return nullptr;
}
return v6;
}