	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__dosmaperr                     ## -- Begin function _dosmaperr
	.p2align	4, 0x90
__dosmaperr:                            ## @_dosmaperr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	_doserrors@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_lengthof
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	cmpq	%r12, -8(%rdi,%r15)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	callq	_lengthof
	cltq
	addq	$16, %r15
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_7:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_5:
	movl	(%rdi,%r15), %r14d
	movq	_DEBUG5@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_errmsg_internal
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_doserrors,8,3                  ## @doserrors
	.comm	_DEBUG5,4,2                     ## @DEBUG5
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mapped win32 error code %lu to %d"

	.comm	_LOG,4,2                        ## @LOG
L_.str.1:                               ## @.str.1
	.asciz	"unrecognized win32 error code: %lu"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__dosmaperr                     ; -- Begin function _dosmaperr
	.p2align	2
__dosmaperr:                            ; @_dosmaperr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _doserrors@GOTPAGE
Lloh1:
	ldr	x20, [x20, _doserrors@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_lengthof
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x0, x21]
	cmp	x8, x19
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	bl	_lengthof
	add	x21, x21, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
Lloh2:
	adrp	x8, _LOG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_6:
	mov	w21, #0
	b	LBB0_8
LBB0_7:
	add	x8, x0, x21
	ldr	w21, [x8, #8]
Lloh10:
	adrp	x8, _DEBUG5@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEBUG5@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	str	x21, [sp]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_8:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	str	w21, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_doserrors,8,3                  ; @doserrors
	.comm	_DEBUG5,4,2                     ; @DEBUG5
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mapped win32 error code %lu to %d"

	.comm	_LOG,4,2                        ; @LOG
l_.str.1:                               ; @.str.1
	.asciz	"unrecognized win32 error code: %lu"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
