//
// cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0x7fe3e8 to 0x7fe41c (52 bytes)
//
// 1 xrefs:
// > cocos2d::CCIMEDelegate::detachWithIME @ 0x7fe5d6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:17 +0000
//
int __fastcall cocos2d::CCIMEDispatcher::detachDelegateWithIME(
cocos2d::CCIMEDispatcher *this,
cocos2d::CCIMEDelegate *a2)
{
cocos2d::CCIMEDelegate *v4; // r4
if ( !*(_DWORD *)this )
return 0;
if ( !a2 )
return 0;
v4 = *(cocos2d::CCIMEDelegate **)(*(_DWORD *)this + 12);
if ( v4 != a2 || !(*(int (__fastcall **)(_DWORD))(*(_DWORD *)v4 + 24))(*(_DWORD *)(*(_DWORD *)this + 12)) )
return 0;
*(_DWORD *)(*(_DWORD *)this + 12) = 0;
(*(void (__fastcall **)(cocos2d::CCIMEDelegate *))(*(_DWORD *)v4 + 28))(v4);
return 1;
}