//
// cocos2d::CCScene::getHighestChildZ from 0x100240504 to 0x10024057c (120 bytes)
//
// 41 xrefs:
// > ChallengesPage::show @ 0x100032c10
// > ChallengesPage::show @ 0x100032c20
// > DialogLayer::addToMainScene @ 0x100087340
// > DialogLayer::addToMainScene @ 0x100087350
// > CharacterColorPage::show @ 0x10012a4d8
// > CharacterColorPage::show @ 0x10012a4e8
// > CustomSongLayer::onSongBrowser @ 0x100144640
// > ProfilePage::show @ 0x10019c344
// > ProfilePage::show @ 0x10019c354
// > CommunityCreditsPage::show @ 0x1001a2a5c
// > CommunityCreditsPage::show @ 0x1001a2a6c
// > TopArtistsLayer::show @ 0x1001a5718
// > TopArtistsLayer::show @ 0x1001a5728
// > DailyLevelPage::show @ 0x1001baa54
// > DailyLevelPage::show @ 0x1001baa64
// > RewardsPage::show @ 0x1001c4e0c
// > RewardsPage::show @ 0x1001c4e1c
// > LevelLeaderboard::reloadLeaderboard @ 0x100250c98
// > LevelLeaderboard::reloadLeaderboard @ 0x100250ca8
// > LevelLeaderboard::show @ 0x1002511e0
// > LevelLeaderboard::show @ 0x1002511f0
// > AchievementBar::show @ 0x10026b84c
// > AchievementBar::show @ 0x10026b85c
// > FLAlertLayer::show @ 0x1002acedc
// > FLAlertLayer::show @ 0x1002aceec
// > FLAlertLayer::show @ 0x1002acf00
// > FLAlertLayer::show @ 0x1002acf10
// > SetIDPopup::show @ 0x1002de830
// > SetIDPopup::show @ 0x1002de840
// > GJPromoPopup::show @ 0x1002e56a4
// > GJPromoPopup::show @ 0x1002e56b4
// > ShardsPage::show @ 0x1003a3560
// > ShardsPage::show @ 0x1003a3570
// > GJPathsLayer::show @ 0x1003b89a8
// > GJPathsLayer::show @ 0x1003b89b8
// > GJPathPage::show @ 0x1003bb624
// > GJPathPage::show @ 0x1003bb634
// > LevelBrowserLayer::show @ 0x100419a80
// > LevelBrowserLayer::show @ 0x100419a90
// > FollowRewardPage::show @ 0x100425f84
// > FollowRewardPage::show @ 0x100425f94
//
// 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; // x19
int v2; // w20
__int64 v3; // x21
__int64 v4; // x0
int v5; // w0
v1 = ((__int64 (__fastcall *)(cocos2d::CCScene *))a1->getChildren)(a1);
v2 = 0;
if ( (unsigned int)sub_10024A36C(v1) )
{
v3 = 0;
do
{
v4 = sub_10024A388(v1, v3);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 104LL))(v4);
if ( v2 <= v5 )
v2 = v5;
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(v1) );
}
return v2;
}