{"type": "func", "start": 5369633088, "end": 5369633204, "name": "EditorUI::onSettings", "pseudocode": "// \n// EditorUI::onSettings from 0x1400e1940 to 0x1400e19b4 (116 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x1400e0a3c\n// > <???> @ 0x1406c8b68\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 EditorUI::onSettings(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  LevelEditorLayer *m_editorLayer; // rcx\n  GJGameLevel *m_level; // rax\n  LevelSettingsLayer *v5; // rax\n  LevelEditorLayer *v6; // rcx\n  LevelSettingsDelegate *v7; // 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      v5 = LevelSettingsLayer::create(m_editorLayer->m_levelSettings, m_editorLayer);\n      v6 = a1->m_editorLayer;\n      v7 = &v6->LevelSettingsDelegate;\n      if ( !v6 )\n        v7 = nullptr;\n      v5->m_delegate = v7;\n      v5->show(v5);\n    }\n  }\n}", "assembly": "; \n; EditorUI::onSettings from 0x1400e1940 to 0x1400e19b4 (116 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x1400e0a3c\n; > <???> @ 0x1406c8b68\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    rbx                                                            ; +0x0, 0x1400e1940\nsub     rsp, 20h                                                       ; +0x2, 0x1400e1942\ncmp     byte ptr [rcx+5A0h], 0                                         ; +0x6, 0x1400e1946\nmov     rbx, rcx                                                       ; +0xd, 0x1400e194d\njnz     short loc_1400E19AE                                            ; +0x10, 0x1400e1950\nmov     rcx, [rcx+500h]                                                ; +0x12, 0x1400e1952\nmov     rax, [rcx+878h]                                                ; +0x19, 0x1400e1959\ntest    rax, rax                                                       ; +0x20, 0x1400e1960\njz      short loc_1400E196E                                            ; +0x23, 0x1400e1963\ncmp     dword ptr [rax+454h], 2                                        ; +0x25, 0x1400e1965\njnz     short loc_1400E19AE                                            ; +0x2c, 0x1400e196c\nmov     rdx, rcx                                                       ; +0x2e, 0x1400e196e\nmov     rcx, [rcx+0DB0h]                                               ; +0x31, 0x1400e1971\ncall    LevelSettingsLayer__create                                     ; +0x38, 0x1400e1978\nmov     rcx, [rbx+500h]                                                ; +0x3d, 0x1400e197d\nxor     r8d, r8d                                                       ; +0x44, 0x1400e1984\ntest    rcx, rcx                                                       ; +0x47, 0x1400e1987\nlea     rdx, [rcx+37A0h]                                               ; +0x4a, 0x1400e198a\nmov     rcx, rax                                                       ; +0x51, 0x1400e1991\ncmovz   rdx, r8                                                        ; +0x54, 0x1400e1994\nmov     [rax+338h], rdx                                                ; +0x58, 0x1400e1998\nmov     rdx, [rax]                                                     ; +0x5f, 0x1400e199f\nadd     rsp, 20h                                                       ; +0x62, 0x1400e19a2\npop     rbx                                                            ; +0x66, 0x1400e19a6\njmp     qword ptr [rdx+410h]                                           ; +0x67, 0x1400e19a7\nadd     rsp, 20h                                                       ; +0x6e, 0x1400e19ae\npop     rbx                                                            ; +0x72, 0x1400e19b2\nretn                                                                   ; +0x73, 0x1400e19b3", "xrefs": ["EditorUI::init @ 0x1400e0a3c", "<???> @ 0x1406c8b68"], "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"}