//
// sub_1402B98B0 from 0x1402b98b0 to 0x1402b99b3 (259 bytes)
//
// 3 xrefs:
// > sub_1402BA3B8 @ 0x1402ba3bf
// > ??> @ 0x140580678
// > ??> @ 0x1406d2708
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCNode *__fastcall sub_1402B98B0(cocos2d::CCNode *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
cocos2d::CCObject *v5; // rcx
cocos2d::CCObject *v6; // rcx
cocos2d::CCObject *v7; // rcx
Block->__vftable = (cocos2d::CCNode_vtbl *)&HSVLiveOverlay::`vftable';
Block[1].__vftable = (cocos2d::CCNode_vtbl *)&HSVLiveOverlay::`vftable';
*(_QWORD *)&Block[1].m_uID = &HSVLiveOverlay::`vftable';
*(_QWORD *)&Block[1].m_nTag = &HSVLiveOverlay::`vftable';
*(_QWORD *)&Block[1].m_uAutoReleaseCount = &HSVLiveOverlay::`vftable';
*(_QWORD *)&Block[1].m_uIndexInArray = &HSVLiveOverlay::`vftable';
*(_QWORD *)&Block[1].m_fSkewY = &HSVLiveOverlay::`vftable';
*(_QWORD *)&Block[1].m_obContentSize.height = &HSVLiveOverlay::`vftable';
*(_QWORD *)&Block[1].m_bUseChildIndex = &HSVLiveOverlay::`vftable';
cocos2d::CCNode::removeAllChildrenWithCleanup(Block, 1);
v4 = *(cocos2d::CCObject **)&Block[2].m_uAutoReleaseCount;
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *(cocos2d::CCObject **)&Block[2].m_nTag;
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = (cocos2d::CCObject *)Block[2].__vftable;
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *(cocos2d::CCObject **)&Block[2].m_uID;
if ( v7 )
cocos2d::CCObject::release(v7);
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}