{"type": "func", "start": 4735156, "end": 4735236, "name": "EditorUI::showLiveColorSelectForMode", "pseudocode": "// \n// EditorUI::showLiveColorSelectForMode from 0x4840b4 to 0x484104 (80 bytes)\n// \n// 2 xrefs:\n// > EditorUI::showLiveColorSelectForModeSpecial @ 0x484150\n// > LevelSettingsLayer::onLiveEdit @ 0x6a8b6a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:24 +0000\n// \n\nint __fastcall EditorUI::showLiveColorSelectForMode(EditorUI *this, int a2)\n{\n  GameManager *v4; // r0\n  int v5; // r0\n  ColorSelectLiveOverlay *ColorAction; // r0\n  ColorAction *v7; // r2\n  int v8; // r0\n\n  EditorUI::closeLiveColorSelect(this);\n  v4 = EditorUI::closeLiveHSVSelect(this);\n  v5 = GameManager::sharedState(v4);\n  ColorAction = (ColorSelectLiveOverlay *)GJEffectManager::getColorAction(\n                                            *(GJEffectManager **)(*(_DWORD *)(*(_DWORD *)(v5 + 408) + 2084) + 264),\n                                            a2);\n  v8 = ColorSelectLiveOverlay::createWithActions(ColorAction, nullptr, v7);\n  *((_DWORD *)this + 256) = v8;\n  *(_DWORD *)(v8 + 568) = (char *)this + 320;\n  *(_DWORD *)(*((_DWORD *)this + 256) + 452) = this;\n  return (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 256) + 656))(*((_DWORD *)this + 256));\n}", "assembly": "; \n; EditorUI::showLiveColorSelectForMode from 0x4840b4 to 0x484104 (80 bytes)\n; \n; 2 xrefs:\n; > EditorUI::showLiveColorSelectForModeSpecial @ 0x484150\n; > LevelSettingsLayer::onLiveEdit @ 0x6a8b6a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:24 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4840b4\nMOV             R4, R0                                                 ; +0x2, 0x4840b6\nMOV             R5, R1                                                 ; +0x4, 0x4840b8\nBL              _ZN8EditorUI20closeLiveColorSelectEv; EditorUI::closeLiveColorSelect(void) ; +0x6, 0x4840ba\nMOV             R0, R4; this                                           ; +0xa, 0x4840be\nBL              _ZN8EditorUI18closeLiveHSVSelectEv; EditorUI::closeLiveHSVSelect(void) ; +0xc, 0x4840c0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x4840c4\nMOV             R1, R5; int                                            ; +0x14, 0x4840c8\nLDR.W           R3, [R0,#0x198]                                        ; +0x16, 0x4840ca\nLDR.W           R3, [R3,#0x824]                                        ; +0x1a, 0x4840ce\nLDR.W           R0, [R3,#0x108]; this                                  ; +0x1e, 0x4840d2\nBL              _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x22, 0x4840d6\nMOVS            R1, #0; ColorAction *                                  ; +0x26, 0x4840da\nBL              _ZN22ColorSelectLiveOverlay17createWithActionsEP11ColorActionS1_; ColorSelectLiveOverlay::createWithActions(ColorAction *,ColorAction *) ; +0x28, 0x4840dc\nADD.W           R3, R4, #0x140                                         ; +0x2c, 0x4840e0\nSTR.W           R0, [R4,#0x400]                                        ; +0x30, 0x4840e4\nSTR.W           R3, [R0,#0x238]                                        ; +0x34, 0x4840e8\nLDR.W           R3, [R4,#0x400]                                        ; +0x38, 0x4840ec\nSTR.W           R4, [R3,#0x1C4]                                        ; +0x3c, 0x4840f0\nLDR.W           R0, [R4,#0x400]                                        ; +0x40, 0x4840f4\nPOP.W           {R4-R6,LR}                                             ; +0x44, 0x4840f8\nLDR             R3, [R0]                                               ; +0x48, 0x4840fc\nLDR.W           R3, [R3,#0x290]                                        ; +0x4a, 0x4840fe\nBX              R3                                                     ; +0x4e, 0x484102", "xrefs": ["EditorUI::showLiveColorSelectForModeSpecial @ 0x484150", "LevelSettingsLayer::onLiveEdit @ 0x6a8b6a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}