//
// sub_72C84 from 0x72c84 to 0x72d18 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x114750
//
// This function is hookable on this platform (idp: arm, 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:14:00 +0000
//
__int64 __fastcall sub_72C84(__int64 a1, int a2, float *a3, __int64 a4)
{
__int64 v4; // x8
float v7; // s8
float v8; // s0
v4 = *(_QWORD *)(a1 + 8);
if ( a2 == 2 )
{
v7 = *(float *)(v4 + 44);
}
else
{
if ( a2 != 1 )
return 31;
v7 = *(float *)(v4 + 40);
}
v8 = log10f(v7) * 20.0;
if ( v7 <= 0.0 )
v8 = -80.0;
*a3 = v8;
if ( a4 )
sub_E3FC8(a4, 32, "%.1f", v8);
return 0;
}