//
// sub_88EE8 from 0x88ee8 to 0x88fa8 (192 bytes)
//
// 1 xrefs:
// > sub_88FB8 @ 0x88fde
//
// 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_88EE8(int *a1)
{
int v1; // r1
unsigned int v3; // r0
int v4; // r0
int v5; // r1
int v6; // r0
unsigned int v8; // [sp+4h] [bp-14h] BYREF
v1 = a1[102];
if ( v1 )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v1, "../../src/fmod_dsp_chorus.cpp", 217, 1);
a1[101] = 0;
a1[102] = 0;
}
sub_57A48(a1[32], &v8, nullptr);
v3 = (int)(float)((float)a1[108] * 120.0) / 1000 / v8 + 1;
if ( v3 <= 2 )
v3 = 2;
v4 = v3 * v8;
v5 = a1[109] * v4;
a1[103] = v4;
a1[104] = 2 * v5;
v6 = sub_BD580(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 2 * v5 + 16, "../../src/fmod_dsp_chorus.cpp", 240, 0);
a1[102] = v6;
if ( !v6 )
return 38;
a1[101] = (v6 + 15) & 0xFFFFFFF0;
sub_88D58((int)a1);
return 0;
}