//
// CustomSFXWidget::updateError from 0x1005e4d00 to 0x1005e4d9f (159 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall CustomSFXWidget::updateError(CustomSFXWidget *a1, GJSongError a2)
{
cocos2d::CCLabelBMFont *m_errorLabel; // rdi
const char *v4; // rsi
__int16 v5; // [rsp+Ch] [rbp-14h] BYREF
char v6; // [rsp+Eh] [rbp-12h]
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_errorLabel->setVisible)(a1->m_errorLabel, 1);
m_errorLabel = a1->m_errorLabel;
v6 = 25;
v5 = 13055;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))m_errorLabel->setColor)(m_errorLabel, &v5);
if ( (unsigned int)(a2 - 1) > 2 )
v4 = "Download failed. Please try again later.";
else
v4 = off_100977140[a2 - 1];
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_errorLabel->setString)(a1->m_errorLabel, v4);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, 230.0, 0.40000001, 0.0);
}