//
// sub_97820 from 0x97820 to 0x9785e (62 bytes)
//
// 1 xrefs:
// > sub_978C2 @ 0x978c8
//
// 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_97820(int a1, int a2, _DWORD *a3, int a4)
{
float v4; // s0
if ( a2 == 1 )
{
*a3 = *(_DWORD *)(a1 + 996);
if ( a4 )
{
v4 = *(float *)(a1 + 996);
goto LABEL_7;
}
}
else if ( !a2 )
{
*a3 = *(_DWORD *)(a1 + 1000);
if ( a4 )
{
v4 = *(float *)(a1 + 1000);
LABEL_7:
sub_BE420(a4, 32, "%.02f", v4);
}
}
return 0;
}