//
// cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0x1004bc280 to 0x1004bc2d8 (88 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
//
bool __fastcall cocos2d::CCIMEDispatcher::detachDelegateWithIME(
cocos2d::CCIMEDispatcher *a1,
cocos2d::CCIMEDelegate *a2)
{
if ( a1->m_pImpl == nullptr || a2 == nullptr )
return 0;
if ( *((cocos2d::CCIMEDelegate **)a1->m_pImpl + 3) != a2
|| !((unsigned __int8 (__fastcall *)(cocos2d::CCIMEDelegate *))a2->canDetachWithIME)(a2) )
{
return 0;
}
*((_QWORD *)a1->m_pImpl + 3) = 0;
((void (__fastcall *)(cocos2d::CCIMEDelegate *))a2->didDetachWithIME)(a2);
return 1;
}