{"type": "func", "start": 4295071904, "end": 4295072255, "name": "EditorUI::editHSV", "pseudocode": "// \n// EditorUI::editHSV from 0x1000198a0 to 0x1000199ff (351 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onEditColor @ 0x1000093b8\n// > EditorUI::checkLiveColorSelect @ 0x1005b8fac\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:55 +0000\n// \n\n__int64 __fastcall EditorUI::editHSV(_QWORD *a1)\n{\n  __int64 v2; // rdi\n  __int64 v3; // rdi\n  __int64 SelectedObjects; // r14\n  __int64 v5; // rcx\n  __int64 v6; // rdx\n  _QWORD *v7; // rax\n  __int64 v9; // rax\n  unsigned int *v10; // rax\n  _QWORD *v11; // r15\n  unsigned __int64 v12; // r12\n  __int64 v13; // [rsp+8h] [rbp-38h] BYREF\n  __int64 v14; // [rsp+10h] [rbp-30h] BYREF\n  _QWORD v15[5]; // [rsp+18h] [rbp-28h] BYREF\n\n  v2 = a1[194];\n  if ( v2 )\n  {\n    HSVLiveOverlay::closeColorSelect(v2, 0);\n    a1[194] = 0;\n  }\n  v3 = a1[193];\n  if ( v3 )\n  {\n    ColorSelectLiveOverlay::closeColorSelect(v3, 0);\n    a1[193] = 0;\n  }\n  if ( a1[187] )\n  {\n    GameObject::deselectObject();\n    SelectedObjects = 0;\n  }\n  else\n  {\n    SelectedObjects = EditorUI::getSelectedObjects(a1);\n    v9 = a1[112];\n    if ( v9 )\n    {\n      v10 = *(unsigned int **)(v9 + 56);\n      if ( *v10 )\n      {\n        v11 = *((_QWORD **)v10 + 2);\n        v12 = (unsigned __int64)&v11[*v10 - 1];\n        do\n        {\n          if ( !*v11 )\n            break;\n          GameObject::deselectObject();\n          ++v11;\n        }\n        while ( (unsigned __int64)v11 <= v12 );\n      }\n    }\n  }\n  v14 = 0;\n  v15[0] = 0;\n  EditorUI::getEditColorTargets((__int64)a1, (unsigned __int64)&v14, v15, &v13);\n  v5 = 0xFFFFFF;\n  v6 = 0xFFFFFF;\n  if ( v14 )\n    v6 = *(unsigned __int16 *)(v14 + 72) | (*(unsigned __int8 *)(v14 + 74) << 16);\n  if ( v15[0] )\n    v5 = *(unsigned __int16 *)(v15[0] + 72LL) | (*(unsigned __int8 *)(v15[0] + 74LL) << 16);\n  v7 = (_QWORD *)HSVLiveOverlay::create(a1[187], SelectedObjects, v6, v5);\n  a1[194] = v7;\n  v7[88] = a1 + 52;\n  v7[71] = a1;\n  return (*(__int64 (__fastcall **)(_QWORD *))(*v7 + 1312LL))(v7);\n}", "assembly": "; \n; EditorUI::editHSV from 0x1000198a0 to 0x1000199ff (351 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onEditColor @ 0x1000093b8\n; > EditorUI::checkLiveColorSelect @ 0x1005b8fac\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:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000198a0\nmov     rbp, rsp                                                       ; +0x1, 0x1000198a1\npush    r15                                                            ; +0x4, 0x1000198a4\npush    r14                                                            ; +0x6, 0x1000198a6\npush    r12                                                            ; +0x8, 0x1000198a8\npush    rbx                                                            ; +0xa, 0x1000198aa\nsub     rsp, 20h                                                       ; +0xb, 0x1000198ab\nmov     rbx, rdi                                                       ; +0xf, 0x1000198af\nmov     rdi, [rdi+610h]                                                ; +0x12, 0x1000198b2\ntest    rdi, rdi                                                       ; +0x19, 0x1000198b9\njz      short loc_1000198D0                                            ; +0x1c, 0x1000198bc\nxor     esi, esi                                                       ; +0x1e, 0x1000198be\ncall    HSVLiveOverlay__closeColorSelect                               ; +0x20, 0x1000198c0\nmov     qword ptr [rbx+610h], 0                                        ; +0x25, 0x1000198c5\nmov     rdi, [rbx+608h]                                                ; +0x30, 0x1000198d0\ntest    rdi, rdi                                                       ; +0x37, 0x1000198d7\njz      short loc_1000198EE                                            ; +0x3a, 0x1000198da\nxor     esi, esi                                                       ; +0x3c, 0x1000198dc\ncall    ColorSelectLiveOverlay__closeColorSelect                       ; +0x3e, 0x1000198de\nmov     qword ptr [rbx+608h], 0                                        ; +0x43, 0x1000198e3\nmov     rdi, [rbx+5D8h]                                                ; +0x4e, 0x1000198ee\ntest    rdi, rdi                                                       ; +0x55, 0x1000198f5\njz      loc_1000199A3                                                  ; +0x58, 0x1000198f8\ncall    GameObject__deselectObject                                     ; +0x5e, 0x1000198fe\nxor     r14d, r14d                                                     ; +0x63, 0x100019903\nmov     [rbp+var_30], 0                                                ; +0x66, 0x100019906\nmov     [rbp+var_28], 0                                                ; +0x6e, 0x10001990e\nlea     rsi, [rbp+var_30]                                              ; +0x76, 0x100019916\nlea     rdx, [rbp+var_28]                                              ; +0x7a, 0x10001991a\nlea     rcx, [rbp+var_38]                                              ; +0x7e, 0x10001991e\nmov     rdi, rbx                                                       ; +0x82, 0x100019922\ncall    EditorUI__getEditColorTargets                                  ; +0x85, 0x100019925\nmov     rax, [rbp+var_30]                                              ; +0x8a, 0x10001992a\nmov     ecx, 0FFFFFFh                                                  ; +0x8e, 0x10001992e\nmov     edx, 0FFFFFFh                                                  ; +0x93, 0x100019933\ntest    rax, rax                                                       ; +0x98, 0x100019938\njz      short loc_10001994A                                            ; +0x9b, 0x10001993b\nmovzx   esi, word ptr [rax+48h]                                        ; +0x9d, 0x10001993d\nmovzx   edx, byte ptr [rax+4Ah]                                        ; +0xa1, 0x100019941\nshl     edx, 10h                                                       ; +0xa5, 0x100019945\nor      edx, esi                                                       ; +0xa8, 0x100019948\nmov     rax, [rbp+var_28]                                              ; +0xaa, 0x10001994a\ntest    rax, rax                                                       ; +0xae, 0x10001994e\njz      short loc_100019960                                            ; +0xb1, 0x100019951\nmovzx   esi, word ptr [rax+48h]                                        ; +0xb3, 0x100019953\nmovzx   ecx, byte ptr [rax+4Ah]                                        ; +0xb7, 0x100019957\nshl     ecx, 10h                                                       ; +0xbb, 0x10001995b\nor      ecx, esi                                                       ; +0xbe, 0x10001995e\nmov     rdi, [rbx+5D8h]                                                ; +0xc0, 0x100019960\nmov     rsi, r14                                                       ; +0xc7, 0x100019967\ncall    HSVLiveOverlay__create                                         ; +0xca, 0x10001996a\nmov     [rbx+610h], rax                                                ; +0xcf, 0x10001996f\nlea     rcx, [rbx+1A0h]                                                ; +0xd6, 0x100019976\nmov     [rax+2C0h], rcx                                                ; +0xdd, 0x10001997d\nmov     [rax+238h], rbx                                                ; +0xe4, 0x100019984\nmov     rcx, [rax]                                                     ; +0xeb, 0x10001998b\nmov     rdi, rax                                                       ; +0xee, 0x10001998e\nadd     rsp, 20h                                                       ; +0xf1, 0x100019991\npop     rbx                                                            ; +0xf5, 0x100019995\npop     r12                                                            ; +0xf6, 0x100019996\npop     r14                                                            ; +0xf8, 0x100019998\npop     r15                                                            ; +0xfa, 0x10001999a\npop     rbp                                                            ; +0xfc, 0x10001999c\njmp     qword ptr [rcx+520h]                                           ; +0xfd, 0x10001999d\nmov     rdi, rbx                                                       ; +0x103, 0x1000199a3\ncall    EditorUI__getSelectedObjects                                   ; +0x106, 0x1000199a6\nmov     r14, rax                                                       ; +0x10b, 0x1000199ab\nmov     rax, [rbx+380h]                                                ; +0x10e, 0x1000199ae\ntest    rax, rax                                                       ; +0x115, 0x1000199b5\njz      loc_100019906                                                  ; +0x118, 0x1000199b8\nmov     rax, [rax+38h]                                                 ; +0x11e, 0x1000199be\nmov     ecx, [rax]                                                     ; +0x122, 0x1000199c2\ntest    rcx, rcx                                                       ; +0x124, 0x1000199c4\njz      loc_100019906                                                  ; +0x127, 0x1000199c7\nmov     r15, [rax+10h]                                                 ; +0x12d, 0x1000199cd\nlea     r12, [r15+rcx*8]                                               ; +0x131, 0x1000199d1\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0x135, 0x1000199d5\nnop     dword ptr [rax+00000000h]                                      ; +0x139, 0x1000199d9\nmov     rdi, [r15]                                                     ; +0x140, 0x1000199e0\ntest    rdi, rdi                                                       ; +0x143, 0x1000199e3\njz      loc_100019906                                                  ; +0x146, 0x1000199e6\ncall    GameObject__deselectObject                                     ; +0x14c, 0x1000199ec\nadd     r15, 8                                                         ; +0x151, 0x1000199f1\ncmp     r15, r12                                                       ; +0x155, 0x1000199f5\njbe     short loc_1000199E0                                            ; +0x158, 0x1000199f8\njmp     loc_100019906                                                  ; +0x15a, 0x1000199fa", "xrefs": ["EditorUI::onEditColor @ 0x1000093b8", "EditorUI::checkLiveColorSelect @ 0x1005b8fac"], "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"}