//
// cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0xb2f7b0 to 0xb2f820 (112 bytes)
//
// 2 xrefs:
// > cocos2d::CCIMEDelegate::detachWithIME @ 0xb2fc60
// > ??> @ 0x2d1f8
//
// 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
//
bool cocos2d::CCIMEDispatcher::detachDelegateWithIME(cocos2d::CCIMEDispatcher *a1, cocos2d::CCIMEDelegate *a2)
{
cocos2d::CCIMEDispatcher::Impl *m_pImpl; // x2
cocos2d::CCIMEDelegate *v3; // x20
cocos2d::CCIMEDelegate v6; // x1
m_pImpl = a1->m_pImpl;
if ( !a2 )
return 0;
if ( !m_pImpl )
return 0;
v3 = *((cocos2d::CCIMEDelegate **)m_pImpl + 2);
if ( v3 != a2 || !v3->canDetachWithIME(*((cocos2d::CCIMEDelegate **)m_pImpl + 2)) )
return 0;
v6.__vftable = v3->__vftable;
*((_QWORD *)a1->m_pImpl + 2) = 0;
v6.didDetachWithIME(v3);
return 1;
}