{"type": "func", "start": 4295294756, "end": 4295294904, "name": "CustomizeObjectLayer::onNextColorChannel", "pseudocode": "// \n// CustomizeObjectLayer::onNextColorChannel from 0x10004ff24 to 0x10004ffb8 (148 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x10004efd4\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 __fastcall CustomizeObjectLayer::onNextColorChannel(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // x0\n  int NextColorChannel; // w0\n  int v5; // w20\n  int v6; // w21\n  ButtonSprite *ButtonByTag; // x0\n\n  v3 = GameManager::sharedState();\n  NextColorChannel = LevelEditorLayer::getNextColorChannel(v3->m_levelEditorLayer);\n  v5 = NextColorChannel;\n  v6 = NextColorChannel;\n  if ( (unsigned int)(NextColorChannel - 10) <= 0x3DD )\n  {\n    a1->m_customColorChannel = NextColorChannel;\n    a1->m_disableTextDelegate = 1;\n    CustomizeObjectLayer::updateCustomColorLabels(a1);\n    a1->m_disableTextDelegate = 0;\n    v6 = 1008;\n  }\n  CustomizeObjectLayer::updateSelected(a1, v5);\n  ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v6);\n  CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);\n  CustomizeObjectLayer::updateColorSprite(a1);\n  CustomizeObjectLayer::updateChannelLabel(a1, v5);\n}", "assembly": "; \n; CustomizeObjectLayer::onNextColorChannel from 0x10004ff24 to 0x10004ffb8 (148 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x10004efd4\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10004ff24\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10004ff28\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10004ff2c\nADD             X29, SP, #0x20                                         ; +0xc, 0x10004ff30\nMOV             X19, X0                                                ; +0x10, 0x10004ff34\nBL              GameManager__sharedState                               ; +0x14, 0x10004ff38\nLDR             X0, [X0,#0x200]                                        ; +0x18, 0x10004ff3c\nBL              LevelEditorLayer__getNextColorChannel                  ; +0x1c, 0x10004ff40\nMOV             X20, X0                                                ; +0x20, 0x10004ff44\nSUB             W8, W0, #0xA                                           ; +0x24, 0x10004ff48\nMOV             X21, X0                                                ; +0x28, 0x10004ff4c\nCMP             W8, #0x3DD                                             ; +0x2c, 0x10004ff50\nB.HI            loc_10004FF74                                          ; +0x30, 0x10004ff54\nSTR             W20, [X19,#0x2D4]                                      ; +0x34, 0x10004ff58\nMOV             W8, #1                                                 ; +0x38, 0x10004ff5c\nSTRB            W8, [X19,#0x382]                                       ; +0x3c, 0x10004ff60\nMOV             X0, X19                                                ; +0x40, 0x10004ff64\nBL              CustomizeObjectLayer__updateCustomColorLabels          ; +0x44, 0x10004ff68\nSTRB            WZR, [X19,#0x382]                                      ; +0x48, 0x10004ff6c\nMOV             W21, #0x3F0                                            ; +0x4c, 0x10004ff70\nMOV             X0, X19                                                ; +0x50, 0x10004ff74\nMOV             X1, X20                                                ; +0x54, 0x10004ff78\nBL              CustomizeObjectLayer__updateSelected                   ; +0x58, 0x10004ff7c\nMOV             X0, X19                                                ; +0x5c, 0x10004ff80\nMOV             X1, X21                                                ; +0x60, 0x10004ff84\nBL              CustomizeObjectLayer__getButtonByTag                   ; +0x64, 0x10004ff88\nMOV             X1, X0                                                 ; +0x68, 0x10004ff8c\nMOV             X0, X19                                                ; +0x6c, 0x10004ff90\nBL              CustomizeObjectLayer__highlightSelected                ; +0x70, 0x10004ff94\nMOV             X0, X19                                                ; +0x74, 0x10004ff98\nBL              CustomizeObjectLayer__updateColorSprite                ; +0x78, 0x10004ff9c\nMOV             X0, X19                                                ; +0x7c, 0x10004ffa0\nMOV             X1, X20                                                ; +0x80, 0x10004ffa4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x10004ffa8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x10004ffac\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x10004ffb0\nB               CustomizeObjectLayer__updateChannelLabel               ; +0x90, 0x10004ffb4", "xrefs": ["CustomizeObjectLayer::init @ 0x10004efd4"], "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"}