//
// cocos2d::CCKeyboardDispatcher::forceRemoveDelegate from 0x5fb188 to 0x5fb1d0 (72 bytes)
//
// 2 xrefs:
// > cocos2d::CCKeyboardDispatcher::removeDelegate @ 0x5fb1e0
// > cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG @ 0x5fb2de
//
// 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::CCKeyboardDispatcher::forceRemoveDelegate(
cocos2d::CCKeyboardDispatcher *a1,
cocos2d::CCKeyboardDelegate *a2)
{
cocos2d::CCArray *m_pDelegates; // r3
cocos2d::ccArray *data; // r2
cocos2d::_ccArray **arr; // r5
cocos2d::_ccArray **v7; // r4
cocos2d::_ccArray *v8; // r6
cocos2d::_ccArray *v9; // t1
bool v10; // r3
m_pDelegates = a1->m_pDelegates;
if ( m_pDelegates )
{
data = m_pDelegates->data;
if ( data->num )
{
arr = (cocos2d::_ccArray **)data->arr;
v7 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v7 )
{
v9 = *arr++;
v8 = v9;
if ( !v9 )
break;
if ( a2 == cocos2d::CCKeyboardHandler::getDelegate((cocos2d::CCKeyboardHandler *)v8) )
{
cocos2d::CCArray::removeObject(a1->m_pDelegates, v8, 1, v10);
return;
}
}
}
}
}