//
// cocos2d::CCParticleBatchNode::removeChild from 0xd72ff4 to 0xd730cc (216 bytes)
//
// 2 xrefs:
// > ??> @ 0x87ee0
// > ??> @ 0x152ceb8
//
// This function is hookable on this platform (idp: arm, 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 13:08:01 +0000
//
cocos2d::CCArray **__fastcall cocos2d::CCParticleBatchNode::removeChild(
cocos2d::CCArray **this,
cocos2d::CCNode *a2,
unsigned __int8 a3)
{
cocos2d::CCParticleBatchNode *v5; // x20
cocos2d::CCTextureAtlas *v6; // x21
unsigned int v7; // w0
cocos2d::CCTextureAtlas *v8; // x21
unsigned int v9; // w0
unsigned int v10; // [xsp+38h] [xbp+38h]
unsigned int v11; // [xsp+38h] [xbp+38h]
if ( a2 )
{
v5 = (cocos2d::CCParticleBatchNode *)this;
cocos2d::CCArray::containsObject(*(this + 26), a2);
cocos2d::CCNode::removeChild((__int64)v5, a2, a3);
v6 = *((cocos2d::CCTextureAtlas **)v5 + 41);
v10 = *((_DWORD *)a2 + 110);
v7 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 1496LL))(a2);
cocos2d::CCTextureAtlas::removeQuadsAtIndex(v6, v10, v7);
v8 = *((cocos2d::CCTextureAtlas **)v5 + 41);
v11 = (*(__int64 (__fastcall **)(cocos2d::CCTextureAtlas *))(*(_QWORD *)v8 + 80LL))(v8);
v9 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 1496LL))(a2);
cocos2d::CCTextureAtlas::fillWithEmptyQuadsFromIndex(v8, v11, v9);
(*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)a2 + 904LL))(a2, 0);
return (cocos2d::CCArray **)cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(v5);
}
return this;
}