//
// cocos2d::CCSet::removeAllObjects from 0x100898a80 to 0x100898af3 (115 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:37:07 +0000
//
_QWORD *__fastcall cocos2d::CCSet::removeAllObjects(__int64 a1)
{
_QWORD *v1; // rax
_QWORD *v2; // r14
_QWORD *result; // rax
_DWORD *v5; // rdi
_QWORD *v6; // rcx
bool v7; // zf
v1 = *(_QWORD **)(a1 + 56);
v2 = (_QWORD *)*v1;
result = v1 + 1;
if ( v2 != result )
{
do
{
v5 = (_DWORD *)v2[4];
if ( !v5 )
break;
cocos2d::CCObject::release(v5);
v6 = (_QWORD *)v2[1];
if ( v6 )
{
do
{
result = v6;
v6 = (_QWORD *)*v6;
}
while ( v6 );
}
else
{
do
{
result = (_QWORD *)v2[2];
v7 = *result == (_QWORD)v2;
v2 = result;
}
while ( !v7 );
}
v2 = result;
}
while ( result != (_QWORD *)(*(_QWORD *)(a1 + 56) + 8LL) );
}
return result;
}