//
// KeybindSet::chordsForAction from 0x1009250b0 to 0x10092516e (190 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bc1650
//
// 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 12:38:19 +0000
//
__int64 __fastcall KeybindSet::chordsForAction(__int64 a1, __int64 a2, int a3)
{
__int64 v4; // rcx
__int64 v6; // rsi
__int64 v7; // rdx
_QWORD *v8; // rsi
_QWORD *v9; // rdx
__int64 v10; // rcx
_QWORD *v11; // rax
_QWORD *v12; // r8
_QWORD *v13; // rdi
bool v14; // zf
*(_OWORD *)a1 = 0;
*(_QWORD *)(a1 + 16) = 0;
v4 = *(_QWORD *)(a2 + 16);
if ( v4 )
{
v6 = a2 + 16;
v7 = v6;
do
{
if ( *(_DWORD *)(v4 + 32) >= a3 )
v7 = v4;
v4 = *(_QWORD *)(v4 + 8LL * (*(_DWORD *)(v4 + 32) < a3));
}
while ( v4 );
if ( v7 != v6 && *(_DWORD *)(v7 + 32) <= a3 )
{
v8 = *(_QWORD **)(v7 + 40);
v9 = (_QWORD *)(v7 + 48);
v10 = 0;
if ( v8 != v9 )
{
v11 = v8;
do
{
v12 = (_QWORD *)v11[1];
if ( v12 )
{
do
{
v13 = v12;
v12 = (_QWORD *)*v12;
}
while ( v12 );
}
else
{
do
{
v13 = (_QWORD *)v11[2];
v14 = *v13 == (_QWORD)v11;
v11 = v13;
}
while ( !v14 );
}
++v10;
v11 = v13;
}
while ( v13 != v9 );
}
sub_100925640(a1, v8, v9, v10);
}
}
return a1;
}