{"type": "func", "start": 9532100, "end": 9532188, "name": "DialogLayer::addToMainScene", "pseudocode": "// \n// DialogLayer::addToMainScene from 0x9172c4 to 0x91731c (88 bytes)\n// \n// 8 xrefs:\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de380\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d596c\n// > DailyLevelPage::dailyStatusFailed @ 0x912e98\n// > SecretRewardsLayer::showLockedChest @ 0xa60e60\n// > SecretRewardsLayer::onSelectItem @ 0xa61f34\n// > SecretRewardsLayer::onGoldChest @ 0xa6450c\n// > LevelListLayer::onClaimReward @ 0xa738e0\n// > <???> @ 0x593a0\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; // x19\n  int HighestChildZ; // w0\n  __int64 v4; // x2\n\n  m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;\n  HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_pRunningScene);\n  v4 = 1000;\n  if ( HighestChildZ > 999 )\n    v4 = (unsigned int)(cocos2d::CCScene::getHighestChildZ(m_pRunningScene) + 1);\n  m_pRunningScene->addChild_0(m_pRunningScene, a1, v4);\n}", "assembly": "; \n; DialogLayer::addToMainScene from 0x9172c4 to 0x91731c (88 bytes)\n; \n; 8 xrefs:\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de380\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d596c\n; > DailyLevelPage::dailyStatusFailed @ 0x912e98\n; > SecretRewardsLayer::showLockedChest @ 0xa60e60\n; > SecretRewardsLayer::onSelectItem @ 0xa61f34\n; > SecretRewardsLayer::onGoldChest @ 0xa6450c\n; > LevelListLayer::onClaimReward @ 0xa738e0\n; > <???> @ 0x593a0\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x9172c4\nMOV             X29, SP                                                ; +0x4, 0x9172c8\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x9172cc\nMOV             X20, X0                                                ; +0xc, 0x9172d0\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x10, 0x9172d4\nLDR             X19, [X0,#0x108]                                       ; +0x14, 0x9172d8\nMOV             X0, X19; this                                          ; +0x18, 0x9172dc\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x1c, 0x9172e0\nCMP             W0, #0x3E7                                             ; +0x20, 0x9172e4\nMOV             W2, #0x3E8                                             ; +0x24, 0x9172e8\nB.LE            loc_9172FC                                             ; +0x28, 0x9172ec\nMOV             X0, X19; this                                          ; +0x2c, 0x9172f0\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x30, 0x9172f4\nADD             W2, W0, #1                                             ; +0x34, 0x9172f8\nLDR             X3, [X19]                                              ; +0x38, 0x9172fc\nMOV             X0, X19                                                ; +0x3c, 0x917300\nMOV             X1, X20                                                ; +0x40, 0x917304\nLDR             X3, [X3,#0x1C0]                                        ; +0x44, 0x917308\nBLR             X3                                                     ; +0x48, 0x91730c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x4c, 0x917310\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x50, 0x917314\nRET                                                                    ; +0x54, 0x917318", "xrefs": ["SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de380", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d596c", "DailyLevelPage::dailyStatusFailed @ 0x912e98", "SecretRewardsLayer::showLockedChest @ 0xa60e60", "SecretRewardsLayer::onSelectItem @ 0xa61f34", "SecretRewardsLayer::onGoldChest @ 0xa6450c", "LevelListLayer::onClaimReward @ 0xa738e0", "<???> @ 0x593a0"], "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"}