{"type": "func", "start": 4298134984, "end": 4298135120, "name": "MenuLayer::openOptions", "pseudocode": "// \n// MenuLayer::openOptions from 0x1003055c8 to 0x100305650 (136 bytes)\n// \n// 1 xrefs:\n// > MenuLayer::onOptionsInstant @ 0x1003038a8\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 11:03:07 +0000\n// \n\n__int64 __fastcall MenuLayer::openOptions(__int64 a1, __int64 a2)\n{\n  char *v4; // x19\n  __int64 result; // x0\n  char *v6; // x1\n\n  v4 = OptionsLayer::create();\n  (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 100);\n  result = (*(__int64 (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 1328LL))(v4, a2);\n  if ( (_DWORD)a2 )\n  {\n    v6 = VideoOptionsLayer::create();\n    return (*(__int64 (__fastcall **)(char *, char *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v6, 100);\n  }\n  return result;\n}", "assembly": "; \n; MenuLayer::openOptions from 0x1003055c8 to 0x100305650 (136 bytes)\n; \n; 1 xrefs:\n; > MenuLayer::onOptionsInstant @ 0x1003038a8\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 11:03:07 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003055c8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003055cc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003055d0\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003055d4\nMOV             X20, X1                                                ; +0x10, 0x1003055d8\nMOV             X21, X0                                                ; +0x14, 0x1003055dc\nBL              OptionsLayer__create                                   ; +0x18, 0x1003055e0\nMOV             X19, X0                                                ; +0x1c, 0x1003055e4\nLDR             X8, [X21]                                              ; +0x20, 0x1003055e8\nLDR             X8, [X8,#0x1D0]                                        ; +0x24, 0x1003055ec\nMOV             X0, X21                                                ; +0x28, 0x1003055f0\nMOV             X1, X19                                                ; +0x2c, 0x1003055f4\nMOV             W2, #0x64 ; 'd'                                        ; +0x30, 0x1003055f8\nBLR             X8                                                     ; +0x34, 0x1003055fc\nLDR             X8, [X19]                                              ; +0x38, 0x100305600\nLDR             X8, [X8,#0x530]                                        ; +0x3c, 0x100305604\nMOV             X0, X19                                                ; +0x40, 0x100305608\nMOV             X1, X20                                                ; +0x44, 0x10030560c\nBLR             X8                                                     ; +0x48, 0x100305610\nCBZ             W20, loc_100305640                                     ; +0x4c, 0x100305614\nBL              VideoOptionsLayer__create                              ; +0x50, 0x100305618\nMOV             X1, X0                                                 ; +0x54, 0x10030561c\nLDR             X8, [X19]                                              ; +0x58, 0x100305620\nLDR             X3, [X8,#0x1D0]                                        ; +0x5c, 0x100305624\nMOV             X0, X19                                                ; +0x60, 0x100305628\nMOV             W2, #0x64 ; 'd'                                        ; +0x64, 0x10030562c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x68, 0x100305630\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x6c, 0x100305634\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x70, 0x100305638\nBR              X3                                                     ; +0x74, 0x10030563c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x78, 0x100305640\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x7c, 0x100305644\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x80, 0x100305648\nRET                                                                    ; +0x84, 0x10030564c", "xrefs": ["MenuLayer::onOptionsInstant @ 0x1003038a8"], "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"}