//
// sub_10097D080 from 0x10097d080 to 0x10097d121 (161 bytes)
//
// 1 xrefs:
// > sub_10097CC90 @ 0x10097ce7f
//
// 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:58 +0000
//
char *__fastcall sub_10097D080(__int64 a1, __int64 a2, double a3, float a4)
{
char *result; // rax
int v5; // eax
__int64 v6; // r14
unsigned int v7; // eax
result = (char *)&unk_100BD21F0 + 32 * (*(int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( result[28] == 1 )
{
v5 = *(_DWORD *)result;
switch ( v5 )
{
case 18:
*(_BYTE *)(a1 + 337) ^= 1u;
break;
case 17:
*(_BYTE *)(a1 + 336) ^= 1u;
break;
case 16:
*(_BYTE *)(a1 + 338) ^= 1u;
break;
}
return (char *)sub_10097D130(a1, a3, a4);
}
else
{
v6 = *(_QWORD *)(a1 + 320);
if ( v6 )
{
v7 = GJKeybindManager::encodeChord(
*(_DWORD *)result,
*(_BYTE *)(a1 + 336),
*(_BYTE *)(a1 + 337),
*(_BYTE *)(a1 + 338));
return (char *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 16LL))(v6, v7);
}
}
return result;
}