//
// processFMODAudioState from 0x1005ef770 to 0x1005ef909 (409 bytes)
//
// 2 xrefs:
// > processFMODAudioState @ 0x1009a9e32
// > ??> @ 0x100ab3110
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:34:09 +0000
//
void __fastcall processFMODAudioState(__int64 a1, __int64 a2)
{
int v3; // r12d
__int64 v4; // r15
int v5; // r13d
__int64 v6; // rax
__int64 v7; // rdi
const char *v8; // rdi
float v9; // xmm0_4
__int64 v10; // rdi
const char *v11; // rdi
float v12; // xmm0_4
v3 = *(_DWORD *)(a1 + 24);
v4 = *(_QWORD *)a1;
v5 = -1431655765 * ((*(_QWORD *)(a1 + 8) - *(_QWORD *)a1) >> 3);
if ( v3 < v5 )
{
v6 = v3++;
*(_DWORD *)(a1 + 24) = v3;
v7 = v4 + 24 * v6;
if ( (*(_BYTE *)v7 & 1) != 0 )
v8 = *(const char **)(v7 + 16);
else
v8 = (const char *)(v7 + 1);
v9 = atof(v8);
*(float *)a2 = v9;
}
if ( v3 < v5 )
{
*(_DWORD *)(a1 + 24) = v3 + 1;
v10 = v4 + 24LL * v3;
if ( (*(_BYTE *)v10 & 1) != 0 )
v11 = *(const char **)(v10 + 16);
else
v11 = (const char *)(v10 + 1);
v12 = atof(v11);
*(float *)(a2 + 4) = v12;
}
sub_1005CE2F0((__int64 *)a1, a2 + 8);
sub_1005CE2F0((__int64 *)a1, a2 + 32);
sub_1005CE2F0((__int64 *)a1, a2 + 56);
sub_1005C8A00((__int64 *)a1, (float *)(a2 + 80));
sub_1005C8A00((__int64 *)a1, (float *)(a2 + 120));
sub_1005C8A00((__int64 *)a1, (float *)(a2 + 160));
sub_1005C8A00((__int64 *)a1, (float *)(a2 + 200));
sub_1005C8A00((__int64 *)a1, (float *)(a2 + 240));
sub_1005C8A00((__int64 *)a1, (float *)(a2 + 280));
sub_1005C8A00((__int64 *)a1, (float *)(a2 + 320));
sub_1005C8A00((__int64 *)a1, (float *)(a2 + 360));
sub_1005C8A00((__int64 *)a1, (float *)(a2 + 400));
sub_1005C8A00((__int64 *)a1, (float *)(a2 + 440));
sub_1005CE850((__int64 *)a1, (float *)(a2 + 480));
sub_1005CE850((__int64 *)a1, (float *)(a2 + 520));
sub_1005CF190((__int64 *)a1, a2 + 560);
sub_1005C6CE0((__int64 *)a1, (unsigned __int64 *)(a2 + 600));
}