//
// cocos2d::extension::CCControl::removeHandleOfControlEvent from 0x7a6c4c to 0x7a6cc4 (120 bytes)
//
// 0 xrefs:
//
// 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 11:59:58 +0000
//
void __fastcall cocos2d::extension::CCControl::removeHandleOfControlEvent(
cocos2d::extension::CCControl *this,
unsigned int a2)
{
_DWORD *v3; // r0
void *v4; // r6
_DWORD *v5; // r3
_DWORD *i; // r2
int *v7; // r1
int *v8; // r0
_DWORD v9[2]; // [sp+0h] [bp-8h] BYREF
v9[1] = a2;
v9[0] = a2;
v3 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::find(
(int)this + 344,
v9);
v4 = v3;
if ( v3 != (_DWORD *)((char *)this + 348) )
{
v5 = (_DWORD *)v3[1];
if ( v5 )
{
while ( *v5 )
v5 = (_DWORD *)*v5;
}
else
{
for ( i = v3; ; i = (_DWORD *)i[2] )
{
v5 = (_DWORD *)i[2];
if ( i == (_DWORD *)*v5 )
break;
}
}
v7 = v3;
v8 = *((int **)this + 87);
if ( *((void **)this + 86) == v4 )
*((_DWORD *)this + 86) = v5;
--*((_DWORD *)this + 88);
std::__tree_remove *>(v8, v7);
operator delete(v4);
}
}