//
// sub_1004A5D78 from 0x1004a5d78 to 0x1004a5e18 (160 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1004A5D78(__int64 *a1)
{
__int64 v2; // x19
__int64 v3; // x1
__int64 v4; // x21
__int64 v5; // x1
v2 = a1[21];
if ( v2 )
sub_100442B5C(a1[21], 7u);
v3 = a1[66];
if ( !v3 || (v4 = sub_100443DB4(a1[21], v3), !(_DWORD)v4) )
{
v5 = a1[65];
*(_OWORD *)(a1 + 65) = 0u;
if ( v5 )
sub_1004B1970(
*((_QWORD *)off_1008524C8 + 54),
v5,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_dspi.cpp",
5974,
1);
v4 = 0;
}
if ( v2 )
sub_100442B7C(v2, 7u);
return v4;
}