{"type": "func", "start": 5761804, "end": 5761906, "name": "CustomizeObjectLayer::onNextColorChannel", "pseudocode": "// \n// CustomizeObjectLayer::onNextColorChannel from 0x57eb0c to 0x57eb72 (102 bytes)\n// \n// 0 xrefs:\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::onNextColorChannel(CustomizeObjectLayer *this, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  int NextColorChannel; // r0\n  GJSpecialColorSelect *v5; // r5\n  int v6; // r6\n  ButtonSprite *ButtonByTag; // r0\n\n  v3 = GameManager::sharedState(this);\n  NextColorChannel = LevelEditorLayer::getNextColorChannel(*(LevelEditorLayer **)(v3 + 408));\n  v5 = (GJSpecialColorSelect *)NextColorChannel;\n  if ( (unsigned int)(NextColorChannel - 10) > 0x3DD )\n  {\n    v6 = NextColorChannel;\n  }\n  else\n  {\n    *((_DWORD *)this + 141) = NextColorChannel;\n    *((_BYTE *)this + 654) = 1;\n    CustomizeObjectLayer::updateCustomColorLabels(this);\n    v6 = 1008;\n    *((_BYTE *)this + 654) = 0;\n  }\n  CustomizeObjectLayer::updateSelected(this, (int)v5);\n  ButtonByTag = (ButtonSprite *)CustomizeObjectLayer::getButtonByTag((cocos2d::CCArray **)this, v6);\n  CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, ButtonByTag);\n  CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)this);\n  return CustomizeObjectLayer::updateChannelLabel(this, v5);\n}", "assembly": "; \n; CustomizeObjectLayer::onNextColorChannel from 0x57eb0c to 0x57eb72 (102 bytes)\n; \n; 0 xrefs:\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            {R4-R6,LR}                                             ; +0x0, 0x57eb0c\nMOV             R4, R0                                                 ; +0x2, 0x57eb0e\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4, 0x57eb10\nLDR.W           R0, [R0,#0x198]; this                                  ; +0x8, 0x57eb14\nBL              _ZN16LevelEditorLayer19getNextColorChannelEv; LevelEditorLayer::getNextColorChannel(void) ; +0xc, 0x57eb18\nMOVW            R3, #0x3DD                                             ; +0x10, 0x57eb1c\nSUB.W           R2, R0, #0xA                                           ; +0x14, 0x57eb20\nMOV             R5, R0                                                 ; +0x18, 0x57eb24\nCMP             R2, R3                                                 ; +0x1a, 0x57eb26\nBHI             loc_57EB46                                             ; +0x1c, 0x57eb28\nMOVS            R3, #1                                                 ; +0x1e, 0x57eb2a\nSTR.W           R0, [R4,#0x234]                                        ; +0x20, 0x57eb2c\nSTRB.W          R3, [R4,#0x28E]                                        ; +0x24, 0x57eb30\nMOV             R0, R4; this                                           ; +0x28, 0x57eb34\nBL              _ZN20CustomizeObjectLayer23updateCustomColorLabelsEv; CustomizeObjectLayer::updateCustomColorLabels(void) ; +0x2a, 0x57eb36\nMOV.W           R6, #0x3F0                                             ; +0x2e, 0x57eb3a\nMOVS            R3, #0                                                 ; +0x32, 0x57eb3e\nSTRB.W          R3, [R4,#0x28E]                                        ; +0x34, 0x57eb40\nB               loc_57EB48                                             ; +0x38, 0x57eb44\nMOV             R6, R0                                                 ; +0x3a, 0x57eb46\nMOV             R0, R4; this                                           ; +0x3c, 0x57eb48\nMOV             R1, R5; int                                            ; +0x3e, 0x57eb4a\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x40, 0x57eb4c\nMOV             R1, R6; int                                            ; +0x44, 0x57eb50\nMOV             R0, R4; this                                           ; +0x46, 0x57eb52\nBL              _ZN20CustomizeObjectLayer14getButtonByTagEi; CustomizeObjectLayer::getButtonByTag(int) ; +0x48, 0x57eb54\nMOV             R1, R0; ButtonSprite *                                 ; +0x4c, 0x57eb58\nMOV             R0, R4; this                                           ; +0x4e, 0x57eb5a\nBL              _ZN20CustomizeObjectLayer17highlightSelectedEP12ButtonSprite; CustomizeObjectLayer::highlightSelected(ButtonSprite *) ; +0x50, 0x57eb5c\nMOV             R0, R4; this                                           ; +0x54, 0x57eb60\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x56, 0x57eb62\nMOV             R0, R4; this                                           ; +0x5a, 0x57eb66\nMOV             R1, R5; GJSpecialColorSelect *                         ; +0x5c, 0x57eb68\nPOP.W           {R4-R6,LR}                                             ; +0x5e, 0x57eb6a\nB.W             _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x62, 0x57eb6e", "xrefs": [], "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"}