//
// sub_10063FEA0 from 0x10063fea0 to 0x10063ff47 (167 bytes)
//
// 2 xrefs:
// > KeybindingsLayer::showTab @ 0x1006e3f01
// > EditorSoundsLayer::showTab @ 0x1008fec75
//
// 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
//
__int64 __fastcall sub_10063FEA0(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
__int64 v6; // r12
unsigned __int64 v7; // r13
__int64 v8; // rdi
__int64 v9; // rax
__int64 v10; // rsi
result = *(_QWORD *)(a1 + 1016);
if ( *(_QWORD *)(a1 + 1024) != result )
{
v6 = 64;
v7 = 0;
do
{
v8 = *(_QWORD *)(result + v6);
if ( v8 )
{
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1072LL))(v8);
if ( v9 )
{
v10 = a3;
if ( v7 == *(_DWORD *)(a1 + 1064) )
v10 = a2;
ButtonSprite::updateBGImage(v9, v10);
}
}
++v7;
result = *(_QWORD *)(a1 + 1016);
v6 += 72;
}
while ( v7 < 0x8E38E38E38E38E39LL * ((*(_QWORD *)(a1 + 1024) - result) >> 3) );
}
return result;
}