//
// cocos2d::CCSet::dCCSet from 0x1008989c0 to 0x100898a71 (177 bytes)
//
// 2 xrefs:
// > sub_100898B00 @ 0x100898b05
// > sub_100898B10 @ 0x100898b19
//
// 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
//
__int64 *__fastcall cocos2d::CCSet::dCCSet(_QWORD *a1)
{
_QWORD **v2; // r14
_QWORD *v3; // r15
_DWORD *v4; // rdi
_QWORD *v5; // rax
_QWORD *v6; // rcx
bool v7; // zf
*a1 = off_100BA84B8;
v2 = (_QWORD **)a1[7];
v3 = *v2;
if ( *v2 == v2 + 1 )
goto LABEL_11;
do
{
v4 = (_DWORD *)v3[4];
if ( !v4 )
break;
cocos2d::CCObject::release(v4);
v5 = (_QWORD *)v3[1];
v6 = v3;
if ( v5 )
{
do
{
v3 = v5;
v5 = (_QWORD *)*v5;
}
while ( v5 );
}
else
{
do
{
v3 = (_QWORD *)v6[2];
v7 = *v3 == (_QWORD)v6;
v6 = v3;
}
while ( !v7 );
}
v2 = (_QWORD **)a1[7];
}
while ( v3 != v2 + 1 );
if ( v2 )
{
LABEL_11:
sub_10001ADF0((__int64)v2, v2[1]);
operator delete(v2);
a1[7] = 0;
}
return sub_10047FF60((__int64)a1);
}