//
// cocos2d::CCKeypadDispatcher::removeDelegate from 0xd54068 to 0xd540ac (68 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::setKeypadEnabled @ 0xd5c744
// > cocos2d::CCLayer::onExit @ 0xd5e2a8
// > ??> @ 0xb32c0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:07:42 +0000
//
cocos2d::CCKeypadDelegate *__fastcall cocos2d::CCKeypadDispatcher::removeDelegate(
cocos2d::CCKeypadDelegate *this,
cocos2d::CCKeypadDelegate *a2)
{
cocos2d::CCKeypadDelegate *v2; // x19
if ( a2 )
{
if ( *((_BYTE *)this + 64) )
{
v2 = this;
cocos2d::ccCArrayAppendValue(*((_QWORD *)this + 10));
this = (cocos2d::CCKeypadDelegate *)((char *)&dword_0 + 1);
*((_BYTE *)v2 + 66) = (unsigned __int8)&dword_0 + 1;
}
else
{
return cocos2d::CCKeypadDispatcher::forceRemoveDelegate(this, a2);
}
}
return this;
}