//
// cocos2d::CCScene::getHighestChildZ from 0x180051ba0 to 0x180051c0a (106 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b22c8
//
// 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::CCScene::getHighestChildZ(cocos2d::CCScene *this)
{
unsigned int v1; // ebx
cocos2d::CCArray *v2; // rsi
unsigned int i; // edi
struct cocos2d::CCString *v4; // rax
int v5; // eax
v1 = 0;
v2 = (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCScene *))this->getChildren)(this);
for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v2); v1 = v5 )
{
v4 = cocos2d::CCArray::stringAtIndex(v2, i);
v5 = ((__int64 (__fastcall *)(struct cocos2d::CCString *))v4->__vftable[1].acceptVisitor)(v4);
if ( (int)v1 > v5 )
v5 = v1;
++i;
}
return v1;
}