{"type": "func", "start": 4296693488, "end": 4296693624, "name": "KeybindCapturePopup::updateButtonStates", "pseudocode": "// \n// KeybindCapturePopup::updateButtonStates from 0x1001a56f0 to 0x1001a5778 (136 bytes)\n// \n// 1 xrefs:\n// > KeybindCapturePopup::updateChordDisplay @ 0x1001a4f64\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::updateButtonStates(__int64 a1)\n{\n  char v2; // w20\n  __int64 v3; // x0\n  char v4; // w20\n  __int64 v5; // x0\n\n  if ( *(_DWORD *)(a1 + 1048) )\n    v2 = *(_BYTE *)(a1 + 1056) ^ 1;\n  else\n    v2 = 0;\n  v3 = *(_QWORD *)(a1 + 1112);\n  if ( v3 )\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1056LL))(v3, v2 & 1);\n  KeybindCapturePopup::fadeButtonSprite(a1, *(_QWORD *)(a1 + 1128), v2 & 1);\n  v4 = *(_BYTE *)(a1 + 1052) ^ 1;\n  v5 = *(_QWORD *)(a1 + 1120);\n  if ( v5 )\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1056LL))(v5, (*(_BYTE *)(a1 + 1052) ^ 1) & 1);\n  return KeybindCapturePopup::fadeButtonSprite(a1, *(_QWORD *)(a1 + 1136), v4 & 1);\n}", "assembly": "; \n; KeybindCapturePopup::updateButtonStates from 0x1001a56f0 to 0x1001a5778 (136 bytes)\n; \n; 1 xrefs:\n; > KeybindCapturePopup::updateChordDisplay @ 0x1001a4f64\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; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001a56f0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001a56f4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001a56f8\nMOV             X19, X0                                                ; +0xc, 0x1001a56fc\nLDR             W8, [X0,#0x418]                                        ; +0x10, 0x1001a5700\nCBZ             W8, loc_1001A5714                                      ; +0x14, 0x1001a5704\nLDRB            W8, [X19,#0x420]                                       ; +0x18, 0x1001a5708\nEOR             W20, W8, #1                                            ; +0x1c, 0x1001a570c\nB               loc_1001A5718                                          ; +0x20, 0x1001a5710\nMOV             W20, #0                                                ; +0x24, 0x1001a5714\nLDR             X0, [X19,#0x458]                                       ; +0x28, 0x1001a5718\nCBZ             X0, loc_1001A5730                                      ; +0x2c, 0x1001a571c\nLDR             X8, [X0]                                               ; +0x30, 0x1001a5720\nLDR             X8, [X8,#0x420]                                        ; +0x34, 0x1001a5724\nAND             W1, W20, #1                                            ; +0x38, 0x1001a5728\nBLR             X8                                                     ; +0x3c, 0x1001a572c\nLDR             X1, [X19,#0x468]                                       ; +0x40, 0x1001a5730\nAND             W2, W20, #1                                            ; +0x44, 0x1001a5734\nMOV             X0, X19                                                ; +0x48, 0x1001a5738\nBL              KeybindCapturePopup__fadeButtonSprite                  ; +0x4c, 0x1001a573c\nLDRB            W8, [X19,#0x41C]                                       ; +0x50, 0x1001a5740\nEOR             W20, W8, #1                                            ; +0x54, 0x1001a5744\nLDR             X0, [X19,#0x460]                                       ; +0x58, 0x1001a5748\nCBZ             X0, loc_1001A5760                                      ; +0x5c, 0x1001a574c\nLDR             X8, [X0]                                               ; +0x60, 0x1001a5750\nLDR             X8, [X8,#0x420]                                        ; +0x64, 0x1001a5754\nAND             W1, W20, #1                                            ; +0x68, 0x1001a5758\nBLR             X8                                                     ; +0x6c, 0x1001a575c\nLDR             X1, [X19,#0x470]                                       ; +0x70, 0x1001a5760\nAND             W2, W20, #1                                            ; +0x74, 0x1001a5764\nMOV             X0, X19                                                ; +0x78, 0x1001a5768\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x1001a576c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x1001a5770\nB               KeybindCapturePopup__fadeButtonSprite                  ; +0x84, 0x1001a5774", "xrefs": ["KeybindCapturePopup::updateChordDisplay @ 0x1001a4f64"], "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"}