//
// sub_140044540 from 0x140044540 to 0x1400445ad (109 bytes)
//
// 3 xrefs:
// > ??> @ 0x14052e520
// > ??> @ 0x1406c45fc
// > ??> @ 0x1406c4608
//
// 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_140044540(cocos2d::CCNode *Block, char a2)
{
void *v4; // rcx
Block->__vftable = (cocos2d::CCNode_vtbl *)&cocos2d::CCLightning::`vftable';
Block[1].__vftable = (cocos2d::CCNode_vtbl *)&cocos2d::CCLightning::`vftable';
v4 = *(void **)&Block[1].m_fScaleX;
if ( v4 )
{
j_j_free(v4);
*(_QWORD *)&Block[1].m_fScaleX = 0;
}
cocos2d::CCNode::~CCNode(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}