//
// cocos2d::CCDirector::setTouchDispatcher from 0x1800bfbd0 to 0x1800bfc10 (64 bytes)
//
// 5 xrefs:
// > ??> @ 0x180107308
// > ??> @ 0x180107418
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b93a8
// > ??> @ 0x1801b93b4
//
// 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 __fastcall cocos2d::CCDirector::setTouchDispatcher(
cocos2d::CCDirector *this,
struct cocos2d::CCTouchDispatcher *a2)
{
cocos2d::CCTouchDispatcher *m_pTouchDispatcher; // rcx
if ( this->m_pTouchDispatcher != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
m_pTouchDispatcher = this->m_pTouchDispatcher;
if ( m_pTouchDispatcher )
cocos2d::CCObject::release(m_pTouchDispatcher);
this->m_pTouchDispatcher = a2;
}
}