{"type": "func", "start": 4295559052, "end": 4295559140, "name": "DialogLayer::addToMainScene", "pseudocode": "// \n// DialogLayer::addToMainScene from 0x10009078c to 0x1000907e4 (88 bytes)\n// \n// 6 xrefs:\n// > sub_1001669E8 @ 0x100166bfc\n// > DailyLevelPage::dailyStatusFailed @ 0x1002501c8\n// > LevelListLayer::onClaimReward @ 0x1002e33c4\n// > SecretRewardsLayer::onGoldChest @ 0x100385040\n// > SecretRewardsLayer::onSelectItem @ 0x1003867e4\n// > sub_10044F9C4 @ 0x10044fb1c\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 10:58:23 +0000\n// \n\n__int64 __fastcall DialogLayer::addToMainScene(__int64 a1)\n{\n  __int64 v2; // x20\n  __int64 v3; // x2\n\n  v2 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(a1) + 272);\n  if ( (int)cocos2d::CCScene::getHighestChildZ(v2) < 1000 )\n    v3 = 1000;\n  else\n    v3 = (unsigned int)cocos2d::CCScene::getHighestChildZ(v2) + 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v2 + 464LL))(v2, a1, v3);\n}", "assembly": "; \n; DialogLayer::addToMainScene from 0x10009078c to 0x1000907e4 (88 bytes)\n; \n; 6 xrefs:\n; > sub_1001669E8 @ 0x100166bfc\n; > DailyLevelPage::dailyStatusFailed @ 0x1002501c8\n; > LevelListLayer::onClaimReward @ 0x1002e33c4\n; > SecretRewardsLayer::onGoldChest @ 0x100385040\n; > SecretRewardsLayer::onSelectItem @ 0x1003867e4\n; > sub_10044F9C4 @ 0x10044fb1c\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 10:58:23 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10009078c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100090790\nADD             X29, SP, #0x10                                         ; +0x8, 0x100090794\nMOV             X19, X0                                                ; +0xc, 0x100090798\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x10, 0x10009079c\nLDR             X20, [X0,#0x110]                                       ; +0x14, 0x1000907a0\nMOV             X0, X20                                                ; +0x18, 0x1000907a4\nBL              cocos2d__CCScene__getHighestChildZ                     ; +0x1c, 0x1000907a8\nCMP             W0, #0x3E8                                             ; +0x20, 0x1000907ac\nB.LT            loc_1000907C4                                          ; +0x24, 0x1000907b0\nMOV             X0, X20                                                ; +0x28, 0x1000907b4\nBL              cocos2d__CCScene__getHighestChildZ                     ; +0x2c, 0x1000907b8\nADD             W2, W0, #1                                             ; +0x30, 0x1000907bc\nB               loc_1000907C8                                          ; +0x34, 0x1000907c0\nMOV             W2, #0x3E8                                             ; +0x38, 0x1000907c4\nLDR             X8, [X20]                                              ; +0x3c, 0x1000907c8\nLDR             X3, [X8,#0x1D0]                                        ; +0x40, 0x1000907cc\nMOV             X0, X20                                                ; +0x44, 0x1000907d0\nMOV             X1, X19                                                ; +0x48, 0x1000907d4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x1000907d8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x1000907dc\nBR              X3                                                     ; +0x54, 0x1000907e0", "xrefs": ["sub_1001669E8 @ 0x100166bfc", "DailyLevelPage::dailyStatusFailed @ 0x1002501c8", "LevelListLayer::onClaimReward @ 0x1002e33c4", "SecretRewardsLayer::onGoldChest @ 0x100385040", "SecretRewardsLayer::onSelectItem @ 0x1003867e4", "sub_10044F9C4 @ 0x10044fb1c"], "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"}