//
// cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0x7e5af4 to 0x7e5b26 (50 bytes)
//
// 1 xrefs:
// > cocos2d::CCParticleBatchNode::addChildHelper @ 0x7e5b5e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:53 +0000
//
unsigned int __fastcall cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(cocos2d::CCArray **this, int a2)
{
unsigned int v4; // r4
int v5; // r6
int v6; // r0
v4 = 0;
v5 = cocos2d::CCArray::count(*(this + 48));
while ( v4 != v5 )
{
v6 = cocos2d::CCArray::objectAtIndex(*(this + 48), v4);
if ( (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 52))(v6) > a2 )
break;
++v4;
}
return v4;
}