{"type": "func", "start": 5072260, "end": 5072314, "name": "DialogLayer::addToMainScene", "pseudocode": "// \n// DialogLayer::addToMainScene from 0x4d6584 to 0x4d65ba (54 bytes)\n// \n// 7 xrefs:\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x42d876\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x4b1986\n// > DailyLevelPage::dailyStatusFailed @ 0x4d39c0\n// > SecretRewardsLayer::showLockedChest @ 0x58547e\n// > SecretRewardsLayer::onSelectItem @ 0x585ca2\n// > SecretRewardsLayer::onGoldChest @ 0x5873fc\n// > LevelListLayer::onClaimReward @ 0x58ed72\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid DialogLayer::addToMainScene(DialogLayer *a1)\n{\n  cocos2d::CCScene *m_pRunningScene; // r4\n  int v3; // r2\n\n  m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;\n  if ( cocos2d::CCScene::getHighestChildZ(m_pRunningScene) < 1000 )\n    v3 = 1000;\n  else\n    v3 = cocos2d::CCScene::getHighestChildZ(m_pRunningScene) + 1;\n  m_pRunningScene->addChild_0(m_pRunningScene, a1, v3);\n}", "assembly": "; \n; DialogLayer::addToMainScene from 0x4d6584 to 0x4d65ba (54 bytes)\n; \n; 7 xrefs:\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x42d876\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x4b1986\n; > DailyLevelPage::dailyStatusFailed @ 0x4d39c0\n; > SecretRewardsLayer::showLockedChest @ 0x58547e\n; > SecretRewardsLayer::onSelectItem @ 0x585ca2\n; > SecretRewardsLayer::onGoldChest @ 0x5873fc\n; > LevelListLayer::onClaimReward @ 0x58ed72\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4d6584\nMOV             R5, R0                                                 ; +0x2, 0x4d6586\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4, 0x4d6588\nLDR.W           R4, [R0,#0xCC]                                         ; +0x8, 0x4d658c\nMOV             R0, R4; this                                           ; +0xc, 0x4d6590\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0xe, 0x4d6592\nCMP.W           R0, #0x3E8                                             ; +0x12, 0x4d6596\nBLT             loc_4D65A6                                             ; +0x16, 0x4d659a\nMOV             R0, R4; this                                           ; +0x18, 0x4d659c\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x1a, 0x4d659e\nADDS            R2, R0, #1                                             ; +0x1e, 0x4d65a2\nB               loc_4D65AA                                             ; +0x20, 0x4d65a4\nMOV.W           R2, #0x3E8                                             ; +0x22, 0x4d65a6\nLDR             R3, [R4]                                               ; +0x26, 0x4d65aa\nMOV             R0, R4                                                 ; +0x28, 0x4d65ac\nMOV             R1, R5                                                 ; +0x2a, 0x4d65ae\nPOP.W           {R4-R6,LR}                                             ; +0x2c, 0x4d65b0\nLDR.W           R3, [R3,#0xE0]                                         ; +0x30, 0x4d65b4\nBX              R3                                                     ; +0x34, 0x4d65b8", "xrefs": ["SongInfoLayer::showCustomMusicUnlockInfo @ 0x42d876", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x4b1986", "DailyLevelPage::dailyStatusFailed @ 0x4d39c0", "SecretRewardsLayer::showLockedChest @ 0x58547e", "SecretRewardsLayer::onSelectItem @ 0x585ca2", "SecretRewardsLayer::onGoldChest @ 0x5873fc", "LevelListLayer::onClaimReward @ 0x58ed72"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}