//
// CustomSongWidget::updateError from 0x1006fce80 to 0x1006fcf3f (191 bytes)
//
// 0 xrefs:
//
// 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 12:35:56 +0000
//
__int64 __fastcall CustomSongWidget::updateError(__int64 a1, int a2)
{
__int64 v3; // rdi
__int64 v4; // rdi
void (__fastcall *v5)(__int64, const char *); // rax
__int64 v6; // rdi
float v7; // xmm0_4
__m128 v8; // xmm1
__int16 v10; // [rsp+Ch] [rbp-14h] BYREF
char v11; // [rsp+Eh] [rbp-12h]
v3 = *(_QWORD *)(a1 + 376);
v11 = 25;
v10 = 13055;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1072LL))(v3, &v10);
v4 = *(_QWORD *)(a1 + 376);
v5 = *(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v4 + 928LL);
if ( (unsigned int)(a2 - 1) > 2 )
{
v5(v4, "Download failed. Please try later.");
v6 = *(_QWORD *)(a1 + 376);
if ( *(_BYTE *)(a1 + 501) != 1 )
goto LABEL_3;
LABEL_5:
v7 = 140.0;
v8 = (__m128)0x3EB33333u;
goto LABEL_6;
}
v5(v4, off_100B95EE0[a2 - 1]);
v6 = *(_QWORD *)(a1 + 376);
if ( *(_BYTE *)(a1 + 501) == 1 )
goto LABEL_5;
LABEL_3:
v7 = 230.0;
v8 = (__m128)0x3ECCCCCDu;
LABEL_6:
cocos2d::CCLabelBMFont::limitLabelWidth(v6, v7, v8, (__m128)0LL);
return CustomSongWidget::showError(a1, 0);
}