//
// sub_1800013E0 from 0x1800013e0 to 0x1800014b0 (208 bytes)
//
// 2 xrefs:
// > ??> @ 0x1800259d8
// > ??> @ 0x18004b048
//
// 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:15:34 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall sub_1800013E0(_QWORD *Block, char a2)
{
cocos2d::CCObject *v5; // rcx
if ( (a2 & 2) != 0 )
{
sub_18001F0B0(Block, 208, *(Block - 1), cocos2d::extension::AssetsManager::~AssetsManager);
if ( (a2 & 1) != 0 )
j_j_j_free(Block - 1);
return Block - 1;
}
else
{
*Block = &cocos2d::extension::AssetsManager::`vftable';
v5 = (cocos2d::CCObject *)Block[22];
if ( v5 )
cocos2d::CCObject::release(v5);
sub_180003700(Block + 17);
sub_180003700(Block + 13);
sub_180003700(Block + 9);
sub_180003700(Block + 5);
sub_180003700(Block + 1);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}
}