//
// feholdexcept from 0x1801414f8 to 0x180141548 (80 bytes)
//
// 3 xrefs:
// > __acrt_fltout @ 0x18013e23d
// > ??> @ 0x180203cbc
// > ??> @ 0x180203cc8
//
// 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 __cdecl feholdexcept(fenv_t *Env)
{
fenv_t v2; // rax
fenv_t Enva; // [rsp+38h] [rbp+10h] BYREF
Enva._Fe_ctl = 0;
Enva._Fe_stat = 0;
if ( fegetenv(&Enva) )
return 1;
v2 = Enva;
Enva._Fe_ctl |= 0x1Fu;
*Env = v2;
if ( fesetenv(&Enva) )
return 1;
clearfp();
return 0;
}