//
// sub_140077D20 from 0x140077d20 to 0x140077d5f (63 bytes)
//
// 2 xrefs:
// > ??> @ 0x140538520
// > ??> @ 0x1406c65d0
//
// 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::CCNode *__fastcall sub_140077D20(cocos2d::CCNode *Block, char a2)
{
Block->__vftable = (cocos2d::CCNode_vtbl *)&GlobalSettingsManager::`vftable';
cocos2d::CCNode::~CCNode(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}