//
// CustomSongWidget::updateWithMultiAssets from 0x100121e24 to 0x100122084 (608 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::init @ 0x100029564
// > LevelInfoLayer::levelDownloadFinished @ 0x10002d778
// > AudioAssetsPopup::init @ 0x1004a97c0
//
// 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
//
void __fastcall CustomSongWidget::updateWithMultiAssets(__int64 a1, __int64 a2, __int64 a3, int a4)
{
void *__p[2]; // [xsp+10h] [xbp-A0h] BYREF
void **v9[3]; // [xsp+30h] [xbp-80h] BYREF
_QWORD v10[3]; // [xsp+48h] [xbp-68h] BYREF
if ( (*(_BYTE *)(a1 + 529) & 1) != 0 )
goto LABEL_10;
if ( (*(char *)(a2 + 23) & 0x8000000000000000LL) != 0 )
{
if ( *(_QWORD *)(a2 + 8) )
goto LABEL_10;
}
else if ( *(_BYTE *)(a2 + 23) )
{
goto LABEL_10;
}
if ( (*(char *)(a3 + 23) & 0x8000000000000000LL) != 0 )
{
if ( !*(_QWORD *)(a3 + 8) )
return;
goto LABEL_10;
}
if ( *(_BYTE *)(a3 + 23) )
{
LABEL_10:
sub_1000187C4(a1 + 552, *(_QWORD **)(a1 + 560));
*(_QWORD *)(a1 + 552) = a1 + 560;
*(_OWORD *)(a1 + 560) = 0u;
sub_1000187C4(a1 + 576, *(_QWORD **)(a1 + 584));
*(_QWORD *)(a1 + 576) = a1 + 584;
*(_OWORD *)(a1 + 584) = 0u;
*(_DWORD *)(a1 + 624) = a4;
memset(v10, 0, sizeof(v10));
sub_1001220DC((std::string *)a2);
memset(v9, 0, sizeof(v9));
sub_1001220DC((std::string *)a3);
CustomSongWidget::updateMultiAssetInfo(a1, 1);
__p[0] = v9;
sub_100018250((void ***)__p);
v9[0] = (void **)v10;
sub_100018250(v9);
}
}