//
// cocos2d::CCScene::getHighestChildZ from 0xd5e4d8 to 0xd5e54c (116 bytes)
//
// 70 xrefs:
// > FLAlertLayer::show @ 0x69939c
// > FLAlertLayer::show @ 0x6993bc
// > FLAlertLayer::show @ 0x6993dc
// > FLAlertLayer::show @ 0x6993ec
// > GameManager::rewardedVideoHidden @ 0x718b60
// > GameManager::rewardedVideoHidden @ 0x718b70
// > GameManager::rewardedVideoHidden @ 0x718c44
// > GameManager::rewardedVideoHidden @ 0x718c54
// > LevelBrowserLayer::show @ 0x7f6314
// > LevelBrowserLayer::show @ 0x7f6338
// > AchievementBar::show @ 0x8fdc10
// > AchievementBar::show @ 0x8fdc24
// > CustomSongLayer::onSongBrowser @ 0x97e21c
// > SetIDPopup::show @ 0xa1deb8
// > SetIDPopup::show @ 0xa1dedc
// > SetTextPopup::show @ 0xa1df44
// > SetTextPopup::show @ 0xa1df68
// > GJPromoPopup::show @ 0xa1ede0
// > GJPromoPopup::show @ 0xa1ee04
// > ProfilePage::show @ 0xa53664
// > ProfilePage::show @ 0xa53688
// > ProfilePage::onModNotes @ 0xa53704
// > ProfilePage::onModNotes @ 0xa5374c
// > ChallengesPage::show @ 0xa62534
// > ChallengesPage::show @ 0xa62558
// > DailyLevelPage::show @ 0xa6cf58
// > DailyLevelPage::show @ 0xa6cf7c
// > DialogLayer::addToMainScene @ 0xa70618
// > DialogLayer::addToMainScene @ 0xa7062c
// > LevelLeaderboard::show @ 0xa81a6c
// > LevelLeaderboard::show @ 0xa81a90
// > LevelLeaderboard::reloadLeaderboard @ 0xa83c8c
// > LevelLeaderboard::reloadLeaderboard @ 0xa83ca0
// > RewardsPage::show @ 0xa84ee0
// > RewardsPage::show @ 0xa84f04
// > ShardsPage::show @ 0xaa3b30
// > ShardsPage::show @ 0xaa3b54
// > WorldLevelPage::show @ 0xaa5c58
// > WorldLevelPage::show @ 0xaa5c7c
// > FollowRewardPage::show @ 0xaaa39c
// > FollowRewardPage::show @ 0xaaa3c0
// > TopArtistsLayer::show @ 0xaac774
// > TopArtistsLayer::show @ 0xaac798
// > CommunityCreditsPage::show @ 0xab5a24
// > CommunityCreditsPage::show @ 0xab5a48
// > SetupTriggerPopup::show @ 0xb1a704
// > SetupTriggerPopup::show @ 0xb1a728
// > CharacterColorPage::show @ 0xb51418
// > CharacterColorPage::show @ 0xb5143c
// > GJPathsLayer::show @ 0xba3ebc
// > GJPathsLayer::show @ 0xba3ee0
// > GJPathPage::show @ 0xba405c
// > GJPathPage::show @ 0xba4080
// > PagedListPopup::show @ 0xc395fc
// > PagedListPopup::show @ 0xc39620
// > AccountReviewPopup::openUserComments @ 0xc40550
// > AccountReviewPopup::openUserComments @ 0xc405a4
// > ThreadViewPopup::show @ 0xc62c2c
// > ThreadViewPopup::show @ 0xc62c50
// > LevelBadgePopup::show @ 0xc62cb4
// > LevelBadgePopup::show @ 0xc62cd8
// > MessageThreadsPage::show @ 0xc6bd2c
// > MessageThreadsPage::show @ 0xc6bd50
// > NewThreadPopup::show @ 0xc6bdb4
// > NewThreadPopup::show @ 0xc6bdd8
// > DeathTrackerPopup::show @ 0xca9854
// > DeathTrackerPopup::show @ 0xca9878
// > EditorSoundConfigInfoLayer::onInfo @ 0xcccacc
// > EditorSoundConfigInfoLayer::onInfo @ 0xcccb00
// > ??> @ 0xd5010
//
// This function is hookable on this platform (idp: arm, 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 13:07:49 +0000
//
__int64 __fastcall cocos2d::CCScene::getHighestChildZ(cocos2d::CCScene *this)
{
unsigned int v1; // w19
unsigned int v2; // w20
cocos2d::CCArray *v3; // x21
__int64 v4; // x0
int v5; // w0
bool v6; // cf
unsigned int v7; // w1
v1 = 0;
v2 = 0;
v3 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCScene *))(*(_QWORD *)this + 488LL))(this);
while ( 1 )
{
v6 = v1 >= (unsigned int)cocos2d::CCArray::count(v3);
v7 = v1++;
if ( v6 )
break;
v4 = cocos2d::CCArray::objectAtIndex(v3, v7);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 104LL))(v4);
if ( (int)v2 < v5 )
v2 = v5;
}
return v2;
}