//
// cocos2d::CCIMEDispatcher::removeDelegate from 0x10026b96c to 0x10026b9c4 (88 bytes)
//
// 1 xrefs:
// > cocos2d::CCIMEDelegate::dCCIMEDelegate @ 0x10026b954
//
// 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
//
void __fastcall cocos2d::CCIMEDispatcher::removeDelegate(__int64 **a1, __int64 a2)
{
__int64 *v2; // x8
__int64 *v3; // x0
_QWORD *v4; // x9
__int64 v5; // x10
if ( a2 )
{
v2 = *a1;
if ( *a1 )
{
v3 = *a1;
while ( 1 )
{
v3 = (__int64 *)v3[1];
if ( v3 == v2 )
break;
if ( v3[2] == a2 )
{
if ( v2[3] == a2 )
v2[3] = 0;
v5 = *v3;
v4 = (_QWORD *)v3[1];
*(_QWORD *)(v5 + 8) = v4;
*v4 = v5;
--v2[2];
operator delete(v3);
return;
}
}
}
}
}