//
// sub_AC58C from 0xac58c to 0xac5fe (114 bytes)
//
// 2 xrefs:
// > sub_A3C1E @ 0xa3c5c
// > sub_A4250 @ 0xa4262
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:41:38 +0000
//
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;
}