{"type": "func", "start": 6329196, "end": 6329250, "name": "DialogLayer::addToMainScene", "pseudocode": "// \n// DialogLayer::addToMainScene from 0x60936c to 0x6093a2 (54 bytes)\n// \n// 8 xrefs:\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x53add8\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x5db6ba\n// > DailyLevelPage::dailyStatusFailed @ 0x607dbe\n// > SecretRewardsLayer::showLockedChest @ 0x6cd968\n// > SecretRewardsLayer::onGoldChest @ 0x6cdcae\n// > SecretRewardsLayer::onSelectItem @ 0x6cde82\n// > LevelListLayer::onClaimReward @ 0x6d6c6c\n// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x711082\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:54:46 +0000\n// \n\nint __fastcall DialogLayer::addToMainScene(DialogLayer *this)\n{\n  cocos2d::CCScene *v2; // r4\n  int v3; // r2\n\n  v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(this) + 220);\n  if ( (int)cocos2d::CCScene::getHighestChildZ(v2) < 1000 )\n    v3 = 1000;\n  else\n    v3 = cocos2d::CCScene::getHighestChildZ(v2) + 1;\n  return (*(int (__fastcall **)(cocos2d::CCScene *, DialogLayer *, int))(*(_DWORD *)v2 + 232))(v2, this, v3);\n}", "assembly": "; \n; DialogLayer::addToMainScene from 0x60936c to 0x6093a2 (54 bytes)\n; \n; 8 xrefs:\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x53add8\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x5db6ba\n; > DailyLevelPage::dailyStatusFailed @ 0x607dbe\n; > SecretRewardsLayer::showLockedChest @ 0x6cd968\n; > SecretRewardsLayer::onGoldChest @ 0x6cdcae\n; > SecretRewardsLayer::onSelectItem @ 0x6cde82\n; > LevelListLayer::onClaimReward @ 0x6d6c6c\n; > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x711082\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:54:46 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x60936c\nMOV             R5, R0                                                 ; +0x2, 0x60936e\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4, 0x609370\nLDR.W           R4, [R0,#0xDC]                                         ; +0x8, 0x609374\nMOV             R0, R4; this                                           ; +0xc, 0x609378\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0xe, 0x60937a\nCMP.W           R0, #0x3E8                                             ; +0x12, 0x60937e\nBLT             loc_60938E                                             ; +0x16, 0x609382\nMOV             R0, R4; this                                           ; +0x18, 0x609384\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x1a, 0x609386\nADDS            R2, R0, #1                                             ; +0x1e, 0x60938a\nB               loc_609392                                             ; +0x20, 0x60938c\nMOV.W           R2, #0x3E8                                             ; +0x22, 0x60938e\nLDR             R3, [R4]                                               ; +0x26, 0x609392\nMOV             R0, R4                                                 ; +0x28, 0x609394\nMOV             R1, R5                                                 ; +0x2a, 0x609396\nPOP.W           {R4-R6,LR}                                             ; +0x2c, 0x609398\nLDR.W           R3, [R3,#0xE8]                                         ; +0x30, 0x60939c\nBX              R3                                                     ; +0x34, 0x6093a0", "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"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}