{"type": "func", "start": 4595816, "end": 4595918, "name": "CustomizeObjectLayer::onNextColorChannel", "pseudocode": "// \n// CustomizeObjectLayer::onNextColorChannel from 0x462068 to 0x4620ce (102 bytes)\n// \n// 0 xrefs:\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; // r0\n  int NextColorChannel; // r0\n  int v5; // r5\n  int v6; // r6\n  ButtonSprite *ButtonByTag; // r0\n\n  v3 = GameManager::sharedState();\n  NextColorChannel = LevelEditorLayer::getNextColorChannel(v3->m_levelEditorLayer);\n  v5 = NextColorChannel;\n  if ( (unsigned int)(NextColorChannel - 10) > 0x3DD )\n  {\n    v6 = NextColorChannel;\n  }\n  else\n  {\n    a1->m_customColorChannel = NextColorChannel;\n    a1->m_disableTextDelegate = 1;\n    CustomizeObjectLayer::updateCustomColorLabels(a1);\n    v6 = 1008;\n    a1->m_disableTextDelegate = 0;\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 0x462068 to 0x4620ce (102 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x462068\nMOV             R4, R0                                                 ; +0x2, 0x46206a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4, 0x46206c\nLDR.W           R0, [R0,#0x170]; this                                  ; +0x8, 0x462070\nBL              _ZN16LevelEditorLayer19getNextColorChannelEv; LevelEditorLayer::getNextColorChannel(void) ; +0xc, 0x462074\nMOVW            R3, #0x3DD                                             ; +0x10, 0x462078\nSUB.W           R2, R0, #0xA                                           ; +0x14, 0x46207c\nMOV             R5, R0                                                 ; +0x18, 0x462080\nCMP             R2, R3                                                 ; +0x1a, 0x462082\nBHI             loc_4620A2                                             ; +0x1c, 0x462084\nMOVS            R3, #1                                                 ; +0x1e, 0x462086\nSTR.W           R0, [R4,#0x220]                                        ; +0x20, 0x462088\nSTRB.W          R3, [R4,#0x27A]                                        ; +0x24, 0x46208c\nMOV             R0, R4; this                                           ; +0x28, 0x462090\nBL              _ZN20CustomizeObjectLayer23updateCustomColorLabelsEv; CustomizeObjectLayer::updateCustomColorLabels(void) ; +0x2a, 0x462092\nMOV.W           R6, #0x3F0                                             ; +0x2e, 0x462096\nMOVS            R3, #0                                                 ; +0x32, 0x46209a\nSTRB.W          R3, [R4,#0x27A]                                        ; +0x34, 0x46209c\nB               loc_4620A4                                             ; +0x38, 0x4620a0\nMOV             R6, R0                                                 ; +0x3a, 0x4620a2\nMOV             R0, R4; this                                           ; +0x3c, 0x4620a4\nMOV             R1, R5; int                                            ; +0x3e, 0x4620a6\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x40, 0x4620a8\nMOV             R1, R6; int                                            ; +0x44, 0x4620ac\nMOV             R0, R4; this                                           ; +0x46, 0x4620ae\nBL              _ZN20CustomizeObjectLayer14getButtonByTagEi; CustomizeObjectLayer::getButtonByTag(int) ; +0x48, 0x4620b0\nMOV             R1, R0; ButtonSprite *                                 ; +0x4c, 0x4620b4\nMOV             R0, R4; this                                           ; +0x4e, 0x4620b6\nBL              _ZN20CustomizeObjectLayer17highlightSelectedEP12ButtonSprite; CustomizeObjectLayer::highlightSelected(ButtonSprite *) ; +0x50, 0x4620b8\nMOV             R0, R4; this                                           ; +0x54, 0x4620bc\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x56, 0x4620be\nMOV             R0, R4; this                                           ; +0x5a, 0x4620c2\nMOV             R1, R5; GJSpecialColorSelect *                         ; +0x5c, 0x4620c4\nPOP.W           {R4-R6,LR}                                             ; +0x5e, 0x4620c6\nB.W             _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x62, 0x4620ca", "xrefs": [], "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"}