//
// cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0x180061d10 to 0x180061d7c (108 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleBatchNode::addChildHelper @ 0x18006127a
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3714
//
// 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
//
__int64 __fastcall cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(
cocos2d::CCParticleBatchNode *this,
int a2)
{
unsigned int v4; // ebx
unsigned int v5; // edi
struct cocos2d::CCString *v6; // rax
v4 = 0;
v5 = cocos2d::CCArray::count(this->m_pChildren);
if ( !v5 )
return v5;
while ( 1 )
{
v6 = cocos2d::CCArray::stringAtIndex(this->m_pChildren, v4);
if ( ((int (__fastcall *)(struct cocos2d::CCString *))v6->__vftable[1].acceptVisitor)(v6) > a2 )
break;
if ( ++v4 >= v5 )
return v5;
}
return v4;
}