//
// SectionedContentNode::removeAllChildrenWithCleanup from 0x140080ca0 to 0x140080db1 (273 bytes)
//
// 4 xrefs:
// > ??> @ 0x140712690
// > ??> @ 0x14088b0c4
// > ??> @ 0x14088b0d4
// > ??> @ 0x140912020
//
// 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:55 +0000
//
void __fastcall SectionedContentNode::removeAllChildrenWithCleanup(cocos2d::CCNode *a1, bool a2)
{
_QWORD *v2; // rbp
_QWORD *v5; // rsi
_QWORD *v6; // rbx
void *v7; // rcx
_QWORD *v8; // rdi
_QWORD *v9; // rbx
void *v10; // rcx
v2 = *((_QWORD **)a1 + 40);
if ( v2 )
{
v5 = (_QWORD *)v2[66];
v6 = (_QWORD *)v5[1];
while ( !*((_BYTE *)v6 + 25) )
{
sub_140083780(v2 + 66, v2 + 66, v6[2]);
v7 = v6;
v6 = (_QWORD *)*v6;
j_j_free(v7);
}
v5[1] = v5;
*v5 = v5;
v5[2] = v5;
v2[67] = 0;
v8 = (_QWORD *)v2[68];
v9 = (_QWORD *)v8[1];
while ( !*((_BYTE *)v9 + 25) )
{
sub_140083780(v2 + 68, v2 + 68, v9[2]);
v10 = v9;
v9 = (_QWORD *)*v9;
j_j_free(v10);
}
v8[1] = v8;
*v8 = v8;
v8[2] = v8;
v2[69] = 0;
v2[70] = 0;
ScrollableContentLayer::unmountAllRows(v2);
}
cocos2d::CCNode::removeAllChildrenWithCleanup(a1, a2);
}