{"type": "func", "start": 4295142336, "end": 4295142450, "name": "EditorUI::onSettings", "pseudocode": "// \n// EditorUI::onSettings from 0x10002abc0 to 0x10002ac32 (114 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x10000a73a\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; // rsi\n  GJGameLevel *m_level; // rax\n  LevelSettingsLayer *v4; // rax\n  LevelEditorLayer *v5; // rcx\n  LevelSettingsDelegate *v6; // rdx\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      v4 = LevelSettingsLayer::create(m_editorLayer->m_levelSettings, m_editorLayer);\n      v5 = a1->m_editorLayer;\n      v6 = &v5->LevelSettingsDelegate;\n      if ( !v5 )\n        v6 = nullptr;\n      v4->m_delegate = v6;\n      ((void (__fastcall *)(LevelSettingsLayer *))v4->show)(v4);\n    }\n  }\n}", "assembly": "; \n; EditorUI::onSettings from 0x10002abc0 to 0x10002ac32 (114 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x10000a73a\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\npush    rbp                                                            ; +0x0, 0x10002abc0\nmov     rbp, rsp                                                       ; +0x1, 0x10002abc1\npush    rbx                                                            ; +0x4, 0x10002abc4\npush    rax                                                            ; +0x5, 0x10002abc5\ncmp     byte ptr [rdi+588h], 0                                         ; +0x6, 0x10002abc6\njnz     short loc_10002AC2B                                            ; +0xd, 0x10002abcd\nmov     rsi, [rdi+4E8h]                                                ; +0xf, 0x10002abcf\nmov     rax, [rsi+790h]                                                ; +0x16, 0x10002abd6\ntest    rax, rax                                                       ; +0x1d, 0x10002abdd\njz      short loc_10002ABEB                                            ; +0x20, 0x10002abe0\ncmp     dword ptr [rax+404h], 2                                        ; +0x22, 0x10002abe2\njnz     short loc_10002AC2B                                            ; +0x29, 0x10002abe9\nmov     rax, [rsi+0CB0h]                                               ; +0x2b, 0x10002abeb\nmov     rbx, rdi                                                       ; +0x32, 0x10002abf2\nmov     rdi, rax                                                       ; +0x35, 0x10002abf5\ncall    LevelSettingsLayer__create                                     ; +0x38, 0x10002abf8\nmov     rcx, [rbx+4E8h]                                                ; +0x3d, 0x10002abfd\nlea     rdx, [rcx+3570h]                                               ; +0x44, 0x10002ac04\ntest    rcx, rcx                                                       ; +0x4b, 0x10002ac0b\ncmovz   rdx, rcx                                                       ; +0x4e, 0x10002ac0e\nmov     [rax+338h], rdx                                                ; +0x52, 0x10002ac12\nmov     rcx, [rax]                                                     ; +0x59, 0x10002ac19\nmov     rdi, rax                                                       ; +0x5c, 0x10002ac1c\nadd     rsp, 8                                                         ; +0x5f, 0x10002ac1f\npop     rbx                                                            ; +0x63, 0x10002ac23\npop     rbp                                                            ; +0x64, 0x10002ac24\njmp     qword ptr [rcx+508h]                                           ; +0x65, 0x10002ac25\nadd     rsp, 8                                                         ; +0x6b, 0x10002ac2b\npop     rbx                                                            ; +0x6f, 0x10002ac2f\npop     rbp                                                            ; +0x70, 0x10002ac30\nretn                                                                   ; +0x71, 0x10002ac31", "xrefs": ["EditorUI::init @ 0x10000a73a"], "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"}