//
// sub_180072CF0 from 0x180072cf0 to 0x180072d77 (135 bytes)
//
// 2 xrefs:
// > ??> @ 0x180100690
// > ??> @ 0x1801b43c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCApplication *__fastcall sub_180072CF0(cocos2d::CCApplication *Block, char a2)
{
int v3; // edi
v3 = a2 & 1;
if ( (a2 & 2) != 0 )
{
`eh vector destructor iterator'(
Block,
0xD0u,
Block[-1].m_startupScriptFilename.m_data.m_capacity,
(void (*)(void *))cocos2d::CCApplication::~CCApplication);
if ( v3 )
j_j_j_free_0(&Block[-1].m_startupScriptFilename.m_data.m_capacity);
return (cocos2d::CCApplication *)((char *)Block - 8);
}
else
{
cocos2d::CCApplication::~CCApplication(Block);
if ( v3 )
j_j_free_0(Block);
return Block;
}
}