{"type": "func", "start": 5761712, "end": 5761796, "name": "CustomizeObjectLayer::colorSetupClosed", "pseudocode": "// \n// CustomizeObjectLayer::colorSetupClosed from 0x57eab0 to 0x57eb04 (84 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomizeObjectLayer::colorSetupClosed @ 0x57eb08\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:52:51 +0000\n// \n\nint __fastcall CustomizeObjectLayer::colorSetupClosed(CustomizeObjectLayer *this, GJSpecialColorSelect *a2)\n{\n  GJSpecialColorSelect *v4; // r1\n  ButtonSprite *ButtonByTag; // r0\n\n  CustomizeObjectLayer::updateSelected(this, (int)a2);\n  if ( (unsigned int)a2 - 10 > 0x3DD )\n  {\n    v4 = a2;\n  }\n  else\n  {\n    *((_DWORD *)this + 141) = a2;\n    *((_BYTE *)this + 654) = 1;\n    CustomizeObjectLayer::updateCustomColorLabels(this);\n    v4 = (GJSpecialColorSelect *)(&stru_3EC + 4);\n    *((_BYTE *)this + 654) = 0;\n  }\n  ButtonByTag = (ButtonSprite *)CustomizeObjectLayer::getButtonByTag((cocos2d::CCArray **)this, (int)v4);\n  CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, ButtonByTag);\n  CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)this);\n  return CustomizeObjectLayer::updateChannelLabel(this, a2);\n}", "assembly": "; \n; CustomizeObjectLayer::colorSetupClosed from 0x57eab0 to 0x57eb04 (84 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomizeObjectLayer::colorSetupClosed @ 0x57eb08\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:52:51 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x57eab0\nMOV             R5, R1                                                 ; +0x2, 0x57eab2\nMOV             R4, R0                                                 ; +0x4, 0x57eab4\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x6, 0x57eab6\nSUB.W           R2, R5, #0xA                                           ; +0xa, 0x57eaba\nMOVW            R3, #0x3DD                                             ; +0xe, 0x57eabe\nCMP             R2, R3                                                 ; +0x12, 0x57eac2\nBHI             loc_57EAE2                                             ; +0x14, 0x57eac4\nMOVS            R3, #1                                                 ; +0x16, 0x57eac6\nSTR.W           R5, [R4,#0x234]                                        ; +0x18, 0x57eac8\nSTRB.W          R3, [R4,#0x28E]                                        ; +0x1c, 0x57eacc\nMOV             R0, R4; this                                           ; +0x20, 0x57ead0\nBL              _ZN20CustomizeObjectLayer23updateCustomColorLabelsEv; CustomizeObjectLayer::updateCustomColorLabels(void) ; +0x22, 0x57ead2\nMOVS            R3, #0                                                 ; +0x26, 0x57ead6\nMOV.W           R1, #0x3F0                                             ; +0x28, 0x57ead8\nSTRB.W          R3, [R4,#0x28E]                                        ; +0x2c, 0x57eadc\nB               loc_57EAE4                                             ; +0x30, 0x57eae0\nMOV             R1, R5; int                                            ; +0x32, 0x57eae2\nMOV             R0, R4; this                                           ; +0x34, 0x57eae4\nBL              _ZN20CustomizeObjectLayer14getButtonByTagEi; CustomizeObjectLayer::getButtonByTag(int) ; +0x36, 0x57eae6\nMOV             R1, R0; ButtonSprite *                                 ; +0x3a, 0x57eaea\nMOV             R0, R4; this                                           ; +0x3c, 0x57eaec\nBL              _ZN20CustomizeObjectLayer17highlightSelectedEP12ButtonSprite; CustomizeObjectLayer::highlightSelected(ButtonSprite *) ; +0x3e, 0x57eaee\nMOV             R0, R4; this                                           ; +0x42, 0x57eaf2\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x44, 0x57eaf4\nMOV             R0, R4; this                                           ; +0x48, 0x57eaf8\nMOV             R1, R5; GJSpecialColorSelect *                         ; +0x4a, 0x57eafa\nPOP.W           {R3-R5,LR}                                             ; +0x4c, 0x57eafc\nB.W             _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x50, 0x57eb00", "xrefs": ["`non-virtual thunk to'CustomizeObjectLayer::colorSetupClosed @ 0x57eb08"], "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"}