//
// sub_1004C8A10 from 0x1004c8a10 to 0x1004c8a72 (98 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b5c618
//
// 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:31:08 +0000
//
void __fastcall sub_1004C8A10(__int64 __p)
{
_DWORD *v2; // rdi
void *v3; // rdi
*(_QWORD *)__p = off_100B5C608;
v2 = *(_DWORD **)(__p + 56);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( *(_BYTE *)(__p + 106) == 1 )
{
v3 = *(void **)(__p + 96);
if ( v3 )
{
operator delete[](v3);
*(_QWORD *)(__p + 96) = 0;
}
}
if ( (*(_BYTE *)(__p + 64) & 1) != 0 )
operator delete(*(void **)(__p + 80));
sub_10047FF60(__p);
operator delete((void *)__p);
}