//
// cocos2d::CCParticleBatchNode::addChild from 0x7e5e04 to 0x7e5ec0 (188 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall cocos2d::CCParticleBatchNode::addChild(
cocos2d::CCParticleBatchNode *this,
cocos2d::CCNode *a2,
int a3,
int a4)
{
int v8; // r0
int v9; // r0
void (__fastcall *v10)(cocos2d::CCParticleBatchNode *, _DWORD, _DWORD); // r9
int v11; // r6
unsigned int v12; // r0
_DWORD *v13; // r0
int v14; // r6
unsigned int v15; // r2
int v17; // [sp+0h] [bp-1Ch] BYREF
_BYTE v18[8]; // [sp+8h] [bp-14h] BYREF
_DWORD v19[3]; // [sp+10h] [bp-Ch] BYREF
v8 = (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)a2 + 756))(a2);
(*(void (__fastcall **)(int))(*(_DWORD *)v8 + 52))(v8);
v9 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 67) + 48))(*((_DWORD *)this + 67));
(*(void (__fastcall **)(int))(*(_DWORD *)v9 + 52))(v9);
if ( !cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 48)) )
{
v10 = *(void (__fastcall **)(cocos2d::CCParticleBatchNode *, _DWORD, _DWORD))(*(_DWORD *)this + 456);
(*(void (__fastcall **)(_DWORD *, cocos2d::CCNode *))(*(_DWORD *)a2 + 764))(v19, a2);
v10(this, v19[0], v19[1]);
}
v11 = *((_DWORD *)this + 68);
(*(void (__fastcall **)(int *, cocos2d::CCNode *))(*(_DWORD *)a2 + 764))(&v17, a2);
if ( v11 == v17 )
(*(void (__fastcall **)(_BYTE *, cocos2d::CCNode *))(*(_DWORD *)a2 + 764))(v18, a2);
v12 = cocos2d::CCParticleBatchNode::addChildHelper(this, a2, a3, a4);
if ( v12 )
{
v13 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 48), v12 - 1);
v14 = v13[90];
v15 = v14 + (*(int (__fastcall **)(_DWORD *))(*v13 + 748))(v13);
}
else
{
v15 = 0;
}
cocos2d::CCParticleBatchNode::insertChild(this, a2, v15);
return (*(int (__fastcall **)(cocos2d::CCNode *, cocos2d::CCParticleBatchNode *))(*(_DWORD *)a2 + 452))(a2, this);
}