//
// cocos2d::CCComponentContainer::remove from 0x7fdca0 to 0x7fde8a (490 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 12:01:17 +0000
//
_DWORD *__fastcall cocos2d::CCComponentContainer::remove(cocos2d::CCComponentContainer *this, const char *a2)
{
_DWORD *result; // r0
_DWORD *v5; // r7
int v6; // r1
unsigned int v7; // r2
unsigned int v8; // r3
int v9; // r1
unsigned int v10; // r2
unsigned int v11; // r3
int v12; // r1
char *v13; // r4
int v14; // r5
int v15; // r5
int v16; // r3
int v17; // r2
int v18; // r3
int v19; // r1
int v20; // r3
int v21; // r2
int v22; // r2
_DWORD *v23; // r1
int v24; // r3
int v25; // r2
int v26; // r3
int v27; // r3
int v28; // r2
result = *((_DWORD **)this + 1);
if ( result )
{
result = (_DWORD *)result[13];
if ( result )
{
v5 = (_DWORD *)result[66];
v6 = (*(unsigned __int8 *)a2
+ 17973517
+ (*((unsigned __int8 *)a2 + 3) << 24)
+ (*((unsigned __int8 *)a2 + 2) << 16)
+ (*((unsigned __int8 *)a2 + 1) << 8))
^ 0x7F76D;
v7 = (-1622558010 - v6) ^ (v6 << 8);
v8 = (-17973517 - v6 - v7) ^ (v7 >> 13);
v9 = (v6 - v7 - v8) ^ (v8 >> 12);
v10 = (v7 - v8 - v9) ^ (v9 << 16);
v11 = (v8 - v9 - v10) ^ (v10 >> 5);
v12 = (v9 - v10 - v11) ^ (v11 >> 3);
v13 = *(char **)(*v5
+ 12
* (((v11 - v12 - ((v10 - v11 - v12) ^ (v12 << 10)))
^ (((v10 - v11 - v12) ^ (v12 << 10)) >> 15))
& (v5[1] - 1)));
if ( v13 )
v13 -= v5[5];
while ( 1 )
{
if ( !v13 )
return nullptr;
if ( *((_DWORD *)v13 + 72) == 4 && !memcmp(*((const void **)v13 + 71), a2, 4u) )
break;
result = *((_DWORD **)v13 + 70);
if ( !result )
return result;
v13 = (char *)result - v5[5];
}
result = *((_DWORD **)v13 + 65);
if ( result )
{
result = _dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCComponent,
0);
v14 = (int)result;
if ( result )
{
(*(void (__fastcall **)(_DWORD *))(*result + 48))(result);
cocos2d::CCComponent::setOwner(v14, nullptr);
v15 = *((_DWORD *)v13 + 67);
v16 = *((_DWORD *)this + 1);
if ( v15 || *((_DWORD *)v13 + 68) )
{
v17 = *(_DWORD *)(*(_DWORD *)(v16 + 52) + 264);
v18 = *(_DWORD *)(v17 + 20);
if ( v13 == (char *)(*(_DWORD *)(v17 + 16) - v18) )
*(_DWORD *)(v17 + 16) = v18 + v15;
v19 = *((_DWORD *)v13 + 67);
v20 = *((_DWORD *)this + 1);
v21 = *((_DWORD *)v13 + 68);
if ( v19 )
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(v20 + 52) + 264) + 20) + v19 + 8) = v21;
else
*(_DWORD *)(v20 + 52) = v21;
v22 = *((_DWORD *)v13 + 68);
if ( v22 )
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 1) + 52) + 264) + 20) + v22 + 4) = *((_DWORD *)v13 + 67);
v23 = *(_DWORD **)(*(_DWORD *)(*((_DWORD *)this + 1) + 52) + 264);
v24 = 12 * (*((_DWORD *)v13 + 73) & (v23[1] - 1));
--*(_DWORD *)(*v23 + v24 + 4);
v25 = **(_DWORD **)(*(_DWORD *)(*((_DWORD *)this + 1) + 52) + 264);
if ( *(char **)(v25 + v24) == v13 + 264 )
*(_DWORD *)(v25 + v24) = *((_DWORD *)v13 + 70);
v26 = *((_DWORD *)v13 + 69);
if ( v26 )
*(_DWORD *)(v26 + 16) = *((_DWORD *)v13 + 70);
v27 = *((_DWORD *)v13 + 70);
if ( v27 )
*(_DWORD *)(v27 + 12) = *((_DWORD *)v13 + 69);
v28 = *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 1) + 52) + 264);
--*(_DWORD *)(v28 + 12);
}
else
{
free(**(void ***)(*(_DWORD *)(v16 + 52) + 264));
free(*(void **)(*(_DWORD *)(*((_DWORD *)this + 1) + 52) + 264));
*(_DWORD *)(*((_DWORD *)this + 1) + 52) = 0;
}
cocos2d::CCObject::release(*((_DWORD **)v13 + 65));
cocos2d::CCDictElement::~CCDictElement((cocos2d::CCDictElement *)v13);
operator delete(v13);
return &dword_0 + 1;
}
}
}
}
return result;
}