{"type": "func", "start": 4295005056, "end": 4295005145, "name": "EditorUI::onEditColor", "pseudocode": "// \n// EditorUI::onEditColor from 0x100009380 to 0x1000093d9 (89 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060cb66\n// > EditorUI::init @ 0x100006c54\n// \n// This function is hookable on this platform (idp: pc, 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 12:18:48 +0000\n// \n\n__int64 __fastcall EditorUI::onEditColor(__int64 a1)\n{\n  __int64 result; // rax\n\n  if ( *(_QWORD *)(a1 + 1496) || (result = sub_1007FEF90(*(_QWORD *)(a1 + 896)), (_DWORD)result) )\n  {\n    if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 64LL))(*(_QWORD *)(a1 + 1104)) == 1 )\n      EditorUI::editHSV(a1);\n    else\n      EditorUI::editColor(a1);\n    return EditorUI::updateEditColorButton(a1);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onEditColor from 0x100009380 to 0x1000093d9 (89 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060cb66\n; > EditorUI::init @ 0x100006c54\n; \n; This function is hookable on this platform (idp: pc, 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 12:18:48 +0000\n; \npush    rbp                                                            ; +0x0, 0x100009380\nmov     rbp, rsp                                                       ; +0x1, 0x100009381\npush    rbx                                                            ; +0x4, 0x100009384\npush    rax                                                            ; +0x5, 0x100009385\nmov     rbx, rdi                                                       ; +0x6, 0x100009386\ncmp     qword ptr [rdi+5D8h], 0                                        ; +0x9, 0x100009389\njnz     short loc_1000093A3                                            ; +0x11, 0x100009391\nmov     rdi, [rbx+380h]                                                ; +0x13, 0x100009393\ncall    sub_1007FEF90                                                  ; +0x1a, 0x10000939a\ntest    eax, eax                                                       ; +0x1f, 0x10000939f\njz      short loc_1000093D2                                            ; +0x21, 0x1000093a1\nmov     rdi, [rbx+450h]                                                ; +0x23, 0x1000093a3\nmov     rax, [rdi]                                                     ; +0x2a, 0x1000093aa\ncall    qword ptr [rax+40h]                                            ; +0x2d, 0x1000093ad\nmov     rdi, rbx                                                       ; +0x30, 0x1000093b0\ncmp     eax, 1                                                         ; +0x33, 0x1000093b3\njnz     short loc_1000093BF                                            ; +0x36, 0x1000093b6\ncall    EditorUI__editHSV                                              ; +0x38, 0x1000093b8\njmp     short loc_1000093C4                                            ; +0x3d, 0x1000093bd\ncall    EditorUI__editColor                                            ; +0x3f, 0x1000093bf\nmov     rdi, rbx                                                       ; +0x44, 0x1000093c4\nadd     rsp, 8                                                         ; +0x47, 0x1000093c7\npop     rbx                                                            ; +0x4b, 0x1000093cb\npop     rbp                                                            ; +0x4c, 0x1000093cc\njmp     EditorUI__updateEditColorButton                                ; +0x4d, 0x1000093cd\nadd     rsp, 8                                                         ; +0x52, 0x1000093d2\npop     rbx                                                            ; +0x56, 0x1000093d6\npop     rbp                                                            ; +0x57, 0x1000093d7\nretn                                                                   ; +0x58, 0x1000093d8", "xrefs": ["EditorUI::handleEditorAction @ 0x10060cb66", "EditorUI::init @ 0x100006c54"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}