//
// cocos2d::CCParticleBatchNode::removeChild from 0x1800619b0 to 0x180061a92 (226 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800fa298
// > ??> @ 0x180139948
// > ??> @ 0x180139958
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b36a8
//
// 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 __fastcall cocos2d::CCParticleBatchNode::removeChild(
cocos2d::CCParticleBatchNode *this,
struct cocos2d::CCNode *a2,
char a3)
{
float d; // ebx
unsigned int v7; // eax
cocos2d::CCTextureAtlas *m_pTextureAtlas; // rdi
unsigned int v9; // ebx
unsigned int v10; // eax
if ( a2 )
{
_RTDynamicCast(a2, 0, &cocos2d::CCNode `RTTI Type Descriptor', &cocos2d::CCParticleSystem `RTTI Type Descriptor', 0);
cocos2d::CCArray::containsObject(this->m_pChildren, a2);
cocos2d::CCNode::removeChild(this, a2, a3);
d = a2[1].m_sAdditionalTransform.d;
v7 = ((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->__vftable[1].getUserData)(a2);
cocos2d::CCTextureAtlas::removeQuadsAtIndex(this->m_pTextureAtlas, LODWORD(d), v7);
m_pTextureAtlas = this->m_pTextureAtlas;
v9 = ((__int64 (__fastcall *)(struct cocos2d::CCNode *))a2->__vftable[1].getUserData)(a2);
v10 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))m_pTextureAtlas->getTotalQuads)(m_pTextureAtlas);
cocos2d::CCTextureAtlas::fillWithEmptyQuadsFromIndex(this->m_pTextureAtlas, v10, v9);
((void (__fastcall *)(struct cocos2d::CCNode *, _QWORD))a2->__vftable[1].~CCNode)(a2, 0);
cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(this);
}
}