{"type": "func", "start": 4299087020, "end": 4299087220, "name": "EditorUI::editHSV", "pseudocode": "// \n// EditorUI::editHSV from 0x1003edcac to 0x1003edd74 (200 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onEditColor @ 0x1003e4864\n// > EditorUI::checkLiveColorSelect @ 0x1003edaa4\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::editHSV(EditorUI *a1)\n{\n  HSVLiveOverlay *m_hsvOverlay; // x0\n  ColorSelectLiveOverlay *m_colorOverlay; // x0\n  GameObject *m_selectedObject; // x0\n  cocos2d::CCArray *SelectedObjects; // x20\n  HSVLiveOverlay *v6; // x0\n  cocos2d::CCArray *m_selectedObjects; // x8\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  GameObject **arr; // x21\n  unsigned __int64 v11; // x22\n\n  m_hsvOverlay = a1->m_hsvOverlay;\n  if ( m_hsvOverlay )\n  {\n    HSVLiveOverlay::closeColorSelect(m_hsvOverlay, nullptr);\n    a1->m_hsvOverlay = nullptr;\n  }\n  m_colorOverlay = a1->m_colorOverlay;\n  if ( m_colorOverlay )\n  {\n    ColorSelectLiveOverlay::closeColorSelect(m_colorOverlay, nullptr);\n    a1->m_colorOverlay = nullptr;\n  }\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    GameObject::deselectObject(m_selectedObject);\n    SelectedObjects = nullptr;\n  }\n  else\n  {\n    SelectedObjects = EditorUI::getSelectedObjects(a1);\n    m_selectedObjects = a1->m_selectedObjects;\n    if ( m_selectedObjects )\n    {\n      data = m_selectedObjects->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = (GameObject **)data->arr;\n        v11 = (unsigned __int64)&arr[num - 1];\n        do\n        {\n          if ( !*arr )\n            break;\n          GameObject::deselectObject(*arr++);\n        }\n        while ( (unsigned __int64)arr <= v11 );\n      }\n    }\n  }\n  v6 = HSVLiveOverlay::create(a1->m_selectedObject, SelectedObjects);\n  a1->m_hsvOverlay = v6;\n  v6->m_delegate = &a1->ColorSelectDelegate;\n  v6->m_scene = a1;\n  ((void (__fastcall *)(HSVLiveOverlay *))v6->show)(v6);\n}", "assembly": "; \n; EditorUI::editHSV from 0x1003edcac to 0x1003edd74 (200 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onEditColor @ 0x1003e4864\n; > EditorUI::checkLiveColorSelect @ 0x1003edaa4\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003edcac\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003edcb0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003edcb4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003edcb8\nMOV             X19, X0                                                ; +0x10, 0x1003edcbc\nLDR             X0, [X0,#0x550]                                        ; +0x14, 0x1003edcc0\nCBZ             X0, loc_1003EDCD4                                      ; +0x18, 0x1003edcc4\nMOV             X1, #0                                                 ; +0x1c, 0x1003edcc8\nBL              HSVLiveOverlay__closeColorSelect                       ; +0x20, 0x1003edccc\nSTR             XZR, [X19,#0x550]                                      ; +0x24, 0x1003edcd0\nLDR             X0, [X19,#0x548]                                       ; +0x28, 0x1003edcd4\nCBZ             X0, loc_1003EDCE8                                      ; +0x2c, 0x1003edcd8\nMOV             X1, #0                                                 ; +0x30, 0x1003edcdc\nBL              ColorSelectLiveOverlay__closeColorSelect               ; +0x34, 0x1003edce0\nSTR             XZR, [X19,#0x548]                                      ; +0x38, 0x1003edce4\nLDR             X0, [X19,#0x520]                                       ; +0x3c, 0x1003edce8\nCBZ             X0, loc_1003EDD2C                                      ; +0x40, 0x1003edcec\nBL              GameObject__deselectObject                             ; +0x44, 0x1003edcf0\nMOV             X20, #0                                                ; +0x48, 0x1003edcf4\nLDR             X0, [X19,#0x520]                                       ; +0x4c, 0x1003edcf8\nMOV             X1, X20                                                ; +0x50, 0x1003edcfc\nBL              HSVLiveOverlay__create                                 ; +0x54, 0x1003edd00\nSTR             X0, [X19,#0x550]                                       ; +0x58, 0x1003edd04\nADD             X8, X19, #0x1A0                                        ; +0x5c, 0x1003edd08\nSTR             X8, [X0,#0x2A0]                                        ; +0x60, 0x1003edd0c\nSTR             X19, [X0,#0x230]                                       ; +0x64, 0x1003edd10\nLDR             X8, [X0]                                               ; +0x68, 0x1003edd14\nLDR             X1, [X8,#0x508]                                        ; +0x6c, 0x1003edd18\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x1003edd1c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x1003edd20\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x78, 0x1003edd24\nBR              X1                                                     ; +0x7c, 0x1003edd28\nMOV             X0, X19                                                ; +0x80, 0x1003edd2c\nBL              EditorUI__getSelectedObjects                           ; +0x84, 0x1003edd30\nMOV             X20, X0                                                ; +0x88, 0x1003edd34\nLDR             X8, [X19,#0x328]                                       ; +0x8c, 0x1003edd38\nCBZ             X8, loc_1003EDCF8                                      ; +0x90, 0x1003edd3c\nLDR             X9, [X8,#0x38]                                         ; +0x94, 0x1003edd40\nLDR             W8, [X9]                                               ; +0x98, 0x1003edd44\nCBZ             W8, loc_1003EDCF8                                      ; +0x9c, 0x1003edd48\nLDR             X21, [X9,#0x10]                                        ; +0xa0, 0x1003edd4c\nADD             X8, X21, X8,LSL#3                                      ; +0xa4, 0x1003edd50\nSUB             X22, X8, #8                                            ; +0xa8, 0x1003edd54\nLDR             X0, [X21]                                              ; +0xac, 0x1003edd58\nCBZ             X0, loc_1003EDCF8                                      ; +0xb0, 0x1003edd5c\nBL              GameObject__deselectObject                             ; +0xb4, 0x1003edd60\nADD             X21, X21, #8                                           ; +0xb8, 0x1003edd64\nCMP             X21, X22                                               ; +0xbc, 0x1003edd68\nB.LS            loc_1003EDD58                                          ; +0xc0, 0x1003edd6c\nB               loc_1003EDCF8                                          ; +0xc4, 0x1003edd70", "xrefs": ["EditorUI::onEditColor @ 0x1003e4864", "EditorUI::checkLiveColorSelect @ 0x1003edaa4"], "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"}