//
// SectionedContentNode::removeAllChildrenWithCleanup from 0x10096e460 to 0x10096e541 (225 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bce148
//
// 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 12:38:52 +0000
//
void __fastcall SectionedContentNode::removeAllChildrenWithCleanup(__int64 a1, char a2)
{
__int64 v2; // r14
char v3; // r12
v2 = *(_QWORD *)(a1 + 320);
if ( v2 )
{
sub_10001ADF0(v2 + 528, *(_QWORD **)(v2 + 536));
*(_QWORD *)(v2 + 528) = v2 + 536;
*(_OWORD *)(v2 + 536) = 0;
sub_10001ADF0(v2 + 552, *(_QWORD **)(v2 + 560));
*(_QWORD *)(v2 + 552) = v2 + 560;
*(_OWORD *)(v2 + 560) = 0;
*(_QWORD *)(v2 + 576) = 0;
v3 = *(_BYTE *)(v2 + 672);
*(_BYTE *)(v2 + 672) = 1;
while ( *(_QWORD *)(v2 + 656) )
sub_10096DA80(v2, *(unsigned int *)(*(_QWORD *)(v2 + 640) + 32LL));
*(_BYTE *)(v2 + 672) = v3;
*(_QWORD *)(v2 + 664) = -1;
}
cocos2d::CCNode::removeAllChildrenWithCleanup(a1, a2);
}