	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xstrerror                      ## -- Begin function xstrerror
	.p2align	4, 0x90
_xstrerror:                             ## @xstrerror
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	testl	%edi, %edi
	js	LBB0_3
## %bb.1:
	movq	_sys_nerr@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_3
## %bb.2:
	movq	_sys_errlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_xstrerror.errbuf(%rip), %rdi
	callq	_xfree
	leaq	L_.str(%rip), %rdx
	movl	$23, %edi
	movl	$13, %esi
	callq	_CGETS
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_xasprintf
	movq	%rax, _xstrerror.errbuf(%rip)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sys_nerr,4,2                   ## @sys_nerr
	.comm	_sys_errlist,8,3                ## @sys_errlist
.zerofill __DATA,__bss,_xstrerror.errbuf,8,3 ## @xstrerror.errbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown Error: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xstrerror                      ; -- Begin function xstrerror
	.p2align	2
_xstrerror:                             ; @xstrerror
	.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, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _sys_nerr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sys_nerr@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _sys_errlist@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sys_errlist@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x0, [x8, w19, uxtw #3]
	b	LBB0_4
LBB0_3:
	adrp	x20, _xstrerror.errbuf@PAGE
	ldr	x0, [x20, _xstrerror.errbuf@PAGEOFF]
	bl	_xfree
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #23
	mov	w1, #13
	bl	_CGETS
	mov	x1, x19
	bl	_xasprintf
	str	x0, [x20, _xstrerror.errbuf@PAGEOFF]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_sys_nerr,4,2                   ; @sys_nerr
	.comm	_sys_errlist,8,3                ; @sys_errlist
.zerofill __DATA,__bss,_xstrerror.errbuf,8,3 ; @xstrerror.errbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown Error: %d"

.subsections_via_symbols
