{"type": "func", "start": 4299627452, "end": 4299627580, "name": "EditorUI::onSettings", "pseudocode": "// \n// EditorUI::onSettings from 0x100471bbc to 0x100471c3c (128 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x10046f968\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:05:38 +0000\n// \n\n__int64 __fastcall EditorUI::onSettings(__int64 result, __n128 a2)\n{\n  __int64 v2; // x19\n  __int64 v3; // x8\n  __int64 v4; // x0\n  _QWORD *v5; // x0\n  __int64 v6; // x8\n  __int64 v7; // x8\n\n  if ( (*(_BYTE *)(result + 1588) & 1) == 0 )\n  {\n    v2 = result;\n    v3 = *(_QWORD *)(*(_QWORD *)(result + 1440) + 1936LL);\n    if ( !v3 || *(_DWORD *)(v3 + 1140) == 2 )\n    {\n      v4 = EditorSFXManager::sharedState(a2);\n      EditorSFXManager::playAction_1(v4, 220);\n      v5 = LevelSettingsLayer::create(*(_QWORD *)(*(_QWORD *)(v2 + 1440) + 3272LL), *(_QWORD *)(v2 + 1440));\n      v6 = *(_QWORD *)(v2 + 1440);\n      if ( v6 )\n        v7 = v6 + 13992;\n      else\n        v7 = 0;\n      v5[106] = v7;\n      return (*(__int64 (__fastcall **)(_QWORD *))(*v5 + 1312LL))(v5);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onSettings from 0x100471bbc to 0x100471c3c (128 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x10046f968\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:05:38 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100471bbc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100471bc0\nADD             X29, SP, #0x10                                         ; +0x8, 0x100471bc4\nLDRB            W8, [X0,#0x634]                                        ; +0xc, 0x100471bc8\nTBNZ            W8, #0, loc_100471C30                                  ; +0x10, 0x100471bcc\nMOV             X19, X0                                                ; +0x14, 0x100471bd0\nLDR             X8, [X0,#0x5A0]                                        ; +0x18, 0x100471bd4\nLDR             X8, [X8,#0x790]                                        ; +0x1c, 0x100471bd8\nCBZ             X8, loc_100471BEC                                      ; +0x20, 0x100471bdc\nLDR             W8, [X8,#0x474]                                        ; +0x24, 0x100471be0\nCMP             W8, #2                                                 ; +0x28, 0x100471be4\nB.NE            loc_100471C30                                          ; +0x2c, 0x100471be8\nBL              EditorSFXManager__sharedState                          ; +0x30, 0x100471bec\nMOV             W1, #0xDC                                              ; +0x34, 0x100471bf0\nBL              EditorSFXManager__playAction_1                         ; +0x38, 0x100471bf4\nLDR             X1, [X19,#0x5A0]                                       ; +0x3c, 0x100471bf8\nLDR             X0, [X1,#0xCC8]                                        ; +0x40, 0x100471bfc\nBL              LevelSettingsLayer__create                             ; +0x44, 0x100471c00\nLDR             X8, [X19,#0x5A0]                                       ; +0x48, 0x100471c04\nMOV             W9, #0x36A8                                            ; +0x4c, 0x100471c08\nADD             X9, X8, X9                                             ; +0x50, 0x100471c0c\nCMP             X8, #0                                                 ; +0x54, 0x100471c10\nCSEL            X8, XZR, X9, EQ                                        ; +0x58, 0x100471c14\nSTR             X8, [X0,#0x350]                                        ; +0x5c, 0x100471c18\nLDR             X8, [X0]                                               ; +0x60, 0x100471c1c\nLDR             X1, [X8,#0x520]                                        ; +0x64, 0x100471c20\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x100471c24\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x100471c28\nBR              X1                                                     ; +0x70, 0x100471c2c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x100471c30\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x100471c34\nRET                                                                    ; +0x7c, 0x100471c38", "xrefs": ["EditorUI::init @ 0x10046f968"], "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"}