//
// sub_1400877C0 from 0x1400877c0 to 0x1400878fa (314 bytes)
//
// 4 xrefs:
// > sub_140089A98 @ 0x140089a9f
// > sub_140089AA4 @ 0x140089aab
// > ??> @ 0x1407146a0
// > ??> @ 0x1409125a8
//
// 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:57 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCNode *__fastcall sub_1400877C0(cocos2d::CCNode *Block, char a2)
{
__int64 v4; // rcx
__int64 v5; // rcx
__int64 v6; // rcx
*(_QWORD *)Block = &TableView::`vftable';
*((_QWORD *)Block + 40) = &TableView::`vftable';
*((_QWORD *)Block + 41) = &TableView::`vftable';
*((_QWORD *)Block + 42) = &TableView::`vftable';
*((_QWORD *)Block + 43) = &TableView::`vftable';
*((_QWORD *)Block + 44) = &TableView::`vftable';
*((_QWORD *)Block + 51) = &TableView::`vftable';
*((_QWORD *)Block + 65) = &TableView::`vftable';
cocos2d::CCNode::removeAllChildrenWithCleanup(Block, 1);
cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)Block + 73));
v4 = *((_QWORD *)Block + 73);
if ( v4 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
*((_QWORD *)Block + 73) = 0;
cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)Block + 74));
v5 = *((_QWORD *)Block + 74);
if ( v5 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
*((_QWORD *)Block + 74) = 0;
cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)Block + 75));
v6 = *((_QWORD *)Block + 75);
if ( v6 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);
*((_QWORD *)Block + 75) = 0;
CCScrollLayerExt::dCCScrollLayerExt(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}