//
// sub_10038CA58 from 0x10038ca58 to 0x10038caac (84 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::init @ 0x10038bac8
//
// 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:35 +0000
//
__int64 __fastcall sub_10038CA58(__int64 result)
{
__int64 v1; // x8
__int64 v2; // x19
int v3; // w20
__int64 *v4; // x0
__int64 v5; // x8
v1 = *(_QWORD *)(result + 336);
if ( v1 )
{
v2 = result;
v3 = *(_DWORD *)(v1 + 76);
v4 = (__int64 *)MusicDownloadManager::sharedState();
v5 = *(_QWORD *)(v2 + 336);
if ( v3 < 1 )
sub_1001D5B4C(v4, *(_DWORD *)(v5 + 56));
else
sub_1001D5BCC(v4, *(_DWORD *)(v5 + 76));
return sub_10038CC88(v2);
}
return result;
}