//
// cocos2d::CCParticleBatchNode::removeChild from 0xb02a5c to 0xb02b34 (216 bytes)
//
// 2 xrefs:
// > ??> @ 0x63e70
// > ??> @ 0x1217088
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void cocos2d::CCParticleBatchNode::removeChild(cocos2d::CCParticleBatchNode *a1, cocos2d::CCNode *a2, bool a3)
{
cocos2d::CCTextureAtlas *m_pTextureAtlas; // x21
unsigned int v6; // w0
cocos2d::CCTextureAtlas *v7; // x21
unsigned int v8; // w0
float y; // [xsp+38h] [xbp+38h]
unsigned int v10; // [xsp+38h] [xbp+38h]
if ( a2 )
{
cocos2d::CCArray::containsObject(a1->m_pChildren, (cocos2d::_ccArray *)a2, (cocos2d::CCObject *)a3);
cocos2d::CCNode::removeChild(a1);
m_pTextureAtlas = a1->m_pTextureAtlas;
y = a2[1].m_obAnchorPoint.y;
v6 = ((__int64 (__fastcall *)(cocos2d::CCNode *))a2->__vftable[1].setGrid)(a2);
cocos2d::CCTextureAtlas::removeQuadsAtIndex(m_pTextureAtlas, LODWORD(y), v6);
v7 = a1->m_pTextureAtlas;
v10 = v7->getTotalQuads(v7);
v8 = ((__int64 (__fastcall *)(cocos2d::CCNode *))a2->__vftable[1].setGrid)(a2);
cocos2d::CCTextureAtlas::fillWithEmptyQuadsFromIndex(v7, v10, v8);
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a2->__vftable[1].~CCNode)(a2, 0);
cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(a1);
}
}