//
// cocos2d::CCIMEDispatcher::removeDelegate from 0x7fe41c to 0x7fe45c (64 bytes)
//
// 1 xrefs:
// > cocos2d::CCIMEDelegate::~CCIMEDelegate @ 0x7fe600
//
// 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:01:17 +0000
//
void __fastcall cocos2d::CCIMEDispatcher::removeDelegate(
cocos2d::CCIMEDispatcher::Impl **this,
cocos2d::CCIMEDelegate *a2)
{
cocos2d::CCIMEDispatcher::Impl *v3; // r0
cocos2d::CCIMEDispatcher::Impl *Delegate; // r0
cocos2d::CCIMEDispatcher::Impl *v5; // r3
int v6; // r2
cocos2d::CCIMEDispatcher::Impl *v7; // r2
if ( a2 )
{
v3 = *this;
if ( v3 )
{
Delegate = (cocos2d::CCIMEDispatcher::Impl *)cocos2d::CCIMEDispatcher::Impl::findDelegate(v3, a2);
v5 = *this;
if ( *this != Delegate )
{
v6 = *((_DWORD *)v5 + 3);
if ( v6 )
{
if ( *((_DWORD *)Delegate + 2) == v6 )
*((_DWORD *)v5 + 3) = 0;
}
v7 = *this;
*(_DWORD *)(*(_DWORD *)Delegate + 4) = *((_DWORD *)Delegate + 1);
**((_DWORD **)Delegate + 1) = *(_DWORD *)Delegate;
--*((_DWORD *)v7 + 2);
operator delete(Delegate);
}
}
}
}