{"type": "func", "start": 4296693624, "end": 4296693844, "name": "KeybindCapturePopup::fadeButtonSprite", "pseudocode": "// \n// KeybindCapturePopup::fadeButtonSprite from 0x1001a5778 to 0x1001a5854 (220 bytes)\n// \n// 2 xrefs:\n// > KeybindCapturePopup::updateButtonStates @ 0x1001a573c\n// > KeybindCapturePopup::updateButtonStates @ 0x1001a5774\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 11:00:03 +0000\n// \n\n__int64 __fastcall KeybindCapturePopup::fadeButtonSprite(__int64 result, __int64 a2, int a3)\n{\n  __int64 v4; // x8\n  int v5; // w9\n  unsigned __int8 v6; // w21\n  __int16 v7; // w8\n  __int64 v8; // x20\n  __int64 v9; // x19\n  __int16 v10; // [xsp+Ch] [xbp-24h] BYREF\n  char v11; // [xsp+Eh] [xbp-22h]\n\n  if ( a2 )\n  {\n    v4 = *(_QWORD *)(result + 1096);\n    if ( v4 )\n      v5 = a3;\n    else\n      v5 = 1;\n    if ( v5 )\n      v6 = -1;\n    else\n      v6 = 75;\n    if ( a3 )\n    {\n      v7 = -1;\n      v11 = -1;\n    }\n    else if ( v4 )\n    {\n      v11 = 125;\n      v7 = 32125;\n    }\n    else\n    {\n      v11 = -106;\n      v7 = -26986;\n    }\n    v10 = v7;\n    v8 = *(_QWORD *)(a2 + 624);\n    if ( v8 )\n    {\n      (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v8 + 1024LL))(*(_QWORD *)(a2 + 624), v6);\n      result = (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v8 + 1072LL))(v8, &v10);\n    }\n    v9 = *(_QWORD *)(a2 + 648);\n    if ( v9 )\n    {\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 912LL))(v9, v6);\n      return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v9 + 960LL))(v9, &v10);\n    }\n  }\n  return result;\n}", "assembly": "; \n; KeybindCapturePopup::fadeButtonSprite from 0x1001a5778 to 0x1001a5854 (220 bytes)\n; \n; 2 xrefs:\n; > KeybindCapturePopup::updateButtonStates @ 0x1001a573c\n; > KeybindCapturePopup::updateButtonStates @ 0x1001a5774\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 11:00:03 +0000\n; \nCBZ             X1, locret_1001A5850                                   ; +0x0, 0x1001a5778\nSUB             SP, SP, #0x40                                          ; +0x4, 0x1001a577c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x8, 0x1001a5780\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0xc, 0x1001a5784\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x10, 0x1001a5788\nADD             X29, SP, #0x30                                         ; +0x14, 0x1001a578c\nMOV             X19, X1                                                ; +0x18, 0x1001a5790\nLDR             X8, [X0,#0x448]                                        ; +0x1c, 0x1001a5794\nCMP             X8, #0                                                 ; +0x20, 0x1001a5798\nCSINC           W9, W2, WZR, NE                                        ; +0x24, 0x1001a579c\nCMP             W9, #0                                                 ; +0x28, 0x1001a57a0\nMOV             W9, #0x4B ; 'K'                                        ; +0x2c, 0x1001a57a4\nCSINV           W21, W9, WZR, EQ                                       ; +0x30, 0x1001a57a8\nCBZ             W2, loc_1001A57BC                                      ; +0x34, 0x1001a57ac\nMOV             W8, #0xFFFFFFFF                                        ; +0x38, 0x1001a57b0\nSTRB            W8, [SP,#0x30+var_22]                                  ; +0x3c, 0x1001a57b4\nB               loc_1001A57DC                                          ; +0x40, 0x1001a57b8\nCBZ             X8, loc_1001A57D0                                      ; +0x44, 0x1001a57bc\nMOV             W8, #0x7D ; '}'                                        ; +0x48, 0x1001a57c0\nSTRB            W8, [SP,#0x30+var_22]                                  ; +0x4c, 0x1001a57c4\nMOV             W8, #0x7D7D                                            ; +0x50, 0x1001a57c8\nB               loc_1001A57DC                                          ; +0x54, 0x1001a57cc\nMOV             W8, #0x96                                              ; +0x58, 0x1001a57d0\nSTRB            W8, [SP,#0x30+var_22]                                  ; +0x5c, 0x1001a57d4\nMOV             W8, #0x9696                                            ; +0x60, 0x1001a57d8\nSTRH            W8, [SP,#0x30+var_24]                                  ; +0x64, 0x1001a57dc\nLDR             X20, [X19,#0x270]                                      ; +0x68, 0x1001a57e0\nCBZ             X20, loc_1001A5810                                     ; +0x6c, 0x1001a57e4\nLDR             X8, [X20]                                              ; +0x70, 0x1001a57e8\nLDR             X8, [X8,#0x400]                                        ; +0x74, 0x1001a57ec\nAND             W1, W21, #0xFF                                         ; +0x78, 0x1001a57f0\nMOV             X0, X20                                                ; +0x7c, 0x1001a57f4\nBLR             X8                                                     ; +0x80, 0x1001a57f8\nLDR             X8, [X20]                                              ; +0x84, 0x1001a57fc\nLDR             X8, [X8,#0x430]                                        ; +0x88, 0x1001a5800\nADD             X1, SP, #0x30+var_24                                   ; +0x8c, 0x1001a5804\nMOV             X0, X20                                                ; +0x90, 0x1001a5808\nBLR             X8                                                     ; +0x94, 0x1001a580c\nLDR             X19, [X19,#0x288]                                      ; +0x98, 0x1001a5810\nCBZ             X19, loc_1001A5840                                     ; +0x9c, 0x1001a5814\nLDR             X8, [X19]                                              ; +0xa0, 0x1001a5818\nLDR             X8, [X8,#0x390]                                        ; +0xa4, 0x1001a581c\nAND             W1, W21, #0xFF                                         ; +0xa8, 0x1001a5820\nMOV             X0, X19                                                ; +0xac, 0x1001a5824\nBLR             X8                                                     ; +0xb0, 0x1001a5828\nLDR             X8, [X19]                                              ; +0xb4, 0x1001a582c\nLDR             X8, [X8,#0x3C0]                                        ; +0xb8, 0x1001a5830\nADD             X1, SP, #0x30+var_24                                   ; +0xbc, 0x1001a5834\nMOV             X0, X19                                                ; +0xc0, 0x1001a5838\nBLR             X8                                                     ; +0xc4, 0x1001a583c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc8, 0x1001a5840\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xcc, 0x1001a5844\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xd0, 0x1001a5848\nADD             SP, SP, #0x40 ; '@'                                    ; +0xd4, 0x1001a584c\nRET                                                                    ; +0xd8, 0x1001a5850", "xrefs": ["KeybindCapturePopup::updateButtonStates @ 0x1001a573c", "KeybindCapturePopup::updateButtonStates @ 0x1001a5774"], "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"}