//
// DialogLayer::addToMainScene from 0x60936c to 0x6093a2 (54 bytes)
//
// 8 xrefs:
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x53add8
// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x5db6ba
// > DailyLevelPage::dailyStatusFailed @ 0x607dbe
// > SecretRewardsLayer::showLockedChest @ 0x6cd968
// > SecretRewardsLayer::onGoldChest @ 0x6cdcae
// > SecretRewardsLayer::onSelectItem @ 0x6cde82
// > LevelListLayer::onClaimReward @ 0x6d6c6c
// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x711082
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:46 +0000
//
int __fastcall DialogLayer::addToMainScene(DialogLayer *this)
{
cocos2d::CCScene *v2; // r4
int v3; // r2
v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(this) + 220);
if ( (int)cocos2d::CCScene::getHighestChildZ(v2) < 1000 )
v3 = 1000;
else
v3 = cocos2d::CCScene::getHighestChildZ(v2) + 1;
return (*(int (__fastcall **)(cocos2d::CCScene *, DialogLayer *, int))(*(_DWORD *)v2 + 232))(v2, this, v3);
}