//
// SongInfoObject::getExtraArtistCount from 0x140496750 to 0x1404967c0 (112 bytes)
//
// 2 xrefs:
// > CustomSongWidget::updateSongInfo @ 0x14016c552
// > CustomSongWidget::updateSongInfo @ 0x14016c8ad
//
// 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 11:32:52 +0000
//
__int64 __fastcall SongInfoObject::getExtraArtistCount(__int64 a1)
{
__int64 v1; // r9
__int64 *v3; // rcx
__int64 v4; // rax
__int64 v5; // rcx
unsigned int v6; // ecx
v1 = *(_QWORD *)(a1 + 544);
v3 = (__int64 *)(*(_QWORD *)(a1 + 560) + 16 * (*(_QWORD *)(a1 + 584) & 0xED1A23545D43D219uLL));
v4 = v3[1];
if ( v4 != v1 )
{
v5 = *v3;
if ( *(_DWORD *)(v4 + 16) == 10004636 )
goto LABEL_7;
while ( v4 != v5 )
{
v4 = *(_QWORD *)(v4 + 8);
if ( *(_DWORD *)(v4 + 16) == 10004636 )
goto LABEL_7;
}
}
v4 = 0;
LABEL_7:
if ( !v4 )
v4 = v1;
v6 = *(_DWORD *)(a1 + 552) - 1;
if ( v4 == v1 )
return *(unsigned int *)(a1 + 552);
return v6;
}