//
// CustomSongWidget::downloadSongFailed from 0x14016e250 to 0x14016e2ce (126 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407448c8
// > ??> @ 0x1409181c4
//
// This function is hookable on this platform (idp: pc, 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 11:27:30 +0000
//
__int64 __fastcall CustomSongWidget::downloadSongFailed(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v3; // rbx
__int64 result; // rax
v3 = a1 - 320;
if ( *(_BYTE *)(a1 + 209) )
return CustomSongWidget::downloadAssetFailed(a1 - 320, a2, 1);
result = *(unsigned int *)(v3 + 504);
if ( (_DWORD)result == (_DWORD)a2 )
{
if ( (_DWORD)result )
{
CustomSongWidget::updateError(a1 - 320, a3);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v3 + 456) + 336LL))(*(_QWORD *)(v3 + 456), 0);
cocos2d::CCNode::unschedule(v3, CustomSongWidget::updateDownloadProgress);
*(_BYTE *)(v3 + 499) = 0;
return CustomSongWidget::updateSongInfo(v3);
}
}
return result;
}