	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NTstrerror                     ## -- Begin function NTstrerror
	.p2align	4, 0x90
_NTstrerror:                            ## @NTstrerror
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movslq	%edi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movq	_WSABASEERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	jg	LBB0_3
## %bb.1:
	addq	$1015, %rax                     ## imm = 0x3F7
	cmpq	%rbx, %rax
	jl	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_GetWSAErrorMessage
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	__sys_nerr@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jge	LBB0_4
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_FormatError                    ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_strerror                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_WSABASEERR,8,3                 ## @WSABASEERR
	.comm	__sys_nerr,8,3                  ## @_sys_nerr
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NTstrerror                     ; -- Begin function NTstrerror
	.p2align	2
_NTstrerror:                            ; @NTstrerror
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
Lloh3:
	adrp	x8, _WSABASEERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WSABASEERR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x9, x8, #1015
	cmp	x8, x20
	ccmp	x9, x20, #8, le
	b.lt	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_GetWSAErrorMessage
	cbz	x0, LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x8, __sys_nerr@GOTPAGE
Lloh7:
	ldr	x8, [x8, __sys_nerr@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ge	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FormatError
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_strerror
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_WSABASEERR,8,3                 ; @WSABASEERR
	.comm	__sys_nerr,8,3                  ; @_sys_nerr
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
