//
// KeybindSet::chordsForAction from 0x1004f1cb4 to 0x1004f1d20 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009942d8
//
// This function is hookable on this platform (idp: arm, 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:06:45 +0000
//
__int64 __usercall KeybindSet::chordsForAction@(__int64 a1@, int a2@, _QWORD *a3@)
{
__int64 result; // x0
__int64 v4; // x9
__int64 v5; // t1
__int64 v7; // x8
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
v5 = *(_QWORD *)(a1 + 16);
result = a1 + 16;
v4 = v5;
if ( v5 )
{
v7 = result;
do
{
if ( *(_DWORD *)(v4 + 32) >= a2 )
v7 = v4;
v4 = *(_QWORD *)(v4 + 8LL * (*(_DWORD *)(v4 + 32) < a2));
}
while ( v4 );
if ( v7 != result && *(_DWORD *)(v7 + 32) <= a2 )
return sub_1004F1F00(a3, *(_QWORD *)(v7 + 40), v7 + 48);
}
return result;
}