//
// sub_140480C20 from 0x140480c20 to 0x140480c9e (126 bytes)
//
// 3 xrefs:
// > ??> @ 0x1407b8b50
// > ??> @ 0x1409288b0
// > ??> @ 0x1409288bc
//
// 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 11:32:44 +0000
//
cocos2d::CCObject *__fastcall sub_140480C20(cocos2d::CCObject *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
*(_QWORD *)Block = &SFXFolderObject::`vftable';
v4 = *((cocos2d::CCObject **)Block + 22);
if ( v4 )
cocos2d::CCObject::release(v4);
*(_QWORD *)Block = &SFXInfoObject::`vftable';
sub_14003D310((__int64)Block + 144);
sub_14003D310((__int64)Block + 112);
sub_14003D310((__int64)Block + 80);
cocos2d::CCObject::~CCObject(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}