//
// cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0x1004b53c0 to 0x1004b5418 (88 bytes)
//
// 0 xrefs:
//
// 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 12:31:00 +0000
//
char __fastcall cocos2d::CCIMEDispatcher::detachDelegateWithIME(__int64 a1, __int64 a2)
{
if ( *(_QWORD *)a1 == 0 || a2 == 0 )
return 0;
if ( *(_QWORD *)(*(_QWORD *)a1 + 24LL) != a2
|| !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a2 + 48LL))(a2) )
{
return 0;
}
*(_QWORD *)(*(_QWORD *)a1 + 24LL) = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
return 1;
}