//
// sub_1006FADA0 from 0x1006fada0 to 0x1006faea0 (256 bytes)
//
// 2 xrefs:
// > CustomSongWidget::updateSongInfo @ 0x1006f9aec
// > CustomSongWidget::updateMultiAssetInfo @ 0x1006fc48e
//
// 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:35:55 +0000
//
__int64 __fastcall sub_1006FADA0(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rdi
__int64 v3; // rcx
int v4; // r14d
__int64 v5; // rbx
float v6; // xmm0_4
__int64 v7; // rax
__int64 v8; // rbx
unsigned __int64 *v9; // r14
double v10; // [rsp+Ch] [rbp-34h] BYREF
unsigned __int64 v11; // [rsp+14h] [rbp-2Ch] BYREF
float v12; // [rsp+1Ch] [rbp-24h]
result = a1;
v2 = *(_QWORD *)(a1 + 536);
if ( v2 )
{
if ( *(_BYTE *)(result + 544) == 1 && (v3 = *(_QWORD *)(result + 336)) != 0 && !*(_BYTE *)(result + 500) )
{
v4 = *(_DWORD *)(v3 + 316);
v5 = result;
result = (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)v2 + 344LL))(v2, v4 > 0);
if ( v4 > 0 )
{
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(v5 + 440) + 352LL))(*(_QWORD *)(v5 + 440)) )
v6 = -21.0;
else
v6 = 0.0;
v12 = v6;
v7 = v5;
v8 = *(_QWORD *)(v5 + 536);
v9 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v7 + 440) + 192LL))(*(_QWORD *)(v7 + 440));
sub_100278250((float *)&v11, v6, 0.0);
sub_100278350(&v10, v9, &v11);
return (*(__int64 (__fastcall **)(__int64, double *))(*(_QWORD *)v8 + 184LL))(v8, &v10);
}
}
else
{
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, 0);
}
}
return result;
}