//
// cocos2d::CCParticleBatchNode::addChildHelper from 0x180063620 to 0x180063707 (231 bytes)
//
// 4 xrefs:
// > cocos2d::CCParticleBatchNode::addChild @ 0x1800635bb
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd948
// > ??> @ 0x1801bd954
//
// This function is hookable on this platform (idp: pc, 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 11:21:51 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall cocos2d::CCParticleBatchNode::addChildHelper(
cocos2d::CCParticleBatchNode *this,
struct cocos2d::CCParticleSystem *a2,
unsigned int a3,
unsigned int a4)
{
cocos2d::CCArray *v8; // rax
unsigned int v9; // esi
(*(void (__fastcall **)(struct cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 504LL))(a2);
if ( !*((_QWORD *)this + 26) )
{
v8 = (cocos2d::CCArray *)sub_1800E4AC0(0x40u);
if ( v8 )
v8 = cocos2d::CCArray::CCArray(v8);
*((_QWORD *)this + 26) = v8;
cocos2d::CCArray::initWithCapacity(v8, 4u);
}
v9 = cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(this, a3);
cocos2d::CCArray::insertObject(*((cocos2d::CCArray **)this + 26), a2);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystem *, _QWORD))(*(_QWORD *)a2 + 64LL))(a2, a4);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystem *, _QWORD))(*(_QWORD *)a2 + 88LL))(a2, a3);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystem *, cocos2d::CCParticleBatchNode *))(*(_QWORD *)a2 + 496LL))(
a2,
this);
if ( *((_BYTE *)this + 272) )
{
(*(void (__fastcall **)(struct cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 696LL))(a2);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystem *))(*(_QWORD *)a2 + 704LL))(a2);
}
return v9;
}