{"type": "func", "start": 4295072672, "end": 4295072959, "name": "EditorUI::showLiveColorSelectForModeSpecial", "pseudocode": "// \n// EditorUI::showLiveColorSelectForModeSpecial from 0x100019ba0 to 0x100019cbf (287 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x1001da2ce\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::showLiveColorSelectForModeSpecial(_QWORD *a1, __int64 a2)\n{\n  unsigned int v2; // r14d\n  __int64 v4; // rdi\n  __int64 v5; // rdx\n  __int64 v6; // rdi\n  __int64 v7; // rdi\n  __int64 v8; // rax\n  __int64 ColorAction; // rax\n  _QWORD *v10; // rax\n  __int64 v12; // rax\n  unsigned int *v13; // rax\n  _QWORD *v14; // r15\n  unsigned __int64 v15; // r12\n\n  v2 = a2;\n  v4 = a1[187];\n  if ( v4 )\n  {\n    GameObject::deselectObject(v4);\n  }\n  else if ( (unsigned int)sub_1007FEF90(a1[112]) )\n  {\n    v12 = a1[112];\n    if ( v12 )\n    {\n      v13 = *(unsigned int **)(v12 + 56);\n      if ( *v13 )\n      {\n        v14 = *((_QWORD **)v13 + 2);\n        v15 = (unsigned __int64)&v14[*v13 - 1];\n        do\n        {\n          if ( !*v14 )\n            break;\n          GameObject::deselectObject(*v14++);\n        }\n        while ( (unsigned __int64)v14 <= v15 );\n      }\n    }\n  }\n  v6 = a1[193];\n  if ( v6 )\n  {\n    a2 = 0;\n    ColorSelectLiveOverlay::closeColorSelect(v6, 0);\n    a1[193] = 0;\n  }\n  v7 = a1[194];\n  if ( v7 )\n  {\n    a2 = 0;\n    HSVLiveOverlay::closeColorSelect(v7, 0);\n    a1[194] = 0;\n  }\n  v8 = GameManager::sharedState(v7, a2, v5);\n  ColorAction = GJEffectManager::getColorAction(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v8 + 552) + 3272LL) + 320LL), v2);\n  v10 = (_QWORD *)ColorSelectLiveOverlay::createWithActions(ColorAction, 0);\n  a1[193] = v10;\n  v10[92] = a1 + 52;\n  v10[71] = a1;\n  return (*(__int64 (__fastcall **)(_QWORD *))(*v10 + 1312LL))(v10);\n}", "assembly": "; \n; EditorUI::showLiveColorSelectForModeSpecial from 0x100019ba0 to 0x100019cbf (287 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x1001da2ce\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, 0x100019ba0\nmov     rbp, rsp                                                       ; +0x1, 0x100019ba1\npush    r15                                                            ; +0x4, 0x100019ba4\npush    r14                                                            ; +0x6, 0x100019ba6\npush    r12                                                            ; +0x8, 0x100019ba8\npush    rbx                                                            ; +0xa, 0x100019baa\nmov     r14d, esi                                                      ; +0xb, 0x100019bab\nmov     rbx, rdi                                                       ; +0xe, 0x100019bae\nmov     rdi, [rdi+5D8h]                                                ; +0x11, 0x100019bb1\ntest    rdi, rdi                                                       ; +0x18, 0x100019bb8\njz      loc_100019C5E                                                  ; +0x1b, 0x100019bbb\ncall    GameObject__deselectObject                                     ; +0x21, 0x100019bc1\nmov     rdi, [rbx+608h]                                                ; +0x26, 0x100019bc6\ntest    rdi, rdi                                                       ; +0x2d, 0x100019bcd\njz      short loc_100019BE4                                            ; +0x30, 0x100019bd0\nxor     esi, esi                                                       ; +0x32, 0x100019bd2\ncall    ColorSelectLiveOverlay__closeColorSelect                       ; +0x34, 0x100019bd4\nmov     qword ptr [rbx+608h], 0                                        ; +0x39, 0x100019bd9\nmov     rdi, [rbx+610h]                                                ; +0x44, 0x100019be4\ntest    rdi, rdi                                                       ; +0x4b, 0x100019beb\njz      short loc_100019C02                                            ; +0x4e, 0x100019bee\nxor     esi, esi                                                       ; +0x50, 0x100019bf0\ncall    HSVLiveOverlay__closeColorSelect                               ; +0x52, 0x100019bf2\nmov     qword ptr [rbx+610h], 0                                        ; +0x57, 0x100019bf7\ncall    GameManager__sharedState                                       ; +0x62, 0x100019c02\nmov     rax, [rax+228h]                                                ; +0x67, 0x100019c07\nmov     rax, [rax+0CC8h]                                               ; +0x6e, 0x100019c0e\nmov     rdi, [rax+140h]                                                ; +0x75, 0x100019c15\nmov     esi, r14d                                                      ; +0x7c, 0x100019c1c\ncall    GJEffectManager__getColorAction                                ; +0x7f, 0x100019c1f\nmov     rdi, rax                                                       ; +0x84, 0x100019c24\nxor     esi, esi                                                       ; +0x87, 0x100019c27\ncall    ColorSelectLiveOverlay__createWithActions                      ; +0x89, 0x100019c29\nmov     [rbx+608h], rax                                                ; +0x8e, 0x100019c2e\nlea     rcx, [rbx+1A0h]                                                ; +0x95, 0x100019c35\nmov     [rax+2E0h], rcx                                                ; +0x9c, 0x100019c3c\nmov     [rax+238h], rbx                                                ; +0xa3, 0x100019c43\nmov     rcx, [rax]                                                     ; +0xaa, 0x100019c4a\nmov     rdi, rax                                                       ; +0xad, 0x100019c4d\npop     rbx                                                            ; +0xb0, 0x100019c50\npop     r12                                                            ; +0xb1, 0x100019c51\npop     r14                                                            ; +0xb3, 0x100019c53\npop     r15                                                            ; +0xb5, 0x100019c55\npop     rbp                                                            ; +0xb7, 0x100019c57\njmp     qword ptr [rcx+520h]                                           ; +0xb8, 0x100019c58\nmov     rdi, [rbx+380h]                                                ; +0xbe, 0x100019c5e\ncall    sub_1007FEF90                                                  ; +0xc5, 0x100019c65\ntest    eax, eax                                                       ; +0xca, 0x100019c6a\njz      loc_100019BC6                                                  ; +0xcc, 0x100019c6c\nmov     rax, [rbx+380h]                                                ; +0xd2, 0x100019c72\ntest    rax, rax                                                       ; +0xd9, 0x100019c79\njz      loc_100019BC6                                                  ; +0xdc, 0x100019c7c\nmov     rax, [rax+38h]                                                 ; +0xe2, 0x100019c82\nmov     ecx, [rax]                                                     ; +0xe6, 0x100019c86\ntest    rcx, rcx                                                       ; +0xe8, 0x100019c88\njz      loc_100019BC6                                                  ; +0xeb, 0x100019c8b\nmov     r15, [rax+10h]                                                 ; +0xf1, 0x100019c91\nlea     r12, [r15+rcx*8]                                               ; +0xf5, 0x100019c95\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0xf9, 0x100019c99\nnop     dword ptr [rax]                                                ; +0xfd, 0x100019c9d\nmov     rdi, [r15]                                                     ; +0x100, 0x100019ca0\ntest    rdi, rdi                                                       ; +0x103, 0x100019ca3\njz      loc_100019BC6                                                  ; +0x106, 0x100019ca6\ncall    GameObject__deselectObject                                     ; +0x10c, 0x100019cac\nadd     r15, 8                                                         ; +0x111, 0x100019cb1\ncmp     r15, r12                                                       ; +0x115, 0x100019cb5\njbe     short loc_100019CA0                                            ; +0x118, 0x100019cb8\njmp     loc_100019BC6                                                  ; +0x11a, 0x100019cba", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x1001da2ce"], "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"}