//
// sub_5ADC8 from 0x5adc8 to 0x5aff8 (560 bytes)
//
// 2 xrefs:
// > sub_652D0 @ 0x653f6
// > FMOD::System::getReverbProperties @ 0xb9f00
//
// 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:48 +0000
//
int __fastcall sub_5ADC8(int a1, unsigned int a2, int *a3)
{
int v4; // s2
float *v5; // r0
float v6; // s0
int v7; // s0
int v8; // s4
float v9; // s2
float v10; // s2
float v11; // s2
float v12; // s0
float v13; // s2
float v14; // s0
int v15; // s0
int v16; // s4
float v17; // s2
float v18; // s2
float v19; // s2
float v20; // s0
float v21; // s2
float v22; // s0
float v23; // s2
float v24; // s0
float v25; // s0
int v26; // s2
float v27; // s2
float v28; // s0
if ( !a3 )
return 31;
if ( a2 > 3 )
return 59;
v4 = 1120403456;
v5 = (float *)(a1 + 48 * a2);
v6 = v5[17934];
if ( v6 >= 100.0 )
{
v4 = 1184645120;
if ( v6 <= 20000.0 )
v4 = *((_DWORD *)v5 + 17934);
}
v7 = 0;
v8 = 0;
*a3 = v4;
v9 = v5[17935];
if ( v9 >= 0.0 )
{
v8 = 1133903872;
if ( v9 <= 300.0 )
v8 = *((_DWORD *)v5 + 17935);
}
a3[1] = v8;
v10 = v5[17936];
if ( v10 >= 0.0 )
{
v7 = 1120403456;
if ( v10 <= 100.0 )
v7 = *((_DWORD *)v5 + 17936);
}
v11 = 20.0;
a3[2] = v7;
v12 = v5[17937];
if ( v12 >= 20.0 )
{
v11 = 20000.0;
if ( v12 <= 20000.0 )
v11 = v5[17937];
}
*((float *)a3 + 3) = v11;
v13 = 10.0;
v14 = v5[17938];
if ( v14 >= 10.0 )
{
v13 = 100.0;
if ( v14 <= 100.0 )
v13 = v5[17938];
}
v15 = 0;
v16 = 0;
*((float *)a3 + 4) = v13;
v17 = v5[17939];
if ( v17 >= 0.0 )
{
v16 = 1120403456;
if ( v17 <= 100.0 )
v16 = *((_DWORD *)v5 + 17939);
}
a3[5] = v16;
v18 = v5[17940];
if ( v18 >= 0.0 )
{
v15 = 1120403456;
if ( v18 <= 100.0 )
v15 = *((_DWORD *)v5 + 17940);
}
v19 = 20.0;
a3[6] = v15;
v20 = v5[17941];
if ( v20 >= 20.0 )
{
v19 = 1000.0;
if ( v20 <= 1000.0 )
v19 = v5[17941];
}
*((float *)a3 + 7) = v19;
v21 = -36.0;
v22 = v5[17942];
if ( v22 >= -36.0 )
{
v21 = 12.0;
if ( v22 <= 12.0 )
v21 = v5[17942];
}
*((float *)a3 + 8) = v21;
v23 = 20.0;
v24 = v5[17943];
if ( v24 >= 20.0 )
{
v23 = 20000.0;
if ( v24 <= 20000.0 )
v23 = v5[17943];
}
*((float *)a3 + 9) = v23;
v25 = v5[17944];
if ( v25 >= 0.0 )
{
v26 = 1120403456;
if ( v25 <= 100.0 )
v26 = *((_DWORD *)v5 + 17944);
}
else
{
v26 = 0;
}
a3[10] = v26;
v27 = -80.0;
v28 = v5[17945];
if ( v28 >= -80.0 )
{
v27 = 20.0;
if ( v28 <= 20.0 )
v27 = v5[17945];
}
*((float *)a3 + 11) = v27;
return 0;
}