//
// sub_53990 from 0x53990 to 0x53b76 (486 bytes)
//
// 2 xrefs:
// > sub_538F8 @ 0x53924
// > FMOD::Reverb3D::setProperties @ 0xb46b8
//
// 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:40:44 +0000
//
int __fastcall sub_53990(float *a1, float *a2)
{
float v2; // s2
int v3; // s0
int v4; // s4
float v5; // s2
float v6; // s2
float v7; // s2
float v8; // s0
float v9; // s2
float v10; // s0
int v11; // s0
int v12; // s4
float v13; // s2
float v14; // s2
float v15; // s2
float v16; // s0
float v17; // s0
float v18; // s2
float v19; // s2
float v20; // s0
float v21; // s0
int v22; // s2
float v23; // s0
float v24; // s2
v2 = 100.0;
if ( *a2 >= 100.0 )
{
v2 = 20000.0;
if ( *a2 <= 20000.0 )
v2 = *a2;
}
v3 = 0;
a1[3] = v2;
v4 = 0;
v5 = a2[1];
if ( v5 >= 0.0 )
{
v4 = 1133903872;
if ( v5 <= 300.0 )
v4 = *((_DWORD *)a2 + 1);
}
*((_DWORD *)a1 + 4) = v4;
v6 = a2[2];
if ( v6 >= 0.0 )
{
v3 = 1120403456;
if ( v6 <= 100.0 )
v3 = *((_DWORD *)a2 + 2);
}
v7 = 20.0;
*((_DWORD *)a1 + 5) = v3;
v8 = a2[3];
if ( v8 >= 20.0 )
{
v7 = 20000.0;
if ( v8 <= 20000.0 )
v7 = a2[3];
}
a1[6] = v7;
v9 = 10.0;
v10 = a2[4];
if ( v10 >= 10.0 )
{
v9 = 100.0;
if ( v10 <= 100.0 )
v9 = a2[4];
}
v11 = 0;
a1[7] = v9;
v12 = 0;
v13 = a2[5];
if ( v13 >= 0.0 )
{
v12 = 1120403456;
if ( v13 <= 100.0 )
v12 = *((_DWORD *)a2 + 5);
}
*((_DWORD *)a1 + 8) = v12;
v14 = a2[6];
if ( v14 >= 0.0 )
{
v11 = 1120403456;
if ( v14 <= 100.0 )
v11 = *((_DWORD *)a2 + 6);
}
v15 = 20.0;
*((_DWORD *)a1 + 9) = v11;
v16 = a2[7];
if ( v16 >= 20.0 )
{
v15 = 1000.0;
if ( v16 <= 1000.0 )
v15 = a2[7];
}
a1[10] = v15;
v17 = a2[8];
v18 = -36.0;
if ( v17 >= -36.0 )
{
v18 = 12.0;
if ( v17 <= 12.0 )
v18 = a2[8];
}
a1[11] = v18;
v19 = 20.0;
v20 = a2[9];
if ( v20 >= 20.0 )
{
v19 = 20000.0;
if ( v20 <= 20000.0 )
v19 = a2[9];
}
a1[12] = v19;
v21 = a2[10];
if ( v21 >= 0.0 )
{
v22 = 1120403456;
if ( v21 <= 100.0 )
v22 = *((_DWORD *)a2 + 10);
}
else
{
v22 = 0;
}
*((_DWORD *)a1 + 13) = v22;
v23 = a2[11];
v24 = -80.0;
if ( v23 >= -80.0 )
{
v24 = 20.0;
if ( v23 <= 20.0 )
v24 = a2[11];
}
a1[14] = v24;
return 0;
}