//
// sub_140371CD0 from 0x140371cd0 to 0x140371d05 (53 bytes)
//
// 3 xrefs:
// > sub_14037C770 @ 0x14037c777
// > ??> @ 0x1405c55e8
// > ??> @ 0x1406d5aa4
//
// 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::CCLayer *__fastcall sub_140371CD0(cocos2d::CCLayer *Block, char a2)
{
cocos2d::CCLayer::~CCLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}