{"type": "func", "start": 4295262844, "end": 4295263000, "name": "GameToolbox::serverPopupWillSwitchToScene", "pseudocode": "// \n// GameToolbox::serverPopupWillSwitchToScene from 0x10004827c to 0x100048318 (156 bytes)\n// \n// 1 xrefs:\n// > AppDelegate::willSwitchToScene @ 0x1003074dc\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:57:39 +0000\n// \n\n__int64 __fastcall GameToolbox::serverPopupWillSwitchToScene(__int64 a1)\n{\n  __int64 v2; // x19\n  __int64 result; // x0\n  __n128 v4; // q0\n\n  v2 = sub_100048318();\n  *(_QWORD *)(v2 + 392) = a1;\n  result = *(_QWORD *)(v2 + 384);\n  if ( result )\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 512LL))(result);\n    if ( result != a1 )\n    {\n      v4 = cocos2d::CCObject::retain(*(_QWORD *)(v2 + 384));\n      (*(void (__fastcall **)(_QWORD, _QWORD, __n128))(**(_QWORD **)(v2 + 384) + 528LL))(*(_QWORD *)(v2 + 384), 0, v4);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 464LL))(a1);\n      cocos2d::CCObject::release(*(_QWORD *)(v2 + 384));\n      return cocos2d::CCNode::resumeSchedulerAndActions(*(_QWORD *)(v2 + 384));\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameToolbox::serverPopupWillSwitchToScene from 0x10004827c to 0x100048318 (156 bytes)\n; \n; 1 xrefs:\n; > AppDelegate::willSwitchToScene @ 0x1003074dc\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:57:39 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10004827c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100048280\nADD             X29, SP, #0x10                                         ; +0x8, 0x100048284\nMOV             X20, X0                                                ; +0xc, 0x100048288\nBL              sub_100048318                                          ; +0x10, 0x10004828c\nMOV             X19, X0                                                ; +0x14, 0x100048290\nSTR             X20, [X0,#0x188]                                       ; +0x18, 0x100048294\nLDR             X0, [X0,#0x180]                                        ; +0x1c, 0x100048298\nCBZ             X0, loc_10004830C                                      ; +0x20, 0x10004829c\nLDR             X8, [X0]                                               ; +0x24, 0x1000482a0\nLDR             X8, [X8,#0x200]                                        ; +0x28, 0x1000482a4\nBLR             X8                                                     ; +0x2c, 0x1000482a8\nCMP             X0, X20                                                ; +0x30, 0x1000482ac\nB.EQ            loc_10004830C                                          ; +0x34, 0x1000482b0\nLDR             X0, [X19,#0x180]                                       ; +0x38, 0x1000482b4\nBL              cocos2d__CCObject__retain                              ; +0x3c, 0x1000482b8\nLDR             X0, [X19,#0x180]                                       ; +0x40, 0x1000482bc\nLDR             X8, [X0]                                               ; +0x44, 0x1000482c0\nLDR             X8, [X8,#0x210]                                        ; +0x48, 0x1000482c4\nMOV             W1, #0                                                 ; +0x4c, 0x1000482c8\nBLR             X8                                                     ; +0x50, 0x1000482cc\nLDR             X1, [X19,#0x180]                                       ; +0x54, 0x1000482d0\nLDR             W8, [X1,#0x250]                                        ; +0x58, 0x1000482d4\nCMP             W8, #0                                                 ; +0x5c, 0x1000482d8\nMOV             W9, #0x69 ; 'i'                                        ; +0x60, 0x1000482dc\nCSEL            W2, W9, W8, EQ                                         ; +0x64, 0x1000482e0\nLDR             X8, [X20]                                              ; +0x68, 0x1000482e4\nLDR             X8, [X8,#0x1D0]                                        ; +0x6c, 0x1000482e8\nMOV             X0, X20                                                ; +0x70, 0x1000482ec\nBLR             X8                                                     ; +0x74, 0x1000482f0\nLDR             X0, [X19,#0x180]                                       ; +0x78, 0x1000482f4\nBL              cocos2d__CCObject__release                             ; +0x7c, 0x1000482f8\nLDR             X0, [X19,#0x180]                                       ; +0x80, 0x1000482fc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x84, 0x100048300\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x88, 0x100048304\nB               cocos2d__CCNode__resumeSchedulerAndActions             ; +0x8c, 0x100048308\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x90, 0x10004830c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x94, 0x100048310\nRET                                                                    ; +0x98, 0x100048314", "xrefs": ["AppDelegate::willSwitchToScene @ 0x1003074dc"], "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"}