//
// cocos2d::CCTargetedTouchHandler::handlerWithDelegate from 0x1800b79b0 to 0x1800b7a5a (170 bytes)
//
// 3 xrefs:
// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b65e8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2aa8
//
// This function is hookable on this platform (idp: pc, 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 11:22:22 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCTargetedTouchHandler *__fastcall cocos2d::CCTargetedTouchHandler::handlerWithDelegate(
struct cocos2d::CCTouchDelegate *a1,
int a2,
bool a3)
{
__int64 v6; // rbx
v6 = sub_1800E4AC0(0x58u);
if ( v6 )
{
*(_OWORD *)v6 = 0;
*(_OWORD *)(v6 + 16) = 0;
*(_OWORD *)(v6 + 32) = 0;
*(_OWORD *)(v6 + 48) = 0;
*(_OWORD *)(v6 + 64) = 0;
*(_QWORD *)(v6 + 80) = 0;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v6);
*(_QWORD *)v6 = &cocos2d::CCTargetedTouchHandler::`vftable';
}
else
{
v6 = 0;
}
if ( !v6 )
return (struct cocos2d::CCTargetedTouchHandler *)v6;
if ( cocos2d::CCTargetedTouchHandler::initWithDelegate((cocos2d::CCTargetedTouchHandler *)v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return (struct cocos2d::CCTargetedTouchHandler *)v6;
}
cocos2d::CCObject::release((cocos2d::CCObject *)v6);
return nullptr;
}