//
// cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0x1003b24e0 to 0x1003b2548 (104 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 __fastcall cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(__int64 a1, int a2)
{
unsigned int v2; // eax
unsigned int v3; // r12d
unsigned int v4; // r15d
__int64 v5; // rax
v2 = sub_1007FEF90(*(_QWORD *)(a1 + 208));
if ( v2 )
{
v3 = v2;
v4 = 0;
while ( 1 )
{
v5 = sub_1007FEFE0(*(_QWORD *)(a1 + 208), v4);
if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)v5 + 104LL))(v5) > a2 )
break;
if ( v3 == ++v4 )
return v3;
}
}
else
{
return 0;
}
return v4;
}