{"type": "func", "start": 4299119640, "end": 4299119768, "name": "EditorUI::showLiveColorSelectForMode", "pseudocode": "// \n// EditorUI::showLiveColorSelectForMode from 0x1003f5c18 to 0x1003f5c98 (128 bytes)\n// \n// 2 xrefs:\n// > LevelSettingsLayer::onLiveEdit @ 0x10017b474\n// > EditorUI::showLiveColorSelectForModeSpecial @ 0x1003f5bcc\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 __fastcall EditorUI::showLiveColorSelectForMode(EditorUI *a1, int a2)\n{\n  ColorSelectLiveOverlay *m_colorOverlay; // x0\n  HSVLiveOverlay *m_hsvOverlay; // x0\n  GameManager *v6; // x0\n  ColorAction *ColorAction; // x0\n  ColorSelectLiveOverlay *v8; // x0\n\n  m_colorOverlay = a1->m_colorOverlay;\n  if ( m_colorOverlay )\n  {\n    ColorSelectLiveOverlay::closeColorSelect(m_colorOverlay, nullptr);\n    a1->m_colorOverlay = nullptr;\n  }\n  m_hsvOverlay = a1->m_hsvOverlay;\n  if ( m_hsvOverlay )\n  {\n    HSVLiveOverlay::closeColorSelect(m_hsvOverlay, nullptr);\n    a1->m_hsvOverlay = nullptr;\n  }\n  v6 = GameManager::sharedState();\n  ColorAction = GJEffectManager::getColorAction(v6->m_levelEditorLayer->m_levelSettings->m_effectManager, a2);\n  v8 = ColorSelectLiveOverlay::createWithActions(ColorAction, nullptr);\n  a1->m_colorOverlay = v8;\n  v8->m_delegate = &a1->ColorSelectDelegate;\n  v8->m_scene = a1;\n  ((void (__fastcall *)(ColorSelectLiveOverlay *))v8->show)(v8);\n}", "assembly": "; \n; EditorUI::showLiveColorSelectForMode from 0x1003f5c18 to 0x1003f5c98 (128 bytes)\n; \n; 2 xrefs:\n; > LevelSettingsLayer::onLiveEdit @ 0x10017b474\n; > EditorUI::showLiveColorSelectForModeSpecial @ 0x1003f5bcc\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003f5c18\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003f5c1c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003f5c20\nMOV             X20, X1                                                ; +0xc, 0x1003f5c24\nMOV             X19, X0                                                ; +0x10, 0x1003f5c28\nLDR             X0, [X0,#0x548]                                        ; +0x14, 0x1003f5c2c\nCBZ             X0, loc_1003F5C40                                      ; +0x18, 0x1003f5c30\nMOV             X1, #0                                                 ; +0x1c, 0x1003f5c34\nBL              ColorSelectLiveOverlay__closeColorSelect               ; +0x20, 0x1003f5c38\nSTR             XZR, [X19,#0x548]                                      ; +0x24, 0x1003f5c3c\nLDR             X0, [X19,#0x550]                                       ; +0x28, 0x1003f5c40\nCBZ             X0, loc_1003F5C54                                      ; +0x2c, 0x1003f5c44\nMOV             X1, #0                                                 ; +0x30, 0x1003f5c48\nBL              HSVLiveOverlay__closeColorSelect                       ; +0x34, 0x1003f5c4c\nSTR             XZR, [X19,#0x550]                                      ; +0x38, 0x1003f5c50\nBL              GameManager__sharedState                               ; +0x3c, 0x1003f5c54\nLDR             X8, [X0,#0x200]                                        ; +0x40, 0x1003f5c58\nLDR             X8, [X8,#0xCD8]                                        ; +0x44, 0x1003f5c5c\nLDR             X0, [X8,#0x140]                                        ; +0x48, 0x1003f5c60\nMOV             X1, X20                                                ; +0x4c, 0x1003f5c64\nBL              GJEffectManager__getColorAction                        ; +0x50, 0x1003f5c68\nMOV             X1, #0                                                 ; +0x54, 0x1003f5c6c\nBL              ColorSelectLiveOverlay__createWithActions              ; +0x58, 0x1003f5c70\nSTR             X0, [X19,#0x548]                                       ; +0x5c, 0x1003f5c74\nADD             X8, X19, #0x1A0                                        ; +0x60, 0x1003f5c78\nSTR             X8, [X0,#0x2C0]                                        ; +0x64, 0x1003f5c7c\nSTR             X19, [X0,#0x230]                                       ; +0x68, 0x1003f5c80\nLDR             X8, [X0]                                               ; +0x6c, 0x1003f5c84\nLDR             X1, [X8,#0x508]                                        ; +0x70, 0x1003f5c88\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x1003f5c8c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x1003f5c90\nBR              X1                                                     ; +0x7c, 0x1003f5c94", "xrefs": ["LevelSettingsLayer::onLiveEdit @ 0x10017b474", "EditorUI::showLiveColorSelectForModeSpecial @ 0x1003f5bcc"], "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"}