//
// cocos2d::CCIMEDelegate::detachWithIME from 0x1800b8760 to 0x1800b87c6 (102 bytes)
//
// 4 xrefs:
// > cocos2d::CCTextFieldTTF::detachWithIME @ 0x1800b9206
// > ??> @ 0x18010cdf0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2c58
//
// 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::CCIMEDelegate::detachWithIME(cocos2d::CCIMEDelegate *this)
{
struct cocos2d::CCIMEDispatcher *v2; // rdi
v2 = cocos2d::CCIMEDispatcher::sharedDispatcher();
if ( !*(_QWORD *)v2
|| !this
|| *(cocos2d::CCIMEDelegate **)(*(_QWORD *)v2 + 16LL) != this
|| !(*(unsigned __int8 (__fastcall **)(cocos2d::CCIMEDelegate *))(*(_QWORD *)this + 40LL))(this) )
{
return 0;
}
*(_QWORD *)(*(_QWORD *)v2 + 16LL) = 0;
(*(void (__fastcall **)(cocos2d::CCIMEDelegate *))(*(_QWORD *)this + 48LL))(this);
return 1;
}