//
// cocos2d::CCMouseDispatcher::forceRemoveDelegate from 0x100570d90 to 0x100570e1d (141 bytes)
//
// 0 xrefs:
//
// 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::CCMouseDispatcher::forceRemoveDelegate(
cocos2d::CCMouseDispatcher *a1,
cocos2d::CCMouseDelegate *a2)
{
cocos2d::CCArray *m_pMouseHandlers; // rax
cocos2d::ccArray *data; // rax
cocos2d::CCMouseHandler **arr; // r12
unsigned __int64 v5; // r13
cocos2d::CCMouseHandler *v6; // r15
m_pMouseHandlers = a1->m_pMouseHandlers;
if ( m_pMouseHandlers )
{
data = m_pMouseHandlers->data;
if ( data->num )
{
arr = (cocos2d::CCMouseHandler **)data->arr;
v5 = (unsigned __int64)&arr[data->num - 1];
do
{
v6 = *arr;
if ( !*arr )
break;
if ( cocos2d::CCMouseHandler::getDelegate(*arr) == a2 )
{
sub_100720220(a1->m_pMouseHandlers, v6, 1);
return;
}
++arr;
}
while ( (unsigned __int64)arr <= v5 );
}
}
}