//
// cocos2d::CCTouchHandler::initWithDelegate from 0x10000c55c to 0x10000c5b8 (92 bytes)
//
// 5 xrefs:
// > cocos2d::CCStandardTouchHandler::initWithDelegate @ 0x10000c62c
// > cocos2d::CCStandardTouchHandler::handlerWithDelegate @ 0x10000c68c
// > cocos2d::CCTargetedTouchHandler::initWithDelegate @ 0x10000c778
// > ??> @ 0x1008ae3b0
// > ??> @ 0x1008ae418
//
// 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 10:57:14 +0000
//
__int64 __fastcall cocos2d::CCTouchHandler::initWithDelegate(__int64 a1, void *lpsrc, int a3)
{
void *v5; // x0
*(_QWORD *)(a1 + 56) = lpsrc;
if ( lpsrc )
v5 = __dynamic_cast(
lpsrc,
(const struct __class_type_info *)&off_1008AE340,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
else
v5 = nullptr;
cocos2d::CCObject::retain(v5);
*(_DWORD *)(a1 + 64) = a3;
*(_DWORD *)(a1 + 68) = 0;
return 1;
}