{"type": "func", "start": 10946044, "end": 10946132, "name": "DialogLayer::addToMainScene", "pseudocode": "// \n// DialogLayer::addToMainScene from 0xa705fc to 0xa70654 (88 bytes)\n// \n// 9 xrefs:\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x903e2c\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0xa2b680\n// > DailyLevelPage::dailyStatusFailed @ 0xa6d474\n// > SecretRewardsLayer::showLockedChest @ 0xb9e4dc\n// > SecretRewardsLayer::onGoldChest @ 0xb9eb44\n// > SecretRewardsLayer::onSelectItem @ 0xb9ee18\n// > LevelListLayer::onClaimReward @ 0xbac080\n// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0xc06a5c\n// > <???> @ 0x7ab00\n// \n// This function is hookable on this platform (idp: arm, 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 13:00:23 +0000\n// \n\n__int64 __fastcall DialogLayer::addToMainScene(DialogLayer *this)\n{\n  cocos2d::CCScene *v2; // x19\n  int HighestChildZ; // w0\n  __int64 v4; // x2\n\n  v2 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(this) + 272);\n  HighestChildZ = cocos2d::CCScene::getHighestChildZ(v2);\n  v4 = 1000;\n  if ( HighestChildZ > 999 )\n    v4 = (unsigned int)cocos2d::CCScene::getHighestChildZ(v2) + 1;\n  return (*(__int64 (__fastcall **)(cocos2d::CCScene *, DialogLayer *, __int64))(*(_QWORD *)v2 + 464LL))(v2, this, v4);\n}", "assembly": "; \n; DialogLayer::addToMainScene from 0xa705fc to 0xa70654 (88 bytes)\n; \n; 9 xrefs:\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x903e2c\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0xa2b680\n; > DailyLevelPage::dailyStatusFailed @ 0xa6d474\n; > SecretRewardsLayer::showLockedChest @ 0xb9e4dc\n; > SecretRewardsLayer::onGoldChest @ 0xb9eb44\n; > SecretRewardsLayer::onSelectItem @ 0xb9ee18\n; > LevelListLayer::onClaimReward @ 0xbac080\n; > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0xc06a5c\n; > <???> @ 0x7ab00\n; \n; This function is hookable on this platform (idp: arm, 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 13:00:23 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xa705fc\nMOV             X29, SP                                                ; +0x4, 0xa70600\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xa70604\nMOV             X20, X0                                                ; +0xc, 0xa70608\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x10, 0xa7060c\nLDR             X19, [X0,#0x110]                                       ; +0x14, 0xa70610\nMOV             X0, X19; this                                          ; +0x18, 0xa70614\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x1c, 0xa70618\nCMP             W0, #0x3E7                                             ; +0x20, 0xa7061c\nMOV             W2, #0x3E8                                             ; +0x24, 0xa70620\nB.LE            loc_A70634                                             ; +0x28, 0xa70624\nMOV             X0, X19; this                                          ; +0x2c, 0xa70628\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x30, 0xa7062c\nADD             W2, W0, #1                                             ; +0x34, 0xa70630\nLDR             X3, [X19]                                              ; +0x38, 0xa70634\nMOV             X0, X19                                                ; +0x3c, 0xa70638\nMOV             X1, X20                                                ; +0x40, 0xa7063c\nLDR             X3, [X3,#0x1D0]                                        ; +0x44, 0xa70640\nBLR             X3                                                     ; +0x48, 0xa70644\nLDP             X19, X20, [SP,#var_s10]                                ; +0x4c, 0xa70648\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x50, 0xa7064c\nRET                                                                    ; +0x54, 0xa70650", "xrefs": ["SongInfoLayer::showCustomMusicUnlockInfo @ 0x903e2c", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0xa2b680", "DailyLevelPage::dailyStatusFailed @ 0xa6d474", "SecretRewardsLayer::showLockedChest @ 0xb9e4dc", "SecretRewardsLayer::onGoldChest @ 0xb9eb44", "SecretRewardsLayer::onSelectItem @ 0xb9ee18", "LevelListLayer::onClaimReward @ 0xbac080", "GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0xc06a5c", "<???> @ 0x7ab00"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}