	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function faccessat
_faccessat:                             ## @faccessat
	.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
	movq	_AT_EACCESS@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_2:
	movl	%edx, %r14d
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_DIRECTORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_fchdir
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_access
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r15d, %edi
	callq	_fchdir
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_8
LBB0_5:
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r15d, %edi
	callq	_close
LBB0_7:
	movl	$-1, %ebx
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AT_EACCESS,4,2                 ## @AT_EACCESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_DIRECTORY,4,2                ## @O_DIRECTORY
	.no_dead_strip	_faccessat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function faccessat
_faccessat:                             ; @faccessat
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _AT_EACCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT_EACCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x23, _errno@GOTPAGE
Lloh4:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	cmp	w8, w3
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_7
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh8:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _O_DIRECTORY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_DIRECTORY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	mov	x21, x0
	mov	x0, x22
	bl	_fchdir
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_access
	mov	x19, x0
	ldr	w20, [x23]
	mov	x0, x21
	bl	_fchdir
	mov	x0, x21
	bl	_close
	b	LBB0_8
LBB0_5:
	mov	w19, #-1
	b	LBB0_9
LBB0_6:
	ldr	w20, [x23]
	mov	x0, x21
	bl	_close
LBB0_7:
	mov	w19, #-1
LBB0_8:
	str	w20, [x23]
LBB0_9:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AT_EACCESS,4,2                 ; @AT_EACCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_DIRECTORY,4,2                ; @O_DIRECTORY
	.no_dead_strip	_faccessat
.subsections_via_symbols
