//
// cocos2d::CCTouchHandler::initWithDelegate from 0x8085cc to 0x8085fa (46 bytes)
//
// 3 xrefs:
// > cocos2d::CCStandardTouchHandler::initWithDelegate @ 0x808604
// > cocos2d::CCTouchHandler::handlerWithDelegate @ 0x80875c
// > cocos2d::CCTargetedTouchHandler::initWithDelegate @ 0x8087de
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:27 +0000
//
int __fastcall cocos2d::CCTouchHandler::initWithDelegate(
cocos2d::CCTouchHandler *this,
cocos2d::CCTouchDelegate *lpsrc,
int a3)
{
cocos2d::CCTouchDelegate *v5; // r0
v5 = lpsrc;
*((_DWORD *)this + 13) = lpsrc;
if ( lpsrc )
v5 = (cocos2d::CCTouchDelegate *)_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((int)v5);
*((_DWORD *)this + 14) = a3;
*((_DWORD *)this + 15) = 0;
return 1;
}