//
// _sptype from 0x180132fa0 to 0x180133014 (116 bytes)
//
// 1 xrefs:
// > ldexp @ 0x180127527
//
// 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
//
__int64 __fastcall sptype(double a1)
{
if ( HIDWORD(a1) == 2146435072 && !LODWORD(a1) )
return 1;
if ( HIDWORD(a1) == -1048576 && !LODWORD(a1) )
return 2;
if ( (HIWORD(a1) & 0x7FF8) == 0x7FF8 )
return 3;
if ( (HIWORD(a1) & 0x7FF8) == 0x7FF0 && ((HIDWORD(a1) & 0x7FFFF) != 0 || LODWORD(a1)) )
return 4;
return 0;
}