//
// cocos2d::CCNode::removeAllChildrenWithCleanup from 0xacb2c0 to 0xacb3bc (252 bytes)
//
// 500 xrefs:
// > CCScrollLayerExt::~CCScrollLayerExt @ 0x579110
// > TableView::~TableView @ 0x57a4b8
// > TableViewCell::~TableViewCell @ 0x57cfcc
// > LoadingLayer::~LoadingLayer @ 0x5c43a8
// > TutorialPopup::~TutorialPopup @ 0x600524
// > SelectFontLayer::~SelectFontLayer @ 0x8c1c10
// > SetIDPopup::~SetIDPopup @ 0x8c1ce4
// > SetTextPopup::~SetTextPopup @ 0x8c45f0
// > CollisionBlockPopup::~CollisionBlockPopup @ 0x909000
// > ColorSelectLiveOverlay::~ColorSelectLiveOverlay @ 0x90a788
// > SetupObjectOptionsPopup::~SetupObjectOptionsPopup @ 0x974a9c
// > SetupGravityModPopup::~SetupGravityModPopup @ 0x9bee74
// > CreateParticlePopup::~CreateParticlePopup @ 0x9c02fc
// > SetupSmartBlockLayer::~SetupSmartBlockLayer @ 0x9dbb24
// > SetupTriggerPopup::~SetupTriggerPopup @ 0x9eb30c
// > HSVLiveOverlay::~HSVLiveOverlay @ 0xa238c4
// > SelectEventLayer::~SelectEventLayer @ 0xa53ccc
// > cocos2d::extension::CCControlHuePicker::~CCControlHuePicker @ 0xa9cfb0
// > cocos2d::extension::CCControlSaturationBrightnessPicker::~CCControlSaturationBrightnessPicker @ 0xa9d7c8
// > cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup @ 0xb02bb4
// > cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0xb16864
// > cocos2d::CCSpriteBatchNode::removeAllChildrenWithCleanup @ 0xb18894
// > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0xb38344
// > ??> @ 0x7fc80
// > ??> @ 0x1133808
// > ??> @ 0x1133ba8
// > ??> @ 0x1134038
// > ??> @ 0x11344d8
// > ??> @ 0x1134b18
// > ??> @ 0x1135088
// > ??> @ 0x1135628
// > ??> @ 0x1135b98
// > ??> @ 0x1136d88
// > ??> @ 0x1137f58
// > ??> @ 0x1138728
// > ??> @ 0x1138bb8
// > ??> @ 0x11390c8
// > ??> @ 0x113a0f8
// > ??> @ 0x113a688
// > ??> @ 0x113ad08
// > ??> @ 0x113b318
// > ??> @ 0x113b8a8
// > ??> @ 0x113bc68
// > ??> @ 0x113c338
// > ??> @ 0x113c708
// > ??> @ 0x113d988
// > ??> @ 0x113dd28
// > ??> @ 0x113e0c8
// > ??> @ 0x113e468
// > ??> @ 0x113edb8
// > ??> @ 0x113f508
// > ??> @ 0x113f9f8
// > ??> @ 0x1140068
// > ??> @ 0x11405f8
// > ??> @ 0x1140cc8
// > ??> @ 0x11410e8
// > ??> @ 0x1141788
// > ??> @ 0x1141b58
// > ??> @ 0x1141ed8
// > ??> @ 0x1142258
// > ??> @ 0x1142608
// > ??> @ 0x1142988
// > ??> @ 0x1143898
// > ??> @ 0x1143e08
// > ??> @ 0x11441a8
// > ??> @ 0x1144878
// > ??> @ 0x1145908
// > ??> @ 0x11460b8
// > ??> @ 0x11467c8
// > ??> @ 0x1146f58
// > ??> @ 0x1147528
// > ??> @ 0x1147b18
// > ??> @ 0x11481e8
// > ??> @ 0x1148758
// > ??> @ 0x1148f08
// > ??> @ 0x1149288
// > ??> @ 0x1149c28
// > ??> @ 0x1149fe8
// > ??> @ 0x114a6b8
// > ??> @ 0x114b308
// > ??> @ 0x114b948
// > ??> @ 0x114beb8
// > ??> @ 0x114c428
// > ??> @ 0x114c998
// > ??> @ 0x114cf08
// > ??> @ 0x114d478
// > ??> @ 0x114da38
// > ??> @ 0x114dfe8
// > ??> @ 0x114e5a8
// > ??> @ 0x114eb18
// > ??> @ 0x114f088
// > ??> @ 0x114f638
// > ??> @ 0x114fbc8
// > ??> @ 0x1150138
// > ??> @ 0x11506a8
// > ??> @ 0x1150c88
// > ??> @ 0x1151268
// > ??> @ 0x1151848
// > ??> @ 0x1151db8
// > ??> @ 0x1152328
// > ??> @ 0x1154fc8
// > ??> @ 0x11557f8
// > ??> @ 0x1155d68
// > ??> @ 0x11563f8
// > ??> @ 0x11568e8
// > ??> @ 0x11570f8
// > ??> @ 0x1157668
// > ??> @ 0x1157bd8
// > ??> @ 0x1158168
// > ??> @ 0x1158528
// > ??> @ 0x1158c68
// > ??> @ 0x1159258
// > ??> @ 0x1159ee8
// > ??> @ 0x115a4f8
// > ??> @ 0x115ac08
// > ??> @ 0x115b468
// > ??> @ 0x115bbc8
// > ??> @ 0x115c2e8
// > ??> @ 0x115c998
// > ??> @ 0x115d078
// > ??> @ 0x115d888
// > ??> @ 0x115e228
// > ??> @ 0x115e5a8
// > ??> @ 0x115e928
// > ??> @ 0x115eca8
// > ??> @ 0x115f028
// > ??> @ 0x115f3a8
// > ??> @ 0x115f728
// > ??> @ 0x115faa8
// > ??> @ 0x115fe28
// > ??> @ 0x11601a8
// > ??> @ 0x1160558
// > ??> @ 0x1160ac8
// > ??> @ 0x1160f58
// > ??> @ 0x11617c8
// > ??> @ 0x11778b8
// > ??> @ 0x1177ff8
// > ??> @ 0x1178848
// > ??> @ 0x1179a18
// > ??> @ 0x117a0e8
// > ??> @ 0x117a888
// > ??> @ 0x117ae58
// > ??> @ 0x117b408
// > ??> @ 0x117bb48
// > ??> @ 0x117bf28
// > ??> @ 0x117c3e8
// > ??> @ 0x117cc28
// > ??> @ 0x117d198
// > ??> @ 0x117d8b8
// > ??> @ 0x117e008
// > ??> @ 0x117e6b8
// > ??> @ 0x117edb8
// > ??> @ 0x117f488
// > ??> @ 0x117fba8
// > ??> @ 0x1180038
// > ??> @ 0x1180758
// > ??> @ 0x1180e78
// > ??> @ 0x1181588
// > ??> @ 0x1181d18
// > ??> @ 0x11823e8
// > ??> @ 0x1182bc8
// > ??> @ 0x1183388
// > ??> @ 0x1183b08
// > ??> @ 0x1183ec8
// > ??> @ 0x1184598
// > ??> @ 0x1184c98
// > ??> @ 0x1185228
// > ??> @ 0x11857b8
// > ??> @ 0x1185d78
// > ??> @ 0x11864c8
// > ??> @ 0x11868d8
// > ??> @ 0x1186f68
// > ??> @ 0x1187618
// > ??> @ 0x1187eb8
// > ??> @ 0x11885b8
// > ??> @ 0x1188d28
// > ??> @ 0x1189158
// > ??> @ 0x1189728
// > ??> @ 0x1189aa8
// > ??> @ 0x1189e48
// > ??> @ 0x118a5a8
// > ??> @ 0x118ad08
// > ??> @ 0x118b3b8
// > ??> @ 0x118ba88
// > ??> @ 0x118c158
// > ??> @ 0x118c648
// > ??> @ 0x118cdc8
// > ??> @ 0x118d5c8
// > ??> @ 0x118da88
// > ??> @ 0x118e228
// > ??> @ 0x118ea78
// > ??> @ 0x118f1f8
// > ??> @ 0x118f978
// > ??> @ 0x1190048
// > ??> @ 0x1190448
// > ??> @ 0x1190b98
// > ??> @ 0x1190f18
// > ??> @ 0x1191638
// > ??> @ 0x1191bf8
// > ??> @ 0x1192aa8
// > ??> @ 0x1192e28
// > ??> @ 0x11936a8
// > ??> @ 0x1193a28
// > ??> @ 0x1194798
// > ??> @ 0x1194e48
// > ??> @ 0x1195628
// > ??> @ 0x1195e08
// > ??> @ 0x1196608
// > ??> @ 0x1196e08
// > ??> @ 0x11974b8
// > ??> @ 0x1197bc8
// > ??> @ 0x11982a8
// > ??> @ 0x1198958
// > ??> @ 0x1199078
// > ??> @ 0x11997c8
// > ??> @ 0x1199f58
// > ??> @ 0x119a738
// > ??> @ 0x119ae48
// > ??> @ 0x119b578
// > ??> @ 0x119bc88
// > ??> @ 0x119c3b8
// > ??> @ 0x119cac8
// > ??> @ 0x119d1d8
// > ??> @ 0x119d558
// > ??> @ 0x119dd58
// > ??> @ 0x119e558
// > ??> @ 0x119ed38
// > ??> @ 0x119f438
// > ??> @ 0x119fae8
// > ??> @ 0x11a0318
// > ??> @ 0x11a09c8
// > ??> @ 0x11a1938
// > ??> @ 0x11a2138
// > ??> @ 0x11a2648
// > ??> @ 0x11a2d18
// > ??> @ 0x11a3518
// > ??> @ 0x11a3d18
// > ??> @ 0x11a4548
// > ??> @ 0x11a4e28
// > ??> @ 0x11a5648
// > ??> @ 0x11a5e68
// > ??> @ 0x11a66c8
// > ??> @ 0x11a6ef8
// > ??> @ 0x11a75a8
// > ??> @ 0x11a7ca8
// > ??> @ 0x11a8338
// > ??> @ 0x11a8a58
// > ??> @ 0x11a8e18
// > ??> @ 0x11a9558
// > ??> @ 0x11a9c48
// > ??> @ 0x11aa388
// > ??> @ 0x11aaf58
// > ??> @ 0x11ab688
// > ??> @ 0x11abb08
// > ??> @ 0x11ac248
// > ??> @ 0x11ac868
// > ??> @ 0x11acc38
// > ??> @ 0x11acfb8
// > ??> @ 0x11ad598
// > ??> @ 0x11add98
// > ??> @ 0x11ae5a8
// > ??> @ 0x11aed88
// > ??> @ 0x11af628
// > ??> @ 0x11afc08
// > ??> @ 0x11b08a8
// > ??> @ 0x11b1018
// > ??> @ 0x11b17e8
// > ??> @ 0x11b1ee8
// > ??> @ 0x11b2c08
// > ??> @ 0x11b3218
// > ??> @ 0x11b3788
// > ??> @ 0x11b3d18
// > ??> @ 0x11b40f8
// > ??> @ 0x11b4728
// > ??> @ 0x11b4f28
// > ??> @ 0x11b5728
// > ??> @ 0x11b5f28
// > ??> @ 0x11b6758
// > ??> @ 0x11b6f38
// > ??> @ 0x11b7718
// > ??> @ 0x11b7f18
// > ??> @ 0x11b8718
// > ??> @ 0x11b8f18
// > ??> @ 0x11b9718
// > ??> @ 0x11b9f18
// > ??> @ 0x11ba718
// > ??> @ 0x11baf18
// > ??> @ 0x11bb718
// > ??> @ 0x11bbe38
// > ??> @ 0x11bc3f8
// > ??> @ 0x11bc778
// > ??> @ 0x11bce88
// > ??> @ 0x11bd628
// > ??> @ 0x11bdd38
// > ??> @ 0x11be558
// > ??> @ 0x11bec78
// > ??> @ 0x11bf478
// > ??> @ 0x11bfc78
// > ??> @ 0x11c0488
// > ??> @ 0x11c0c68
// > ??> @ 0x11c1478
// > ??> @ 0x11c17f8
// > ??> @ 0x11c1f48
// > ??> @ 0x11c2678
// > ??> @ 0x11c2d88
// > ??> @ 0x11c35c8
// > ??> @ 0x11c3948
// > ??> @ 0x11c3ec8
// > ??> @ 0x11c4248
// > ??> @ 0x11c45e8
// > ??> @ 0x11c4988
// > ??> @ 0x11c51e8
// > ??> @ 0x11c5a68
// > ??> @ 0x11c6278
// > ??> @ 0x11c6a58
// > ??> @ 0x11c7258
// > ??> @ 0x11c7a58
// > ??> @ 0x11c8088
// > ??> @ 0x11c8808
// > ??> @ 0x11c8f78
// > ??> @ 0x11c96e8
// > ??> @ 0x11c9ea8
// > ??> @ 0x11ca228
// > ??> @ 0x11ca698
// > ??> @ 0x11cadb8
// > ??> @ 0x11cb4e8
// > ??> @ 0x11cbba8
// > ??> @ 0x11cc288
// > ??> @ 0x11ccac8
// > ??> @ 0x11cd2c8
// > ??> @ 0x11cdad8
// > ??> @ 0x11ce2b8
// > ??> @ 0x11ceab8
// > ??> @ 0x11cf2b8
// > ??> @ 0x11cf848
// > ??> @ 0x11d0048
// > ??> @ 0x11d08f8
// > ??> @ 0x11d10d8
// > ??> @ 0x11d18b8
// > ??> @ 0x11d2098
// > ??> @ 0x11d2878
// > ??> @ 0x11d3088
// > ??> @ 0x11d3868
// > ??> @ 0x11d40b8
// > ??> @ 0x11d48e8
// > ??> @ 0x11d5178
// > ??> @ 0x11d5978
// > ??> @ 0x11d6028
// > ??> @ 0x11d6808
// > ??> @ 0x11d7018
// > ??> @ 0x11d77f8
// > ??> @ 0x11d7ff8
// > ??> @ 0x11d8818
// > ??> @ 0x11d8f18
// > ??> @ 0x11d95e8
// > ??> @ 0x11d9998
// > ??> @ 0x11da318
// > ??> @ 0x11da8a8
// > ??> @ 0x11dae88
// > ??> @ 0x11db3c8
// > ??> @ 0x11dbb68
// > ??> @ 0x11dc218
// > ??> @ 0x11dc8c8
// > ??> @ 0x11dd0c8
// > ??> @ 0x11dd8f8
// > ??> @ 0x11de0d8
// > ??> @ 0x11de978
// > ??> @ 0x11df158
// > ??> @ 0x11df938
// > ??> @ 0x11e0178
// > ??> @ 0x11e0b68
// > ??> @ 0x11e1348
// > ??> @ 0x11e1b28
// > ??> @ 0x11e2308
// > ??> @ 0x11e2ae8
// > ??> @ 0x11e32c8
// > ??> @ 0x11e3aa8
// > ??> @ 0x11e4288
// > ??> @ 0x11e4a68
// > ??> @ 0x11e5248
// > ??> @ 0x11e5a28
// > ??> @ 0x11e6208
// > ??> @ 0x11e69e8
// > ??> @ 0x11e71c8
// > ??> @ 0x11e79a8
// > ??> @ 0x11e8188
// > ??> @ 0x11e8988
// > ??> @ 0x11e9168
// > ??> @ 0x11e9968
// > ??> @ 0x11ea168
// > ??> @ 0x11ea9f8
// > ??> @ 0x11eb1c8
// > ??> @ 0x11eb988
// > ??> @ 0x11ec098
// > ??> @ 0x11ec848
// > ??> @ 0x11ecf48
// > ??> @ 0x11edb58
// > ??> @ 0x11ee228
// > ??> @ 0x11ee918
// > ??> @ 0x11ef148
// > ??> @ 0x11ef858
// > ??> @ 0x11f00e8
// > ??> @ 0x11f0798
// > ??> @ 0x11f0e48
// > ??> @ 0x11f1578
// > ??> @ 0x11f1d58
// > ??> @ 0x11f2538
// > ??> @ 0x11f2d68
// > ??> @ 0x11f35a8
// > ??> @ 0x11f3be8
// > ??> @ 0x11f4158
// > ??> @ 0x11f47a8
// > ??> @ 0x11f4f08
// > ??> @ 0x11f56b8
// > ??> @ 0x11f5da8
// > ??> @ 0x11f64a8
// > ??> @ 0x11f6ba8
// > ??> @ 0x11f78d8
// > ??> @ 0x11f8038
// > ??> @ 0x11f8588
// > ??> @ 0x11f8c68
// > ??> @ 0x11f9388
// > ??> @ 0x11f99f8
// > ??> @ 0x11fa038
// > ??> @ 0x11fa518
// > ??> @ 0x11ffe28
// > ??> @ 0x1200368
// > ??> @ 0x12006e8
// > ??> @ 0x12012c8
// > ??> @ 0x1201b08
// > ??> @ 0x1203998
// > ??> @ 0x1203f08
// > ??> @ 0x1204568
// > ??> @ 0x1204c18
// > ??> @ 0x1205338
// > ??> @ 0x12058c8
// > ??> @ 0x1205c68
// > ??> @ 0x1206398
// > ??> @ 0x1206728
// > ??> @ 0x1206ac8
// > ??> @ 0x1206e58
// > ??> @ 0x12071e8
// > ??> @ 0x12075a8
// > ??> @ 0x1207968
// > ??> @ 0x1207d28
// > ??> @ 0x12080e8
// > ??> @ 0x12084a8
// > ??> @ 0x1208868
// > ??> @ 0x1208c28
// > ??> @ 0x1208fe8
// > ??> @ 0x1209398
// > ??> @ 0x1209738
// > ??> @ 0x1209ad8
// > ??> @ 0x1209e78
// > ??> @ 0x120a218
// > ??> @ 0x120a5b8
// > ??> @ 0x120a958
// > ??> @ 0x120acf8
// > ??> @ 0x120b088
// > ??> @ 0x120b438
// > ??> @ 0x120b7f8
// > ??> @ 0x120bbb8
// > ??> @ 0x120bf78
// > ??> @ 0x120c338
// > ??> @ 0x120c6f8
// > ??> @ 0x120cb68
// > ??> @ 0x120cf08
// > ??> @ 0x120d2a8
// > ??> @ 0x120d648
// > ??> @ 0x120d9e8
// > ??> @ 0x120dd88
// > ??> @ 0x120e128
// > ??> @ 0x120e4e8
// > ??> @ 0x120ec08
// > ??> @ 0x120f0d8
// > ??> @ 0x120f5a8
// > ??> @ 0x120fa58
// > ??> @ 0x120ff28
// > ??> @ 0x1210418
// > ??> @ 0x1210908
// > ??> @ 0x1210df8
// > ??> @ 0x12111c8
// > ??> @ 0x12116a8
// > ??> @ 0x1211b58
// > ??> @ 0x1211ff8
// > ??> @ 0x12126a8
// > ??> @ 0x1212d58
// > ??> @ 0x1213408
// > ??> @ 0x1213ab8
// > ??> @ 0x1214168
// > ??> @ 0x1214818
// > ??> @ 0x1214ec8
// > ??> @ 0x1215578
// > ??> @ 0x1215c28
// > ??> @ 0x12162d8
// > ??> @ 0x12169c8
// > ??> @ 0x1217498
// > ??> @ 0x121b058
// > ??> @ 0x121b638
// > ??> @ 0x121c208
//
// 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 cocos2d::CCNode::removeAllChildrenWithCleanup(cocos2d::CCNode *a1, bool a2)
{
_BOOL4 v2; // w23
cocos2d::CCArray *m_pChildren; // x0
cocos2d::ccArray *data; // x2
char *arr; // x20
__int64 v7; // x1
char *v8; // x22
__int64 v9; // x19
v2 = a2;
if ( a1->m_pChildren && (unsigned int)cocos2d::CCArray::count(a1->m_pChildren) )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = (char *)data->arr;
v7 = 8LL * data->num - 8;
v8 = &arr[v7];
if ( arr <= &arr[v7] )
{
v9 = *(_QWORD *)arr;
if ( *(_QWORD *)arr )
{
do
{
if ( a1->m_bRunning )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 712LL))(v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 704LL))(v9);
}
arr += 8;
if ( v2 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 720LL))(v9);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 488LL))(v9, 0);
if ( v8 < arr )
break;
v9 = *(_QWORD *)arr;
}
while ( *(_QWORD *)arr );
m_pChildren = a1->m_pChildren;
}
}
}
}
cocos2d::CCArray::removeAllObjects(m_pChildren);
}
}