//
// sub_1006B8950 from 0x1006b8950 to 0x1006b8a0b (187 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b89d48
//
// 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 sub_1006B8950(__int64 a1, int a2, int a3)
{
char result; // al
__int64 v6; // rbx
__int64 v7; // rdi
unsigned int v8; // r15d
const char *v9; // rsi
int v10; // [rsp-24h] [rbp-24h] BYREF
result = *(_DWORD *)(a1 + 176) != a2 || *(_DWORD *)(a1 + 176) == 0;
if ( !result )
{
v10 = 0;
v6 = a1 - 320;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 48) + 344LL))(*(_QWORD *)(a1 + 48), 1);
v7 = *(_QWORD *)(a1 + 48);
BYTE2(v10) = 25;
LOWORD(v10) = 13055;
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v7 + 1072LL))(v7, &v10);
v8 = a3 - 1;
if ( v8 > 2 )
v9 = "Download failed. Please try again later.";
else
v9 = off_100B8A478[v8];
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 48) + 928LL))(*(_QWORD *)(a1 + 48), v9);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 48), 230.0, (__m128)0x3ECCCCCDu, (__m128)0LL);
return CustomSFXWidget::downloadFailed(v6);
}
return result;
}