//
// cocos2d::CCIMEDispatcher::removeDelegate from 0xb2f820 to 0xb2f8a0 (128 bytes)
//
// 2 xrefs:
// > cocos2d::CCIMEDelegate::~CCIMEDelegate @ 0xb2fc04
// > ??> @ 0x90b40
//
// 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::CCIMEDispatcher::Impl *m_pImpl; // x2
cocos2d::CCIMEDelegate **v3; // x19
cocos2d::CCIMEDelegate *v4; // x0
if ( a2 )
{
m_pImpl = a1->m_pImpl;
if ( a1->m_pImpl )
{
v3 = *(cocos2d::CCIMEDelegate ***)m_pImpl;
if ( m_pImpl != *(cocos2d::CCIMEDispatcher::Impl **)m_pImpl )
{
while ( a2 != v3[2] )
{
v3 = (cocos2d::CCIMEDelegate **)*v3;
if ( m_pImpl == (cocos2d::CCIMEDispatcher::Impl *)v3 )
return;
}
v4 = *((cocos2d::CCIMEDelegate **)m_pImpl + 2);
if ( v4 )
{
if ( v4 == v3[2] )
*((_QWORD *)m_pImpl + 2) = 0;
}
sub_CD8DA4(v3);
operator delete(v3);
}
}
}
}