//
// DialogLayer::addToMainScene from 0x140175660 to 0x1401756b7 (87 bytes)
//
// 7 xrefs:
// > DailyLevelPage::dailyStatusFailed @ 0x140170cc8
// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8ae9
// > LevelListLayer::onClaimReward @ 0x14042e3ab
// > SecretRewardsLayer::onSelectItem @ 0x14056bec3
// > SecretRewardsLayer::onGoldChest @ 0x14056d43f
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x140636119
// > ??> @ 0x140918470
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:27:32 +0000
//
__int64 __fastcall DialogLayer::addToMainScene(__int64 a1)
{
cocos2d::CCScene *v2; // rbx
v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 272);
if ( cocos2d::CCScene::getHighestChildZ(v2) + 1 >= 1000 )
cocos2d::CCScene::getHighestChildZ(v2);
return (*(__int64 (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v2 + 456LL))(v2, a1);
}