//
// sub_10038D9EC from 0x10038d9ec to 0x10038da9c (176 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::downloadSFXFailed @ 0x10038d9d8
//
// 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 11:03:36 +0000
//
double __fastcall sub_10038D9EC(__int64 a1, int a2)
{
__int64 v4; // x0
const char *v5; // x1
double result; // d0
__int16 v7; // [xsp+Ch] [xbp-14h] BYREF
char v8; // [xsp+Eh] [xbp-12h]
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 368) + 344LL))(*(_QWORD *)(a1 + 368), 1);
v4 = *(_QWORD *)(a1 + 368);
v8 = 25;
v7 = 13055;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 1072LL))(v4, &v7);
if ( (unsigned int)(a2 - 1) > 2 )
v5 = "Download failed. Please try again later.";
else
v5 = off_10093FB38[a2 - 1];
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 368) + 928LL))(*(_QWORD *)(a1 + 368), v5);
*(_QWORD *)&result = cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 368), 230.0, 0.4, 0.0).n128_u64[0];
return result;
}