//
// cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0x1800b8700 to 0x1800b875e (94 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2c4c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:22 +0000
//
char __fastcall cocos2d::CCIMEDispatcher::detachDelegateWithIME(
cocos2d::CCIMEDispatcher *this,
struct cocos2d::CCIMEDelegate *a2)
{
if ( !*(_QWORD *)this
|| !a2
|| *(struct cocos2d::CCIMEDelegate **)(*(_QWORD *)this + 16LL) != a2
|| !(*(unsigned __int8 (__fastcall **)(struct cocos2d::CCIMEDelegate *))(*(_QWORD *)a2 + 40LL))(a2) )
{
return 0;
}
*(_QWORD *)(*(_QWORD *)this + 16LL) = 0;
(*(void (__fastcall **)(struct cocos2d::CCIMEDelegate *))(*(_QWORD *)a2 + 48LL))(a2);
return 1;
}