// // _set_errno_from_matherr from 0x180133734 to 0x180133762 (46 bytes) // // 7 xrefs: // > _except2 @ 0x18013311e // > _umatherr @ 0x180133810 // > _umatherr @ 0x180133824 // > _call_matherr @ 0x18013395c // > _handle_error @ 0x180133b17 // > _handle_errorf @ 0x180133c4b // > @ 0x180203158 // // 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 *__fastcall set_errno_from_matherr(int a1) { int *result; // rax if ( a1 == 1 ) { result = errno(); *result = 33; } else { result = (int *)(unsigned int)(a1 - 2); if ( (unsigned int)result <= 1 ) { result = errno(); *result = 34; } } return result; }