{"type": "func", "start": 4295293660, "end": 4295293796, "name": "CustomizeObjectLayer::onUpdateCustomColor", "pseudocode": "// \n// CustomizeObjectLayer::onUpdateCustomColor from 0x10004fadc to 0x10004fb64 (136 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x10004e4c8\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 __fastcall CustomizeObjectLayer::onUpdateCustomColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w9\n  int v4; // w8\n\n  a1->m_disableTextDelegate = 1;\n  if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 )\n    v3 = 1;\n  else\n    v3 = -1;\n  v4 = a1->m_customColorChannel + v3;\n  if ( v4 <= 10 )\n    v4 = 10;\n  if ( v4 >= 999 )\n    v4 = 999;\n  a1->m_customColorChannel = v4;\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 0x10004fadc to 0x10004fb64 (136 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x10004e4c8\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10004fadc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10004fae0\nADD             X29, SP, #0x10                                         ; +0x8, 0x10004fae4\nMOV             X19, X0                                                ; +0xc, 0x10004fae8\nMOV             W8, #1                                                 ; +0x10, 0x10004faec\nSTRB            W8, [X0,#0x382]                                        ; +0x14, 0x10004faf0\nLDR             X8, [X1]                                               ; +0x18, 0x10004faf4\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x10004faf8\nMOV             X0, X1                                                 ; +0x20, 0x10004fafc\nBLR             X8                                                     ; +0x24, 0x10004fb00\nLDR             W8, [X19,#0x2D4]                                       ; +0x28, 0x10004fb04\nCMP             W0, #1                                                 ; +0x2c, 0x10004fb08\nCSINV           W9, W0, WZR, EQ                                        ; +0x30, 0x10004fb0c\nADD             W8, W8, W9                                             ; +0x34, 0x10004fb10\nCMP             W8, #0xA                                               ; +0x38, 0x10004fb14\nMOV             W9, #0xA                                               ; +0x3c, 0x10004fb18\nCSEL            W8, W8, W9, GT                                         ; +0x40, 0x10004fb1c\nCMP             W8, #0x3E7                                             ; +0x44, 0x10004fb20\nMOV             W9, #0x3E7                                             ; +0x48, 0x10004fb24\nCSEL            W8, W8, W9, LT                                         ; +0x4c, 0x10004fb28\nSTR             W8, [X19,#0x2D4]                                       ; +0x50, 0x10004fb2c\nMOV             X0, X19                                                ; +0x54, 0x10004fb30\nBL              CustomizeObjectLayer__updateCustomColorLabels          ; +0x58, 0x10004fb34\nLDR             W1, [X19,#0x2D4]                                       ; +0x5c, 0x10004fb38\nMOV             X0, X19                                                ; +0x60, 0x10004fb3c\nBL              CustomizeObjectLayer__updateSelected                   ; +0x64, 0x10004fb40\nSTRB            WZR, [X19,#0x382]                                      ; +0x68, 0x10004fb44\nMOV             X0, X19                                                ; +0x6c, 0x10004fb48\nBL              CustomizeObjectLayer__updateColorSprite                ; +0x70, 0x10004fb4c\nLDR             W1, [X19,#0x2D4]                                       ; +0x74, 0x10004fb50\nMOV             X0, X19                                                ; +0x78, 0x10004fb54\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x10004fb58\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x10004fb5c\nB               CustomizeObjectLayer__updateChannelLabel               ; +0x84, 0x10004fb60", "xrefs": ["CustomizeObjectLayer::init @ 0x10004e4c8"], "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"}