{"type": "func", "start": 5369577376, "end": 5369577463, "name": "DialogLayer::addToMainScene", "pseudocode": "// \n// DialogLayer::addToMainScene from 0x1400d3fa0 to 0x1400d3ff7 (87 bytes)\n// \n// 7 xrefs:\n// > DailyLevelPage::dailyStatusFailed @ 0x1400cfdcf\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402a0062\n// > LevelListLayer::onClaimReward @ 0x140306545\n// > SecretRewardsLayer::onSelectItem @ 0x1403d647a\n// > SecretRewardsLayer::onGoldChest @ 0x1403d798a\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1404940ed\n// > <???> @ 0x1406c86ac\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 *v2; // rbx\n\n  v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 264);\n  if ( cocos2d::CCScene::getHighestChildZ(v2) + 1 >= 1000 )\n    cocos2d::CCScene::getHighestChildZ(v2);\n  ((void (__fastcall *)(cocos2d::CCScene *, DialogLayer *))v2->addChild_0)(v2, a1);\n}", "assembly": "; \n; DialogLayer::addToMainScene from 0x1400d3fa0 to 0x1400d3ff7 (87 bytes)\n; \n; 7 xrefs:\n; > DailyLevelPage::dailyStatusFailed @ 0x1400cfdcf\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402a0062\n; > LevelListLayer::onClaimReward @ 0x140306545\n; > SecretRewardsLayer::onSelectItem @ 0x1403d647a\n; > SecretRewardsLayer::onGoldChest @ 0x1403d798a\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1404940ed\n; > <???> @ 0x1406c86ac\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400d3fa0\npush    rdi                                                            ; +0x5, 0x1400d3fa5\nsub     rsp, 20h                                                       ; +0x6, 0x1400d3fa6\nmov     rdi, rcx                                                       ; +0xa, 0x1400d3faa\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1400d3fad\nmov     rbx, [rax+108h]                                                ; +0x13, 0x1400d3fb3\nmov     rcx, rbx                                                       ; +0x1a, 0x1400d3fba\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x1d, 0x1400d3fbd\ninc     eax                                                            ; +0x23, 0x1400d3fc3\nmov     r8d, 3E8h                                                      ; +0x25, 0x1400d3fc5\ncmp     eax, r8d                                                       ; +0x2b, 0x1400d3fcb\njl      short loc_1400D3FDD                                            ; +0x2e, 0x1400d3fce\nmov     rcx, rbx                                                       ; +0x30, 0x1400d3fd0\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x33, 0x1400d3fd3\nlea     r8d, [rax+1]                                                   ; +0x39, 0x1400d3fd9\nmov     rax, [rbx]                                                     ; +0x3d, 0x1400d3fdd\nmov     rdx, rdi                                                       ; +0x40, 0x1400d3fe0\nmov     rcx, rbx                                                       ; +0x43, 0x1400d3fe3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x46, 0x1400d3fe6\nadd     rsp, 20h                                                       ; +0x4b, 0x1400d3feb\npop     rdi                                                            ; +0x4f, 0x1400d3fef\njmp     qword ptr [rax+1B8h]                                           ; +0x50, 0x1400d3ff0", "xrefs": ["DailyLevelPage::dailyStatusFailed @ 0x1400cfdcf", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402a0062", "LevelListLayer::onClaimReward @ 0x140306545", "SecretRewardsLayer::onSelectItem @ 0x1403d647a", "SecretRewardsLayer::onGoldChest @ 0x1403d798a", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x1404940ed", "<???> @ 0x1406c86ac"], "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"}