//
// sub_7B3A4 from 0x7b3a4 to 0x7b414 (112 bytes)
//
// 3 xrefs:
// > sub_7B0C4 @ 0x7b12c
// > sub_7B170 @ 0x7b25c
// > sub_7B170 @ 0x7b288
//
// 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
//
long double __fastcall sub_7B3A4(float a1, float a2, long double a3)
{
float v3; // s2
float v4; // s3
bool v5; // nf
float v6; // s0
float v7; // s1
float v8; // s1
LODWORD(a3) = 0;
if ( a1 != 0.0 || a2 != 0.0 )
{
v3 = fabsf(a2);
v4 = fabsf(a1);
if ( v4 <= v3 )
{
v6 = a1 / v3;
if ( a2 < 0.0 )
{
v8 = 5.0;
goto LABEL_8;
}
v7 = 1.0;
}
else
{
v5 = a1 < 0.0;
v6 = a2 / v4;
if ( !v5 )
{
v8 = 3.0;
LABEL_8:
*(float *)&a3 = v8 - v6;
return a3;
}
v7 = 7.0;
}
*(float *)&a3 = v6 + v7;
}
return a3;
}