//
// cocos2d::CCTouchHandler::initWithDelegate from 0xdb2498 to 0xdb250c (116 bytes)
//
// 6 xrefs:
// > cocos2d::CCStandardTouchHandler::initWithDelegate @ 0xdb250c
// > cocos2d::CCTouchHandler::handlerWithDelegate @ 0xdb271c
// > cocos2d::CCTargetedTouchHandler::initWithDelegate @ 0xdb2824
// > ??> @ 0x43ea0
// > ??> @ 0x1531b00
// > ??> @ 0x1531be0
//
// 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
//
__int64 __fastcall cocos2d::CCTouchHandler::initWithDelegate(
cocos2d::CCTouchHandler *this,
cocos2d::CCTouchDelegate *lpsrc,
int a3)
{
void *v5; // x0
*((_QWORD *)this + 7) = lpsrc;
if ( lpsrc )
{
v5 = _dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
cocos2d::CCObject::retain((__int64)v5);
}
else
{
cocos2d::CCObject::retain(0);
}
*((_DWORD *)this + 16) = a3;
*((_DWORD *)this + 17) = 0;
return 1;
}