//
// cocos2d::CCScene::getHighestChildZ from 0x5d0526 to 0x5d055c (54 bytes)
//
// 47 xrefs:
// > FLAlertLayer::show @ 0x2ead1a
// > FLAlertLayer::show @ 0x2ead24
// > FLAlertLayer::show @ 0x2ead7c
// > FLAlertLayer::show @ 0x2ead86
// > GameManager::rewardedVideoHidden @ 0x320354
// > GameManager::rewardedVideoHidden @ 0x320360
// > GameManager::rewardedVideoHidden @ 0x3203e6
// > GameManager::rewardedVideoHidden @ 0x3203f2
// > LevelBrowserLayer::show @ 0x3bddd4
// > LevelBrowserLayer::show @ 0x3bddde
// > AchievementBar::show @ 0x42ade2
// > AchievementBar::show @ 0x42adee
// > CustomSongLayer::onSongBrowser @ 0x45e0aa
// > SetIDPopup::show @ 0x4a88da
// > SetIDPopup::show @ 0x4a88e4
// > GJPromoPopup::show @ 0x4a9b6a
// > GJPromoPopup::show @ 0x4a9b74
// > ProfilePage::show @ 0x4c5006
// > ProfilePage::show @ 0x4c5010
// > ChallengesPage::show @ 0x4cbbce
// > ChallengesPage::show @ 0x4cbbd8
// > DailyLevelPage::show @ 0x4d3d52
// > DailyLevelPage::show @ 0x4d3d5c
// > DialogLayer::addToMainScene @ 0x4d6592
// > DialogLayer::addToMainScene @ 0x4d659e
// > LevelLeaderboard::show @ 0x4e4b6a
// > LevelLeaderboard::show @ 0x4e4b74
// > LevelLeaderboard::reloadLeaderboard @ 0x4e5ee2
// > LevelLeaderboard::reloadLeaderboard @ 0x4e5eec
// > RewardsPage::show @ 0x4e6ada
// > RewardsPage::show @ 0x4e6ae4
// > ShardsPage::show @ 0x4fb162
// > ShardsPage::show @ 0x4fb16c
// > WorldLevelPage::show @ 0x4fcbe4
// > WorldLevelPage::show @ 0x4fcbee
// > FollowRewardPage::show @ 0x4ff89a
// > FollowRewardPage::show @ 0x4ff8a4
// > TopArtistsLayer::show @ 0x500a7a
// > TopArtistsLayer::show @ 0x500a84
// > CommunityCreditsPage::show @ 0x506a96
// > CommunityCreditsPage::show @ 0x506aa0
// > CharacterColorPage::show @ 0x564b72
// > CharacterColorPage::show @ 0x564b7c
// > GJPathsLayer::show @ 0x58bc82
// > GJPathsLayer::show @ 0x58bc8c
// > GJPathPage::show @ 0x58bd86
// > GJPathPage::show @ 0x58bd90
//
// 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
//
int cocos2d::CCScene::getHighestChildZ(cocos2d::CCScene *a1)
{
unsigned int v1; // r4
int v2; // r5
cocos2d::CCArray *v3; // r6
cocos2d::CCObject *v4; // r0
int v5; // r0
v1 = 0;
v2 = 0;
v3 = a1->getChildren(a1);
while ( v1 < cocos2d::CCArray::count(v3) )
{
v4 = cocos2d::CCArray::objectAtIndex(v3, v1++);
v5 = ((int (__fastcall *)(cocos2d::CCObject *))v4->__vftable[1].isEqual)(v4);
if ( v2 < v5 )
v2 = v5;
}
return v2;
}