//
// sub_100122D74 from 0x100122d74 to 0x100122df8 (132 bytes)
//
// 3 xrefs:
// > CustomSongWidget::downloadSongFailed @ 0x100122d38
// > CustomSongWidget::downloadSFXFailed @ 0x100122e18
// > sub_100122E1C @ 0x100122e24
//
// 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
//
char *__fastcall sub_100122D74(__int64 a1, int a2, int a3)
{
char *result; // x0
char *v6; // x2
char *v7; // x9
result = *(char **)(a1 + 600);
v6 = *(char **)(a1 + 608);
if ( result != v6 )
{
v7 = result;
while ( *(_DWORD *)v7 != a2 || *((_DWORD *)v7 + 1) != a3 )
{
v7 += 16;
result += 16;
if ( v7 == v6 )
return result;
}
++*((_DWORD *)v7 + 2);
v7[12] = 0;
sub_1001232A8(result);
return (char *)CustomSongWidget::processNextMultiAsset(a1);
}
return result;
}