//
// DialogLayer::addToMainScene from 0x100087324 to 0x10008737c (88 bytes)
//
// 6 xrefs:
// > DailyLevelPage::dailyStatusFailed @ 0x1001ba570
// > LevelListLayer::onClaimReward @ 0x10024627c
// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f78
// > SecretRewardsLayer::onGoldChest @ 0x1002e9eb8
// > SecretRewardsLayer::onSelectItem @ 0x1002eb65c
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8be4
//
// 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 __fastcall DialogLayer::addToMainScene(DialogLayer *a1)
{
cocos2d::CCScene *m_pRunningScene; // x20
__int64 v3; // x2
m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
if ( cocos2d::CCScene::getHighestChildZ(m_pRunningScene) < 1000 )
v3 = 1000;
else
v3 = (unsigned int)(cocos2d::CCScene::getHighestChildZ(m_pRunningScene) + 1);
((void (__fastcall *)(cocos2d::CCScene *, DialogLayer *, __int64))m_pRunningScene->addChild_0)(
m_pRunningScene,
a1,
v3);
}