//
// cocos2d::CCSet::dCCSet from 0x1007b3560 to 0x1007b3611 (177 bytes)
//
// 2 xrefs:
// > sub_1007B36A0 @ 0x1007b36a5
// > sub_1007B36B0 @ 0x1007b36b9
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCScriptEngineManager *__fastcall cocos2d::CCSet::dCCSet(cocos2d::CCObject *a1)
{
cocos2d::CCObject_vtbl *v2; // r14
void (__cdecl **copyWithZone)(cocos2d::CCObject *__hidden); // r15
cocos2d::CCObject *v4; // rdi
void (__cdecl *v5)(cocos2d::CCObject *__hidden); // rax
void (__cdecl **v6)(cocos2d::CCObject *__hidden); // rcx
bool v7; // zf
a1->__vftable = (cocos2d::CCObject_vtbl *)off_100992CA8;
v2 = a1[1].__vftable;
copyWithZone = (void (__cdecl **)(cocos2d::CCObject *__hidden))v2->copyWithZone;
if ( (void (__cdecl **)(cocos2d::CCObject *__hidden))v2->copyWithZone == &v2->~CCObject )
goto LABEL_11;
do
{
v4 = (cocos2d::CCObject *)copyWithZone[4];
if ( !v4 )
break;
cocos2d::CCObject::release(v4);
v5 = copyWithZone[1];
v6 = copyWithZone;
if ( v5 )
{
do
{
copyWithZone = (void (__cdecl **)(cocos2d::CCObject *__hidden))v5;
v5 = *(void (__cdecl **)(cocos2d::CCObject *__hidden))v5;
}
while ( v5 );
}
else
{
do
{
copyWithZone = (void (__cdecl **)(cocos2d::CCObject *__hidden))v6[2];
v7 = (char *)*copyWithZone == (char *)v6;
v6 = copyWithZone;
}
while ( !v7 );
}
v2 = a1[1].__vftable;
}
while ( copyWithZone != &v2->~CCObject );
if ( v2 )
{
LABEL_11:
sub_100054D90((__int64)v2, (_QWORD *)v2->~CCObject);
operator delete(v2);
a1[1].__vftable = nullptr;
}
return cocos2d::CCObject::dCCObject(a1);
}