//
// cocos2d::CCKeypadDispatcher::forceRemoveDelegate from 0xae1358 to 0xae1400 (168 bytes)
//
// 3 xrefs:
// > cocos2d::CCKeypadDispatcher::removeDelegate @ 0xae1440
// > cocos2d::CCKeypadDispatcher::dispatchKeypadMSG @ 0xae158c
// > ??> @ 0x80fa0
//
// 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::CCKeypadDispatcher::forceRemoveDelegate(cocos2d::CCKeypadDispatcher *a1, cocos2d::CCKeypadDelegate *a2)
{
cocos2d::CCArray *m_pDelegates; // x2
cocos2d::ccArray *data; // x2
cocos2d::CCKeypadHandler **arr; // x19
cocos2d::CCKeypadHandler **v5; // x21
cocos2d::CCKeypadHandler *v6; // x20
bool v9; // w3
m_pDelegates = a1->m_pDelegates;
if ( m_pDelegates )
{
data = m_pDelegates->data;
if ( data->num )
{
arr = (cocos2d::CCKeypadHandler **)data->arr;
v5 = &arr[data->num - 1];
if ( arr <= v5 )
{
v6 = *arr;
if ( *arr )
{
while ( 1 )
{
++arr;
if ( a2 == cocos2d::CCKeypadHandler::getDelegate(v6) )
break;
if ( v5 >= arr )
{
v6 = *arr;
if ( *arr )
continue;
}
return;
}
cocos2d::CCArray::removeObject(
a1->m_pDelegates,
(cocos2d::_ccArray *)v6,
(cocos2d::CCObject *)((char *)&dword_0 + 1),
v9);
}
}
}
}
}