	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fstatat
_fstatat:                               ## @fstatat
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	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_1
## %bb.2:
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_fchdir
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movq	_AT_SYMLINK_NOFOLLOW@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_lstat
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_9
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %r14d
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_stat
LBB0_7:
	movl	%eax, %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_fchdir
LBB0_8:
	movl	%r13d, %edi
	callq	_close
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_DIRECTORY,4,2                ## @O_DIRECTORY
	.comm	_errno,4,2                      ## @errno
	.comm	_AT_SYMLINK_NOFOLLOW,4,2        ## @AT_SYMLINK_NOFOLLOW
	.no_dead_strip	_fstatat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fstatat
_fstatat:                               ; @fstatat
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_DIRECTORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_DIRECTORY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x23
	bl	_fchdir
Lloh8:
	adrp	x23, _errno@GOTPAGE
Lloh9:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
Lloh10:
	adrp	x8, _AT_SYMLINK_NOFOLLOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AT_SYMLINK_NOFOLLOW@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	x0, x21
	mov	x1, x20
	cmp	w8, w22
	b.ne	LBB0_6
; %bb.3:
	bl	_lstat
	b	LBB0_7
LBB0_4:
	mov	w20, #-1
	b	LBB0_9
LBB0_5:
	ldr	w21, [x23]
	mov	w20, #-1
	b	LBB0_8
LBB0_6:
	bl	_stat
LBB0_7:
	mov	x20, x0
	ldr	w21, [x23]
	mov	x0, x19
	bl	_fchdir
LBB0_8:
	mov	x0, x19
	bl	_close
	str	w21, [x23]
LBB0_9:
	mov	x0, x20
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_DIRECTORY,4,2                ; @O_DIRECTORY
	.comm	_errno,4,2                      ; @errno
	.comm	_AT_SYMLINK_NOFOLLOW,4,2        ; @AT_SYMLINK_NOFOLLOW
	.no_dead_strip	_fstatat
.subsections_via_symbols
