//
// sub_1004C89A0 from 0x1004c89a0 to 0x1004c89fa (90 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b5c610
//
// 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
//
__int64 *__fastcall sub_1004C89A0(__int64 a1)
{
_DWORD *v2; // rdi
void *v3; // rdi
*(_QWORD *)a1 = off_100B5C608;
v2 = *(_DWORD **)(a1 + 56);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( *(_BYTE *)(a1 + 106) == 1 )
{
v3 = *(void **)(a1 + 96);
if ( v3 )
{
operator delete[](v3);
*(_QWORD *)(a1 + 96) = 0;
}
}
if ( (*(_BYTE *)(a1 + 64) & 1) != 0 )
operator delete(*(void **)(a1 + 80));
return sub_10047FF60(a1);
}