//
// _call_matherr from 0x180133908 to 0x18013396d (101 bytes)
//
// 3 xrefs:
// > _handle_error @ 0x180133b0e
// > _handle_errorf @ 0x180133c3e
// > ??> @ 0x1802031a0
//
// This function is hookable on this platform (idp: pc, 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 10:54:59 +0000
//
double __fastcall call_matherr(int a1, __int64 a2, __int64 a3, double a4, __int64 a5, double a6, __int64 a7)
{
int v9; // [rsp+20h] [rbp-38h] BYREF
__int64 v10; // [rsp+28h] [rbp-30h]
double v11; // [rsp+30h] [rbp-28h]
__int64 v12; // [rsp+38h] [rbp-20h]
double v13; // [rsp+40h] [rbp-18h]
v9 = a1;
v12 = a5;
v13 = a6;
v11 = a4;
v10 = a3;
ctrlfp(a7, 65472);
if ( !(unsigned int)_acrt_invoke_user_matherr(&v9) )
set_errno_from_matherr(a1);
return v13;
}