	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_os_access                      ## -- Begin function os_access
	.p2align	4, 0x90
_os_access:                             ## @os_access
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_OS_ACC_R_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%esi, %ecx
	je	LBB0_2
## %bb.1:
	movq	_R_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movq	_OS_ACC_W_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	je	LBB0_4
## %bb.3:
	movq	_W_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movq	_OS_ACC_X_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%esi, %edx
	je	LBB0_6
## %bb.5:
	movq	_X_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	%ecx, %eax
	movq	_OS_ACC_F_OK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	je	LBB0_8
## %bb.7:
	movq	_F_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_8:
	orl	%esi, %edx
	orl	%edx, %eax
	movl	%eax, %esi
	callq	_access
	movq	_errno@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	sarl	$31, %eax
	andl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OS_ACC_R_OK,4,2                ## @OS_ACC_R_OK
	.comm	_R_OK,4,2                       ## @R_OK
	.comm	_OS_ACC_W_OK,4,2                ## @OS_ACC_W_OK
	.comm	_W_OK,4,2                       ## @W_OK
	.comm	_OS_ACC_X_OK,4,2                ## @OS_ACC_X_OK
	.comm	_X_OK,4,2                       ## @X_OK
	.comm	_OS_ACC_F_OK,4,2                ## @OS_ACC_F_OK
	.comm	_F_OK,4,2                       ## @F_OK
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_os_access                      ; -- Begin function os_access
	.p2align	2
_os_access:                             ; @os_access
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _OS_ACC_R_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OS_ACC_R_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _R_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _R_OK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w1
	csel	w8, wzr, w9, eq
Lloh6:
	adrp	x9, _OS_ACC_W_OK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OS_ACC_W_OK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _W_OK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _W_OK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _OS_ACC_X_OK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OS_ACC_X_OK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _X_OK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _X_OK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _OS_ACC_F_OK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OS_ACC_F_OK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _F_OK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _F_OK@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, wzr, w10, eq
	orr	w1, w8, w9
	bl	_access
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w8, w8
	and	w0, w8, w0, asr #31
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OS_ACC_R_OK,4,2                ; @OS_ACC_R_OK
	.comm	_R_OK,4,2                       ; @R_OK
	.comm	_OS_ACC_W_OK,4,2                ; @OS_ACC_W_OK
	.comm	_W_OK,4,2                       ; @W_OK
	.comm	_OS_ACC_X_OK,4,2                ; @OS_ACC_X_OK
	.comm	_X_OK,4,2                       ; @X_OK
	.comm	_OS_ACC_F_OK,4,2                ; @OS_ACC_F_OK
	.comm	_F_OK,4,2                       ; @F_OK
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
