//
// sub_1006172E0 from 0x1006172e0 to 0x100617358 (120 bytes)
//
// 6 xrefs:
// > sub_1009241C0 @ 0x1009241e7
// > sub_1009241C0 @ 0x10092421f
// > sub_1009241C0 @ 0x100924257
// > sub_1009241C0 @ 0x10092428f
// > sub_1009241C0 @ 0x1009242c7
// > sub_1009241C0 @ 0x1009242ff
//
// 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:34:37 +0000
//
_QWORD *__fastcall sub_1006172E0(_QWORD *a1, __int64 a2, int a3)
{
__int64 v3; // rcx
__int64 v4; // rax
if ( *(_BYTE *)(a2 + 184) != 1 )
goto LABEL_9;
v3 = *(_QWORD *)(a2 + 144);
if ( !v3 )
goto LABEL_9;
v4 = a2 + 144;
do
{
if ( *(_DWORD *)(v3 + 32) >= a3 )
v4 = v3;
v3 = *(_QWORD *)(v3 + 8LL * (*(_DWORD *)(v3 + 32) < a3));
}
while ( v3 );
if ( v4 != a2 + 144 && *(_DWORD *)(v4 + 32) <= a3 )
sub_10061A310(a1, *(_QWORD *)(v4 + 40), v4 + 48);
else
LABEL_9:
GJKeybindManager::chordsForAction(a1, a2, a3);
return a1;
}