{"type": "func", "start": 4295521060, "end": 4295521148, "name": "DialogLayer::addToMainScene", "pseudocode": "// \n// DialogLayer::addToMainScene from 0x100087324 to 0x10008737c (88 bytes)\n// \n// 6 xrefs:\n// > DailyLevelPage::dailyStatusFailed @ 0x1001ba570\n// > LevelListLayer::onClaimReward @ 0x10024627c\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f78\n// > SecretRewardsLayer::onGoldChest @ 0x1002e9eb8\n// > SecretRewardsLayer::onSelectItem @ 0x1002eb65c\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8be4\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 __fastcall DialogLayer::addToMainScene(DialogLayer *a1)\n{\n  cocos2d::CCScene *m_pRunningScene; // x20\n  __int64 v3; // x2\n\n  m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;\n  if ( cocos2d::CCScene::getHighestChildZ(m_pRunningScene) < 1000 )\n    v3 = 1000;\n  else\n    v3 = (unsigned int)(cocos2d::CCScene::getHighestChildZ(m_pRunningScene) + 1);\n  ((void (__fastcall *)(cocos2d::CCScene *, DialogLayer *, __int64))m_pRunningScene->addChild_0)(\n    m_pRunningScene,\n    a1,\n    v3);\n}", "assembly": "; \n; DialogLayer::addToMainScene from 0x100087324 to 0x10008737c (88 bytes)\n; \n; 6 xrefs:\n; > DailyLevelPage::dailyStatusFailed @ 0x1001ba570\n; > LevelListLayer::onClaimReward @ 0x10024627c\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f78\n; > SecretRewardsLayer::onGoldChest @ 0x1002e9eb8\n; > SecretRewardsLayer::onSelectItem @ 0x1002eb65c\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8be4\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100087324\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100087328\nADD             X29, SP, #0x10                                         ; +0x8, 0x10008732c\nMOV             X19, X0                                                ; +0xc, 0x100087330\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x10, 0x100087334\nLDR             X20, [X0,#0x108]                                       ; +0x14, 0x100087338\nMOV             X0, X20                                                ; +0x18, 0x10008733c\nBL              cocos2d__CCScene__getHighestChildZ                     ; +0x1c, 0x100087340\nCMP             W0, #0x3E8                                             ; +0x20, 0x100087344\nB.LT            loc_10008735C                                          ; +0x24, 0x100087348\nMOV             X0, X20                                                ; +0x28, 0x10008734c\nBL              cocos2d__CCScene__getHighestChildZ                     ; +0x2c, 0x100087350\nADD             W2, W0, #1                                             ; +0x30, 0x100087354\nB               loc_100087360                                          ; +0x34, 0x100087358\nMOV             W2, #0x3E8                                             ; +0x38, 0x10008735c\nLDR             X8, [X20]                                              ; +0x3c, 0x100087360\nLDR             X3, [X8,#0x1C0]                                        ; +0x40, 0x100087364\nMOV             X0, X20                                                ; +0x44, 0x100087368\nMOV             X1, X19                                                ; +0x48, 0x10008736c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x100087370\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x100087374\nBR              X3                                                     ; +0x54, 0x100087378", "xrefs": ["DailyLevelPage::dailyStatusFailed @ 0x1001ba570", "LevelListLayer::onClaimReward @ 0x10024627c", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f78", "SecretRewardsLayer::onGoldChest @ 0x1002e9eb8", "SecretRewardsLayer::onSelectItem @ 0x1002eb65c", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8be4"], "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"}