//
// sub_140074820 from 0x140074820 to 0x14007494c (300 bytes)
//
// 3 xrefs:
// > sub_140076AF0 @ 0x140076af7
// > ??> @ 0x140537730
// > ??> @ 0x1406c6384
//
// 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
void *__fastcall sub_140074820(void *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 + 63) = &TableView::`vftable';
cocos2d::CCNode::removeAllChildrenWithCleanup((cocos2d::CCNode *)Block, 1);
cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)Block + 71));
v4 = *((_QWORD *)Block + 71);
if ( v4 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
*((_QWORD *)Block + 71) = 0;
cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)Block + 72));
v5 = *((_QWORD *)Block + 72);
if ( v5 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
*((_QWORD *)Block + 72) = 0;
cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)Block + 73));
v6 = *((_QWORD *)Block + 73);
if ( v6 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);
*((_QWORD *)Block + 73) = 0;
CCScrollLayerExt::dCCScrollLayerExt((cocos2d::CCLayer *)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}