//
// cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0x5dd334 to 0x5dd366 (50 bytes)
//
// 1 xrefs:
// > cocos2d::CCParticleBatchNode::addChildHelper @ 0x5dd39e
//
// 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 cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(cocos2d::CCParticleBatchNode *a1, int a2)
{
unsigned int v4; // r4
unsigned int v5; // r6
cocos2d::CCObject *v6; // r0
v4 = 0;
v5 = cocos2d::CCArray::count(a1->m_pChildren);
while ( v4 != v5 )
{
v6 = cocos2d::CCArray::objectAtIndex(a1->m_pChildren, v4);
if ( ((int (__fastcall *)(cocos2d::CCObject *))v6->__vftable[1].isEqual)(v6) > a2 )
break;
++v4;
}
return v4;
}