//
// sub_1005B4730 from 0x1005b4730 to 0x1005b47a2 (114 bytes)
//
// 1 xrefs:
// > KeybindCapturePopup::init @ 0x1005b427c
//
// 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:40 +0000
//
void __fastcall sub_1005B4730(__int64 a1)
{
__int64 v2; // rdi
unsigned __int8 v3; // r14
v2 = *(_QWORD *)(a1 + 1072);
if ( v2 )
{
v3 = *(_BYTE *)(v2 + 328);
sub_1008B6210(v2, v3 ^ 1u);
if ( *(_DWORD *)(a1 + 1048) )
{
if ( (unsigned __int8)GJKeybindManager::isControllerChord() )
{
*(_DWORD *)(a1 + 1048) = GJKeybindManager::encodeChord(
(*(_DWORD *)(a1 + 1048) & 1)
+ (unsigned __int16)*(_DWORD *)(a1 + 1048)
- (unsigned int)v3,
0,
0,
0);
KeybindCapturePopup::updateChordDisplay(a1);
}
}
}
}