//
// cocos2d::CCStandardTouchHandler::handlerWithDelegate from 0xdb275c to 0xdb27f4 (152 bytes)
//
// 2 xrefs:
// > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0xdb181c
// > ??> @ 0x69b08
//
// This function is hookable on this platform (idp: arm, 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 13:08:40 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCStandardTouchHandler::handlerWithDelegate(
cocos2d::CCStandardTouchHandler *this,
cocos2d::CCTouchDelegate *a2)
{
cocos2d::CCObject *v3; // x0
cocos2d::CCObject *v4; // x19
int v6; // [xsp+28h] [xbp+28h]
v6 = (int)a2;
v3 = (cocos2d::CCObject *)operator new(0x48u);
*((_QWORD *)v3 + 8) = 0;
*(_QWORD *)v3 = 0;
*((_QWORD *)v3 + 1) = 0;
*((_QWORD *)v3 + 2) = 0;
*((_QWORD *)v3 + 3) = 0;
*((_QWORD *)v3 + 4) = 0;
*((_QWORD *)v3 + 5) = 0;
*((_QWORD *)v3 + 6) = 0;
*((_QWORD *)v3 + 7) = 0;
v4 = v3;
cocos2d::CCObject::CCObject((__int64)v3);
*(_QWORD *)v4 = &off_1531B20;
if ( (unsigned __int8)cocos2d::CCStandardTouchHandler::initWithDelegate(v4, this, v6) )
{
cocos2d::CCObject::autorelease(v4);
return v4;
}
else
{
cocos2d::CCObject::release(v4);
return nullptr;
}
}