//
// cocos2d::CCSprite::removeAllChildrenWithCleanup from 0x7f1d88 to 0x7f1dee (102 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:05 +0000
//
cocos2d::CCArray *__fastcall cocos2d::CCSprite::removeAllChildrenWithCleanup(cocos2d::CCSprite *this, int a2)
{
cocos2d::CCArray *result; // r0
int v5; // r3
_DWORD *v6; // r2
const void **v7; // r4
const void **v8; // r5
const void *v9; // r0
const void *v10; // t1
cocos2d::CCSprite *v11; // r1
if ( *((_DWORD *)this + 73) )
{
v5 = *((_DWORD *)this + 48);
if ( v5 )
{
v6 = *(_DWORD **)(v5 + 52);
if ( *v6 )
{
v7 = (const void **)v6[3];
v8 = &v7[*v6] + 0x3FFFFFFF;
while ( v7 <= v8 )
{
v10 = *v7++;
v9 = v10;
if ( !v10 )
break;
v11 = (cocos2d::CCSprite *)_dynamic_cast(
v9,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite,
0);
if ( v11 )
cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas(*((cocos2d::CCSpriteBatchNode **)this + 73), v11);
}
}
}
}
result = cocos2d::CCNode::removeAllChildrenWithCleanup(this, a2);
*((_BYTE *)this + 298) = 0;
return result;
}