//
// __doserrno from 0x18012fe30 to 0x18012fe50 (32 bytes)
//
// 19 xrefs:
// > common_stat<_stat64i32> @ 0x1801290e7
// > _free_osfhnd @ 0x18013624d
// > _get_osfhandle @ 0x180136279
// > _get_osfhandle @ 0x1801362c4
// > sub_180138B78 @ 0x180138b88
// > sub_180138B78 @ 0x180138bf9
// > common_getdcwd @ 0x18013bf2e
// > _validdrive @ 0x18013c04e
// > __crt_seh_guarded_call::operator @ 0x18013f91e
// > _write @ 0x180140289
// > _write @ 0x1801402f4
// > _write @ 0x180140318
// > _write_nolock @ 0x18014037c
// > _write_nolock @ 0x1801405c1
// > _write_nolock @ 0x180140601
// > common_lseek<__int64> @ 0x180141f05
// > common_lseek<__int64> @ 0x180141f71
// > common_lseek<__int64> @ 0x180141f97
// > ??> @ 0x180202df8
//
// 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
//
unsigned int *__cdecl _doserrno()
{
__int64 v0; // rax
v0 = _acrt_getptd_noexit();
if ( v0 )
return (unsigned int *)(v0 + 36);
else
return (unsigned int *)&unk_1801B1854;
}