//
// sub_1008B04F0 from 0x1008b04f0 to 0x1008b0569 (121 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bac658
//
// 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:20 +0000
//
void __fastcall sub_1008B04F0(__int64 __p)
{
void *v2; // rdi
_DWORD *v3; // rdi
*(_QWORD *)__p = off_100BAC648;
*(_QWORD *)(__p + 320) = off_100BACCC8;
v2 = *(void **)(__p + 416);
if ( v2 )
{
free(v2);
*(_QWORD *)(__p + 416) = 0;
}
v3 = *(_DWORD **)(__p + 664);
if ( v3 )
cocos2d::CCObject::release(v3);
if ( (*(_BYTE *)(__p + 328) & 1) != 0 )
operator delete(*(void **)(__p + 344));
cocos2d::CCNode::dCCNode(__p);
operator delete((void *)__p);
}