//
// sub_100121594 from 0x100121594 to 0x100121690 (252 bytes)
//
// 2 xrefs:
// > CustomSongWidget::updateSongInfo @ 0x1001204cc
// > CustomSongWidget::updateMultiAssetInfo @ 0x100122550
//
// This function is hookable on this platform (idp: arm, 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 10:59:16 +0000
//
__int64 __fastcall sub_100121594(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x8
int v4; // w20
float v5; // s8
__int64 v6; // x20
float32x2_t *v7; // x19
double v8; // d0
float32x2_t v9; // [xsp+0h] [xbp-30h] BYREF
float32x2_t v10; // [xsp+8h] [xbp-28h] BYREF
result = *(_QWORD *)(a1 + 536);
if ( result )
{
if ( *(_BYTE *)(a1 + 544) == 1 && (v3 = *(_QWORD *)(a1 + 336)) != 0 && (*(_BYTE *)(a1 + 500) & 1) == 0 )
{
v4 = *(_DWORD *)(v3 + 316);
result = (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)result + 344LL))(result, v4 > 0);
if ( v4 > 0 )
{
if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 352LL))(*(_QWORD *)(a1 + 440)) )
v5 = -21.0;
else
v5 = 0.0;
v6 = *(_QWORD *)(a1 + 536);
v7 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 192LL))(*(_QWORD *)(a1 + 440));
sub_1000262BC((float *)&v9, v5, 0.0);
*(float32x2_t *)&v8 = sub_100026318(v7, &v9, &v10);
return (*(__int64 (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v6 + 184LL))(v6, &v10, v8);
}
}
else
{
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
}
}
return result;
}