//
// cocos2d::CCIMEDispatcher::removeDelegate from 0x1004bbf10 to 0x1004bbf67 (87 bytes)
//
// 0 xrefs:
//
// 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 __fastcall cocos2d::CCIMEDispatcher::removeDelegate(cocos2d::CCIMEDispatcher *a1, cocos2d::CCIMEDelegate *a2)
{
cocos2d::CCIMEDispatcher::Impl *m_pImpl; // rax
cocos2d::CCIMEDelegate **v3; // rdi
cocos2d::CCIMEDelegate *v4; // rcx
cocos2d::CCIMEDelegate *v5; // rdx
if ( a2 )
{
m_pImpl = a1->m_pImpl;
if ( a1->m_pImpl )
{
v3 = (cocos2d::CCIMEDelegate **)a1->m_pImpl;
while ( 1 )
{
v3 = (cocos2d::CCIMEDelegate **)v3[1];
if ( v3 == (cocos2d::CCIMEDelegate **)m_pImpl )
break;
if ( v3[2] == a2 )
{
if ( *((cocos2d::CCIMEDelegate **)m_pImpl + 3) == a2 )
*((_QWORD *)m_pImpl + 3) = 0;
v4 = *v3;
v5 = v3[1];
v4[1].__vftable = (cocos2d::CCIMEDelegate_vtbl *)v5;
v5->__vftable = (cocos2d::CCIMEDelegate_vtbl *)v4;
--*((_QWORD *)m_pImpl + 2);
operator delete(v3);
return;
}
}
}
}
}