//
// CustomSongWidget::downloadSongFinished from 0x4e5d90 to 0x4e5df4 (100 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x4e5e10
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:05 +0000
//
int __fastcall CustomSongWidget::downloadSongFinished(cocos2d::CCLabelBMFont **this, int *a2)
{
int result; // r0
float v4; // r1
float v5; // r2
if ( *((_BYTE *)this + 377) )
return (int)CustomSongWidget::downloadAssetFinished((MusicDownloadManager *)this, a2, 1);
result = CustomSongWidget::verifySongID((CustomSongWidget *)this, (int)a2);
if ( result )
{
(*(void (__fastcall **)(_DWORD, void *))(*(_DWORD *)*(this + 73) + 536))(*(this + 73), &unk_BEC5F6);
(*(void (__fastcall **)(_DWORD, const char *))(*(_DWORD *)*(this + 73) + 464))(*(this + 73), "Download complete.");
if ( *((_BYTE *)this + 357) )
{
v4 = 140.0;
v5 = 0.35;
}
else
{
v4 = 230.0;
v5 = 0.4;
}
cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 73), v4, v5, 0.0);
return CustomSongWidget::showError(this, 1);
}
return result;
}