//
// cocos2d::CCScene::getHighestChildZ from 0xaec778 to 0xaec7ec (116 bytes)
//
// 48 xrefs:
// > FLAlertLayer::show @ 0x57deec
// > FLAlertLayer::show @ 0x57df0c
// > FLAlertLayer::show @ 0x57df2c
// > FLAlertLayer::show @ 0x57df3c
// > GameManager::rewardedVideoHidden @ 0x5e84d4
// > GameManager::rewardedVideoHidden @ 0x5e84e4
// > GameManager::rewardedVideoHidden @ 0x5e85f0
// > GameManager::rewardedVideoHidden @ 0x5e8600
// > LevelBrowserLayer::show @ 0x6eda00
// > LevelBrowserLayer::show @ 0x6eda24
// > AchievementBar::show @ 0x7d8f88
// > AchievementBar::show @ 0x7d8f9c
// > CustomSongLayer::onSongBrowser @ 0x83ac64
// > SetIDPopup::show @ 0x8c3154
// > SetIDPopup::show @ 0x8c3178
// > GJPromoPopup::show @ 0x8c3e90
// > GJPromoPopup::show @ 0x8c3eb4
// > ProfilePage::show @ 0x8f7f6c
// > ProfilePage::show @ 0x8f7f90
// > ChallengesPage::show @ 0x906ce0
// > ChallengesPage::show @ 0x906d04
// > DailyLevelPage::show @ 0x912af0
// > DailyLevelPage::show @ 0x912b14
// > DialogLayer::addToMainScene @ 0x9172e0
// > DialogLayer::addToMainScene @ 0x9172f4
// > LevelLeaderboard::show @ 0x9314c4
// > LevelLeaderboard::show @ 0x9314e8
// > LevelLeaderboard::reloadLeaderboard @ 0x9338dc
// > LevelLeaderboard::reloadLeaderboard @ 0x9338f0
// > RewardsPage::show @ 0x934b78
// > RewardsPage::show @ 0x934b9c
// > ShardsPage::show @ 0x95c284
// > ShardsPage::show @ 0x95c2a8
// > WorldLevelPage::show @ 0x95e3dc
// > WorldLevelPage::show @ 0x95e400
// > FollowRewardPage::show @ 0x962ed0
// > FollowRewardPage::show @ 0x962ef4
// > TopArtistsLayer::show @ 0x965aa8
// > TopArtistsLayer::show @ 0x965acc
// > CommunityCreditsPage::show @ 0x96fee4
// > CommunityCreditsPage::show @ 0x96ff08
// > CharacterColorPage::show @ 0xa24708
// > CharacterColorPage::show @ 0xa2472c
// > GJPathsLayer::show @ 0xa6d074
// > GJPathsLayer::show @ 0xa6d098
// > GJPathPage::show @ 0xa6d214
// > GJPathPage::show @ 0xa6d238
// > ??> @ 0xa1fb8
//
// 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; // w19
int v2; // w20
cocos2d::CCArray *v3; // x21
cocos2d::CCObject *v4; // x0
int v5; // w0
bool v6; // cf
int v7; // w1
v1 = 0;
v2 = 0;
v3 = a1->getChildren(a1);
while ( 1 )
{
v6 = v1 >= (unsigned int)cocos2d::CCArray::count(v3);
v7 = v1++;
if ( v6 )
break;
v4 = cocos2d::CCArray::objectAtIndex(v3, v7);
v5 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v4->__vftable[1].isEqual)(v4);
if ( v2 < v5 )
v2 = v5;
}
return v2;
}