//
// cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0xda0b34 to 0xda0ba4 (112 bytes)
//
// 2 xrefs:
// > cocos2d::CCIMEDelegate::detachWithIME @ 0xda0f78
// > ??> @ 0x440e0
//
// This function is hookable on this platform (idp: arm, 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 13:08:29 +0000
//
__int64 __fastcall cocos2d::CCIMEDispatcher::detachDelegateWithIME(
cocos2d::CCIMEDispatcher *this,
cocos2d::CCIMEDelegate *a2)
{
__int64 v2; // x2
cocos2d::CCIMEDelegate *v3; // x20
v2 = *(_QWORD *)this;
if ( !a2 )
return 0;
if ( !v2 )
return 0;
v3 = *(cocos2d::CCIMEDelegate **)(v2 + 24);
if ( v3 != a2 || !(*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)v3 + 48LL))(*(_QWORD *)(v2 + 24)) )
return 0;
*(_QWORD *)(*(_QWORD *)this + 24LL) = 0;
(*(void (__fastcall **)(cocos2d::CCIMEDelegate *))(*(_QWORD *)v3 + 56LL))(v3);
return 1;
}