//
// sub_1004A8890 from 0x1004a8890 to 0x1004a8938 (168 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_1004A8890(__int64 *a1)
{
__int64 v2; // x19
__int64 v3; // x0
_QWORD *v4; // x1
__int64 v5; // x20
v2 = a1[21];
if ( v2 )
sub_100442B5C(a1[21], 7u);
v3 = sub_1004B14F8(
*((_QWORD *)off_1008524C8 + 54),
1104,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_dspi.cpp",
5934,
0);
a1[65] = v3;
if ( !v3 )
{
v5 = 38;
if ( !v2 )
return v5;
goto LABEL_5;
}
v4 = (_QWORD *)((v3 + 15) & 0xFFFFFFFFFFFFFFF0LL);
v4[134] = v4 + 133;
v4[133] = v4 + 133;
v4[135] = v4;
a1[66] = (__int64)v4;
v5 = sub_100443D88(a1[21], (__int64)v4);
if ( v2 )
LABEL_5:
sub_100442B7C(v2, 7u);
return v5;
}