{"type": "func", "start": 4298932304, "end": 4298932380, "name": "DialogLayer::addToMainScene", "pseudocode": "// \n// DialogLayer::addToMainScene from 0x1003c8050 to 0x1003c809c (76 bytes)\n// \n// 7 xrefs:\n// > DailyLevelPage::dailyStatusFailed @ 0x100231cc6\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002b1afd\n// > LevelListLayer::onClaimReward @ 0x10035f2a6\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x100601ee1\n// > SecretRewardsLayer::onGoldChest @ 0x1006326c5\n// > SecretRewardsLayer::showLockedChest @ 0x1006332b6\n// > SecretRewardsLayer::onSelectItem @ 0x100634ad8\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; // r14\n  int HighestChildZ; // eax\n  __int64 v3; // rdx\n\n  m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;\n  HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_pRunningScene);\n  v3 = 1000;\n  if ( HighestChildZ >= 1000 )\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 0x1003c8050 to 0x1003c809c (76 bytes)\n; \n; 7 xrefs:\n; > DailyLevelPage::dailyStatusFailed @ 0x100231cc6\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002b1afd\n; > LevelListLayer::onClaimReward @ 0x10035f2a6\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x100601ee1\n; > SecretRewardsLayer::onGoldChest @ 0x1006326c5\n; > SecretRewardsLayer::showLockedChest @ 0x1006332b6\n; > SecretRewardsLayer::onSelectItem @ 0x100634ad8\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    rbp                                                            ; +0x0, 0x1003c8050\nmov     rbp, rsp                                                       ; +0x1, 0x1003c8051\npush    r14                                                            ; +0x4, 0x1003c8054\npush    rbx                                                            ; +0x6, 0x1003c8056\nmov     rbx, rdi                                                       ; +0x7, 0x1003c8057\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xa, 0x1003c805a\nmov     r14, [rax+108h]                                                ; +0xf, 0x1003c805f\nmov     rdi, r14                                                       ; +0x16, 0x1003c8066\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x19, 0x1003c8069\nmov     edx, 3E8h                                                      ; +0x1e, 0x1003c806e\ncmp     eax, 3E8h                                                      ; +0x23, 0x1003c8073\njl      short loc_1003C8086                                            ; +0x28, 0x1003c8078\nmov     rdi, r14                                                       ; +0x2a, 0x1003c807a\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x2d, 0x1003c807d\nmov     edx, eax                                                       ; +0x32, 0x1003c8082\ninc     edx                                                            ; +0x34, 0x1003c8084\nmov     rax, [r14]                                                     ; +0x36, 0x1003c8086\nmov     rax, [rax+1C0h]                                                ; +0x39, 0x1003c8089\nmov     rdi, r14                                                       ; +0x40, 0x1003c8090\nmov     rsi, rbx                                                       ; +0x43, 0x1003c8093\npop     rbx                                                            ; +0x46, 0x1003c8096\npop     r14                                                            ; +0x47, 0x1003c8097\npop     rbp                                                            ; +0x49, 0x1003c8099\njmp     rax                                                            ; +0x4a, 0x1003c809a", "xrefs": ["DailyLevelPage::dailyStatusFailed @ 0x100231cc6", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002b1afd", "LevelListLayer::onClaimReward @ 0x10035f2a6", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x100601ee1", "SecretRewardsLayer::onGoldChest @ 0x1006326c5", "SecretRewardsLayer::showLockedChest @ 0x1006332b6", "SecretRewardsLayer::onSelectItem @ 0x100634ad8"], "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"}