//
// CustomSongWidget::downloadSongFinished from 0x100122b28 to 0x100122bf4 (204 bytes)
//
// 2 xrefs:
// > sub_100122D04 @ 0x100122d08
// > ??> @ 0x1008d5a28
//
// 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::downloadSongFinished(__int64 a1, __int64 a2)
{
int v3; // w8
float v5; // s0
float v6; // s1
if ( *(_BYTE *)(a1 + 529) == 1 )
{
CustomSongWidget::downloadAssetFinished(a1, a2, 1);
}
else
{
v3 = *(_DWORD *)(a1 + 504);
if ( v3 == (_DWORD)a2 && v3 != 0 )
{
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 376) + 1072LL))(*(_QWORD *)(a1 + 376), &unk_10075DE59);
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 376) + 928LL))(
*(_QWORD *)(a1 + 376),
"Download complete.");
if ( *(_BYTE *)(a1 + 501) == 1 )
{
v5 = 140.0;
v6 = 0.35;
}
else
{
v5 = 230.0;
v6 = 0.4;
}
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 376), v5, v6, 0.0);
CustomSongWidget::showError(a1, 1);
}
}
}