//
// sub_180099B90 from 0x180099b90 to 0x180099c30 (160 bytes)
//
// 2 xrefs:
// > ??> @ 0x18010ac10
// > ??> @ 0x1801c0b70
//
// 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:22:11 +0000
//
_QWORD *__fastcall sub_180099B90(_QWORD *Block, char a2)
{
cocos2d::CCObject *v5; // rcx
if ( (a2 & 2) != 0 )
{
sub_1800E49F8(Block, 24, *(Block - 1), cocos2d::CCComponentContainer::~CCComponentContainer);
if ( (a2 & 1) != 0 )
j_j_j_free_0(Block - 1);
return Block - 1;
}
else
{
*Block = &cocos2d::CCComponentContainer::`vftable';
v5 = (cocos2d::CCObject *)Block[1];
if ( v5 )
cocos2d::CCObject::release(v5);
if ( (a2 & 1) != 0 )
j_j_free_0(Block);
return Block;
}
}