//
// cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0x1003c9010 to 0x1003c9078 (104 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
unsigned int __fastcall cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(
cocos2d::CCParticleBatchNode *a1,
int a2)
{
unsigned int v2; // eax
unsigned int v3; // r12d
unsigned int v4; // r15d
__int64 v5; // rax
v2 = sub_100720070(a1->m_pChildren);
if ( !v2 )
return 0;
v3 = v2;
v4 = 0;
while ( 1 )
{
v5 = sub_1007200C0(a1->m_pChildren, v4);
if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)v5 + 104LL))(v5) > a2 )
break;
if ( v3 == ++v4 )
return v3;
}
return v4;
}