//
// cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0x10026bb0c to 0x10026bb80 (116 bytes)
//
// 1 xrefs:
// > cocos2d::CCIMEDelegate::detachWithIME @ 0x10026bb08
//
// 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 11:01:44 +0000
//
__int64 __fastcall cocos2d::CCIMEDispatcher::detachDelegateWithIME(__int64 a1, __int64 a2)
{
__int64 result; // x0
result = 0;
if ( a2 && *(_QWORD *)a1 )
{
if ( *(_QWORD *)(*(_QWORD *)a1 + 24LL) == a2 )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 48LL))(a2);
if ( (_DWORD)result )
{
*(_QWORD *)(*(_QWORD *)a1 + 24LL) = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
return 1;
}
}
else
{
return 0;
}
}
return result;
}