//
// sub_10043A220 from 0x10043a220 to 0x10043a28c (108 bytes)
//
// 2 xrefs:
// > sub_10043A1F0 @ 0x10043a1f5
// > sub_10043A200 @ 0x10043a209
//
// 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
//
__int64 __fastcall sub_10043A220(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
void *v3; // rdi
void *v4; // rdi
*(_QWORD *)a1 = off_100937F00;
v2 = *(cocos2d::CCObject **)(a1 + 56);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( (*(_BYTE *)(a1 + 128) & 1) != 0 )
operator delete(*(void **)(a1 + 144));
v3 = *(void **)(a1 + 96);
if ( v3 )
{
*(_QWORD *)(a1 + 104) = v3;
operator delete(v3);
}
v4 = *(void **)(a1 + 72);
if ( v4 )
{
*(_QWORD *)(a1 + 80) = v4;
operator delete(v4);
}
return cocos2d::CCObject::dCCObject(a1);
}