//
// cocos2d::CCScene::getHighestChildZ from 0x100290f30 to 0x100290fa2 (114 bytes)
//
// 47 xrefs:
// > CustomSongLayer::onSongBrowser @ 0x10021594f
// > RewardsPage::show @ 0x10021b9de
// > RewardsPage::show @ 0x10021b9f0
// > DailyLevelPage::show @ 0x10023226d
// > DailyLevelPage::show @ 0x10023227f
// > SetIDPopup::show @ 0x1002ac824
// > SetIDPopup::show @ 0x1002ac836
// > GJPromoPopup::show @ 0x1002b69fd
// > GJPromoPopup::show @ 0x1002b6a0f
// > GJPathsLayer::show @ 0x1002ff05d
// > GJPathsLayer::show @ 0x1002ff06f
// > GJPathPage::show @ 0x100302d3d
// > GJPathPage::show @ 0x100302d4f
// > TopArtistsLayer::show @ 0x100311ddd
// > TopArtistsLayer::show @ 0x100311def
// > CommunityCreditsPage::show @ 0x100320efd
// > CommunityCreditsPage::show @ 0x100320f0f
// > GameManager::rewardedVideoHidden @ 0x1003805a8
// > GameManager::rewardedVideoHidden @ 0x1003805bc
// > GameManager::rewardedVideoHidden @ 0x100380646
// > GameManager::rewardedVideoHidden @ 0x10038065a
// > ChallengesPage::show @ 0x10039e68d
// > ChallengesPage::show @ 0x10039e69f
// > WorldLevelPage::show @ 0x1003c6b3e
// > WorldLevelPage::show @ 0x1003c6b50
// > DialogLayer::addToMainScene @ 0x1003c8069
// > DialogLayer::addToMainScene @ 0x1003c807d
// > LevelLeaderboard::reloadLeaderboard @ 0x1003dbdbd
// > LevelLeaderboard::reloadLeaderboard @ 0x1003dbdcf
// > LevelLeaderboard::show @ 0x1003dc51d
// > LevelLeaderboard::show @ 0x1003dc52f
// > FollowRewardPage::show @ 0x10042192d
// > FollowRewardPage::show @ 0x10042193f
// > LevelBrowserLayer::show @ 0x100491e94
// > LevelBrowserLayer::show @ 0x100491ea6
// > FLAlertLayer::show @ 0x10049c662
// > FLAlertLayer::show @ 0x10049c674
// > FLAlertLayer::show @ 0x10049c69a
// > FLAlertLayer::show @ 0x10049c6ac
// > ShardsPage::show @ 0x1004c796d
// > ShardsPage::show @ 0x1004c797f
// > AchievementBar::show @ 0x10061a30b
// > AchievementBar::show @ 0x10061a31f
// > CharacterColorPage::show @ 0x10065e98d
// > CharacterColorPage::show @ 0x10065e99f
// > ProfilePage::show @ 0x1007bfcae
// > ProfilePage::show @ 0x1007bfcc0
//
// 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 __fastcall cocos2d::CCScene::getHighestChildZ(cocos2d::CCScene *a1)
{
__int64 v1; // rbx
int v2; // r12d
unsigned int v3; // r14d
__int64 v4; // rax
int v5; // r15d
v1 = ((__int64 (__fastcall *)(cocos2d::CCScene *))a1->getChildren)(a1);
if ( !(unsigned int)sub_100720070(v1) )
return 0;
v2 = 0;
v3 = 0;
do
{
v4 = sub_1007200C0(v1, v3);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 104LL))(v4);
if ( v2 > v5 )
v5 = v2;
++v3;
v2 = v5;
}
while ( v3 < (unsigned int)sub_100720070(v1) );
return v5;
}