//
// cocos2d::CCKeypadDispatcher::forceRemoveDelegate from 0x7d207c to 0x7d20c4 (72 bytes)
//
// 2 xrefs:
// > cocos2d::CCKeypadDispatcher::removeDelegate @ 0x7d20d4
// > cocos2d::CCKeypadDispatcher::dispatchKeypadMSG @ 0x7d2174
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:00:35 +0000
//
cocos2d::CCKeypadDelegate *__fastcall cocos2d::CCKeypadDispatcher::forceRemoveDelegate(
cocos2d::CCKeypadDelegate *this,
cocos2d::CCKeypadDelegate *a2)
{
cocos2d::CCKeypadDelegate *v2; // r7
int v3; // r3
_DWORD *v5; // r2
cocos2d::CCKeypadHandler **v6; // r5
cocos2d::CCKeypadHandler **v7; // r4
cocos2d::CCKeypadHandler *v8; // r6
cocos2d::CCKeypadHandler *v9; // t1
v2 = this;
v3 = *((_DWORD *)this + 13);
if ( v3 )
{
v5 = *(_DWORD **)(v3 + 52);
if ( *v5 )
{
v6 = (cocos2d::CCKeypadHandler **)v5[3];
v7 = &v6[*v5] + 0x3FFFFFFF;
while ( v6 <= v7 )
{
v9 = *v6++;
v8 = v9;
if ( !v9 )
break;
this = (cocos2d::CCKeypadDelegate *)cocos2d::CCKeypadHandler::getDelegate(v8);
if ( a2 == this )
return (cocos2d::CCKeypadDelegate *)cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)v2 + 13), v8, 1);
}
}
}
return this;
}