{"type": "func", "start": 4299048436, "end": 4299048548, "name": "EditorUI::onSettings", "pseudocode": "// \n// EditorUI::onSettings from 0x1003e45f4 to 0x1003e4664 (112 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x1003c6068\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorUI::onSettings(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  LevelEditorLayer *m_editorLayer; // x1\n  GJGameLevel *m_level; // x8\n  LevelSettingsLayer *v5; // x0\n  LevelEditorLayer *v6; // x8\n  LevelSettingsDelegate *v7; // x8\n\n  if ( !a1->m_isPaused )\n  {\n    m_editorLayer = a1->m_editorLayer;\n    m_level = m_editorLayer->m_level;\n    if ( !m_level || m_level->m_levelType == Editor )\n    {\n      v5 = LevelSettingsLayer::create(m_editorLayer->m_levelSettings, m_editorLayer);\n      v6 = a1->m_editorLayer;\n      if ( v6 )\n        v7 = &v6->LevelSettingsDelegate;\n      else\n        v7 = nullptr;\n      v5->m_delegate = v7;\n      ((void (__fastcall *)(LevelSettingsLayer *))v5->show)(v5);\n    }\n  }\n}", "assembly": "; \n; EditorUI::onSettings from 0x1003e45f4 to 0x1003e4664 (112 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x1003c6068\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003e45f4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003e45f8\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003e45fc\nLDRB            W8, [X0,#0x588]                                        ; +0xc, 0x1003e4600\nTBNZ            W8, #0, loc_1003E4658                                  ; +0x10, 0x1003e4604\nMOV             X19, X0                                                ; +0x14, 0x1003e4608\nLDR             X1, [X0,#0x4E8]                                        ; +0x18, 0x1003e460c\nLDR             X8, [X1,#0x790]                                        ; +0x1c, 0x1003e4610\nCBZ             X8, loc_1003E4624                                      ; +0x20, 0x1003e4614\nLDR             W8, [X8,#0x404]                                        ; +0x24, 0x1003e4618\nCMP             W8, #2                                                 ; +0x28, 0x1003e461c\nB.NE            loc_1003E4658                                          ; +0x2c, 0x1003e4620\nLDR             X0, [X1,#0xCD8]                                        ; +0x30, 0x1003e4624\nBL              LevelSettingsLayer__create                             ; +0x34, 0x1003e4628\nLDR             X8, [X19,#0x4E8]                                       ; +0x38, 0x1003e462c\nMOV             W9, #0x35A0                                            ; +0x3c, 0x1003e4630\nADD             X9, X8, X9                                             ; +0x40, 0x1003e4634\nCMP             X8, #0                                                 ; +0x44, 0x1003e4638\nCSEL            X8, XZR, X9, EQ                                        ; +0x48, 0x1003e463c\nSTR             X8, [X0,#0x338]                                        ; +0x4c, 0x1003e4640\nLDR             X8, [X0]                                               ; +0x50, 0x1003e4644\nLDR             X1, [X8,#0x508]                                        ; +0x54, 0x1003e4648\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x58, 0x1003e464c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x1003e4650\nBR              X1                                                     ; +0x60, 0x1003e4654\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x1003e4658\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x1003e465c\nRET                                                                    ; +0x6c, 0x1003e4660", "xrefs": ["EditorUI::init @ 0x1003c6068"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}