//
// cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0xd72898 to 0xd72910 (120 bytes)
//
// 2 xrefs:
// > cocos2d::CCParticleBatchNode::addChildHelper @ 0xd72954
// > ??> @ 0x97df8
//
// This function is hookable on this platform (idp: arm, 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 13:08:01 +0000
//
__int64 __fastcall cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(cocos2d::CCArray **this, int a2)
{
int v4; // w21
unsigned int i; // w19
__int64 v6; // x0
v4 = cocos2d::CCArray::count(*(this + 26));
if ( !v4 )
return 0;
for ( i = 0; i != v4; ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(*(this + 26), i);
if ( (*(int (__fastcall **)(__int64))(*(_QWORD *)v6 + 104LL))(v6) > a2 )
break;
}
return i;
}