{"type": "func", "start": 5370536656, "end": 5370536849, "name": "EditorUI::showLiveColorSelectForMode", "pseudocode": "// \n// EditorUI::showLiveColorSelectForMode from 0x1401be2d0 to 0x1401be391 (193 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x14014209e\n// > LevelSettingsLayer::onLiveEdit @ 0x14045ab9d\n// > <???> @ 0x14091a4bc\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 11:28:02 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EditorUI::showLiveColorSelectForMode(__int64 a1, unsigned int a2)\n{\n  __int64 v4; // rax\n  __int64 ColorAction; // rax\n  _QWORD *v6; // rax\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  EditorUI::closeLiveColorSelect(a1);\n  EditorUI::closeLiveHSVSelect(a1);\n  v4 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v8 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v4 = qword_14090BFD0;\n  }\n  ColorAction = GJEffectManager::getColorAction(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v4 + 568) + 3528LL) + 320LL), a2);\n  v6 = ColorSelectLiveOverlay::create(ColorAction, 0, 0);\n  *(_QWORD *)(a1 + 1616) = v6;\n  v6[92] = a1 + 416;\n  *(_QWORD *)(*(_QWORD *)(a1 + 1616) + 568LL) = a1;\n  return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1616) + 1064LL))(*(_QWORD *)(a1 + 1616));\n}", "assembly": "; \n; EditorUI::showLiveColorSelectForMode from 0x1401be2d0 to 0x1401be391 (193 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x14014209e\n; > LevelSettingsLayer::onLiveEdit @ 0x14045ab9d\n; > <???> @ 0x14091a4bc\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 11:28:02 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401be2d0\npush    rdi                                                            ; +0x5, 0x1401be2d5\nsub     rsp, 20h                                                       ; +0x6, 0x1401be2d6\nmov     edi, edx                                                       ; +0xa, 0x1401be2da\nmov     rbx, rcx                                                       ; +0xc, 0x1401be2dc\ncall    EditorUI__closeLiveColorSelect                                 ; +0xf, 0x1401be2df\nmov     rcx, rbx                                                       ; +0x14, 0x1401be2e4\ncall    EditorUI__closeLiveHSVSelect                                   ; +0x17, 0x1401be2e7\nmov     rax, cs:qword_14090BFD0                                        ; +0x1c, 0x1401be2ec\ntest    rax, rax                                                       ; +0x23, 0x1401be2f3\njnz     short loc_1401BE32A                                            ; +0x26, 0x1401be2f6\nmov     ecx, 6E8h; Size                                                ; +0x28, 0x1401be2f8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x1401be2fd\nmov     [rsp+28h+arg_0], rax                                           ; +0x32, 0x1401be302\nmov     rcx, rax                                                       ; +0x37, 0x1401be307\ncall    GameManager__GameManager                                       ; +0x3a, 0x1401be30a\nnop                                                                    ; +0x3f, 0x1401be30f\nmov     cs:qword_14090BFD0, rax                                        ; +0x40, 0x1401be310\nmov     rcx, [rax]                                                     ; +0x47, 0x1401be317\nmov     rdx, [rcx+48h]                                                 ; +0x4a, 0x1401be31a\nmov     rcx, rax                                                       ; +0x4e, 0x1401be31e\ncall    rdx                                                            ; +0x51, 0x1401be321\nmov     rax, cs:qword_14090BFD0                                        ; +0x53, 0x1401be323\nmov     rax, [rax+238h]                                                ; +0x5a, 0x1401be32a\nmov     rcx, [rax+0DC8h]                                               ; +0x61, 0x1401be331\nmov     edx, edi                                                       ; +0x68, 0x1401be338\nmov     rcx, [rcx+140h]                                                ; +0x6a, 0x1401be33a\ncall    GJEffectManager__getColorAction                                ; +0x71, 0x1401be341\nxor     r8d, r8d                                                       ; +0x76, 0x1401be346\nxor     edx, edx                                                       ; +0x79, 0x1401be349\nmov     rcx, rax                                                       ; +0x7b, 0x1401be34b\ncall    ColorSelectLiveOverlay__create                                 ; +0x7e, 0x1401be34e\nmov     [rbx+650h], rax                                                ; +0x83, 0x1401be353\nlea     rcx, [rbx+1A0h]                                                ; +0x8a, 0x1401be35a\nmov     [rax+2E0h], rcx                                                ; +0x91, 0x1401be361\nmov     rax, [rbx+650h]                                                ; +0x98, 0x1401be368\nmov     [rax+238h], rbx                                                ; +0x9f, 0x1401be36f\nmov     rcx, [rbx+650h]                                                ; +0xa6, 0x1401be376\nmov     rax, [rcx]                                                     ; +0xad, 0x1401be37d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb0, 0x1401be380\nadd     rsp, 20h                                                       ; +0xb5, 0x1401be385\npop     rdi                                                            ; +0xb9, 0x1401be389\njmp     qword ptr [rax+428h]                                           ; +0xba, 0x1401be38a", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x14014209e", "LevelSettingsLayer::onLiveEdit @ 0x14045ab9d", "<???> @ 0x14091a4bc"], "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"}