{"type": "func", "start": 3672396, "end": 3672520, "name": "EditorUI::editHSV", "pseudocode": "// \n// EditorUI::editHSV from 0x38094c to 0x3809c8 (124 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onEditColor @ 0x3809e2\n// > EditorUI::checkLiveColorSelect @ 0x380a1c\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::editHSV(EditorUI *a1)\n{\n  GameObject *m_selectedObject; // r0\n  cocos2d::CCArray *v3; // r7\n  cocos2d::CCArray *SelectedObjects; // r0\n  cocos2d::CCArray *m_selectedObjects; // r3\n  cocos2d::ccArray *data; // r2\n  cocos2d::CCObject **arr; // r6\n  cocos2d::CCObject **v8; // r5\n  GameObject *v9; // r0\n  GameObject *v10; // t1\n  HSVLiveOverlay *v11; // r0\n\n  EditorUI::closeLiveHSVSelect(a1);\n  EditorUI::closeLiveColorSelect(a1);\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    GameObject::deselectObject(m_selectedObject);\n    v3 = nullptr;\n  }\n  else\n  {\n    SelectedObjects = EditorUI::getSelectedObjects(a1);\n    m_selectedObjects = a1->m_selectedObjects;\n    v3 = SelectedObjects;\n    if ( m_selectedObjects )\n    {\n      data = m_selectedObjects->data;\n      if ( data->num )\n      {\n        arr = data->arr;\n        v8 = &arr[data->num] + 0x3FFFFFFF;\n        while ( arr <= v8 )\n        {\n          v10 = (GameObject *)*arr++;\n          v9 = v10;\n          if ( !v10 )\n            break;\n          GameObject::deselectObject(v9);\n        }\n      }\n    }\n  }\n  v11 = HSVLiveOverlay::create(a1->m_selectedObject, v3);\n  a1->m_hsvOverlay = v11;\n  v11->m_delegate = &a1->ColorSelectDelegate;\n  a1->m_hsvOverlay->m_scene = a1;\n  a1->m_hsvOverlay->show(a1->m_hsvOverlay);\n}", "assembly": "; \n; EditorUI::editHSV from 0x38094c to 0x3809c8 (124 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onEditColor @ 0x3809e2\n; > EditorUI::checkLiveColorSelect @ 0x380a1c\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.W          {R4-R8,LR}                                             ; +0x0, 0x38094c\nMOV             R4, R0                                                 ; +0x4, 0x380950\nBL              _ZN8EditorUI18closeLiveHSVSelectEv; EditorUI::closeLiveHSVSelect(void) ; +0x6, 0x380952\nMOV             R0, R4; this                                           ; +0xa, 0x380956\nBL              _ZN8EditorUI20closeLiveColorSelectEv; EditorUI::closeLiveColorSelect(void) ; +0xc, 0x380958\nLDR.W           R0, [R4,#0x374]; this                                  ; +0x10, 0x38095c\nCBZ             R0, loc_38096A                                         ; +0x14, 0x380960\nBL              _ZN10GameObject14deselectObjectEv; GameObject::deselectObject(void) ; +0x16, 0x380962\nMOVS            R7, #0                                                 ; +0x1a, 0x380966\nB               loc_38099A                                             ; +0x1c, 0x380968\nMOV             R0, R4; this                                           ; +0x1e, 0x38096a\nBL              _ZN8EditorUI18getSelectedObjectsEv; EditorUI::getSelectedObjects(void) ; +0x20, 0x38096c\nLDR.W           R3, [R4,#0x260]                                        ; +0x24, 0x380970\nMOV             R7, R0                                                 ; +0x28, 0x380974\nCBZ             R3, loc_38099A                                         ; +0x2a, 0x380976\nLDR             R2, [R3,#0x34]                                         ; +0x2c, 0x380978\nLDR             R3, [R2]                                               ; +0x2e, 0x38097a\nCBZ             R3, loc_38099A                                         ; +0x30, 0x38097c\nADD.W           R3, R3, #0x40000000                                    ; +0x32, 0x38097e\nLDR             R6, [R2,#0xC]                                          ; +0x36, 0x380982\nSUBS            R3, #1                                                 ; +0x38, 0x380984\nADD.W           R5, R6, R3,LSL#2                                       ; +0x3a, 0x380986\nCMP             R6, R5                                                 ; +0x3e, 0x38098a\nBHI             loc_38099A                                             ; +0x40, 0x38098c\nLDR.W           R0, [R6],#4; this                                      ; +0x42, 0x38098e\nCBZ             R0, loc_38099A                                         ; +0x46, 0x380992\nBL              _ZN10GameObject14deselectObjectEv; GameObject::deselectObject(void) ; +0x48, 0x380994\nB               loc_38098A                                             ; +0x4c, 0x380998\nLDR.W           R0, [R4,#0x374]; this                                  ; +0x4e, 0x38099a\nMOV             R1, R7; GameObject *                                   ; +0x52, 0x38099e\nBL              _ZN14HSVLiveOverlay6createEP10GameObjectPN7cocos2d7CCArrayE; HSVLiveOverlay::create(GameObject *,cocos2d::CCArray *) ; +0x54, 0x3809a0\nADD.W           R3, R4, #0x140                                         ; +0x58, 0x3809a4\nSTR.W           R0, [R4,#0x390]                                        ; +0x5c, 0x3809a8\nSTR.W           R3, [R0,#0x204]                                        ; +0x60, 0x3809ac\nLDR.W           R3, [R4,#0x390]                                        ; +0x64, 0x3809b0\nSTR.W           R4, [R3,#0x1C0]                                        ; +0x68, 0x3809b4\nLDR.W           R0, [R4,#0x390]                                        ; +0x6c, 0x3809b8\nPOP.W           {R4-R8,LR}                                             ; +0x70, 0x3809bc\nLDR             R3, [R0]                                               ; +0x74, 0x3809c0\nLDR.W           R3, [R3,#0x284]                                        ; +0x76, 0x3809c2\nBX              R3                                                     ; +0x7a, 0x3809c6", "xrefs": ["EditorUI::onEditColor @ 0x3809e2", "EditorUI::checkLiveColorSelect @ 0x380a1c"], "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"}