//
// cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup from 0x1003b2a90 to 0x1003b2b1c (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b37650
//
// 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:29:27 +0000
//
__int64 __fastcall cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup(__int64 a1, char a2)
{
__int64 v3; // rdi
__int64 v4; // rax
unsigned int *v5; // rax
_QWORD *v6; // r15
unsigned __int64 v7; // r12
v3 = *(_QWORD *)(a1 + 208);
if ( v3 )
{
if ( (unsigned int)sub_1007FEF90(v3) )
{
v4 = *(_QWORD *)(a1 + 208);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
if ( *v5 )
{
v6 = *((_QWORD **)v5 + 2);
v7 = (unsigned __int64)&v6[*v5 - 1];
do
{
if ( !*v6 )
break;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v6 + 904LL))(*v6, 0);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
}
}
cocos2d::CCNode::removeAllChildrenWithCleanup(a1, a2);
return cocos2d::CCTextureAtlas::removeAllQuads(*(_QWORD *)(a1 + 328));
}