{"type": "func", "start": 4295395332, "end": 4295395460, "name": "ButtonSprite::setColor", "pseudocode": "// \n// ButtonSprite::setColor from 0x100068804 to 0x100068884 (128 bytes)\n// \n// 14 xrefs:\n// > sub_100067624 @ 0x1000676fc\n// > sub_100088FD4 @ 0x1000890b0\n// > sub_10011DE5C @ 0x10011dec4\n// > EditorUI::updateEditButtonColor @ 0x10015fec0\n// > EditorUI::updateDeleteButtons @ 0x100187b00\n// > EditorUI::updateDeleteButtons @ 0x100187b54\n// > EditorUI::updateDeleteButtons @ 0x100187bb8\n// > sub_10024658C @ 0x100246668\n// > EditorUI::updateButtons @ 0x100472fc8\n// > EditorUI::toggleSpecialEditButtons @ 0x100473e84\n// > sub_1004A8E14 @ 0x1004a8f0c\n// > sub_1004FB318 @ 0x1004fb370\n// > sub_10050C060 @ 0x10050c0bc\n// > sub_10051F2B8 @ 0x10051f394\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:57 +0000\n// \n\n__int64 __fastcall ButtonSprite::setColor(_QWORD *a1, int a2)\n{\n  __int64 v3; // x0\n  __int64 v4; // x0\n  __int64 result; // x0\n  __int16 v6; // [xsp+Ch] [xbp-14h] BYREF\n  char v7; // [xsp+Eh] [xbp-12h]\n\n  v6 = a2;\n  v7 = BYTE2(a2);\n  v3 = a1[78];\n  if ( v3 )\n    (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1072LL))(v3, &v6);\n  v4 = a1[79];\n  if ( v4 )\n    (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 960LL))(v4, &v6);\n  result = a1[81];\n  if ( result )\n    return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)result + 960LL))(result, &v6);\n  result = a1[80];\n  if ( result )\n    return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)result + 960LL))(result, &v6);\n  return result;\n}", "assembly": "; \n; ButtonSprite::setColor from 0x100068804 to 0x100068884 (128 bytes)\n; \n; 14 xrefs:\n; > sub_100067624 @ 0x1000676fc\n; > sub_100088FD4 @ 0x1000890b0\n; > sub_10011DE5C @ 0x10011dec4\n; > EditorUI::updateEditButtonColor @ 0x10015fec0\n; > EditorUI::updateDeleteButtons @ 0x100187b00\n; > EditorUI::updateDeleteButtons @ 0x100187b54\n; > EditorUI::updateDeleteButtons @ 0x100187bb8\n; > sub_10024658C @ 0x100246668\n; > EditorUI::updateButtons @ 0x100472fc8\n; > EditorUI::toggleSpecialEditButtons @ 0x100473e84\n; > sub_1004A8E14 @ 0x1004a8f0c\n; > sub_1004FB318 @ 0x1004fb370\n; > sub_10050C060 @ 0x10050c0bc\n; > sub_10051F2B8 @ 0x10051f394\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:57 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x100068804\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100068808\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10006880c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100068810\nMOV             X19, X0                                                ; +0x10, 0x100068814\nSTRH            W1, [SP,#0x20+var_14]                                  ; +0x14, 0x100068818\nUBFX            X8, X1, #0x10, #0x10                                   ; +0x18, 0x10006881c\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x1c, 0x100068820\nLDR             X0, [X0,#0x270]                                        ; +0x20, 0x100068824\nCBZ             X0, loc_10006883C                                      ; +0x24, 0x100068828\nLDR             X8, [X0]                                               ; +0x28, 0x10006882c\nLDR             X8, [X8,#0x430]                                        ; +0x2c, 0x100068830\nADD             X1, SP, #0x20+var_14                                   ; +0x30, 0x100068834\nBLR             X8                                                     ; +0x34, 0x100068838\nLDR             X0, [X19,#0x278]                                       ; +0x38, 0x10006883c\nCBZ             X0, loc_100068854                                      ; +0x3c, 0x100068840\nLDR             X8, [X0]                                               ; +0x40, 0x100068844\nLDR             X8, [X8,#0x3C0]                                        ; +0x44, 0x100068848\nADD             X1, SP, #0x20+var_14                                   ; +0x48, 0x10006884c\nBLR             X8                                                     ; +0x4c, 0x100068850\nLDR             X0, [X19,#0x288]                                       ; +0x50, 0x100068854\nCBNZ            X0, loc_100068864                                      ; +0x54, 0x100068858\nLDR             X0, [X19,#0x280]                                       ; +0x58, 0x10006885c\nCBZ             X0, loc_100068874                                      ; +0x5c, 0x100068860\nLDR             X8, [X0]                                               ; +0x60, 0x100068864\nLDR             X8, [X8,#0x3C0]                                        ; +0x64, 0x100068868\nADD             X1, SP, #0x20+var_14                                   ; +0x68, 0x10006886c\nBLR             X8                                                     ; +0x6c, 0x100068870\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x100068874\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x100068878\nADD             SP, SP, #0x30 ; '0'                                    ; +0x78, 0x10006887c\nRET                                                                    ; +0x7c, 0x100068880", "xrefs": ["sub_100067624 @ 0x1000676fc", "sub_100088FD4 @ 0x1000890b0", "sub_10011DE5C @ 0x10011dec4", "EditorUI::updateEditButtonColor @ 0x10015fec0", "EditorUI::updateDeleteButtons @ 0x100187b00", "EditorUI::updateDeleteButtons @ 0x100187b54", "EditorUI::updateDeleteButtons @ 0x100187bb8", "sub_10024658C @ 0x100246668", "EditorUI::updateButtons @ 0x100472fc8", "EditorUI::toggleSpecialEditButtons @ 0x100473e84", "sub_1004A8E14 @ 0x1004a8f0c", "sub_1004FB318 @ 0x1004fb370", "sub_10050C060 @ 0x10050c0bc", "sub_10051F2B8 @ 0x10051f394"], "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"}