{"type": "func", "start": 4295328376, "end": 4295328504, "name": "CustomizeObjectLayer::onSelectColor", "pseudocode": "// \n// CustomizeObjectLayer::onSelectColor from 0x100058278 to 0x1000582f8 (128 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x1000565d4\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::onSelectColor(__int64 a1, __int64 a2)\n{\n  __int64 v4; // x1\n  __int64 v5; // x0\n  __int64 ActiveMode; // x1\n\n  v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( (_DWORD)v4 == 1008 )\n    v4 = *(unsigned int *)(a1 + 748);\n  CustomizeObjectLayer::updateSelected(a1, v4);\n  v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1072LL))(a2);\n  CustomizeObjectLayer::highlightSelected(a1, v5);\n  CustomizeObjectLayer::updateColorSprite(a1);\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);\n  return CustomizeObjectLayer::updateChannelLabel(a1, ActiveMode);\n}", "assembly": "; \n; CustomizeObjectLayer::onSelectColor from 0x100058278 to 0x1000582f8 (128 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x1000565d4\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, 0x100058278\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10005827c\nADD             X29, SP, #0x10                                         ; +0x8, 0x100058280\nMOV             X20, X1                                                ; +0xc, 0x100058284\nMOV             X19, X0                                                ; +0x10, 0x100058288\nLDR             X8, [X1]                                               ; +0x14, 0x10005828c\nLDR             X8, [X8,#0x40]                                         ; +0x18, 0x100058290\nMOV             X0, X1                                                 ; +0x1c, 0x100058294\nBLR             X8                                                     ; +0x20, 0x100058298\nMOV             X1, X0                                                 ; +0x24, 0x10005829c\nCMP             W0, #0x3F0                                             ; +0x28, 0x1000582a0\nB.NE            loc_1000582AC                                          ; +0x2c, 0x1000582a4\nLDR             W1, [X19,#0x2EC]                                       ; +0x30, 0x1000582a8\nMOV             X0, X19                                                ; +0x34, 0x1000582ac\nBL              CustomizeObjectLayer__updateSelected                   ; +0x38, 0x1000582b0\nLDR             X8, [X20]                                              ; +0x3c, 0x1000582b4\nLDR             X8, [X8,#0x430]                                        ; +0x40, 0x1000582b8\nMOV             X0, X20                                                ; +0x44, 0x1000582bc\nBLR             X8                                                     ; +0x48, 0x1000582c0\nMOV             X1, X0                                                 ; +0x4c, 0x1000582c4\nMOV             X0, X19                                                ; +0x50, 0x1000582c8\nBL              CustomizeObjectLayer__highlightSelected                ; +0x54, 0x1000582cc\nMOV             X0, X19                                                ; +0x58, 0x1000582d0\nBL              CustomizeObjectLayer__updateColorSprite                ; +0x5c, 0x1000582d4\nMOV             X0, X19                                                ; +0x60, 0x1000582d8\nMOV             W1, #1                                                 ; +0x64, 0x1000582dc\nBL              CustomizeObjectLayer__getActiveMode                    ; +0x68, 0x1000582e0\nMOV             X1, X0                                                 ; +0x6c, 0x1000582e4\nMOV             X0, X19                                                ; +0x70, 0x1000582e8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x1000582ec\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x1000582f0\nB               CustomizeObjectLayer__updateChannelLabel               ; +0x7c, 0x1000582f4", "xrefs": ["CustomizeObjectLayer::init @ 0x1000565d4"], "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"}