//
// __sfp_handle_exceptions from 0x110a434 to 0x110a494 (96 bytes)
//
// 5 xrefs:
// > __addtf3 @ 0x1106230
// > __eqtf2 @ 0x11063bc
// > __trunctfsf2 @ 0x1106708
// > __trunctfdf2 @ 0x11069c4
// > ??> @ 0x992f8
//
// 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 13:18:31 +0000
//
unsigned __int64 __fastcall _sfp_handle_exceptions(unsigned __int64 result)
{
if ( (result & 1) != 0 )
_ReadStatusReg(FPSR);
if ( (result & 2) != 0 )
_ReadStatusReg(FPSR);
if ( (result & 4) != 0 )
_ReadStatusReg(FPSR);
if ( (result & 8) != 0 )
_ReadStatusReg(FPSR);
if ( (result & 0x10) != 0 )
return _ReadStatusReg(FPSR);
return result;
}