{"type": "func", "start": 5370238560, "end": 5370238647, "name": "DialogLayer::addToMainScene", "pseudocode": "// \n// DialogLayer::addToMainScene from 0x140175660 to 0x1401756b7 (87 bytes)\n// \n// 7 xrefs:\n// > DailyLevelPage::dailyStatusFailed @ 0x140170cc8\n// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8ae9\n// > LevelListLayer::onClaimReward @ 0x14042e3ab\n// > SecretRewardsLayer::onSelectItem @ 0x14056bec3\n// > SecretRewardsLayer::onGoldChest @ 0x14056d43f\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x140636119\n// > <???> @ 0x140918470\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:32 +0000\n// \n\n__int64 __fastcall DialogLayer::addToMainScene(__int64 a1)\n{\n  cocos2d::CCScene *v2; // rbx\n\n  v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 272);\n  if ( cocos2d::CCScene::getHighestChildZ(v2) + 1 >= 1000 )\n    cocos2d::CCScene::getHighestChildZ(v2);\n  return (*(__int64 (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v2 + 456LL))(v2, a1);\n}", "assembly": "; \n; DialogLayer::addToMainScene from 0x140175660 to 0x1401756b7 (87 bytes)\n; \n; 7 xrefs:\n; > DailyLevelPage::dailyStatusFailed @ 0x140170cc8\n; > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8ae9\n; > LevelListLayer::onClaimReward @ 0x14042e3ab\n; > SecretRewardsLayer::onSelectItem @ 0x14056bec3\n; > SecretRewardsLayer::onGoldChest @ 0x14056d43f\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x140636119\n; > <???> @ 0x140918470\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:32 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140175660\npush    rdi                                                            ; +0x5, 0x140175665\nsub     rsp, 20h                                                       ; +0x6, 0x140175666\nmov     rdi, rcx                                                       ; +0xa, 0x14017566a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x14017566d\nmov     rbx, [rax+110h]                                                ; +0x13, 0x140175673\nmov     rcx, rbx                                                       ; +0x1a, 0x14017567a\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x1d, 0x14017567d\ninc     eax                                                            ; +0x23, 0x140175683\nmov     r8d, 3E8h                                                      ; +0x25, 0x140175685\ncmp     eax, r8d                                                       ; +0x2b, 0x14017568b\njl      short loc_14017569D                                            ; +0x2e, 0x14017568e\nmov     rcx, rbx                                                       ; +0x30, 0x140175690\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x33, 0x140175693\nlea     r8d, [rax+1]                                                   ; +0x39, 0x140175699\nmov     rax, [rbx]                                                     ; +0x3d, 0x14017569d\nmov     rdx, rdi                                                       ; +0x40, 0x1401756a0\nmov     rcx, rbx                                                       ; +0x43, 0x1401756a3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x46, 0x1401756a6\nadd     rsp, 20h                                                       ; +0x4b, 0x1401756ab\npop     rdi                                                            ; +0x4f, 0x1401756af\njmp     qword ptr [rax+1C8h]                                           ; +0x50, 0x1401756b0", "xrefs": ["DailyLevelPage::dailyStatusFailed @ 0x140170cc8", "GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8ae9", "LevelListLayer::onClaimReward @ 0x14042e3ab", "SecretRewardsLayer::onSelectItem @ 0x14056bec3", "SecretRewardsLayer::onGoldChest @ 0x14056d43f", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x140636119", "<???> @ 0x140918470"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}