{"type": "func", "start": 9976560, "end": 9976704, "name": "CustomizeObjectLayer::onUpdateCustomColor", "pseudocode": "// \n// CustomizeObjectLayer::onUpdateCustomColor from 0x983af0 to 0x983b80 (144 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x5fd70\n// > CustomizeObjectLayer::init @ 0x985f50\n// > CustomizeObjectLayer::init @ 0x98601c\n// > <???> @ 0x1542418\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::onUpdateCustomColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)\n{\n  int v3; // w0\n  int v4; // w1\n  int v5; // w1\n\n  *((_BYTE *)this + 922) = 1;\n  v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  v4 = *((_DWORD *)this + 187);\n  if ( v3 == 1 )\n    v5 = v4 + 1;\n  else\n    v5 = v4 - 1;\n  if ( v5 < 10 )\n    v5 = 10;\n  if ( v5 > 999 )\n    v5 = 999;\n  *((_DWORD *)this + 187) = v5;\n  CustomizeObjectLayer::updateCustomColorLabels((ButtonSprite **)this);\n  CustomizeObjectLayer::updateSelected(this, *((_DWORD *)this + 187));\n  *((_BYTE *)this + 922) = 0;\n  CustomizeObjectLayer::updateColorSprite(this);\n  return CustomizeObjectLayer::updateChannelLabel(this, (GJSpecialColorSelect *)*((unsigned int *)this + 187));\n}", "assembly": "; \n; CustomizeObjectLayer::onUpdateCustomColor from 0x983af0 to 0x983b80 (144 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x5fd70\n; > CustomizeObjectLayer::init @ 0x985f50\n; > CustomizeObjectLayer::init @ 0x98601c\n; > <???> @ 0x1542418\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_20]!                                ; +0x0, 0x983af0\nMOV             W2, #1                                                 ; +0x4, 0x983af4\nMOV             X29, SP                                                ; +0x8, 0x983af8\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x983afc\nMOV             X19, X0                                                ; +0x10, 0x983b00\nMOV             X0, X1                                                 ; +0x14, 0x983b04\nSTRB            W2, [X19,#0x39A]                                       ; +0x18, 0x983b08\nLDR             X1, [X1]                                               ; +0x1c, 0x983b0c\nLDR             X1, [X1,#0x40]                                         ; +0x20, 0x983b10\nBLR             X1                                                     ; +0x24, 0x983b14\nCMP             W0, #1                                                 ; +0x28, 0x983b18\nLDR             W1, [X19,#0x2EC]                                       ; +0x2c, 0x983b1c\nB.EQ            loc_983B78                                             ; +0x30, 0x983b20\nSUB             W1, W1, #1                                             ; +0x34, 0x983b24\nCMP             W1, #0xA                                               ; +0x38, 0x983b28\nMOV             W0, #0xA                                               ; +0x3c, 0x983b2c\nCSEL            W1, W1, W0, GE                                         ; +0x40, 0x983b30\nMOV             W2, #0x3E7                                             ; +0x44, 0x983b34\nCMP             W1, #0x3E7                                             ; +0x48, 0x983b38\nMOV             X0, X19; this                                          ; +0x4c, 0x983b3c\nCSEL            W1, W1, W2, LE                                         ; +0x50, 0x983b40\nSTR             W1, [X19,#0x2EC]                                       ; +0x54, 0x983b44\nBL              _ZN20CustomizeObjectLayer23updateCustomColorLabelsEv; CustomizeObjectLayer::updateCustomColorLabels(void) ; +0x58, 0x983b48\nLDR             W1, [X19,#0x2EC]; int                                  ; +0x5c, 0x983b4c\nMOV             X0, X19; this                                          ; +0x60, 0x983b50\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x64, 0x983b54\nSTRB            WZR, [X19,#0x39A]                                      ; +0x68, 0x983b58\nMOV             X0, X19; this                                          ; +0x6c, 0x983b5c\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x70, 0x983b60\nMOV             X0, X19; this                                          ; +0x74, 0x983b64\nLDR             W1, [X19,#0x2EC]; GJSpecialColorSelect *               ; +0x78, 0x983b68\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x7c, 0x983b6c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x80, 0x983b70\nB               _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x84, 0x983b74\nADD             W1, W1, #1                                             ; +0x88, 0x983b78\nB               loc_983B28                                             ; +0x8c, 0x983b7c", "xrefs": ["<???> @ 0x5fd70", "CustomizeObjectLayer::init @ 0x985f50", "CustomizeObjectLayer::init @ 0x98601c", "<???> @ 0x1542418"], "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"}