//
// cocos2d::CCTouchHandler::setDelegate from 0xdb2638 to 0xdb26a4 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x98d28
//
// 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
//
_DWORD *__fastcall cocos2d::CCTouchHandler::setDelegate(cocos2d::CCTouchHandler *this, cocos2d::CCTouchDelegate *lpsrc)
{
void *v4; // x0
_DWORD *result; // x0
_DWORD *v6; // x0
if ( lpsrc )
{
v4 = _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)v4);
}
result = *((_DWORD **)this + 7);
if ( result )
{
v6 = _dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
result = cocos2d::CCObject::release(v6);
}
*((_QWORD *)this + 7) = lpsrc;
return result;
}