//
// sub_100122A24 from 0x100122a24 to 0x100122aec (200 bytes)
//
// 2 xrefs:
// > CustomSongWidget::loadSongInfoFailed @ 0x1001229d8
// > CustomSongWidget::downloadSongFailed @ 0x100122d60
//
// 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 10:59:16 +0000
//
void __fastcall sub_100122A24(__int64 a1, int a2)
{
__int64 v4; // x0
const char *v5; // x1
float v6; // s0
float v7; // s1
__int16 v8; // [xsp+Ch] [xbp-14h] BYREF
char v9; // [xsp+Eh] [xbp-12h]
v4 = *(_QWORD *)(a1 + 376);
v9 = 25;
v8 = 13055;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 1072LL))(v4, &v8);
if ( (unsigned int)(a2 - 1) > 2 )
v5 = "Download failed. Please try later.";
else
v5 = off_1008D5B48[a2 - 1];
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 376) + 928LL))(*(_QWORD *)(a1 + 376), v5);
if ( *(_BYTE *)(a1 + 501) == 1 )
{
v6 = 140.0;
v7 = 0.35;
}
else
{
v6 = 230.0;
v7 = 0.4;
}
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 376), v6, v7, 0.0);
CustomSongWidget::showError(a1, 0);
}