//
// sub_7E608 from 0x7e608 to 0x7e6f0 (232 bytes)
//
// 1 xrefs:
// > sub_7E264 @ 0x7e270
//
// 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
//
__int64 __fastcall sub_7E608(__int64 a1, int a2)
{
int v2; // w8
__int64 v4; // x20
_BYTE *v5; // x21
__int64 v6; // x24
float v7; // s11
float v8; // s0
int v9; // w8
if ( a2 == 1 )
{
v2 = *(_DWORD *)(a1 + 9304);
if ( *(_DWORD *)(a1 + 544) != v2 )
{
*(_DWORD *)(a1 + 544) = v2;
*(_BYTE *)(a1 + 9168) = 1;
}
v4 = 0;
v5 = (_BYTE *)(a1 + 9168);
while ( v4 != 128 )
{
v6 = a1 + v4;
v7 = *(float *)(a1 + v4 + 9176);
v8 = powf(10.0, v7 * 0.05);
if ( v7 <= -80.0 )
v8 = 0.0;
if ( v8 != *(float *)(a1 + v4 + 848) )
{
*(float *)(v6 + 848) = v8;
*v5 = 1;
}
v9 = *(_DWORD *)(v6 + 9308);
if ( *(_DWORD *)(v6 + 720) != v9 )
{
*(_DWORD *)(v6 + 720) = v9;
*v5 = 1;
}
v4 += 4;
}
}
return 0;
}