//
// cocos2d::CCIMEDispatcher::removeDelegate from 0x1004b5050 to 0x1004b50a7 (87 bytes)
//
// 0 xrefs:
//
// 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 12:31:00 +0000
//
void __fastcall cocos2d::CCIMEDispatcher::removeDelegate(__int64 **a1, __int64 a2)
{
__int64 *v2; // rax
__int64 *v3; // rdi
__int64 v4; // rcx
_QWORD *v5; // rdx
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;
v4 = *v3;
v5 = (_QWORD *)v3[1];
*(_QWORD *)(v4 + 8) = v5;
*v5 = v4;
--v2[2];
operator delete(v3);
return;
}
}
}
}
}