//
// cocos2d::CCStandardTouchHandler::handlerWithDelegate from 0x5faf1c to 0x5faf62 (70 bytes)
//
// 1 xrefs:
// > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x5fa778
//
// 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::CCStandardTouchHandler *cocos2d::CCStandardTouchHandler::handlerWithDelegate(
cocos2d::CCTouchDelegate *a1,
int a2)
{
cocos2d::CCStandardTouchHandler *v4; // r4
v4 = (cocos2d::CCStandardTouchHandler *)operator new(0x40u);
memset(v4, 0, sizeof(cocos2d::CCStandardTouchHandler));
cocos2d::CCObject::CCObject(v4);
v4->__vftable = (cocos2d::CCStandardTouchHandler_vtbl *)&off_AAF0F8;
if ( cocos2d::CCStandardTouchHandler::initWithDelegate(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
cocos2d::CCObject::release(v4);
return nullptr;
}
return v4;
}