//
// cocos2d::CCIMEDispatcher::removeDelegate from 0x5f2bce to 0x5f2c04 (54 bytes)
//
// 1 xrefs:
// > cocos2d::CCIMEDelegate::~CCIMEDelegate @ 0x5f2d84
//
// 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::CCIMEDispatcher::removeDelegate(cocos2d::CCIMEDispatcher *a1, cocos2d::CCIMEDelegate *a2)
{
cocos2d::CCIMEDelegate ***m_pImpl; // r0
cocos2d::CCIMEDelegate **Delegate; // r0
cocos2d::CCIMEDispatcher::Impl *v5; // r3
cocos2d::CCIMEDelegate **v6; // r4
cocos2d::CCIMEDelegate *v7; // r2
if ( a2 )
{
m_pImpl = (cocos2d::CCIMEDelegate ***)a1->m_pImpl;
if ( m_pImpl )
{
Delegate = cocos2d::CCIMEDispatcher::Impl::findDelegate(m_pImpl, a2);
v5 = a1->m_pImpl;
v6 = Delegate;
if ( (cocos2d::CCIMEDelegate **)a1->m_pImpl != Delegate )
{
v7 = *((cocos2d::CCIMEDelegate **)v5 + 2);
if ( v7 )
{
if ( Delegate[2] == v7 )
*((_DWORD *)v5 + 2) = 0;
}
sub_74AB00(Delegate);
operator delete(v6);
}
}
}
}