//
// DialogLayer::addToMainScene from 0x1400d3fa0 to 0x1400d3ff7 (87 bytes)
//
// 7 xrefs:
// > DailyLevelPage::dailyStatusFailed @ 0x1400cfdcf
// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402a0062
// > LevelListLayer::onClaimReward @ 0x140306545
// > SecretRewardsLayer::onSelectItem @ 0x1403d647a
// > SecretRewardsLayer::onGoldChest @ 0x1403d798a
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1404940ed
// > ??> @ 0x1406c86ac
//
// 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 *v2; // rbx
v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 264);
if ( cocos2d::CCScene::getHighestChildZ(v2) + 1 >= 1000 )
cocos2d::CCScene::getHighestChildZ(v2);
((void (__fastcall *)(cocos2d::CCScene *, DialogLayer *))v2->addChild_0)(v2, a1);
}