//
// cocos2d::CCParticleSystem::setBatchNode from 0xd6e570 to 0xd6e5b8 (72 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleSystemQuad::setBatchNode @ 0xd74178
// > ??> @ 0x53ba8
// > ??> @ 0x152c928
//
// 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:07:58 +0000
//
__int64 __fastcall cocos2d::CCParticleSystem::setBatchNode(__int64 result, __int64 a2)
{
unsigned int v2; // w1
if ( *(_QWORD *)(result + 432) != a2 )
{
*(_QWORD *)(result + 432) = a2;
if ( a2 )
{
if ( *(_DWORD *)(result + 660) )
{
v2 = 0;
do
{
*(_DWORD *)(*(_QWORD *)(result + 416) + 148LL * v2 + 72) = v2;
++v2;
}
while ( *(_DWORD *)(result + 660) > v2 );
}
}
}
return result;
}