//
// cocos2d::CCMouseDispatcher::removeDelegate from 0xb40cb0 to 0xb40cf4 (68 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::setMouseEnabled @ 0xaeaac4
// > cocos2d::CCLayer::onExit @ 0xaec504
// > ??> @ 0x9f8e8
//
// 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::CCMouseDispatcher::removeDelegate(cocos2d::CCMouseDispatcher *a1, cocos2d::CCMouseDelegate *a2)
{
if ( a2 )
{
if ( a1->m_bLocked )
{
cocos2d::ccCArrayAppendValue(&a1->m_pHandlersToRemove->num, (cocos2d::_ccCArray *)a2);
a1->m_bToRemove = (unsigned __int8)&dword_0 + 1;
}
else
{
cocos2d::CCMouseDispatcher::forceRemoveDelegate(a1, a2);
}
}
}