//
// CustomSongWidget::downloadSongFinished from 0x1400ccf20 to 0x1400ccfdf (191 bytes)
//
// 2 xrefs:
// > ??> @ 0x14054ec78
// > ??> @ 0x1406c8394
//
// 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 CustomSongWidget::downloadSongFinished(CustomSongWidget *a1, int a2)
{
float d; // eax
float v4; // xmm2_4
float v5; // xmm1_4
if ( BYTE1(a1->m_pGrid) )
{
CustomSongWidget::downloadAssetFinished((CustomSongWidget *)((char *)a1 - 320), a2, (GJAssetType)1);
}
else
{
d = a1->m_sInverse.d;
if ( LODWORD(d) == a2 && d != 0.0 )
{
(**(void (__fastcall ***)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)&a1->m_fRotationX + 368LL))(
*(_QWORD *)&a1->m_fRotationX + 368LL,
&stru_140529A30);
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)&a1->m_fRotationX + 360LL))(
*(_QWORD *)&a1->m_fRotationX + 360LL,
"Download complete.");
if ( BYTE1(a1->m_sInverse.c) )
{
v4 = 0.34999999;
v5 = 140.0;
}
else
{
v4 = 0.40000001;
v5 = 230.0;
}
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)&a1->m_fRotationX, v5, v4, 0.0);
CustomSongWidget::showError((CustomSongWidget *)((char *)a1 - 320), 1);
}
}
}