{"type": "func", "start": 4300151988, "end": 4300152096, "name": "KeybindSet::chordsForAction", "pseudocode": "// \n// KeybindSet::chordsForAction from 0x1004f1cb4 to 0x1004f1d20 (108 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009942d8\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 __usercall KeybindSet::chordsForAction@<X0>(__int64 a1@<X0>, int a2@<W1>, _QWORD *a3@<X8>)\n{\n  __int64 result; // x0\n  __int64 v4; // x9\n  __int64 v5; // t1\n  __int64 v7; // x8\n\n  *a3 = 0;\n  a3[1] = 0;\n  a3[2] = 0;\n  v5 = *(_QWORD *)(a1 + 16);\n  result = a1 + 16;\n  v4 = v5;\n  if ( v5 )\n  {\n    v7 = result;\n    do\n    {\n      if ( *(_DWORD *)(v4 + 32) >= a2 )\n        v7 = v4;\n      v4 = *(_QWORD *)(v4 + 8LL * (*(_DWORD *)(v4 + 32) < a2));\n    }\n    while ( v4 );\n    if ( v7 != result && *(_DWORD *)(v7 + 32) <= a2 )\n      return sub_1004F1F00(a3, *(_QWORD *)(v7 + 40), v7 + 48);\n  }\n  return result;\n}", "assembly": "; \n; KeybindSet::chordsForAction from 0x1004f1cb4 to 0x1004f1d20 (108 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009942d8\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; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1004f1cb4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1004f1cb8\nADD             X29, SP, #0x10                                         ; +0x8, 0x1004f1cbc\nSTP             XZR, XZR, [X8]                                         ; +0xc, 0x1004f1cc0\nSTR             XZR, [X8,#0x10]                                        ; +0x10, 0x1004f1cc4\nLDR             X9, [X0,#0x10]!                                        ; +0x14, 0x1004f1cc8\nCBZ             X9, loc_1004F1D14                                      ; +0x18, 0x1004f1ccc\nMOV             X19, X8                                                ; +0x1c, 0x1004f1cd0\nMOV             X8, X0                                                 ; +0x20, 0x1004f1cd4\nLDR             W10, [X9,#0x20]                                        ; +0x24, 0x1004f1cd8\nCMP             W10, W1                                                ; +0x28, 0x1004f1cdc\nCSET            W10, LT                                                ; +0x2c, 0x1004f1ce0\nCSEL            X8, X8, X9, LT                                         ; +0x30, 0x1004f1ce4\nLDR             X9, [X9,W10,UXTW#3]                                    ; +0x34, 0x1004f1ce8\nCBNZ            X9, loc_1004F1CD8                                      ; +0x38, 0x1004f1cec\nCMP             X8, X0                                                 ; +0x3c, 0x1004f1cf0\nB.EQ            loc_1004F1D14                                          ; +0x40, 0x1004f1cf4\nLDR             W9, [X8,#0x20]                                         ; +0x44, 0x1004f1cf8\nCMP             W9, W1                                                 ; +0x48, 0x1004f1cfc\nB.GT            loc_1004F1D14                                          ; +0x4c, 0x1004f1d00\nLDR             X1, [X8,#0x28]                                         ; +0x50, 0x1004f1d04\nADD             X2, X8, #0x30 ; '0'                                    ; +0x54, 0x1004f1d08\nMOV             X0, X19                                                ; +0x58, 0x1004f1d0c\nBL              sub_1004F1F00                                          ; +0x5c, 0x1004f1d10\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x60, 0x1004f1d14\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x64, 0x1004f1d18\nRET                                                                    ; +0x68, 0x1004f1d1c", "xrefs": ["<???> @ 0x1009942d8"], "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"}