//
// cocos2d::CCScene::getHighestChildZ from 0x180053920 to 0x18005398a (106 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc55c
//
// 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:46 +0000
//
__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 *))(*(_QWORD *)this + 480LL))(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 *))(*(_QWORD *)v4 + 96LL))(v4);
if ( (int)v1 > v5 )
v5 = v1;
++i;
}
return v1;
}