//
// cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0x5f2b9a to 0x5f2bce (52 bytes)
//
// 1 xrefs:
// > cocos2d::CCIMEDelegate::detachWithIME @ 0x5f2dc2
//
// 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::CCIMEDelegate *v4; // r4
if ( !a1->m_pImpl )
return 0;
if ( !a2 )
return 0;
v4 = *((cocos2d::CCIMEDelegate **)a1->m_pImpl + 2);
if ( v4 != a2 || !((int (__fastcall *)(_DWORD))v4->canDetachWithIME)(*((_DWORD *)a1->m_pImpl + 2)) )
return 0;
*((_DWORD *)a1->m_pImpl + 2) = 0;
v4->didDetachWithIME(v4);
return 1;
}