//
// sub_10063FF50 from 0x10063ff50 to 0x10064000b (187 bytes)
//
// 2 xrefs:
// > KeybindingsLayer::showTab @ 0x1006e3f09
// > EditorSoundsLayer::showTab @ 0x1008fec7d
//
// 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:42 +0000
//
unsigned __int8 __fastcall sub_10063FF50(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rcx
unsigned __int8 result; // al
__int64 v5; // rdi
unsigned int v6; // r14d
__int64 v7; // rdi
v2 = *(int *)(a1 + 1064);
if ( v2 < 0
|| (v3 = *(_QWORD *)(a1 + 1016), (int)v2 >= (int)(954437177 * ((unsigned __int64)(*(_QWORD *)(a1 + 1024) - v3) >> 3))) )
{
result = 0;
v5 = *(_QWORD *)(a1 + 1072);
v6 = 0;
if ( !v5 )
goto LABEL_7;
goto LABEL_6;
}
result = *(_DWORD *)(v3 + 72 * v2 + 56) >= 2;
v5 = *(_QWORD *)(a1 + 1072);
v6 = result;
if ( v5 )
{
LABEL_6:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, v6);
result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1072) + 1056LL))(*(_QWORD *)(a1 + 1072), v6);
}
LABEL_7:
v7 = *(_QWORD *)(a1 + 1080);
if ( v7 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, v6);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1080) + 1056LL))(*(_QWORD *)(a1 + 1080), v6);
}
return result;
}