{"type": "func", "start": 4300152424, "end": 4300152576, "name": "KeybindSet::unbindChord", "pseudocode": "// \n// KeybindSet::unbindChord from 0x1004f1e68 to 0x1004f1f00 (152 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009942f0\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:06:45 +0000\n// \n\n__int64 __fastcall KeybindSet::unbindChord(__int64 result, int a2, int a3)\n{\n  __int64 v3; // x9\n  __int64 v4; // x19\n  _QWORD *v5; // x20\n  __int64 v6; // x21\n  int v7; // [xsp+Ch] [xbp-24h] BYREF\n\n  v7 = a2;\n  v3 = *(_QWORD *)(result + 16);\n  if ( v3 )\n  {\n    v4 = result;\n    v5 = (_QWORD *)(result + 8);\n    v6 = result + 16;\n    do\n    {\n      if ( *(_DWORD *)(v3 + 32) >= a3 )\n        v6 = v3;\n      v3 = *(_QWORD *)(v3 + 8LL * (*(_DWORD *)(v3 + 32) < a3));\n    }\n    while ( v3 );\n    if ( v6 != result + 16 && *(_DWORD *)(v6 + 32) <= a3 )\n    {\n      result = sub_10005484C((_QWORD *)(v6 + 40), &v7);\n      if ( !*(_QWORD *)(v6 + 56) )\n        result = (__int64)sub_1003BC24C(v5, v6);\n      *(_BYTE *)(v4 + 32) = 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; KeybindSet::unbindChord from 0x1004f1e68 to 0x1004f1f00 (152 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009942f0\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:06:45 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1004f1e68\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1004f1e6c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1004f1e70\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1004f1e74\nADD             X29, SP, #0x30                                         ; +0x10, 0x1004f1e78\nSTR             W1, [SP,#0x30+var_24]                                  ; +0x14, 0x1004f1e7c\nMOV             X8, X0                                                 ; +0x18, 0x1004f1e80\nLDR             X9, [X8,#0x10]!                                        ; +0x1c, 0x1004f1e84\nCBZ             X9, loc_1004F1EEC                                      ; +0x20, 0x1004f1e88\nMOV             X19, X0                                                ; +0x24, 0x1004f1e8c\nSUB             X20, X8, #8                                            ; +0x28, 0x1004f1e90\nMOV             X21, X8                                                ; +0x2c, 0x1004f1e94\nLDR             W10, [X9,#0x20]                                        ; +0x30, 0x1004f1e98\nCMP             W10, W2                                                ; +0x34, 0x1004f1e9c\nCSET            W10, LT                                                ; +0x38, 0x1004f1ea0\nCSEL            X21, X21, X9, LT                                       ; +0x3c, 0x1004f1ea4\nLDR             X9, [X9,W10,UXTW#3]                                    ; +0x40, 0x1004f1ea8\nCBNZ            X9, loc_1004F1E98                                      ; +0x44, 0x1004f1eac\nCMP             X21, X8                                                ; +0x48, 0x1004f1eb0\nB.EQ            loc_1004F1EEC                                          ; +0x4c, 0x1004f1eb4\nLDR             W8, [X21,#0x20]                                        ; +0x50, 0x1004f1eb8\nCMP             W8, W2                                                 ; +0x54, 0x1004f1ebc\nB.GT            loc_1004F1EEC                                          ; +0x58, 0x1004f1ec0\nADD             X0, X21, #0x28 ; '('                                   ; +0x5c, 0x1004f1ec4\nADD             X1, SP, #0x30+var_24                                   ; +0x60, 0x1004f1ec8\nBL              sub_10005484C                                          ; +0x64, 0x1004f1ecc\nLDR             X8, [X21,#0x38]                                        ; +0x68, 0x1004f1ed0\nCBNZ            X8, loc_1004F1EE4                                      ; +0x6c, 0x1004f1ed4\nMOV             X0, X20                                                ; +0x70, 0x1004f1ed8\nMOV             X1, X21                                                ; +0x74, 0x1004f1edc\nBL              sub_1003BC24C                                          ; +0x78, 0x1004f1ee0\nMOV             W8, #1                                                 ; +0x7c, 0x1004f1ee4\nSTRB            W8, [X19,#0x20]                                        ; +0x80, 0x1004f1ee8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x84, 0x1004f1eec\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x88, 0x1004f1ef0\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x8c, 0x1004f1ef4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x90, 0x1004f1ef8\nRET                                                                    ; +0x94, 0x1004f1efc", "xrefs": ["<???> @ 0x1009942f0"], "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"}