//
// cocos2d::CCTouchHandler::handlerWithDelegate from 0xb3f848 to 0xb3f8e0 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0xb98e0
//
// 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::CCTouchHandler *cocos2d::CCTouchHandler::handlerWithDelegate(cocos2d::CCTouchDelegate *a1, int a2)
{
__int64 v3; // x0
cocos2d::CCTouchHandler *v4; // x19
v3 = operator new(0x48u);
*(_QWORD *)(v3 + 64) = 0;
*(_QWORD *)v3 = 0;
*(_QWORD *)(v3 + 8) = 0;
*(_QWORD *)(v3 + 16) = 0;
*(_QWORD *)(v3 + 24) = 0;
*(_QWORD *)(v3 + 32) = 0;
*(_QWORD *)(v3 + 40) = 0;
*(_QWORD *)(v3 + 48) = 0;
*(_QWORD *)(v3 + 56) = 0;
v4 = (cocos2d::CCTouchHandler *)v3;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v3);
v4->__vftable = (cocos2d::CCTouchHandler_vtbl *)&off_121BA50;
if ( cocos2d::CCTouchHandler::initWithDelegate(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
cocos2d::CCObject::release(v4);
return nullptr;
}
}