//
// cocos2d::CCTouchHandler::initWithDelegate from 0x1800b7b50 to 0x1800b7ba6 (86 bytes)
//
// 8 xrefs:
// > cocos2d::CCStandardTouchHandler::handlerWithDelegate @ 0x1800b796a
// > cocos2d::CCStandardTouchHandler::handlerWithDelegate @ 0x1800b7955
// > cocos2d::CCTouchHandler::handlerWithDelegate @ 0x1800b7ac5
// > ??> @ 0x18010cc78
// > ??> @ 0x18010ccd0
// > ??> @ 0x18010cd28
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2ac0
//
// 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
//
// Alternative name is '?initWithDelegate@CCStandardTouchHandler@cocos2d@@UEAA_NPEAVCCTouchDelegate@2@H@Z'
char __fastcall cocos2d::CCTouchHandler::initWithDelegate(
cocos2d::CCTouchHandler *this,
struct cocos2d::CCTouchDelegate *a2,
int a3)
{
cocos2d::CCObject *v5; // rax
*((_QWORD *)this + 7) = a2;
v5 = (cocos2d::CCObject *)_RTDynamicCast(
a2,
0,
&cocos2d::CCTouchDelegate `RTTI Type Descriptor',
&cocos2d::CCObject `RTTI Type Descriptor',
0);
cocos2d::CCObject::retain(v5);
*((_DWORD *)this + 16) = a3;
*((_DWORD *)this + 17) = 0;
return 1;
}