{"type": "func", "start": 8657052, "end": 8657200, "name": "CustomizeObjectLayer::onNextColorChannel", "pseudocode": "// \n// CustomizeObjectLayer::onNextColorChannel from 0x84189c to 0x841930 (148 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x3c720\n// > CustomizeObjectLayer::init @ 0x843174\n// > <???> @ 0x1229eb0\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::onNextColorChannel(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // x0\n  int NextColorChannel; // w20\n  int v5; // w21\n  ButtonSprite *ButtonByTag; // x0\n\n  v3 = GameManager::sharedState();\n  NextColorChannel = LevelEditorLayer::getNextColorChannel(v3->m_levelEditorLayer);\n  v5 = NextColorChannel;\n  if ( (unsigned int)(NextColorChannel - 10) <= 0x3DD )\n  {\n    a1->m_customColorChannel = NextColorChannel;\n    a1->m_disableTextDelegate = 1;\n    v5 = 1008;\n    CustomizeObjectLayer::updateCustomColorLabels(a1);\n    a1->m_disableTextDelegate = 0;\n  }\n  CustomizeObjectLayer::updateSelected(a1, NextColorChannel);\n  ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v5);\n  CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);\n  CustomizeObjectLayer::updateColorSprite(a1);\n  CustomizeObjectLayer::updateChannelLabel(a1, NextColorChannel);\n}", "assembly": "; \n; CustomizeObjectLayer::onNextColorChannel from 0x84189c to 0x841930 (148 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x3c720\n; > CustomizeObjectLayer::init @ 0x843174\n; > <???> @ 0x1229eb0\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x84189c\nMOV             X29, SP                                                ; +0x4, 0x8418a0\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x8418a4\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x8418a8\nMOV             X19, X0                                                ; +0x10, 0x8418ac\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x8418b0\nLDR             X0, [X0,#0x1E0]; this                                  ; +0x18, 0x8418b4\nBL              _ZN16LevelEditorLayer19getNextColorChannelEv; LevelEditorLayer::getNextColorChannel(void) ; +0x1c, 0x8418b8\nMOV             W20, W0                                                ; +0x20, 0x8418bc\nSUB             W0, W0, #0xA                                           ; +0x24, 0x8418c0\nMOV             W21, W20                                               ; +0x28, 0x8418c4\nCMP             W0, #0x3DD                                             ; +0x2c, 0x8418c8\nB.HI            loc_8418EC                                             ; +0x30, 0x8418cc\nMOV             W1, #1                                                 ; +0x34, 0x8418d0\nSTR             W20, [X19,#0x2D4]                                      ; +0x38, 0x8418d4\nMOV             X0, X19; this                                          ; +0x3c, 0x8418d8\nSTRB            W1, [X19,#0x382]                                       ; +0x40, 0x8418dc\nMOV             W21, #0x3F0                                            ; +0x44, 0x8418e0\nBL              _ZN20CustomizeObjectLayer23updateCustomColorLabelsEv; CustomizeObjectLayer::updateCustomColorLabels(void) ; +0x48, 0x8418e4\nSTRB            WZR, [X19,#0x382]                                      ; +0x4c, 0x8418e8\nMOV             X0, X19; this                                          ; +0x50, 0x8418ec\nMOV             W1, W20; int                                           ; +0x54, 0x8418f0\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x58, 0x8418f4\nMOV             W1, W21; int                                           ; +0x5c, 0x8418f8\nMOV             X0, X19; this                                          ; +0x60, 0x8418fc\nBL              _ZN20CustomizeObjectLayer14getButtonByTagEi; CustomizeObjectLayer::getButtonByTag(int) ; +0x64, 0x841900\nMOV             X1, X0; ButtonSprite *                                 ; +0x68, 0x841904\nMOV             X0, X19; this                                          ; +0x6c, 0x841908\nBL              _ZN20CustomizeObjectLayer17highlightSelectedEP12ButtonSprite; CustomizeObjectLayer::highlightSelected(ButtonSprite *) ; +0x70, 0x84190c\nMOV             X0, X19; this                                          ; +0x74, 0x841910\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x78, 0x841914\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x7c, 0x841918\nMOV             X0, X19; this                                          ; +0x80, 0x84191c\nMOV             W1, W20; GJSpecialColorSelect *                        ; +0x84, 0x841920\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x88, 0x841924\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x8c, 0x841928\nB               _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x90, 0x84192c", "xrefs": ["<???> @ 0x3c720", "CustomizeObjectLayer::init @ 0x843174", "<???> @ 0x1229eb0"], "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"}