//
// cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0xb02300 to 0xb02378 (120 bytes)
//
// 2 xrefs:
// > cocos2d::CCParticleBatchNode::addChildHelper @ 0xb023bc
// > ??> @ 0x70c98
//
// 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)
{
int v4; // w21
unsigned int i; // w19
cocos2d::CCObject *v6; // x0
v4 = cocos2d::CCArray::count(a1->m_pChildren);
if ( !v4 )
return 0;
for ( i = 0; i != v4; ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(a1->m_pChildren, i);
if ( ((int (__fastcall *)(cocos2d::CCObject *))v6->__vftable[1].isEqual)(v6) > a2 )
break;
}
return i;
}