{"type": "func", "start": 4295072960, "end": 4295073121, "name": "EditorUI::showLiveColorSelectForMode", "pseudocode": "// \n// EditorUI::showLiveColorSelectForMode from 0x100019cc0 to 0x100019d61 (161 bytes)\n// \n// 1 xrefs:\n// > LevelSettingsLayer::onLiveEdit @ 0x100257f22\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::showLiveColorSelectForMode(__int64 a1, __int64 a2, __int64 a3)\n{\n  unsigned int v3; // r14d\n  __int64 v5; // rdi\n  __int64 v6; // rdi\n  __int64 v7; // rax\n  __int64 ColorAction; // rax\n  _QWORD *v9; // rax\n\n  v3 = a2;\n  v5 = *(_QWORD *)(a1 + 1544);\n  if ( v5 )\n  {\n    a2 = 0;\n    ColorSelectLiveOverlay::closeColorSelect(v5, 0);\n    *(_QWORD *)(a1 + 1544) = 0;\n  }\n  v6 = *(_QWORD *)(a1 + 1552);\n  if ( v6 )\n  {\n    a2 = 0;\n    HSVLiveOverlay::closeColorSelect(v6, 0);\n    *(_QWORD *)(a1 + 1552) = 0;\n  }\n  v7 = GameManager::sharedState(v6, a2, a3);\n  ColorAction = GJEffectManager::getColorAction(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v7 + 552) + 3272LL) + 320LL), v3);\n  v9 = (_QWORD *)ColorSelectLiveOverlay::createWithActions(ColorAction, 0);\n  *(_QWORD *)(a1 + 1544) = v9;\n  v9[92] = a1 + 416;\n  v9[71] = a1;\n  return (*(__int64 (__fastcall **)(_QWORD *))(*v9 + 1312LL))(v9);\n}", "assembly": "; \n; EditorUI::showLiveColorSelectForMode from 0x100019cc0 to 0x100019d61 (161 bytes)\n; \n; 1 xrefs:\n; > LevelSettingsLayer::onLiveEdit @ 0x100257f22\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, 0x100019cc0\nmov     rbp, rsp                                                       ; +0x1, 0x100019cc1\npush    r14                                                            ; +0x4, 0x100019cc4\npush    rbx                                                            ; +0x6, 0x100019cc6\nmov     r14d, esi                                                      ; +0x7, 0x100019cc7\nmov     rbx, rdi                                                       ; +0xa, 0x100019cca\nmov     rdi, [rdi+608h]                                                ; +0xd, 0x100019ccd\ntest    rdi, rdi                                                       ; +0x14, 0x100019cd4\njz      short loc_100019CEB                                            ; +0x17, 0x100019cd7\nxor     esi, esi                                                       ; +0x19, 0x100019cd9\ncall    ColorSelectLiveOverlay__closeColorSelect                       ; +0x1b, 0x100019cdb\nmov     qword ptr [rbx+608h], 0                                        ; +0x20, 0x100019ce0\nmov     rdi, [rbx+610h]                                                ; +0x2b, 0x100019ceb\ntest    rdi, rdi                                                       ; +0x32, 0x100019cf2\njz      short loc_100019D09                                            ; +0x35, 0x100019cf5\nxor     esi, esi                                                       ; +0x37, 0x100019cf7\ncall    HSVLiveOverlay__closeColorSelect                               ; +0x39, 0x100019cf9\nmov     qword ptr [rbx+610h], 0                                        ; +0x3e, 0x100019cfe\ncall    GameManager__sharedState                                       ; +0x49, 0x100019d09\nmov     rax, [rax+228h]                                                ; +0x4e, 0x100019d0e\nmov     rax, [rax+0CC8h]                                               ; +0x55, 0x100019d15\nmov     rdi, [rax+140h]                                                ; +0x5c, 0x100019d1c\nmov     esi, r14d                                                      ; +0x63, 0x100019d23\ncall    GJEffectManager__getColorAction                                ; +0x66, 0x100019d26\nmov     rdi, rax                                                       ; +0x6b, 0x100019d2b\nxor     esi, esi                                                       ; +0x6e, 0x100019d2e\ncall    ColorSelectLiveOverlay__createWithActions                      ; +0x70, 0x100019d30\nmov     [rbx+608h], rax                                                ; +0x75, 0x100019d35\nlea     rcx, [rbx+1A0h]                                                ; +0x7c, 0x100019d3c\nmov     [rax+2E0h], rcx                                                ; +0x83, 0x100019d43\nmov     [rax+238h], rbx                                                ; +0x8a, 0x100019d4a\nmov     rcx, [rax]                                                     ; +0x91, 0x100019d51\nmov     rdi, rax                                                       ; +0x94, 0x100019d54\npop     rbx                                                            ; +0x97, 0x100019d57\npop     r14                                                            ; +0x98, 0x100019d58\npop     rbp                                                            ; +0x9a, 0x100019d5a\njmp     qword ptr [rcx+520h]                                           ; +0x9b, 0x100019d5b", "xrefs": ["LevelSettingsLayer::onLiveEdit @ 0x100257f22"], "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"}