//
// sub_1005E4DA0 from 0x1005e4da0 to 0x1005e4e5b (187 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009770c8
//
// 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 sub_1005E4DA0(__int64 a1, int a2, int a3)
{
CustomSFXWidget *v5; // rbx
__int64 v6; // rdi
unsigned int v7; // r15d
const char *v8; // rsi
int v9; // [rsp-24h] [rbp-24h] BYREF
if ( *(_DWORD *)(a1 + 136) == a2 && *(_DWORD *)(a1 + 136) != 0 )
{
v9 = 0;
v5 = (CustomSFXWidget *)(a1 - 320);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 48) + 328LL))(*(_QWORD *)(a1 + 48), 1);
v6 = *(_QWORD *)(a1 + 48);
BYTE2(v9) = 25;
LOWORD(v9) = 13055;
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v6 + 1056LL))(v6, &v9);
v7 = a3 - 1;
if ( v7 > 2 )
v8 = "Download failed. Please try again later.";
else
v8 = off_100977140[v7];
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 48) + 912LL))(*(_QWORD *)(a1 + 48), v8);
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 48), 230.0, 0.40000001, 0.0);
CustomSFXWidget::downloadFailed(v5);
}
}