{"type": "func", "start": 5369884688, "end": 5369885162, "name": "EditorUI::editHSV", "pseudocode": "// \n// EditorUI::editHSV from 0x14011f010 to 0x14011f1ea (474 bytes)\n// \n// 3 xrefs:\n// > EditorUI::checkLiveColorSelect @ 0x140110668\n// > EditorUI::onEditColor @ 0x14011eac9\n// > <???> @ 0x1406c951c\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\n// Hidden C++ exception states: #wind=1\nvoid EditorUI::editHSV(EditorUI *a1)\n{\n  cocos2d::CCArray *SelectedObjects; // rbp\n  GameObject *m_selectedObject; // rcx\n  cocos2d::CCArray *m_selectedObjects; // rcx\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rcx\n  GameObject **arr; // rbx\n  GameObject **i; // rdi\n  GameObject *v9; // rcx\n  GameObject *v10; // rbx\n  HSVLiveOverlay *v11; // rdi\n\n  EditorUI::closeLiveHSVSelect(a1);\n  EditorUI::closeLiveColorSelect(a1);\n  SelectedObjects = nullptr;\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    m_selectedObject->m_isSelected = 0;\n    GameObject::updateObjectEditorColor(m_selectedObject);\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        for ( i = &arr[num - 1]; arr <= i; ++arr )\n        {\n          v9 = *arr;\n          if ( !*arr )\n            break;\n          v9->m_isSelected = 0;\n          GameObject::updateObjectEditorColor(v9);\n        }\n      }\n    }\n  }\n  v10 = a1->m_selectedObject;\n  v11 = (HSVLiveOverlay *)operator new(0x2C0u);\n  FLAlertLayer::FLAlertLayer(v11);\n  v11->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (HSVLiveOverlay_vtbl *)&HSVLiveOverlay::`vftable';\n  v11->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&HSVLiveOverlay::`vftable';\n  v11->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&HSVLiveOverlay::`vftable';\n  v11->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&HSVLiveOverlay::`vftable';\n  v11->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&HSVLiveOverlay::`vftable';\n  v11->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&HSVLiveOverlay::`vftable';\n  v11->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&HSVLiveOverlay::`vftable';\n  v11->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&HSVLiveOverlay::`vftable';\n  v11->HSVWidgetDelegate::__vftable = (HSVWidgetDelegate_vtbl *)&HSVLiveOverlay::`vftable';\n  v11->m_object = nullptr;\n  v11->m_objects = nullptr;\n  v11->m_unkArray = nullptr;\n  v11->m_delegate = nullptr;\n  v11->m_activeTab = -1;\n  v11->m_widget = nullptr;\n  *(_WORD *)&v11->m_unkBool1 = 0;\n  v11->m_unkBool3 = 0;\n  if ( HSVLiveOverlay::init(v11, v10, SelectedObjects) )\n  {\n    cocos2d::CCObject::autorelease(v11);\n  }\n  else\n  {\n    ((void (__fastcall *)(HSVLiveOverlay *, __int64))v11->~HSVLiveOverlay)(v11, 1);\n    v11 = nullptr;\n  }\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 0x14011f010 to 0x14011f1ea (474 bytes)\n; \n; 3 xrefs:\n; > EditorUI::checkLiveColorSelect @ 0x140110668\n; > EditorUI::onEditColor @ 0x14011eac9\n; > <???> @ 0x1406c951c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14011f010\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14011f015\npush    rsi                                                            ; +0xa, 0x14011f01a\npush    rdi                                                            ; +0xb, 0x14011f01b\npush    r14                                                            ; +0xc, 0x14011f01c\nsub     rsp, 20h                                                       ; +0xe, 0x14011f01e\nmov     rsi, rcx                                                       ; +0x12, 0x14011f022\ncall    EditorUI__closeLiveHSVSelect                                   ; +0x15, 0x14011f025\nmov     rcx, rsi                                                       ; +0x1a, 0x14011f02a\ncall    EditorUI__closeLiveColorSelect                                 ; +0x1d, 0x14011f02d\nxor     r14d, r14d                                                     ; +0x22, 0x14011f032\nmov     ebp, r14d                                                      ; +0x25, 0x14011f035\nmov     rcx, [rsi+538h]                                                ; +0x28, 0x14011f038\ntest    rcx, rcx                                                       ; +0x2f, 0x14011f03f\njz      short loc_14011F052                                            ; +0x32, 0x14011f042\nmov     [rcx+475h], bpl                                                ; +0x34, 0x14011f044\ncall    GameObject__updateObjectEditorColor                            ; +0x3b, 0x14011f04b\njmp     short loc_14011F0A1                                            ; +0x40, 0x14011f050\nmov     rcx, rsi                                                       ; +0x42, 0x14011f052\ncall    EditorUI__getSelectedObjects                                   ; +0x45, 0x14011f055\nmov     rbp, rax                                                       ; +0x4a, 0x14011f05a\nmov     rcx, [rsi+340h]                                                ; +0x4d, 0x14011f05d\ntest    rcx, rcx                                                       ; +0x54, 0x14011f064\njz      short loc_14011F0A1                                            ; +0x57, 0x14011f067\nmov     rbx, [rcx+38h]                                                 ; +0x59, 0x14011f069\nmov     ecx, [rbx]                                                     ; +0x5d, 0x14011f06d\ntest    ecx, ecx                                                       ; +0x5f, 0x14011f06f\njz      short loc_14011F0A1                                            ; +0x61, 0x14011f071\nmov     rbx, [rbx+10h]                                                 ; +0x63, 0x14011f073\nlea     rdi, [rcx-1]                                                   ; +0x67, 0x14011f077\nlea     rdi, [rbx+rdi*8]                                               ; +0x6b, 0x14011f07b\ncmp     rbx, rdi                                                       ; +0x6f, 0x14011f07f\nja      short loc_14011F0A1                                            ; +0x72, 0x14011f082\nmov     rcx, [rbx]                                                     ; +0x74, 0x14011f084\ntest    rcx, rcx                                                       ; +0x77, 0x14011f087\njz      short loc_14011F0A1                                            ; +0x7a, 0x14011f08a\nmov     [rcx+475h], r14b                                               ; +0x7c, 0x14011f08c\ncall    GameObject__updateObjectEditorColor                            ; +0x83, 0x14011f093\nadd     rbx, 8                                                         ; +0x88, 0x14011f098\ncmp     rbx, rdi                                                       ; +0x8c, 0x14011f09c\njbe     short loc_14011F084                                            ; +0x8f, 0x14011f09f\nmov     rbx, [rsi+538h]                                                ; +0x91, 0x14011f0a1\nmov     ecx, 2C0h; Size                                                ; +0x98, 0x14011f0a8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9d, 0x14011f0ad\nmov     rdi, rax                                                       ; +0xa2, 0x14011f0b2\nmov     [rsp+38h+arg_0], rax                                           ; +0xa5, 0x14011f0b5\nmov     rcx, rax                                                       ; +0xaa, 0x14011f0ba\ncall    FLAlertLayer__FLAlertLayer                                     ; +0xad, 0x14011f0bd\nlea     rax, ??_7HSVLiveOverlay@@6B@; const HSVLiveOverlay::`vftable'  ; +0xb2, 0x14011f0c2\nmov     [rdi], rax                                                     ; +0xb9, 0x14011f0c9\nlea     rax, ??_7HSVLiveOverlay@@6B@_0; const HSVLiveOverlay::`vftable' ; +0xbc, 0x14011f0cc\nmov     [rdi+140h], rax                                                ; +0xc3, 0x14011f0d3\nlea     rax, ??_7HSVLiveOverlay@@6B@_1; const HSVLiveOverlay::`vftable' ; +0xca, 0x14011f0da\nmov     [rdi+148h], rax                                                ; +0xd1, 0x14011f0e1\nlea     rax, ??_7HSVLiveOverlay@@6B@_2; const HSVLiveOverlay::`vftable' ; +0xd8, 0x14011f0e8\nmov     [rdi+150h], rax                                                ; +0xdf, 0x14011f0ef\nlea     rax, ??_7HSVLiveOverlay@@6B@_3; const HSVLiveOverlay::`vftable' ; +0xe6, 0x14011f0f6\nmov     [rdi+158h], rax                                                ; +0xed, 0x14011f0fd\nlea     rax, ??_7HSVLiveOverlay@@6B@_4; const HSVLiveOverlay::`vftable' ; +0xf4, 0x14011f104\nmov     [rdi+160h], rax                                                ; +0xfb, 0x14011f10b\nlea     rax, ??_7HSVLiveOverlay@@6B@_5; const HSVLiveOverlay::`vftable' ; +0x102, 0x14011f112\nmov     [rdi+198h], rax                                                ; +0x109, 0x14011f119\nlea     rax, ??_7HSVLiveOverlay@@6B@_6; const HSVLiveOverlay::`vftable' ; +0x110, 0x14011f120\nmov     [rdi+1B0h], rax                                                ; +0x117, 0x14011f127\nlea     rax, ??_7HSVLiveOverlay@@6B@_7; const HSVLiveOverlay::`vftable' ; +0x11e, 0x14011f12e\nmov     [rdi+278h], rax                                                ; +0x125, 0x14011f135\nmov     [rdi+280h], r14                                                ; +0x12c, 0x14011f13c\nmov     [rdi+288h], r14                                                ; +0x133, 0x14011f143\nmov     [rdi+298h], r14                                                ; +0x13a, 0x14011f14a\nmov     [rdi+2A0h], r14                                                ; +0x141, 0x14011f151\nmov     dword ptr [rdi+2A8h], 0FFFFFFFFh                               ; +0x148, 0x14011f158\nmov     [rdi+2B0h], r14                                                ; +0x152, 0x14011f162\nmov     word ptr [rdi+2B8h], 0                                         ; +0x159, 0x14011f169\nmov     byte ptr [rdi+2BAh], 0                                         ; +0x162, 0x14011f172\nmov     r8, rbp                                                        ; +0x169, 0x14011f179\nmov     rdx, rbx                                                       ; +0x16c, 0x14011f17c\nmov     rcx, rdi                                                       ; +0x16f, 0x14011f17f\ncall    HSVLiveOverlay__init                                           ; +0x172, 0x14011f182\nmov     rcx, rdi                                                       ; +0x177, 0x14011f187\ntest    al, al                                                         ; +0x17a, 0x14011f18a\njz      short loc_14011F196                                            ; +0x17c, 0x14011f18c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x17e, 0x14011f18e\njmp     short loc_14011F1A4                                            ; +0x184, 0x14011f194\nmov     rax, [rdi]                                                     ; +0x186, 0x14011f196\nmov     edx, 1                                                         ; +0x189, 0x14011f199\ncall    qword ptr [rax+8]                                              ; +0x18e, 0x14011f19e\nmov     rdi, r14                                                       ; +0x191, 0x14011f1a1\nmov     [rsi+568h], rdi                                                ; +0x194, 0x14011f1a4\nlea     rax, [rsi+1A0h]                                                ; +0x19b, 0x14011f1ab\nmov     [rdi+2A0h], rax                                                ; +0x1a2, 0x14011f1b2\nmov     rax, [rsi+568h]                                                ; +0x1a9, 0x14011f1b9\nmov     [rax+230h], rsi                                                ; +0x1b0, 0x14011f1c0\nmov     rcx, [rsi+568h]                                                ; +0x1b7, 0x14011f1c7\nmov     rax, [rcx]                                                     ; +0x1be, 0x14011f1ce\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x1c1, 0x14011f1d1\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x1c6, 0x14011f1d6\nadd     rsp, 20h                                                       ; +0x1cb, 0x14011f1db\npop     r14                                                            ; +0x1cf, 0x14011f1df\npop     rdi                                                            ; +0x1d1, 0x14011f1e1\npop     rsi                                                            ; +0x1d2, 0x14011f1e2\njmp     qword ptr [rax+410h]                                           ; +0x1d3, 0x14011f1e3", "xrefs": ["EditorUI::checkLiveColorSelect @ 0x140110668", "EditorUI::onEditColor @ 0x14011eac9", "<???> @ 0x1406c951c"], "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"}