{"type": "func", "start": 4295328504, "end": 4295328640, "name": "CustomizeObjectLayer::onUpdateCustomColor", "pseudocode": "// \n// CustomizeObjectLayer::onUpdateCustomColor from 0x1000582f8 to 0x100058380 (136 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x100056c9c\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 10:57:46 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::onUpdateCustomColor(__int64 a1, __int64 a2)\n{\n  int v3; // w9\n  int v4; // w8\n\n  *(_BYTE *)(a1 + 922) = 1;\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )\n    v3 = 1;\n  else\n    v3 = -1;\n  v4 = *(_DWORD *)(a1 + 748) + v3;\n  if ( v4 <= 10 )\n    v4 = 10;\n  if ( v4 >= 999 )\n    v4 = 999;\n  *(_DWORD *)(a1 + 748) = v4;\n  CustomizeObjectLayer::updateCustomColorLabels(a1);\n  CustomizeObjectLayer::updateSelected(a1, *(unsigned int *)(a1 + 748));\n  *(_BYTE *)(a1 + 922) = 0;\n  CustomizeObjectLayer::updateColorSprite(a1);\n  return CustomizeObjectLayer::updateChannelLabel(a1, *(unsigned int *)(a1 + 748));\n}", "assembly": "; \n; CustomizeObjectLayer::onUpdateCustomColor from 0x1000582f8 to 0x100058380 (136 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x100056c9c\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 10:57:46 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000582f8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000582fc\nADD             X29, SP, #0x10                                         ; +0x8, 0x100058300\nMOV             X19, X0                                                ; +0xc, 0x100058304\nMOV             W8, #1                                                 ; +0x10, 0x100058308\nSTRB            W8, [X0,#0x39A]                                        ; +0x14, 0x10005830c\nLDR             X8, [X1]                                               ; +0x18, 0x100058310\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x100058314\nMOV             X0, X1                                                 ; +0x20, 0x100058318\nBLR             X8                                                     ; +0x24, 0x10005831c\nLDR             W8, [X19,#0x2EC]                                       ; +0x28, 0x100058320\nCMP             W0, #1                                                 ; +0x2c, 0x100058324\nCSINV           W9, W0, WZR, EQ                                        ; +0x30, 0x100058328\nADD             W8, W8, W9                                             ; +0x34, 0x10005832c\nCMP             W8, #0xA                                               ; +0x38, 0x100058330\nMOV             W9, #0xA                                               ; +0x3c, 0x100058334\nCSEL            W8, W8, W9, GT                                         ; +0x40, 0x100058338\nCMP             W8, #0x3E7                                             ; +0x44, 0x10005833c\nMOV             W9, #0x3E7                                             ; +0x48, 0x100058340\nCSEL            W8, W8, W9, LT                                         ; +0x4c, 0x100058344\nSTR             W8, [X19,#0x2EC]                                       ; +0x50, 0x100058348\nMOV             X0, X19                                                ; +0x54, 0x10005834c\nBL              CustomizeObjectLayer__updateCustomColorLabels          ; +0x58, 0x100058350\nLDR             W1, [X19,#0x2EC]                                       ; +0x5c, 0x100058354\nMOV             X0, X19                                                ; +0x60, 0x100058358\nBL              CustomizeObjectLayer__updateSelected                   ; +0x64, 0x10005835c\nSTRB            WZR, [X19,#0x39A]                                      ; +0x68, 0x100058360\nMOV             X0, X19                                                ; +0x6c, 0x100058364\nBL              CustomizeObjectLayer__updateColorSprite                ; +0x70, 0x100058368\nLDR             W1, [X19,#0x2EC]                                       ; +0x74, 0x10005836c\nMOV             X0, X19                                                ; +0x78, 0x100058370\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x100058374\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x100058378\nB               CustomizeObjectLayer__updateChannelLabel               ; +0x84, 0x10005837c", "xrefs": ["CustomizeObjectLayer::init @ 0x100056c9c"], "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"}