{"type": "func", "start": 9977264, "end": 9977412, "name": "CustomizeObjectLayer::onNextColorChannel", "pseudocode": "// \n// CustomizeObjectLayer::onNextColorChannel from 0x983db0 to 0x983e44 (148 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x57958\n// > CustomizeObjectLayer::init @ 0x98635c\n// > <???> @ 0x1541ff0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:57:52 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::onNextColorChannel(CustomizeObjectLayer *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x0\n  unsigned int NextColorChannel; // w20\n  int v5; // w21\n  ButtonSprite *ButtonByTag; // x0\n\n  v3 = GameManager::sharedState(this);\n  NextColorChannel = LevelEditorLayer::getNextColorChannel(*(LevelEditorLayer **)(v3 + 552));\n  v5 = NextColorChannel;\n  if ( NextColorChannel - 10 <= 0x3DD )\n  {\n    *((_DWORD *)this + 187) = NextColorChannel;\n    *((_BYTE *)this + 922) = 1;\n    v5 = 1008;\n    CustomizeObjectLayer::updateCustomColorLabels((ButtonSprite **)this);\n    *((_BYTE *)this + 922) = 0;\n  }\n  CustomizeObjectLayer::updateSelected(this, NextColorChannel);\n  ButtonByTag = (ButtonSprite *)CustomizeObjectLayer::getButtonByTag((cocos2d::CCArray **)this, v5);\n  CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, ButtonByTag);\n  CustomizeObjectLayer::updateColorSprite(this);\n  return CustomizeObjectLayer::updateChannelLabel(this, (GJSpecialColorSelect *)NextColorChannel);\n}", "assembly": "; \n; CustomizeObjectLayer::onNextColorChannel from 0x983db0 to 0x983e44 (148 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x57958\n; > CustomizeObjectLayer::init @ 0x98635c\n; > <???> @ 0x1541ff0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:57:52 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x983db0\nMOV             X29, SP                                                ; +0x4, 0x983db4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x983db8\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x983dbc\nMOV             X19, X0                                                ; +0x10, 0x983dc0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x983dc4\nLDR             X0, [X0,#0x228]; this                                  ; +0x18, 0x983dc8\nBL              _ZN16LevelEditorLayer19getNextColorChannelEv; LevelEditorLayer::getNextColorChannel(void) ; +0x1c, 0x983dcc\nMOV             W20, W0                                                ; +0x20, 0x983dd0\nSUB             W0, W0, #0xA                                           ; +0x24, 0x983dd4\nMOV             W21, W20                                               ; +0x28, 0x983dd8\nCMP             W0, #0x3DD                                             ; +0x2c, 0x983ddc\nB.HI            loc_983E00                                             ; +0x30, 0x983de0\nMOV             W1, #1                                                 ; +0x34, 0x983de4\nSTR             W20, [X19,#0x2EC]                                      ; +0x38, 0x983de8\nMOV             X0, X19; this                                          ; +0x3c, 0x983dec\nSTRB            W1, [X19,#0x39A]                                       ; +0x40, 0x983df0\nMOV             W21, #0x3F0                                            ; +0x44, 0x983df4\nBL              _ZN20CustomizeObjectLayer23updateCustomColorLabelsEv; CustomizeObjectLayer::updateCustomColorLabels(void) ; +0x48, 0x983df8\nSTRB            WZR, [X19,#0x39A]                                      ; +0x4c, 0x983dfc\nMOV             X0, X19; this                                          ; +0x50, 0x983e00\nMOV             W1, W20; int                                           ; +0x54, 0x983e04\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x58, 0x983e08\nMOV             W1, W21; int                                           ; +0x5c, 0x983e0c\nMOV             X0, X19; this                                          ; +0x60, 0x983e10\nBL              _ZN20CustomizeObjectLayer14getButtonByTagEi; CustomizeObjectLayer::getButtonByTag(int) ; +0x64, 0x983e14\nMOV             X1, X0; ButtonSprite *                                 ; +0x68, 0x983e18\nMOV             X0, X19; this                                          ; +0x6c, 0x983e1c\nBL              _ZN20CustomizeObjectLayer17highlightSelectedEP12ButtonSprite; CustomizeObjectLayer::highlightSelected(ButtonSprite *) ; +0x70, 0x983e20\nMOV             X0, X19; this                                          ; +0x74, 0x983e24\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x78, 0x983e28\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x7c, 0x983e2c\nMOV             X0, X19; this                                          ; +0x80, 0x983e30\nMOV             W1, W20; GJSpecialColorSelect *                        ; +0x84, 0x983e34\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x88, 0x983e38\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x8c, 0x983e3c\nB               _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x90, 0x983e40", "xrefs": ["<???> @ 0x57958", "CustomizeObjectLayer::init @ 0x98635c", "<???> @ 0x1541ff0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}