//
// sub_140048200 from 0x140048200 to 0x14004826d (109 bytes)
//
// 3 xrefs:
// > ??> @ 0x140709120
// > ??> @ 0x14090fb0c
// > ??> @ 0x14090fb18
//
// 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:25:31 +0000
//
cocos2d::CCNode *__fastcall sub_140048200(cocos2d::CCNode *Block, char a2)
{
void *v4; // rcx
*(_QWORD *)Block = &cocos2d::CCLightning::`vftable';
*((_QWORD *)Block + 40) = &cocos2d::CCLightning::`vftable';
v4 = *((void **)Block + 48);
if ( v4 )
{
j_j_free(v4);
*((_QWORD *)Block + 48) = 0;
}
cocos2d::CCNode::~CCNode(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}