{"type": "func", "start": 8656348, "end": 8656492, "name": "CustomizeObjectLayer::onUpdateCustomColor", "pseudocode": "// \n// CustomizeObjectLayer::onUpdateCustomColor from 0x8415dc to 0x84166c (144 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x43170\n// > CustomizeObjectLayer::init @ 0x842d68\n// > CustomizeObjectLayer::init @ 0x842e34\n// > <???> @ 0x122a1e8\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::onUpdateCustomColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCObject_vtbl *v4; // x1\n  int v5; // w0\n  int m_customColorChannel; // w1\n  int v7; // w1\n\n  v4 = a2->__vftable;\n  a1->m_disableTextDelegate = 1;\n  v5 = v4->getTag(a2);\n  m_customColorChannel = a1->m_customColorChannel;\n  if ( v5 == 1 )\n    v7 = m_customColorChannel + 1;\n  else\n    v7 = m_customColorChannel - 1;\n  if ( v7 < 10 )\n    v7 = 10;\n  if ( v7 > 999 )\n    v7 = 999;\n  a1->m_customColorChannel = v7;\n  CustomizeObjectLayer::updateCustomColorLabels(a1);\n  CustomizeObjectLayer::updateSelected(a1, a1->m_customColorChannel);\n  a1->m_disableTextDelegate = 0;\n  CustomizeObjectLayer::updateColorSprite(a1);\n  CustomizeObjectLayer::updateChannelLabel(a1, a1->m_customColorChannel);\n}", "assembly": "; \n; CustomizeObjectLayer::onUpdateCustomColor from 0x8415dc to 0x84166c (144 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x43170\n; > CustomizeObjectLayer::init @ 0x842d68\n; > CustomizeObjectLayer::init @ 0x842e34\n; > <???> @ 0x122a1e8\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_20]!                                ; +0x0, 0x8415dc\nMOV             W2, #1                                                 ; +0x4, 0x8415e0\nMOV             X29, SP                                                ; +0x8, 0x8415e4\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x8415e8\nMOV             X19, X0                                                ; +0x10, 0x8415ec\nMOV             X0, X1                                                 ; +0x14, 0x8415f0\nLDR             X1, [X1]                                               ; +0x18, 0x8415f4\nSTRB            W2, [X19,#0x382]                                       ; +0x1c, 0x8415f8\nLDR             X1, [X1,#0x40]                                         ; +0x20, 0x8415fc\nBLR             X1                                                     ; +0x24, 0x841600\nCMP             W0, #1                                                 ; +0x28, 0x841604\nLDR             W1, [X19,#0x2D4]                                       ; +0x2c, 0x841608\nB.EQ            loc_841664                                             ; +0x30, 0x84160c\nSUB             W1, W1, #1                                             ; +0x34, 0x841610\nCMP             W1, #0xA                                               ; +0x38, 0x841614\nMOV             W0, #0xA                                               ; +0x3c, 0x841618\nCSEL            W1, W1, W0, GE                                         ; +0x40, 0x84161c\nMOV             W2, #0x3E7                                             ; +0x44, 0x841620\nCMP             W1, #0x3E7                                             ; +0x48, 0x841624\nMOV             X0, X19; this                                          ; +0x4c, 0x841628\nCSEL            W1, W1, W2, LE                                         ; +0x50, 0x84162c\nSTR             W1, [X19,#0x2D4]                                       ; +0x54, 0x841630\nBL              _ZN20CustomizeObjectLayer23updateCustomColorLabelsEv; CustomizeObjectLayer::updateCustomColorLabels(void) ; +0x58, 0x841634\nLDR             W1, [X19,#0x2D4]; int                                  ; +0x5c, 0x841638\nMOV             X0, X19; this                                          ; +0x60, 0x84163c\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x64, 0x841640\nSTRB            WZR, [X19,#0x382]                                      ; +0x68, 0x841644\nMOV             X0, X19; this                                          ; +0x6c, 0x841648\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x70, 0x84164c\nMOV             X0, X19; this                                          ; +0x74, 0x841650\nLDR             W1, [X19,#0x2D4]; GJSpecialColorSelect *               ; +0x78, 0x841654\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x7c, 0x841658\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x80, 0x84165c\nB               _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x84, 0x841660\nADD             W1, W1, #1                                             ; +0x88, 0x841664\nB               loc_841614                                             ; +0x8c, 0x841668", "xrefs": ["<???> @ 0x43170", "CustomizeObjectLayer::init @ 0x842d68", "CustomizeObjectLayer::init @ 0x842e34", "<???> @ 0x122a1e8"], "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"}