//
// sub_AC58C from 0xac58c to 0xac5fe (114 bytes)
//
// 2 xrefs:
// > sub_A3C1E @ 0xa3c5c
// > sub_A4250 @ 0xa4262
//
// 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
//
int __fastcall sub_AC58C(int *a1, int a2)
{
int v4; // r0
if ( a1[2] == a2 )
return 0;
a1[2] = a2;
if ( *a1 )
sub_BD7AC(
*(int *)((char *)&dword_14C + (_DWORD)off_E8000),
*a1,
"../../../external/dsps/sfx/foreverb/aSfxDsp.cpp",
218,
1);
v4 = sub_BD410(
*(int *)((char *)&dword_14C + (_DWORD)off_E8000),
4 * a2 + 16,
"../../../external/dsps/sfx/foreverb/aSfxDsp.cpp",
221);
*a1 = v4;
if ( v4 )
{
a1[1] = (v4 + 15) & 0xFFFFFFF0;
return 0;
}
return 4505;
}