//
// cocos2d::CCKeyboardDispatcher::removeDelegate from 0x1002d652c to 0x1002d6574 (72 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::setKeyboardEnabled @ 0x1001c744c
// > cocos2d::CCLayer::onExit @ 0x1001c7760
//
// 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 11:02:41 +0000
//
__int64 __fastcall cocos2d::CCKeyboardDispatcher::removeDelegate(__int64 result, __int64 a2)
{
__int64 v2; // x19
if ( a2 )
{
v2 = result;
if ( (*(_BYTE *)(result + 64) & 1) != 0 )
{
result = sub_1003F34F8(*(_QWORD *)(result + 80), a2);
*(_BYTE *)(v2 + 66) = 1;
}
else
{
return cocos2d::CCKeyboardDispatcher::forceRemoveDelegate();
}
}
return result;
}