{"type": "func", "start": 4595724, "end": 4595808, "name": "CustomizeObjectLayer::colorSetupClosed", "pseudocode": "// \n// CustomizeObjectLayer::colorSetupClosed from 0x46200c to 0x462060 (84 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomizeObjectLayer::colorSetupClosed @ 0x462064\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 CustomizeObjectLayer::colorSetupClosed(CustomizeObjectLayer *a1, int a2)\n{\n  int v4; // r1\n  ButtonSprite *ButtonByTag; // r0\n\n  CustomizeObjectLayer::updateSelected(a1, a2);\n  if ( (unsigned int)(a2 - 10) > 0x3DD )\n  {\n    v4 = a2;\n  }\n  else\n  {\n    a1->m_customColorChannel = a2;\n    a1->m_disableTextDelegate = 1;\n    CustomizeObjectLayer::updateCustomColorLabels(a1);\n    v4 = 1008;\n    a1->m_disableTextDelegate = 0;\n  }\n  ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v4);\n  CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);\n  CustomizeObjectLayer::updateColorSprite(a1);\n  CustomizeObjectLayer::updateChannelLabel(a1, a2);\n}", "assembly": "; \n; CustomizeObjectLayer::colorSetupClosed from 0x46200c to 0x462060 (84 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomizeObjectLayer::colorSetupClosed @ 0x462064\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x46200c\nMOV             R5, R1                                                 ; +0x2, 0x46200e\nMOV             R4, R0                                                 ; +0x4, 0x462010\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x6, 0x462012\nSUB.W           R2, R5, #0xA                                           ; +0xa, 0x462016\nMOVW            R3, #0x3DD                                             ; +0xe, 0x46201a\nCMP             R2, R3                                                 ; +0x12, 0x46201e\nBHI             loc_46203E                                             ; +0x14, 0x462020\nMOVS            R3, #1                                                 ; +0x16, 0x462022\nSTR.W           R5, [R4,#0x220]                                        ; +0x18, 0x462024\nSTRB.W          R3, [R4,#0x27A]                                        ; +0x1c, 0x462028\nMOV             R0, R4; this                                           ; +0x20, 0x46202c\nBL              _ZN20CustomizeObjectLayer23updateCustomColorLabelsEv; CustomizeObjectLayer::updateCustomColorLabels(void) ; +0x22, 0x46202e\nMOVS            R3, #0                                                 ; +0x26, 0x462032\nMOV.W           R1, #0x3F0                                             ; +0x28, 0x462034\nSTRB.W          R3, [R4,#0x27A]                                        ; +0x2c, 0x462038\nB               loc_462040                                             ; +0x30, 0x46203c\nMOV             R1, R5; int                                            ; +0x32, 0x46203e\nMOV             R0, R4; this                                           ; +0x34, 0x462040\nBL              _ZN20CustomizeObjectLayer14getButtonByTagEi; CustomizeObjectLayer::getButtonByTag(int) ; +0x36, 0x462042\nMOV             R1, R0; ButtonSprite *                                 ; +0x3a, 0x462046\nMOV             R0, R4; this                                           ; +0x3c, 0x462048\nBL              _ZN20CustomizeObjectLayer17highlightSelectedEP12ButtonSprite; CustomizeObjectLayer::highlightSelected(ButtonSprite *) ; +0x3e, 0x46204a\nMOV             R0, R4; this                                           ; +0x42, 0x46204e\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x44, 0x462050\nMOV             R0, R4; this                                           ; +0x48, 0x462054\nMOV             R1, R5; GJSpecialColorSelect *                         ; +0x4a, 0x462056\nPOP.W           {R3-R5,LR}                                             ; +0x4c, 0x462058\nB.W             _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x50, 0x46205c", "xrefs": ["`non-virtual thunk to'CustomizeObjectLayer::colorSetupClosed @ 0x462064"], "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"}