//
// DialogLayer::addToMainScene from 0x9172c4 to 0x91731c (88 bytes)
//
// 8 xrefs:
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de380
// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d596c
// > DailyLevelPage::dailyStatusFailed @ 0x912e98
// > SecretRewardsLayer::showLockedChest @ 0xa60e60
// > SecretRewardsLayer::onSelectItem @ 0xa61f34
// > SecretRewardsLayer::onGoldChest @ 0xa6450c
// > LevelListLayer::onClaimReward @ 0xa738e0
// > ??> @ 0x593a0
//
// 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
//
void DialogLayer::addToMainScene(DialogLayer *a1)
{
cocos2d::CCScene *m_pRunningScene; // x19
int HighestChildZ; // w0
__int64 v4; // x2
m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_pRunningScene);
v4 = 1000;
if ( HighestChildZ > 999 )
v4 = (unsigned int)(cocos2d::CCScene::getHighestChildZ(m_pRunningScene) + 1);
m_pRunningScene->addChild_0(m_pRunningScene, a1, v4);
}