{"type": "func", "start": 5373226320, "end": 5373226492, "name": "KeybindCapturePopup::onToggleController", "pseudocode": "// \n// KeybindCapturePopup::onToggleController from 0x14044ed50 to 0x14044edfc (172 bytes)\n// \n// 4 xrefs:\n// > KeybindCapturePopup::init @ 0x14044da78\n// > <???> @ 0x1408cc5ac\n// > <???> @ 0x1408cc5bc\n// > <???> @ 0x140927638\n// \n// This function is hookable on this platform (idp: pc, 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:32:26 +0000\n// \n\nvoid __fastcall KeybindCapturePopup::onToggleController(__int64 a1)\n{\n  __int64 v2; // rcx\n  void *v3; // rdx\n  char v4; // di\n  void (__fastcall ***v5)(_QWORD, void *); // rcx\n  int v6; // eax\n  unsigned __int16 v7; // cx\n  char v8; // dl\n  unsigned __int16 v9; // ax\n  unsigned __int16 v10; // ax\n\n  v2 = *(_QWORD *)(a1 + 1056);\n  if ( v2 )\n  {\n    v3 = &unk_140703BF0;\n    v4 = *(_BYTE *)(v2 + 328);\n    *(_BYTE *)(v2 + 328) = v4 == 0;\n    v5 = (void (__fastcall ***)(_QWORD, void *))(*(_QWORD *)(v2 + 344) + 320LL);\n    if ( !v4 )\n      v3 = &unk_140703BD4;\n    (**v5)(v5, v3);\n    v6 = *(_DWORD *)(a1 + 1032);\n    if ( v6 )\n    {\n      v7 = *(_DWORD *)(a1 + 1032);\n      if ( (unsigned int)(unsigned __int16)v6 - 1001 <= 0x2B )\n      {\n        v8 = v6 & 1;\n        if ( v4 )\n        {\n          v10 = v6 - 1;\n          if ( v8 )\n            v10 = *(_DWORD *)(a1 + 1032);\n          v7 = v10;\n        }\n        else\n        {\n          v9 = v6 + 1;\n          if ( v8 )\n            v7 = v9;\n        }\n        *(_DWORD *)(a1 + 1032) = v7;\n        KeybindCapturePopup::updateChordDisplay(a1);\n      }\n    }\n  }\n}", "assembly": "; \n; KeybindCapturePopup::onToggleController from 0x14044ed50 to 0x14044edfc (172 bytes)\n; \n; 4 xrefs:\n; > KeybindCapturePopup::init @ 0x14044da78\n; > <???> @ 0x1408cc5ac\n; > <???> @ 0x1408cc5bc\n; > <???> @ 0x140927638\n; \n; This function is hookable on this platform (idp: pc, 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:32:26 +0000\n; \npush    rbx                                                            ; +0x0, 0x14044ed50\nsub     rsp, 20h                                                       ; +0x2, 0x14044ed52\nmov     rbx, rcx                                                       ; +0x6, 0x14044ed56\nmov     rcx, [rcx+420h]                                                ; +0x9, 0x14044ed59\ntest    rcx, rcx                                                       ; +0x10, 0x14044ed60\njz      loc_14044EDF6                                                  ; +0x13, 0x14044ed63\nmov     [rsp+28h+arg_0], rdi                                           ; +0x19, 0x14044ed69\nlea     rdx, unk_140703BF0                                             ; +0x1e, 0x14044ed6e\nmovzx   edi, byte ptr [rcx+148h]                                       ; +0x25, 0x14044ed75\ntest    dil, dil                                                       ; +0x2c, 0x14044ed7c\nsetz    al                                                             ; +0x2f, 0x14044ed7f\nmov     [rcx+148h], al                                                 ; +0x32, 0x14044ed82\nlea     rax, unk_140703BD4                                             ; +0x38, 0x14044ed88\nmov     rcx, [rcx+158h]                                                ; +0x3f, 0x14044ed8f\nadd     rcx, 140h                                                      ; +0x46, 0x14044ed96\ntest    dil, dil                                                       ; +0x4d, 0x14044ed9d\ncmovz   rdx, rax                                                       ; +0x50, 0x14044eda0\nmov     rax, [rcx]                                                     ; +0x54, 0x14044eda4\ncall    qword ptr [rax]                                                ; +0x57, 0x14044eda7\nmov     eax, [rbx+408h]                                                ; +0x59, 0x14044eda9\ntest    eax, eax                                                       ; +0x5f, 0x14044edaf\njz      short loc_14044EDF1                                            ; +0x61, 0x14044edb1\nmovzx   ecx, ax                                                        ; +0x63, 0x14044edb3\nlea     eax, [rcx-3E9h]                                                ; +0x66, 0x14044edb6\ncmp     eax, 2Bh ; '+'                                                 ; +0x6c, 0x14044edbc\nja      short loc_14044EDF1                                            ; +0x6f, 0x14044edbf\nmovzx   edx, cl                                                        ; +0x71, 0x14044edc1\nand     dl, 1                                                          ; +0x74, 0x14044edc4\ntest    dil, dil                                                       ; +0x77, 0x14044edc7\njnz     short loc_14044EDD6                                            ; +0x7a, 0x14044edca\ntest    dl, dl                                                         ; +0x7c, 0x14044edcc\nlea     eax, [rcx+1]                                                   ; +0x7e, 0x14044edce\ncmovnz  ecx, eax                                                       ; +0x81, 0x14044edd1\njmp     short loc_14044EDE0                                            ; +0x84, 0x14044edd4\nlea     eax, [rcx-1]                                                   ; +0x86, 0x14044edd6\ntest    dl, dl                                                         ; +0x89, 0x14044edd9\ncmovnz  eax, ecx                                                       ; +0x8b, 0x14044eddb\nmov     ecx, eax                                                       ; +0x8e, 0x14044edde\nmovzx   eax, cx                                                        ; +0x90, 0x14044ede0\nmov     rcx, rbx                                                       ; +0x93, 0x14044ede3\nmov     [rbx+408h], eax                                                ; +0x96, 0x14044ede6\ncall    KeybindCapturePopup__updateChordDisplay                        ; +0x9c, 0x14044edec\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xa1, 0x14044edf1\nadd     rsp, 20h                                                       ; +0xa6, 0x14044edf6\npop     rbx                                                            ; +0xaa, 0x14044edfa\nretn                                                                   ; +0xab, 0x14044edfb", "xrefs": ["KeybindCapturePopup::init @ 0x14044da78", "<???> @ 0x1408cc5ac", "<???> @ 0x1408cc5bc", "<???> @ 0x140927638"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}