//
// CustomSongWidget::downloadSongFinished from 0x86dbb0 to 0x86dc84 (212 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x86dc98
// > ??> @ 0x6fb98
// > ??> @ 0x1442e98
//
// 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 12:55:44 +0000
//
__int64 __fastcall CustomSongWidget::downloadSongFinished(
cocos2d::CCLabelBMFont **this,
int a2,
__int64 a3,
__int64 a4,
int a5,
int a6,
int a7,
int a8,
char a9)
{
__int64 result; // x0
if ( *((_BYTE *)this + 529) )
return CustomSongWidget::downloadAssetFinished(
(CustomSongWidget *)this,
a2,
1,
*((unsigned __int8 *)this + 529),
a5,
a6,
a7,
a8,
a9);
result = (unsigned __int8)CustomSongWidget::verifySongID((CustomSongWidget *)this, a2);
if ( (_BYTE)result )
{
(*(void (__fastcall **)(_QWORD, void *))(*(_QWORD *)*(this + 47) + 1072LL))(*(this + 47), &unk_114B370);
(*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)*(this + 47) + 928LL))(*(this + 47), "Download complete.");
if ( *((_BYTE *)this + 501) )
cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 47), 140.0, 0.35, 0.0);
else
cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 47), 230.0, 0.4, 0.0);
return CustomSongWidget::showError(this, 1u);
}
return result;
}