//
// sub_10038C32C from 0x10038c32c to 0x10038c3e0 (180 bytes)
//
// 2 xrefs:
// > CustomSFXWidget::FLAlert_Clicked @ 0x10038dafc
// > CustomSFXWidget::init @ 0x10038b650
//
// 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_10038C32C(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x0
__n128 GameVariable; // q0
char v5; // w0
__int64 v6; // x0
result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 368) + 344LL))(*(_QWORD *)(a1 + 368), 0);
if ( *(_QWORD *)(a1 + 336) )
{
v3 = GameManager::sharedState(result);
GameVariable = GameManager::getGameVariable(v3, "0016");
if ( (v5 & 1) != 0 )
{
sub_10038D688(a1, GameVariable);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 376) + 344LL))(*(_QWORD *)(a1 + 376), 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 384) + 344LL))(*(_QWORD *)(a1 + 384), 1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 408) + 344LL))(*(_QWORD *)(a1 + 408), 0);
return sub_10038D870(a1);
}
else
{
v6 = MusicDownloadManager::sharedState();
return MusicDownloadManager::showTOS(v6, a1 + 328);
}
}
return result;
}