//
// CustomSongWidget::loadSongInfoFailed from 0x14016e090 to 0x14016e16a (218 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407448b0
// > ??> @ 0x1409181ac
//
// 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::loadSongInfoFailed(unsigned int *a1, int a2, unsigned int a3)
{
_QWORD *v5; // rcx
__int64 *v7; // rdx
__int64 *i; // rax
__int64 result; // rax
__int64 v10; // rdi
int v11; // [rsp+38h] [rbp+10h] BYREF
v11 = a2;
v5 = a1 + 74;
v7 = (__int64 *)*v5;
for ( i = *(__int64 **)(*v5 + 8LL); !*((_BYTE *)i + 25); i = (__int64 *)*i )
{
if ( *((_DWORD *)i + 7) >= a2 )
v7 = i;
else
i += 2;
}
if ( *((_BYTE *)v7 + 25) || a2 < *((_DWORD *)v7 + 7) )
{
result = a1[46];
v10 = (__int64)(a1 - 80);
if ( (_DWORD)result == a2 )
{
if ( (_DWORD)result )
{
CustomSongWidget::updateError(v10, a3);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v10 + 456) + 336LL))(*(_QWORD *)(v10 + 456), 0);
cocos2d::CCNode::unschedule(v10, CustomSongWidget::updateDownloadProgress);
*(_BYTE *)(v10 + 499) = 0;
return CustomSongWidget::updateSongInfo(v10);
}
}
}
else
{
sub_1400BD2C0(v5, &v11);
return (*(__int64 (__fastcall **)(unsigned int *, _QWORD, _QWORD))(*(_QWORD *)a1 + 32LL))(a1, (unsigned int)a2, a3);
}
return result;
}