//
// cocos2d::CCTargetedTouchHandler::handlerWithDelegate from 0xb3f9e4 to 0xb3fa90 (172 bytes)
//
// 2 xrefs:
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0xb3ec04
// > ??> @ 0x995d0
//
// 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)
{
__int64 v6; // x0
cocos2d::CCTargetedTouchHandler *v7; // x19
v6 = operator new(0x58u);
*(_QWORD *)v6 = 0;
*(_QWORD *)(v6 + 8) = 0;
*(_QWORD *)(v6 + 16) = 0;
*(_QWORD *)(v6 + 24) = 0;
*(_QWORD *)(v6 + 32) = 0;
*(_QWORD *)(v6 + 40) = 0;
*(_QWORD *)(v6 + 48) = 0;
*(_QWORD *)(v6 + 56) = 0;
*(_QWORD *)(v6 + 64) = 0;
*(_QWORD *)(v6 + 72) = 0;
*(_QWORD *)(v6 + 80) = 0;
v7 = (cocos2d::CCTargetedTouchHandler *)v6;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v6);
v7->__vftable = (cocos2d::CCTargetedTouchHandler_vtbl *)&off_121BB30;
if ( cocos2d::CCTargetedTouchHandler::initWithDelegate(v7, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v7);
return v7;
}
else
{
cocos2d::CCObject::release(v7);
return nullptr;
}
}