//
// cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0x1800b49d0 to 0x1800b4a2e (94 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8958
//
// 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
//
char __fastcall cocos2d::CCIMEDispatcher::detachDelegateWithIME(
cocos2d::CCIMEDispatcher *this,
struct cocos2d::CCIMEDelegate *a2)
{
if ( !this->m_pImpl
|| !a2
|| *((struct cocos2d::CCIMEDelegate **)this->m_pImpl + 2) != a2
|| !((unsigned __int8 (__fastcall *)(struct cocos2d::CCIMEDelegate *))a2->canDetachWithIME)(a2) )
{
return 0;
}
*((_QWORD *)this->m_pImpl + 2) = 0;
((void (__fastcall *)(struct cocos2d::CCIMEDelegate *))a2->didDetachWithIME)(a2);
return 1;
}