//
// cocos2d::CCParticleBatchNode::addChild from 0x1003b2110 to 0x1003b2210 (256 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b375e0
//
// 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 12:29:26 +0000
//
__int64 __fastcall cocos2d::CCParticleBatchNode::addChild(__int64 a1, __int64 a2, unsigned int a3, unsigned int a4)
{
__int64 v6; // rax
__int64 v7; // rax
__int64 v8; // rax
int v9; // r13d
int v10; // eax
_DWORD *v11; // rax
int v12; // r15d
__int64 v13; // rdx
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1512LL))(a2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 104LL))(v6);
v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 96LL))(*(_QWORD *)(a1 + 328));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 104LL))(v7);
if ( !(unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 208)) )
{
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1528LL))(a2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 912LL))(a1, v8);
}
v9 = *(_DWORD *)(a1 + 336);
if ( v9 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 1528LL))(a2) )
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 1528LL))(a2);
v10 = cocos2d::CCParticleBatchNode::addChildHelper(a1, a2, a3, a4);
if ( v10 )
{
v11 = (_DWORD *)sub_1007FEFE0(*(_QWORD *)(a1 + 208), (unsigned int)(v10 - 1));
v12 = v11[110];
v13 = v12 + (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)v11 + 1496LL))(v11);
}
else
{
v13 = 0;
}
cocos2d::CCParticleBatchNode::insertChild(a1, a2, v13);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 904LL))(a2, a1);
}