{"type": "func", "start": 4296691336, "end": 4296691580, "name": "KeybindCapturePopup::updateChordDisplay", "pseudocode": "// \n// KeybindCapturePopup::updateChordDisplay from 0x1001a4e88 to 0x1001a4f7c (244 bytes)\n// \n// 6 xrefs:\n// > KeybindCapturePopup::init @ 0x1001a4ca4\n// > sub_1001A4D10 @ 0x1001a4d74\n// > KeybindCapturePopup::inputKeySelected @ 0x1001a51f4\n// > KeybindCapturePopup::keyDown @ 0x1001a59f8\n// > KeybindCapturePopup::keyUp @ 0x1001a5a24\n// > sub_1001A5A28 @ 0x1001a5a50\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:02 +0000\n// \n\n__int64 __fastcall KeybindCapturePopup::updateChordDisplay(__int64 a1)\n{\n  __int64 v2; // x0\n  const char *v3; // x1\n  std::string *v4; // x0\n  __int64 v5; // x20\n  std::string *p_p; // x1\n  void (*v7)(void); // x8\n  std::string __p; // [xsp+8h] [xbp-38h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 1096);\n  if ( v2 )\n  {\n    if ( *(_BYTE *)(a1 + 1053) )\n      v3 = \"Press again to set\";\n    else\n      v3 = \"Press Keys...\";\n    (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v2 + 928LL))(v2, v3);\n  }\n  v4 = (std::string *)*(unsigned int *)(a1 + 1048);\n  v5 = *(_QWORD *)(a1 + 1088);\n  if ( (_DWORD)v4 )\n  {\n    GJKeybindManager::chordToString(v4, &__p);\n    if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )\n      p_p = &__p;\n    else\n      p_p = (std::string *)__p.__r_.__value_.__r.__words[0];\n    (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v5 + 928LL))(v5, p_p);\n    if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(__p.__r_.__value_.__l.__data_);\n    v7 = *(void (**)(void))(**(_QWORD **)(a1 + 1088) + 344LL);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)v5 + 928LL))(*(_QWORD *)(a1 + 1088), \" \");\n    v7 = *(void (**)(void))(**(_QWORD **)(a1 + 1088) + 344LL);\n  }\n  v7();\n  KeybindCapturePopup::updateConflictLabel(a1);\n  return KeybindCapturePopup::updateButtonStates(a1);\n}", "assembly": "; \n; KeybindCapturePopup::updateChordDisplay from 0x1001a4e88 to 0x1001a4f7c (244 bytes)\n; \n; 6 xrefs:\n; > KeybindCapturePopup::init @ 0x1001a4ca4\n; > sub_1001A4D10 @ 0x1001a4d74\n; > KeybindCapturePopup::inputKeySelected @ 0x1001a51f4\n; > KeybindCapturePopup::keyDown @ 0x1001a59f8\n; > KeybindCapturePopup::keyUp @ 0x1001a5a24\n; > sub_1001A5A28 @ 0x1001a5a50\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:02 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1001a4e88\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1001a4e8c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1001a4e90\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1001a4e94\nADD             X29, SP, #0x40                                         ; +0x10, 0x1001a4e98\nMOV             X19, X0                                                ; +0x14, 0x1001a4e9c\nLDR             X0, [X0,#0x448]                                        ; +0x18, 0x1001a4ea0\nCBZ             X0, loc_1001A4ED0                                      ; +0x1c, 0x1001a4ea4\nLDRB            W8, [X19,#0x41D]                                       ; +0x20, 0x1001a4ea8\nADRL            X9, aPressKeys; \"Press Keys...\"                        ; +0x24, 0x1001a4eac\nADRL            X10, aPressAgainToSe; \"Press again to set\"             ; +0x2c, 0x1001a4eb4\nCMP             W8, #0                                                 ; +0x34, 0x1001a4ebc\nCSEL            X1, X10, X9, NE                                        ; +0x38, 0x1001a4ec0\nLDR             X8, [X0]                                               ; +0x3c, 0x1001a4ec4\nLDR             X8, [X8,#0x3A0]                                        ; +0x40, 0x1001a4ec8\nBLR             X8                                                     ; +0x44, 0x1001a4ecc\nLDR             W0, [X19,#0x418]                                       ; +0x48, 0x1001a4ed0\nLDR             X20, [X19,#0x440]                                      ; +0x4c, 0x1001a4ed4\nCBZ             W0, loc_1001A4F2C                                      ; +0x50, 0x1001a4ed8\nADD             X21, SP, #0x40+__p                                     ; +0x54, 0x1001a4edc\nADD             X8, SP, #0x40+__p                                      ; +0x58, 0x1001a4ee0\nBL              GJKeybindManager__chordToString                        ; +0x5c, 0x1001a4ee4\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x60, 0x1001a4ee8\nLDR             X9, [SP,#0x40+__p]                                     ; +0x64, 0x1001a4eec\nCMP             W8, #0                                                 ; +0x68, 0x1001a4ef0\nCSEL            X1, X9, X21, LT                                        ; +0x6c, 0x1001a4ef4\nLDR             X8, [X20]                                              ; +0x70, 0x1001a4ef8\nLDR             X8, [X8,#0x3A0]                                        ; +0x74, 0x1001a4efc\nMOV             X0, X20                                                ; +0x78, 0x1001a4f00\nBLR             X8                                                     ; +0x7c, 0x1001a4f04\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x80, 0x1001a4f08\nTBZ             W8, #0x1F, loc_1001A4F18                               ; +0x84, 0x1001a4f0c\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x88, 0x1001a4f10\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x1001a4f14\nLDR             X0, [X19,#0x440]                                       ; +0x90, 0x1001a4f18\nLDR             X8, [X0]                                               ; +0x94, 0x1001a4f1c\nLDR             X8, [X8,#0x158]                                        ; +0x98, 0x1001a4f20\nMOV             W1, #1                                                 ; +0x9c, 0x1001a4f24\nB               loc_1001A4F54                                          ; +0xa0, 0x1001a4f28\nLDR             X8, [X20]                                              ; +0xa4, 0x1001a4f2c\nLDR             X8, [X8,#0x3A0]                                        ; +0xa8, 0x1001a4f30\nADRL            X1, asc_1007E88A7; \" \"                                 ; +0xac, 0x1001a4f34\nMOV             X0, X20                                                ; +0xb4, 0x1001a4f3c\nBLR             X8                                                     ; +0xb8, 0x1001a4f40\nLDR             X0, [X19,#0x440]                                       ; +0xbc, 0x1001a4f44\nLDR             X8, [X0]                                               ; +0xc0, 0x1001a4f48\nLDR             X8, [X8,#0x158]                                        ; +0xc4, 0x1001a4f4c\nMOV             W1, #0                                                 ; +0xc8, 0x1001a4f50\nBLR             X8                                                     ; +0xcc, 0x1001a4f54\nMOV             X0, X19                                                ; +0xd0, 0x1001a4f58\nBL              KeybindCapturePopup__updateConflictLabel               ; +0xd4, 0x1001a4f5c\nMOV             X0, X19                                                ; +0xd8, 0x1001a4f60\nBL              KeybindCapturePopup__updateButtonStates                ; +0xdc, 0x1001a4f64\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xe0, 0x1001a4f68\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xe4, 0x1001a4f6c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xe8, 0x1001a4f70\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xec, 0x1001a4f74\nRET                                                                    ; +0xf0, 0x1001a4f78", "xrefs": ["KeybindCapturePopup::init @ 0x1001a4ca4", "sub_1001A4D10 @ 0x1001a4d74", "KeybindCapturePopup::inputKeySelected @ 0x1001a51f4", "KeybindCapturePopup::keyDown @ 0x1001a59f8", "KeybindCapturePopup::keyUp @ 0x1001a5a24", "sub_1001A5A28 @ 0x1001a5a50"], "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"}