//
// cocos2d::CCScene::getHighestChildZ from 0x7d86b6 to 0x7d86ec (54 bytes)
//
// 69 xrefs:
// > FLAlertLayer::show @ 0x3cb268
// > FLAlertLayer::show @ 0x3cb272
// > FLAlertLayer::show @ 0x3cb2e4
// > FLAlertLayer::show @ 0x3cb2ee
// > GameManager::rewardedVideoHidden @ 0x4157a0
// > GameManager::rewardedVideoHidden @ 0x4157ac
// > GameManager::rewardedVideoHidden @ 0x415832
// > GameManager::rewardedVideoHidden @ 0x41583e
// > LevelBrowserLayer::show @ 0x4a4d54
// > LevelBrowserLayer::show @ 0x4a4d5e
// > AchievementBar::show @ 0x536f22
// > AchievementBar::show @ 0x536f2e
// > CustomSongLayer::onSongBrowser @ 0x57ad90
// > SetIDPopup::show @ 0x5d37ca
// > SetIDPopup::show @ 0x5d37d4
// > SetTextPopup::show @ 0x5d381c
// > SetTextPopup::show @ 0x5d3826
// > GJPromoPopup::show @ 0x5d40f2
// > GJPromoPopup::show @ 0x5d40fc
// > ProfilePage::show @ 0x5f5a92
// > ProfilePage::show @ 0x5f5a9c
// > ProfilePage::onModNotes @ 0x5f5b44
// > ProfilePage::onModNotes @ 0x5f5b4e
// > ChallengesPage::show @ 0x5ff4ba
// > ChallengesPage::show @ 0x5ff4c4
// > DailyLevelPage::show @ 0x606e3a
// > DailyLevelPage::show @ 0x606e44
// > DialogLayer::addToMainScene @ 0x60937a
// > DialogLayer::addToMainScene @ 0x609386
// > LevelLeaderboard::show @ 0x6147d6
// > LevelLeaderboard::show @ 0x6147e0
// > LevelLeaderboard::reloadLeaderboard @ 0x615ee6
// > LevelLeaderboard::reloadLeaderboard @ 0x615ef0
// > RewardsPage::show @ 0x616b4a
// > RewardsPage::show @ 0x616b54
// > ShardsPage::show @ 0x62b382
// > ShardsPage::show @ 0x62b38c
// > WorldLevelPage::show @ 0x62cb30
// > WorldLevelPage::show @ 0x62cb3a
// > FollowRewardPage::show @ 0x62fb2e
// > FollowRewardPage::show @ 0x62fb38
// > TopArtistsLayer::show @ 0x63125a
// > TopArtistsLayer::show @ 0x631264
// > CommunityCreditsPage::show @ 0x63757e
// > CommunityCreditsPage::show @ 0x637588
// > SetupTriggerPopup::show @ 0x676208
// > SetupTriggerPopup::show @ 0x676212
// > CharacterColorPage::show @ 0x69cb5a
// > CharacterColorPage::show @ 0x69cb64
// > GJPathsLayer::show @ 0x6d17fa
// > GJPathsLayer::show @ 0x6d1804
// > GJPathPage::show @ 0x6d18fe
// > GJPathPage::show @ 0x6d1908
// > PagedListPopup::show @ 0x72e4e6
// > PagedListPopup::show @ 0x72e4f0
// > AccountReviewPopup::openUserComments @ 0x732548
// > AccountReviewPopup::openUserComments @ 0x732552
// > ThreadViewPopup::show @ 0x7459d0
// > ThreadViewPopup::show @ 0x7459da
// > LevelBadgePopup::show @ 0x745a1c
// > LevelBadgePopup::show @ 0x745a26
// > MessageThreadsPage::show @ 0x74b7f8
// > MessageThreadsPage::show @ 0x74b802
// > NewThreadPopup::show @ 0x74b848
// > NewThreadPopup::show @ 0x74b852
// > DeathTrackerPopup::show @ 0x77096e
// > DeathTrackerPopup::show @ 0x770978
// > EditorSoundConfigInfoLayer::onInfo @ 0x784a90
// > EditorSoundConfigInfoLayer::onInfo @ 0x784a9a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:41 +0000
//
int __fastcall cocos2d::CCScene::getHighestChildZ(cocos2d::CCScene *this)
{
unsigned int v1; // r4
int v2; // r5
cocos2d::CCArray *v3; // r6
int v4; // r0
int v5; // r0
v1 = 0;
v2 = 0;
v3 = (cocos2d::CCArray *)(*(int (__fastcall **)(cocos2d::CCScene *))(*(_DWORD *)this + 244))(this);
while ( v1 < cocos2d::CCArray::count(v3) )
{
v4 = cocos2d::CCArray::objectAtIndex(v3, v1++);
v5 = (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 52))(v4);
if ( v2 < v5 )
v2 = v5;
}
return v2;
}