//
// cocos2d::CCParticleBatchNode::addChildHelper from 0x7e5b26 to 0x7e5bb0 (138 bytes)
//
// 1 xrefs:
// > cocos2d::CCParticleBatchNode::addChild @ 0x7e5e82
//
// 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:00:53 +0000
//
unsigned int __fastcall cocos2d::CCParticleBatchNode::addChildHelper(
cocos2d::CCParticleBatchNode *this,
cocos2d::CCParticleSystem *a2,
int a3,
int a4)
{
cocos2d::CCArray *v8; // r6
unsigned int v9; // r6
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_DWORD *)a2 + 256))(a2);
if ( !*((_DWORD *)this + 48) )
{
v8 = (cocos2d::CCArray *)operator new(0x38u);
cocos2d::CCArray::CCArray(v8);
*((_DWORD *)this + 48) = v8;
cocos2d::CCArray::initWithCapacity(v8, (cocos2d *)&byte_4);
}
v9 = cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ((cocos2d::CCArray **)this, a3);
cocos2d::CCArray::insertObject(*((cocos2d::CCArray **)this + 48), a2, v9);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)a2 + 36))(a2, a4);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)a2 + 48))(a2, a3);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, cocos2d::CCParticleBatchNode *))(*(_DWORD *)a2 + 252))(a2, this);
if ( *((_BYTE *)this + 224) )
{
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_DWORD *)a2 + 352))(a2);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_DWORD *)a2 + 356))(a2);
}
return v9;
}