//
// cocos2d::CCTouchHandler::setDelegate from 0xb3f7bc to 0xb3f828 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x719a0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCTouchHandler::setDelegate(cocos2d::CCTouchHandler *a1, cocos2d::CCTouchDelegate *a2)
{
cocos2d::CCObject *v4; // x0
cocos2d::CCTouchDelegate *m_pDelegate; // x0
cocos2d::CCObject *v6; // x0
if ( a2 )
{
v4 = (cocos2d::CCObject *)_dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
cocos2d::CCObject::retain(v4);
}
m_pDelegate = a1->m_pDelegate;
if ( m_pDelegate )
{
v6 = (cocos2d::CCObject *)_dynamic_cast(
m_pDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
cocos2d::CCObject::release(v6);
}
a1->m_pDelegate = a2;
}