//
// CustomSFXWidget::updateError from 0xb5e0ac to 0xb5e1ec (320 bytes)
//
// 2 xrefs:
// > CustomSFXWidget::downloadSFXFailed @ 0xb5f040
// > ??> @ 0x710b0
//
// This function is hookable on this platform (idp: arm, 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 13:02:10 +0000
//
__int64 __fastcall CustomSFXWidget::updateError(__int64 a1, int a2)
{
__int64 *v4; // x0
__int64 v5; // x2
void (__fastcall *v6)(__int64 *, _BYTE *); // x2
_BYTE v8[8]; // [xsp+30h] [xbp+30h] BYREF
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 368) + 344LL))(*(_QWORD *)(a1 + 368), 1);
v4 = *(__int64 **)(a1 + 368);
v5 = *v4;
v8[0] = -1;
v8[1] = 50;
v6 = *(void (__fastcall **)(__int64 *, _BYTE *))(v5 + 1072);
v8[2] = 25;
v6(v4, v8);
switch ( a2 )
{
case 2:
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 368) + 928LL))(
*(_QWORD *)(a1 + 368),
"SFX is not allowed for use.");
break;
case 3:
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 368) + 928LL))(
*(_QWORD *)(a1 + 368),
"Download canceled.");
break;
case 1:
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 368) + 928LL))(
*(_QWORD *)(a1 + 368),
"Failed to fetch SFX info.");
break;
default:
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 368) + 928LL))(
*(_QWORD *)(a1 + 368),
"Download failed. Please try again later.");
break;
}
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 368), 230.0, 0.4, 0.0);
return _stack_chk_guard;
}