//
// cocos2d::CCNode::removeAllChildrenWithCleanup from 0x10023bb00 to 0x10023bbe0 (224 bytes)
//
// 399 xrefs:
// > TableViewCell::dTableViewCell @ 0x100033e44
// > SetupObjectOptionsPopup::dSetupObjectOptionsPopup @ 0x10003f1b0
// > sub_10006EF58 @ 0x10006efb8
// > sub_100084A78 @ 0x100084ad0
// > sub_1000F4FA4 @ 0x1000f4ff4
// > SetupTriggerPopup::dSetupTriggerPopup @ 0x10012e1ac
// > HSVLiveOverlay::dHSVLiveOverlay @ 0x10019f86c
// > cocos2d::extension::CCControlHuePicker::dCCControlHuePicker @ 0x1001af7ac
// > cocos2d::extension::CCControlSaturationBrightnessPicker::dCCControlSaturationBrightnessPicker @ 0x1001bdd44
// > LoadingLayer::dLoadingLayer @ 0x1001d6eb0
// > cocos2d::CCSpriteBatchNode::removeAllChildrenWithCleanup @ 0x1001d7804
// > cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0x1002388a4
// > sub_1002CA1D8 @ 0x1002ca240
// > SelectFontLayer::dSelectFontLayer @ 0x1002d1b68
// > SetIDPopup::dSetIDPopup @ 0x1002ddacc
// > SetTextPopup::dSetTextPopup @ 0x1002df758
// > TableView::dTableView @ 0x1002fe8e4
// > CCScrollLayerExt::dCCScrollLayerExt @ 0x100300e74
// > SelectEventLayer::dSelectEventLayer @ 0x1004075d8
// > ??> @ 0x100761f18
// > ??> @ 0x1007622e0
// > ??> @ 0x100762760
// > ??> @ 0x100763178
// > ??> @ 0x100763a98
// > ??> @ 0x100763fb0
// > ??> @ 0x1007647a8
// > ??> @ 0x100765058
// > ??> @ 0x1007655f8
// > ??> @ 0x100765b88
// > ??> @ 0x100766380
// > ??> @ 0x100766b78
// > ??> @ 0x100767370
// > ??> @ 0x100767b68
// > ??> @ 0x100767f00
// > ??> @ 0x100768298
// > ??> @ 0x1007689b8
// > ??> @ 0x100768dc8
// > ??> @ 0x1007693c8
// > ??> @ 0x100769bc0
// > ??> @ 0x10076a3b8
// > ??> @ 0x10076abb0
// > ??> @ 0x10076b3a8
// > ??> @ 0x10076bbf8
// > ??> @ 0x10076c3f0
// > ??> @ 0x10076d1a8
// > ??> @ 0x10076d8d0
// > ??> @ 0x10076e078
// > ??> @ 0x10076e8b8
// > ??> @ 0x10076ec50
// > ??> @ 0x10076f0d8
// > ??> @ 0x10076f960
// > ??> @ 0x100770078
// > ??> @ 0x1007704a0
// > ??> @ 0x100770c98
// > ??> @ 0x1007711b0
// > ??> @ 0x1007719b0
// > ??> @ 0x1007721a8
// > ??> @ 0x1007727b8
// > ??> @ 0x100772ec0
// > ??> @ 0x100773bc8
// > ??> @ 0x100774500
// > ??> @ 0x100774a00
// > ??> @ 0x100775668
// > ??> @ 0x100775d30
// > ??> @ 0x100776578
// > ??> @ 0x100776d70
// > ??> @ 0x100777568
// > ??> @ 0x100778268
// > ??> @ 0x100778980
// > ??> @ 0x1007790b0
// > ??> @ 0x100779768
// > ??> @ 0x100779ef0
// > ??> @ 0x10077a5b8
// > ??> @ 0x10077acf8
// > ??> @ 0x10077bf68
// > ??> @ 0x10077c628
// > ??> @ 0x10077cd90
// > ??> @ 0x10077d508
// > ??> @ 0x10077de50
// > ??> @ 0x10077e5a0
// > ??> @ 0x10077ecb0
// > ??> @ 0x10077f438
// > ??> @ 0x10077f7b8
// > ??> @ 0x10077fb38
// > ??> @ 0x10077feb8
// > ??> @ 0x100780238
// > ??> @ 0x1007805b8
// > ??> @ 0x100780938
// > ??> @ 0x100780cb8
// > ??> @ 0x100781038
// > ??> @ 0x100781858
// > ??> @ 0x100781eb8
// > ??> @ 0x100782250
// > ??> @ 0x100782928
// > ??> @ 0x100783070
// > ??> @ 0x100783720
// > ??> @ 0x100783e18
// > ??> @ 0x1007844c8
// > ??> @ 0x100784da8
// > ??> @ 0x1007855a0
// > ??> @ 0x100786208
// > ??> @ 0x100786a00
// > ??> @ 0x1007870c8
// > ??> @ 0x100787588
// > ??> @ 0x100787968
// > ??> @ 0x100788068
// > ??> @ 0x1007885d8
// > ??> @ 0x100788b48
// > ??> @ 0x1007890b8
// > ??> @ 0x100789628
// > ??> @ 0x100789b98
// > ??> @ 0x10078a158
// > ??> @ 0x10078a700
// > ??> @ 0x10078acc0
// > ??> @ 0x10078b230
// > ??> @ 0x10078b7a0
// > ??> @ 0x10078bd50
// > ??> @ 0x10078c2e0
// > ??> @ 0x10078c850
// > ??> @ 0x10078cdc0
// > ??> @ 0x10078d3a0
// > ??> @ 0x10078d980
// > ??> @ 0x10078df60
// > ??> @ 0x10078e4d0
// > ??> @ 0x10078ea40
// > ??> @ 0x10078efb0
// > ??> @ 0x10078fac0
// > ??> @ 0x100790270
// > ??> @ 0x1007905f0
// > ??> @ 0x100791368
// > ??> @ 0x100791b50
// > ??> @ 0x1007920d8
// > ??> @ 0x100792660
// > ??> @ 0x100792ac8
// > ??> @ 0x100793388
// > ??> @ 0x100793b80
// > ??> @ 0x100793fd0
// > ??> @ 0x100794728
// > ??> @ 0x100794b38
// > ??> @ 0x100795300
// > ??> @ 0x1007959c8
// > ??> @ 0x1007960d0
// > ??> @ 0x100796838
// > ??> @ 0x100797030
// > ??> @ 0x1007975a0
// > ??> @ 0x100797c00
// > ??> @ 0x1007983b0
// > ??> @ 0x100798ae0
// > ??> @ 0x1007990b8
// > ??> @ 0x100799ed0
// > ??> @ 0x10079a750
// > ??> @ 0x10079aad0
// > ??> @ 0x10079ae70
// > ??> @ 0x10079b568
// > ??> @ 0x10079c008
// > ??> @ 0x10079c7a0
// > ??> @ 0x10079cfb8
// > ??> @ 0x10079d350
// > ??> @ 0x10079d908
// > ??> @ 0x10079e138
// > ??> @ 0x10079e800
// > ??> @ 0x10079ef50
// > ??> @ 0x10079f490
// > ??> @ 0x10079f828
// > ??> @ 0x1007a01a8
// > ??> @ 0x1007a06b8
// > ??> @ 0x1007a0e58
// > ??> @ 0x1007a1508
// > ??> @ 0x1007a1c80
// > ??> @ 0x1007a2490
// > ??> @ 0x1007a2d20
// > ??> @ 0x1007a3518
// > ??> @ 0x1007a3d10
// > ??> @ 0x1007a45a8
// > ??> @ 0x1007a4da0
// > ??> @ 0x1007a61f8
// > ??> @ 0x1007a6928
// > ??> @ 0x1007a6fe8
// > ??> @ 0x1007a77e0
// > ??> @ 0x1007a7ca8
// > ??> @ 0x1007a8468
// > ??> @ 0x1007a8bb8
// > ??> @ 0x1007a94b8
// > ??> @ 0x1007a9b80
// > ??> @ 0x1007aa2e0
// > ??> @ 0x1007aaad8
// > ??> @ 0x1007ab2d0
// > ??> @ 0x1007ab9e0
// > ??> @ 0x1007abd60
// > ??> @ 0x1007ac458
// > ??> @ 0x1007ad8b8
// > ??> @ 0x1007adff0
// > ??> @ 0x1007af2f8
// > ??> @ 0x1007af9d8
// > ??> @ 0x1007b0118
// > ??> @ 0x1007b0970
// > ??> @ 0x1007b1268
// > ??> @ 0x1007b19d0
// > ??> @ 0x1007b21b0
// > ??> @ 0x1007b29d8
// > ??> @ 0x1007b3788
// > ??> @ 0x1007b3f80
// > ??> @ 0x1007b4640
// > ??> @ 0x1007b4d70
// > ??> @ 0x1007b51e0
// > ??> @ 0x1007b59d8
// > ??> @ 0x1007b60a0
// > ??> @ 0x1007b6790
// > ??> @ 0x1007b6db0
// > ??> @ 0x1007b7568
// > ??> @ 0x1007b7e20
// > ??> @ 0x1007b8520
// > ??> @ 0x1007b9220
// > ??> @ 0x1007b95d8
// > ??> @ 0x1007ba4c0
// > ??> @ 0x1007baca8
// > ??> @ 0x1007bb038
// > ??> @ 0x1007bb3f8
// > ??> @ 0x1007bb820
// > ??> @ 0x1007bbbb8
// > ??> @ 0x1007bc1f8
// > ??> @ 0x1007bc768
// > ??> @ 0x1007bcd70
// > ??> @ 0x1007bd568
// > ??> @ 0x1007bdd18
// > ??> @ 0x1007be628
// > ??> @ 0x1007bede0
// > ??> @ 0x1007bfa88
// > ??> @ 0x1007c0110
// > ??> @ 0x1007c08d8
// > ??> @ 0x1007c1028
// > ??> @ 0x1007c15f8
// > ??> @ 0x1007c1d28
// > ??> @ 0x1007c2338
// > ??> @ 0x1007c2b30
// > ??> @ 0x1007c30a8
// > ??> @ 0x1007c35f0
// > ??> @ 0x1007c3a08
// > ??> @ 0x1007c4bc8
// > ??> @ 0x1007c53c0
// > ??> @ 0x1007c5bb8
// > ??> @ 0x1007c63b0
// > ??> @ 0x1007c6ba8
// > ??> @ 0x1007c7198
// > ??> @ 0x1007c7b48
// > ??> @ 0x1007c8648
// > ??> @ 0x1007c8e40
// > ??> @ 0x1007c91c0
// > ??> @ 0x1007ca3a0
// > ??> @ 0x1007ca8f8
// > ??> @ 0x1007cb008
// > ??> @ 0x1007cb898
// > ??> @ 0x1007cbf48
// > ??> @ 0x1007cc5f8
// > ??> @ 0x1007ccdd8
// > ??> @ 0x1007cd578
// > ??> @ 0x1007cd930
// > ??> @ 0x1007ce128
// > ??> @ 0x1007ce7f0
// > ??> @ 0x1007ceca0
// > ??> @ 0x1007cf408
// > ??> @ 0x1007d1370
// > ??> @ 0x1007d1b10
// > ??> @ 0x1007d2108
// > ??> @ 0x1007d2b08
// > ??> @ 0x1007d37b8
// > ??> @ 0x1007d3e30
// > ??> @ 0x1007d4628
// > ??> @ 0x1007d4cd8
// > ??> @ 0x1007d5418
// > ??> @ 0x1007d5b18
// > ??> @ 0x1007d5eb0
// > ??> @ 0x1007d6578
// > ??> @ 0x1007d6d70
// > ??> @ 0x1007d75d8
// > ??> @ 0x1007d7d98
// > ??> @ 0x1007d86b8
// > ??> @ 0x1007d8d68
// > ??> @ 0x1007d9560
// > ??> @ 0x1007d9c08
// > ??> @ 0x1007da3f0
// > ??> @ 0x1007daad0
// > ??> @ 0x1007db1f0
// > ??> @ 0x1007db940
// > ??> @ 0x1007dc0d0
// > ??> @ 0x1007dc7e0
// > ??> @ 0x1007dcf48
// > ??> @ 0x1007dd740
// > ??> @ 0x1007dde50
// > ??> @ 0x1007de648
// > ??> @ 0x1007dee58
// > ??> @ 0x1007df700
// > ??> @ 0x1007dff10
// > ??> @ 0x1007e0778
// > ??> @ 0x1007e0ef0
// > ??> @ 0x1007e1618
// > ??> @ 0x1007e1d80
// > ??> @ 0x1007e2460
// > ??> @ 0x1007e27f8
// > ??> @ 0x1007e3020
// > ??> @ 0x1007e3818
// > ??> @ 0x1007e4028
// > ??> @ 0x1007e46f0
// > ??> @ 0x1007e4a88
// > ??> @ 0x1007e5990
// > ??> @ 0x1007e6188
// > ??> @ 0x1007e6798
// > ??> @ 0x1007e6d20
// > ??> @ 0x1007e73a8
// > ??> @ 0x1007e78a8
// > ??> @ 0x1007e7d20
// > ??> @ 0x1007e8518
// > ??> @ 0x1007e8e78
// > ??> @ 0x1007e9210
// > ??> @ 0x1007eae88
// > ??> @ 0x1007eb220
// > ??> @ 0x1007eb850
// > ??> @ 0x1007ebde8
// > ??> @ 0x1007ed098
// > ??> @ 0x1007ed8b0
// > ??> @ 0x1007edec0
// > ??> @ 0x1007ee4a8
// > ??> @ 0x1007eea68
// > ??> @ 0x1007eee58
// > ??> @ 0x1007ef2d0
// > ??> @ 0x1007efe70
// > ??> @ 0x1007f0310
// > ??> @ 0x1007f0810
// > ??> @ 0x1007f0d10
// > ??> @ 0x1007f1508
// > ??> @ 0x1007f1ad0
// > ??> @ 0x1007f2098
// > ??> @ 0x1007f27a8
// > ??> @ 0x1007f2b40
// > ??> @ 0x1007f3178
// > ??> @ 0x1007f3928
// > ??> @ 0x1007f4038
// > ??> @ 0x1007f4868
// > ??> @ 0x1007f4dd8
// > ??> @ 0x10080a708
// > ??> @ 0x10080b368
// > ??> @ 0x10080b8f0
// > ??> @ 0x10080c040
// > ??> @ 0x10080c3d8
// > ??> @ 0x10080caa0
// > ??> @ 0x10080d208
// > ??> @ 0x10080da00
// > ??> @ 0x10080e308
// > ??> @ 0x10080e950
// > ??> @ 0x10080f060
// > ??> @ 0x10080f8e0
// > ??> @ 0x10080ffe0
// > ??> @ 0x100810710
// > ??> @ 0x100811490
// > ??> @ 0x100811bc0
// > ??> @ 0x100811f68
// > ??> @ 0x100812730
// > ??> @ 0x100812ec8
// > ??> @ 0x1008136c0
// > ??> @ 0x100813d80
// > ??> @ 0x100814590
// > ??> @ 0x100814bc8
// > ??> @ 0x100815150
// > ??> @ 0x1008156f0
// > ??> @ 0x100815cb8
// > ??> @ 0x100816948
// > ??> @ 0x100817188
// > ??> @ 0x100817718
// > ??> @ 0x100817d70
// > ??> @ 0x100818568
// > ??> @ 0x100818d48
// > ??> @ 0x100819558
// > ??> @ 0x100819d50
// > ??> @ 0x10081a548
// > ??> @ 0x10081ad40
// > ??> @ 0x10081b538
// > ??> @ 0x10081bd30
// > ??> @ 0x10081c568
// > ??> @ 0x10081cd60
// > ??> @ 0x10081d598
// > ??> @ 0x10081dd90
// > ??> @ 0x10081e588
// > ??> @ 0x10081ed80
// > ??> @ 0x10081f578
// > ??> @ 0x10081fd70
// > ??> @ 0x100820568
// > ??> @ 0x100820d60
// > ??> @ 0x100821558
// > ??> @ 0x100821e78
// > ??> @ 0x100822670
// > ??> @ 0x100822e68
// > ??> @ 0x1008236f0
// > ??> @ 0x100823ee8
// > ??> @ 0x100824750
// > ??> @ 0x100824ae8
// > ??> @ 0x100825070
// > ??> @ 0x100825868
// > ??> @ 0x100825ff0
// > ??> @ 0x100826760
//
// 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
//
void __fastcall cocos2d::CCNode::removeAllChildrenWithCleanup(cocos2d::CCNode *a1, bool a2)
{
cocos2d::CCArray *m_pChildren; // x0
_BOOL4 v4; // w20
cocos2d::CCArray *v5; // x0
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCObject **arr; // x22
unsigned __int64 v9; // x23
cocos2d::CCObject *v10; // x21
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
v4 = a2;
if ( (unsigned int)sub_10024A36C(m_pChildren) )
{
v5 = a1->m_pChildren;
if ( v5 )
{
data = v5->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v9 = (unsigned __int64)&arr[num - 1];
do
{
v10 = *arr;
if ( !*arr )
break;
if ( a1->m_bRunning )
{
((void (__fastcall *)(cocos2d::CCObject *))v10->__vftable[8].setTag)(*arr);
((void (__fastcall *)(cocos2d::CCObject *))v10->__vftable[8].getTag)(v10);
}
if ( v4 )
((void (__fastcall *)(cocos2d::CCObject *))v10->__vftable[9].copyWithZone)(v10);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v10->__vftable[6].~CCObject)(v10, 0);
++arr;
}
while ( (unsigned __int64)arr <= v9 );
v5 = a1->m_pChildren;
}
}
sub_10024A45C(v5);
}
}
}