//
// cocos2d::CCTargetedTouchHandler::handlerWithDelegate from 0x8087fc to 0x808846 (74 bytes)
//
// 1 xrefs:
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x807f88
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:27 +0000
//
_DWORD *__fastcall cocos2d::CCTargetedTouchHandler::handlerWithDelegate(
cocos2d::CCTargetedTouchHandler *this,
cocos2d::CCTouchDelegate *a2,
bool a3,
bool a4)
{
_DWORD *v7; // r4
v7 = (_DWORD *)operator new(0x48u);
memset(v7, 0, 0x48u);
cocos2d::CCObject::CCObject(v7);
*v7 = &off_D12BE8;
if ( cocos2d::CCTargetedTouchHandler::initWithDelegate((cocos2d::CCTargetedTouchHandler *)v7, this, (int)a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
}
else
{
cocos2d::CCObject::release(v7);
return nullptr;
}
return v7;
}