//
// cocos2d::CCTouchHandler::setDelegate from 0x1800b7c40 to 0x1800b7cba (122 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2ad8
//
// 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
//
void __fastcall cocos2d::CCTouchHandler::setDelegate(
cocos2d::CCTouchHandler *this,
struct cocos2d::CCTouchDelegate *a2)
{
cocos2d::CCObject *v4; // rax
__int64 v5; // rcx
cocos2d::CCObject *v6; // rax
if ( a2 )
{
v4 = (cocos2d::CCObject *)_RTDynamicCast(
a2,
0,
&cocos2d::CCTouchDelegate `RTTI Type Descriptor',
&cocos2d::CCObject `RTTI Type Descriptor',
0);
cocos2d::CCObject::retain(v4);
}
v5 = *((_QWORD *)this + 7);
if ( v5 )
{
v6 = (cocos2d::CCObject *)_RTDynamicCast(
v5,
0,
&cocos2d::CCTouchDelegate `RTTI Type Descriptor',
&cocos2d::CCObject `RTTI Type Descriptor',
0);
cocos2d::CCObject::release(v6);
}
*((_QWORD *)this + 7) = a2;
}