//
// cocos2d::CCParticleBatchNode::removeChild from 0x1003b2960 to 0x1003b2a5d (253 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b37630
//
// 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:27 +0000
//
void __fastcall cocos2d::CCParticleBatchNode::removeChild(__int64 a1, unsigned int *a2, char a3)
{
__int64 v5; // r15
unsigned int v6; // r12d
unsigned int v7; // eax
__int64 v8; // r15
unsigned int v9; // r12d
unsigned int v10; // eax
__int64 v11; // rax
unsigned int *v12; // rax
_DWORD **v13; // rbx
unsigned __int64 v14; // r14
int v15; // r15d
_DWORD *v16; // rdi
if ( a2 )
{
sub_1007FF080(*(_QWORD *)(a1 + 208), a2);
cocos2d::CCNode::removeChild(a1, a2, a3);
v5 = *(_QWORD *)(a1 + 328);
v6 = a2[110];
v7 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 1496LL))(a2);
cocos2d::CCTextureAtlas::removeQuadsAtIndex(v5, v6, v7);
v8 = *(_QWORD *)(a1 + 328);
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 80LL))(v8);
v10 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 1496LL))(a2);
cocos2d::CCTextureAtlas::fillWithEmptyQuadsFromIndex(v8, v9, v10);
(*(void (__fastcall **)(unsigned int *, _QWORD))(*(_QWORD *)a2 + 904LL))(a2, 0);
v11 = *(_QWORD *)(a1 + 208);
if ( v11 )
{
v12 = *(unsigned int **)(v11 + 56);
if ( *v12 )
{
v13 = *((_DWORD ***)v12 + 2);
v14 = (unsigned __int64)&v13[*v12 - 1];
v15 = 0;
do
{
v16 = *v13;
if ( !*v13 )
break;
v16[110] = v15;
v15 += (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v16 + 1496LL))(v16);
++v13;
}
while ( (unsigned __int64)v13 <= v14 );
}
}
}
}