//
// CustomSongWidget::updateError from 0x4e28e4 to 0x4e2986 (162 bytes)
//
// 2 xrefs:
// > CustomSongWidget::downloadSongFailed @ 0x4e5a34
// > CustomSongWidget::loadSongInfoFailed @ 0x4e5f7e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:02 +0000
//
int __fastcall CustomSongWidget::updateError(int a1, int a2)
{
int *v3; // r0
int v4; // r3
void (__fastcall *v5)(int *, _DWORD *); // r3
float v6; // r1
float v7; // r2
_DWORD v9[2]; // [sp+0h] [bp-8h] BYREF
v9[0] = a1;
v9[1] = a2;
v3 = *(int **)(a1 + 292);
v4 = *v3;
LOWORD(v9[0]) = 13055;
v5 = *(void (__fastcall **)(int *, _DWORD *))(v4 + 536);
BYTE2(v9[0]) = 25;
v5(v3, v9);
(*(void (**)(void))(**(_DWORD **)(a1 + 292) + 464))();
if ( *(_BYTE *)(a1 + 357) )
{
v6 = 140.0;
v7 = 0.35;
}
else
{
v6 = 230.0;
v7 = 0.4;
}
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 292), v6, v7, 0.0);
return CustomSongWidget::showError((cocos2d::CCNode **)a1, 0);
}