//
// cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0x180064130 to 0x18006419f (111 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleBatchNode::addChildHelper @ 0x18006368a
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bda68
//
// This function is hookable on this platform (idp: pc, 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 11:21:52 +0000
//
__int64 __fastcall cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(cocos2d::CCArray **this, int a2)
{
unsigned int v4; // ebx
unsigned int v5; // edi
struct cocos2d::CCString *v6; // rax
v4 = 0;
v5 = cocos2d::CCArray::count(*(this + 26));
if ( !v5 )
return v5;
while ( 1 )
{
v6 = cocos2d::CCArray::stringAtIndex(*(this + 26), v4);
if ( (*(int (__fastcall **)(struct cocos2d::CCString *))(*(_QWORD *)v6 + 96LL))(v6) > a2 )
break;
if ( ++v4 >= v5 )
return v5;
}
return v4;
}