//
// cocos2d::CCSet::removeAllObjects from 0x18000fd20 to 0x18000fdb3 (147 bytes)
//
// 4 xrefs:
// > cocos2d::CCSet::~CCSet @ 0x18000f077
// > sub_18000F0C0 @ 0x18000f127
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b80e0
//
// 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 11:21:21 +0000
//
void __fastcall cocos2d::CCSet::removeAllObjects(cocos2d::CCSet *this)
{
_QWORD **v1; // rax
_QWORD *v3; // rbx
cocos2d::CCObject *v4; // rcx
__int64 **v5; // rcx
__int64 i; // rax
__int64 *j; // rcx
v1 = *((_QWORD ***)this + 7);
v3 = (_QWORD *)**v1;
if ( v3 != *v1 )
{
do
{
v4 = (cocos2d::CCObject *)v3[4];
if ( !v4 )
break;
cocos2d::CCObject::release(v4);
v5 = (__int64 **)v3[2];
if ( *((_BYTE *)v5 + 25) )
{
for ( i = v3[1]; !*(_BYTE *)(i + 25); i = *(_QWORD *)(i + 8) )
{
if ( v3 != *(_QWORD **)(i + 16) )
break;
v3 = (_QWORD *)i;
}
v3 = (_QWORD *)i;
}
else
{
v3 = (_QWORD *)v3[2];
for ( j = *v5; !*((_BYTE *)j + 25); j = (__int64 *)*j )
v3 = j;
}
}
while ( v3 != **((_QWORD ***)this + 7) );
}
}