//
// sub_1005B5D00 from 0x1005b5d00 to 0x1005b5d31 (49 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b7dde8
//
// 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:32:41 +0000
//
__int64 __fastcall sub_1005B5D00(__int64 a1, int a2)
{
bool v2; // cl
__int64 result; // rax
LODWORD(result) = *(_DWORD *)(a1 + 704);
v2 = (_DWORD)result == 0;
result = (unsigned __int16)result;
LOBYTE(result) = v2 || (unsigned __int16)result != a2;
if ( !(_BYTE)result )
{
*(_BYTE *)(a1 + 709) = 1;
return KeybindCapturePopup::updateChordDisplay(a1 - 344);
}
return result;
}