//
// CustomSFXWidget::downloadSFXFailed from 0x1006b87f0 to 0x1006b88af (191 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b89ce8
//
// 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:28 +0000
//
char __fastcall CustomSFXWidget::downloadSFXFailed(__int64 a1, int a2, int a3)
{
char result; // al
__int64 v6; // rdi
unsigned int v7; // r14d
const char *v8; // rsi
__int16 v9; // [rsp-1Ch] [rbp-1Ch] BYREF
char v10; // [rsp-1Ah] [rbp-1Ah]
result = *(_DWORD *)(a1 + 496) != a2 || *(_DWORD *)(a1 + 496) == 0;
if ( !result )
{
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 368) + 344LL))(*(_QWORD *)(a1 + 368), 1);
v6 = *(_QWORD *)(a1 + 368);
v10 = 25;
v9 = 13055;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 1072LL))(v6, &v9);
v7 = a3 - 1;
if ( v7 > 2 )
v8 = "Download failed. Please try again later.";
else
v8 = off_100B8A478[v7];
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 368) + 928LL))(*(_QWORD *)(a1 + 368), v8);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 368), 230.0, (__m128)0x3ECCCCCDu, (__m128)0LL);
return CustomSFXWidget::downloadFailed(a1);
}
return result;
}