//
// sub_1005B4860 from 0x1005b4860 to 0x1005b48b3 (83 bytes)
//
// 1 xrefs:
// > KeybindCapturePopup::init @ 0x1005b45c4
//
// 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
//
__int64 __fastcall sub_1005B4860(__int64 a1)
{
__int64 v2; // rsi
__int64 v3; // rdi
__int64 v4; // rdi
v2 = *(unsigned int *)(a1 + 1044);
if ( (_DWORD)v2 )
{
v3 = *(_QWORD *)(a1 + 1024);
if ( v3 )
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v3 + 40LL))(v3, v2, *(unsigned int *)(a1 + 1040));
}
v4 = *(_QWORD *)(a1 + 1032);
if ( v4 )
sub_100495650(v4);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
}