//
// sub_100620FA0 from 0x100620fa0 to 0x100621067 (199 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009822d8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_100620FA0(__int64 a1, int a2)
{
__int64 v2; // rbx
__int64 v3; // rax
CustomSongWidget *v4; // rdi
size_t v5; // r14
__int128 v6; // [rsp+0h] [rbp-30h]
v2 = *(_QWORD *)(a1 + 256);
v3 = *(_QWORD *)(a1 + 264);
if ( v2 != v3 )
{
v4 = (CustomSongWidget *)(a1 - 320);
v5 = v3 - v2 - 19;
while ( *(_DWORD *)v2 != a2 || *(_DWORD *)(v2 + 4) != 2 )
{
v2 += 16;
v5 -= 16LL;
if ( v2 == v3 )
return;
}
++*(_DWORD *)(v2 + 8);
*(_BYTE *)(v2 + 12) = 0;
if ( v2 + 16 != v3 )
{
*(_QWORD *)&v6 = *(_QWORD *)v2;
DWORD2(v6) = *(_DWORD *)(v2 + 8);
BYTE12(v6) = *(_BYTE *)(v2 + 12);
memmove((void *)v2, (const void *)(v2 + 16), v5);
*(_QWORD *)(v5 + v2 + 3) = v6;
*(_QWORD *)(v5 + v2 + 8) = *(_QWORD *)((char *)&v6 + 5);
}
CustomSongWidget::processNextMultiAsset(v4);
}
}