//
// cocos2d::CCParticleBatchNode::addChildHelper from 0xd72910 to 0xd72a0c (252 bytes)
//
// 2 xrefs:
// > cocos2d::CCParticleBatchNode::addChild @ 0xd72eec
// > ??> @ 0xe3d28
//
// 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
//
__int64 __fastcall cocos2d::CCParticleBatchNode::addChildHelper(
cocos2d::CCParticleBatchNode *this,
cocos2d::CCParticleSystem *a2,
unsigned int a3,
unsigned int a4)
{
unsigned int v8; // w21
cocos2d::CCArray *v10; // x21
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 512LL))(a2);
if ( !*((_QWORD *)this + 26) )
{
v10 = (cocos2d::CCArray *)operator new(0x40u);
cocos2d::CCArray::CCArray(v10);
*((_QWORD *)this + 26) = v10;
cocos2d::CCArray::initWithCapacity(v10, 4u);
}
v8 = cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ((cocos2d::CCArray **)this, a3);
cocos2d::CCArray::insertObject(*((cocos2d::CCArray **)this + 26), a2);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, _QWORD))(*(_QWORD *)a2 + 72LL))(a2, a4);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, _QWORD))(*(_QWORD *)a2 + 96LL))(a2, a3);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, cocos2d::CCParticleBatchNode *))(*(_QWORD *)a2 + 504LL))(
a2,
this);
if ( *((_BYTE *)this + 272) )
{
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 704LL))(a2);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 712LL))(a2);
}
return v8;
}