//
// KeybindSet::chordsForAction from 0x1404493e0 to 0x1404494cc (236 bytes)
//
// 2 xrefs:
// > ??> @ 0x140793558
// > ??> @ 0x140927344
//
// 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
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall KeybindSet::chordsForAction(__int64 a1, _QWORD *a2, int a3)
{
__int64 v4; // r10
__int64 *v5; // r9
__int64 *v6; // rax
__int64 *i; // rcx
_QWORD *v8; // rdx
_QWORD *v9; // rax
__int64 **v10; // r9
__int64 j; // rcx
__int64 *k; // r9
v4 = 0;
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
v5 = *(__int64 **)(a1 + 8);
v6 = (__int64 *)v5[1];
for ( i = v5; !*((_BYTE *)v6 + 25); v6 = (__int64 *)*v6 )
{
if ( *((_DWORD *)v6 + 8) >= a3 )
i = v6;
else
v6 += 2;
}
if ( !*((_BYTE *)i + 25) && a3 >= *((_DWORD *)i + 8) && i != v5 )
{
v8 = (_QWORD *)i[5];
v9 = (_QWORD *)*v8;
while ( v9 != v8 )
{
++v4;
v10 = (__int64 **)v9[2];
if ( *((_BYTE *)v10 + 25) )
{
for ( j = v9[1]; !*(_BYTE *)(j + 25); j = *(_QWORD *)(j + 8) )
{
if ( v9 != *(_QWORD **)(j + 16) )
break;
v9 = (_QWORD *)j;
}
v9 = (_QWORD *)j;
}
else
{
v9 = (_QWORD *)v9[2];
for ( k = *v10; !*((_BYTE *)k + 25); k = (__int64 *)*k )
v9 = k;
}
}
sub_14044BEA0(a2, *v8, v4);
}
return a2;
}