{"type": "func", "start": 8656800, "end": 8656928, "name": "CustomizeObjectLayer::onSelectColor", "pseudocode": "// \n// CustomizeObjectLayer::onSelectColor from 0x8417a0 to 0x841820 (128 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x3db90\n// > CustomizeObjectLayer::init @ 0x84261c\n// > CustomizeObjectLayer::init @ 0x8426c0\n// > CustomizeObjectLayer::init @ 0x842764\n// > CustomizeObjectLayer::init @ 0x842804\n// > CustomizeObjectLayer::init @ 0x8429b0\n// > <???> @ 0x1229f80\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::onSelectColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  int m_customColorChannel; // w1\n  ButtonSprite *v5; // x0\n  int ActiveMode; // w0\n\n  m_customColorChannel = a2->getTag(a2);\n  if ( m_customColorChannel == 1008 )\n    m_customColorChannel = a1->m_customColorChannel;\n  CustomizeObjectLayer::updateSelected(a1, m_customColorChannel);\n  v5 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);\n  CustomizeObjectLayer::highlightSelected(a1, v5);\n  CustomizeObjectLayer::updateColorSprite(a1);\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);\n  CustomizeObjectLayer::updateChannelLabel(a1, ActiveMode);\n}", "assembly": "; \n; CustomizeObjectLayer::onSelectColor from 0x8417a0 to 0x841820 (128 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x3db90\n; > CustomizeObjectLayer::init @ 0x84261c\n; > CustomizeObjectLayer::init @ 0x8426c0\n; > CustomizeObjectLayer::init @ 0x842764\n; > CustomizeObjectLayer::init @ 0x842804\n; > CustomizeObjectLayer::init @ 0x8429b0\n; > <???> @ 0x1229f80\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,#-0x20+var_s0]!                          ; +0x0, 0x8417a0\nMOV             X29, SP                                                ; +0x4, 0x8417a4\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x8417a8\nMOV             X20, X1                                                ; +0xc, 0x8417ac\nMOV             X19, X0                                                ; +0x10, 0x8417b0\nMOV             X0, X1                                                 ; +0x14, 0x8417b4\nLDR             X1, [X1]                                               ; +0x18, 0x8417b8\nLDR             X1, [X1,#0x40]                                         ; +0x1c, 0x8417bc\nBLR             X1                                                     ; +0x20, 0x8417c0\nCMP             W0, #0x3F0                                             ; +0x24, 0x8417c4\nMOV             W1, W0                                                 ; +0x28, 0x8417c8\nB.NE            loc_8417D4                                             ; +0x2c, 0x8417cc\nLDR             W1, [X19,#0x2D4]; int                                  ; +0x30, 0x8417d0\nMOV             X0, X19; this                                          ; +0x34, 0x8417d4\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x38, 0x8417d8\nLDR             X1, [X20]                                              ; +0x3c, 0x8417dc\nMOV             X0, X20                                                ; +0x40, 0x8417e0\nLDR             X1, [X1,#0x420]                                        ; +0x44, 0x8417e4\nBLR             X1                                                     ; +0x48, 0x8417e8\nMOV             X1, X0; ButtonSprite *                                 ; +0x4c, 0x8417ec\nMOV             X0, X19; this                                          ; +0x50, 0x8417f0\nBL              _ZN20CustomizeObjectLayer17highlightSelectedEP12ButtonSprite; CustomizeObjectLayer::highlightSelected(ButtonSprite *) ; +0x54, 0x8417f4\nMOV             X0, X19; this                                          ; +0x58, 0x8417f8\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x5c, 0x8417fc\nMOV             X0, X19; this                                          ; +0x60, 0x841800\nMOV             W1, #1; bool                                           ; +0x64, 0x841804\nBL              _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x68, 0x841808\nMOV             W1, W0; GJSpecialColorSelect *                         ; +0x6c, 0x84180c\nMOV             X0, X19; this                                          ; +0x70, 0x841810\nLDP             X19, X20, [SP,#var_s10]                                ; +0x74, 0x841814\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x78, 0x841818\nB               _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x7c, 0x84181c", "xrefs": ["<???> @ 0x3db90", "CustomizeObjectLayer::init @ 0x84261c", "CustomizeObjectLayer::init @ 0x8426c0", "CustomizeObjectLayer::init @ 0x842764", "CustomizeObjectLayer::init @ 0x842804", "CustomizeObjectLayer::init @ 0x8429b0", "<???> @ 0x1229f80"], "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"}