//
// KeybindSet::unbindChord from 0x140449620 to 0x1404496c1 (161 bytes)
//
// 2 xrefs:
// > ??> @ 0x140793570
// > ??> @ 0x140927368
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:32:24 +0000
//
void __fastcall KeybindSet::unbindChord(__int64 a1, int a2, int a3)
{
__int64 **v3; // rdx
__int64 **v5; // rbx
__int64 *i; // rax
void **v7; // rbx
int v8; // [rsp+38h] [rbp+10h] BYREF
v8 = a2;
v3 = *(__int64 ***)(a1 + 8);
v5 = v3;
for ( i = v3[1]; !*((_BYTE *)i + 25); i = (__int64 *)*i )
{
if ( *((_DWORD *)i + 8) >= a3 )
v5 = (__int64 **)i;
else
i += 2;
}
if ( !*((_BYTE *)v5 + 25) && a3 >= *((_DWORD *)v5 + 8) && v5 != v3 )
{
sub_1400BD2C0(v5 + 5, &v8);
if ( !v5[6] )
{
v7 = (void **)sub_14006A9D0((_QWORD *)(a1 + 8), v5);
sub_1400BD560(v7 + 5, (__int64)(v7 + 5));
j_j_free(v7);
}
*(_BYTE *)(a1 + 24) = 1;
}
}