	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_error_select               ## -- Begin function mac_error_select
	.p2align	4, 0x90
_mac_error_select:                      ## @mac_error_select
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EDEADLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	je	LBB0_13
## %bb.1:
	cmpl	%esi, %eax
	je	LBB0_13
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	je	LBB0_13
## %bb.3:
	cmpl	%esi, %eax
	je	LBB0_13
## %bb.4:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	je	LBB0_13
## %bb.5:
	cmpl	%esi, %eax
	je	LBB0_13
## %bb.6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	je	LBB0_13
## %bb.7:
	cmpl	%esi, %eax
	je	LBB0_13
## %bb.8:
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	je	LBB0_13
## %bb.9:
	cmpl	%esi, %eax
	je	LBB0_13
## %bb.10:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	je	LBB0_13
## %bb.11:
	cmpl	%esi, %eax
	je	LBB0_13
## %bb.12:
	testl	%edi, %edi
	cmovnel	%edi, %esi
	movl	%esi, %eax
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_error_select               ; -- Begin function mac_error_select
	.p2align	2
_mac_error_select:                      ; @mac_error_select
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	ccmp	w8, w1, #4, ne
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
	ccmp	w8, w1, #4, ne
	b.eq	LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _ESRCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w0
	ccmp	w8, w1, #4, ne
	b.eq	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w0
	ccmp	w8, w1, #4, ne
	b.eq	LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _EACCES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w0
	ccmp	w8, w1, #4, ne
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _EPERM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w9, w1, w0, eq
	cmp	w8, w0
	ccmp	w8, w1, #4, ne
	csel	w8, w8, w9, eq
LBB0_6:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
