//
// cocos2d::CCStandardTouchHandler::handlerWithDelegate from 0x100475dd0 to 0x100475e6c (156 bytes)
//
// 1 xrefs:
// > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x1004c79fc
//
// 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 12:30:35 +0000
//
_OWORD *__fastcall cocos2d::CCStandardTouchHandler::handlerWithDelegate(void *lpsrc, int a2)
{
_OWORD *v2; // rbx
void *v3; // rdi
v2 = operator new(0x48u);
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
v2[3] = 0;
*((_QWORD *)v2 + 8) = 0;
cocos2d::CCObject::CCObject(v2);
*(_QWORD *)v2 = off_100B46748;
*((_QWORD *)v2 + 7) = lpsrc;
if ( lpsrc )
v3 = __dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
else
v3 = nullptr;
cocos2d::CCObject::retain(v3);
*((_DWORD *)v2 + 16) = a2;
*((_DWORD *)v2 + 17) = 0;
cocos2d::CCObject::autorelease(v2);
return v2;
}