//
// sub_52F7C from 0x52f7c to 0x52fea (110 bytes)
//
// 1 xrefs:
// > sub_52A58 @ 0x52c6a
//
// 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_52F7C(_DWORD *a1, _DWORD *a2)
{
int v3; // r0
unsigned int v4; // r2
int v6; // r1
int v7; // r2
int v8; // r0
v3 = a1[9];
v4 = a1[10];
v6 = v3 + 1;
if ( v3 + 1 < v4 )
{
v7 = a1[8];
LABEL_5:
a1[9] = v6;
*a2 = v7 + 94 * v3;
return 0;
}
a1[10] = 2 * v4;
v8 = sub_BD598(
*(int *)((char *)&dword_14C + (_DWORD)off_E8000),
a1[6],
188 * v4 + 20,
"../../src/fmod_profile_dsp.cpp",
276,
0);
a1[6] = v8;
if ( v8 )
{
v7 = v8 + 20;
a1[7] = v8;
a1[8] = v8 + 20;
v3 = a1[9];
v6 = v3 + 1;
goto LABEL_5;
}
return 38;
}