	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atf_fs_stat_init               ## -- Begin function atf_fs_stat_init
	.p2align	4, 0x90
_atf_fs_stat_init:                      ## @atf_fs_stat_init
	.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	%rdi, %r14
	movq	%rsi, %rdi
	callq	_atf_fs_path_cstring
	movq	%rax, %r15
	leaq	4(%r14), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_lstat
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.1:
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	(%rbx), %r12d
	xorl	%eax, %eax
	callq	_atf_no_error
	leal	-128(%r12), %ecx
	cmpl	$7, %ecx
	ja	LBB0_12
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_11:
	movq	_atf_fs_stat_wht_type@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atf_libc_error                 ## TAILCALL
LBB0_12:
	movq	%r15, %rdi
	movl	%r12d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unknown_type_error             ## TAILCALL
LBB0_10:
	movq	_atf_fs_stat_sock_type@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_9:
	movq	_atf_fs_stat_reg_type@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_8:
	movq	_atf_fs_stat_lnk_type@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_7:
	movq	_atf_fs_stat_fifo_type@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movq	_atf_fs_stat_dir_type@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movq	_atf_fs_stat_chr_type@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_atf_fs_stat_blk_type@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot get information of %s; lstat(2) failed"

	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_atf_fs_stat_blk_type,4,2       ## @atf_fs_stat_blk_type
	.comm	_atf_fs_stat_chr_type,4,2       ## @atf_fs_stat_chr_type
	.comm	_atf_fs_stat_dir_type,4,2       ## @atf_fs_stat_dir_type
	.comm	_atf_fs_stat_fifo_type,4,2      ## @atf_fs_stat_fifo_type
	.comm	_atf_fs_stat_lnk_type,4,2       ## @atf_fs_stat_lnk_type
	.comm	_atf_fs_stat_reg_type,4,2       ## @atf_fs_stat_reg_type
	.comm	_atf_fs_stat_sock_type,4,2      ## @atf_fs_stat_sock_type
	.comm	_atf_fs_stat_wht_type,4,2       ## @atf_fs_stat_wht_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atf_fs_stat_init               ; -- Begin function atf_fs_stat_init
	.p2align	2
_atf_fs_stat_init:                      ; @atf_fs_stat_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_atf_fs_path_cstring
	mov	x20, x0
	add	x21, x19, #4
	mov	x1, x21
	bl	_lstat
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w21, w9, w8
	bl	_atf_no_error
	sub	w8, w21, #128
	cmp	w8, #7
	b.hi	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh5:
	adrp	x8, _atf_fs_stat_wht_type@GOTPAGE
Lloh6:
	ldr	x8, [x8, _atf_fs_stat_wht_type@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_atf_libc_error
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_unknown_type_error
LBB0_6:
Lloh12:
	adrp	x8, _atf_fs_stat_sock_type@GOTPAGE
Lloh13:
	ldr	x8, [x8, _atf_fs_stat_sock_type@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
Lloh14:
	adrp	x8, _atf_fs_stat_reg_type@GOTPAGE
Lloh15:
	ldr	x8, [x8, _atf_fs_stat_reg_type@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh16:
	adrp	x8, _atf_fs_stat_lnk_type@GOTPAGE
Lloh17:
	ldr	x8, [x8, _atf_fs_stat_lnk_type@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh18:
	adrp	x8, _atf_fs_stat_fifo_type@GOTPAGE
Lloh19:
	ldr	x8, [x8, _atf_fs_stat_fifo_type@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh20:
	adrp	x8, _atf_fs_stat_dir_type@GOTPAGE
Lloh21:
	ldr	x8, [x8, _atf_fs_stat_dir_type@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh22:
	adrp	x8, _atf_fs_stat_chr_type@GOTPAGE
Lloh23:
	ldr	x8, [x8, _atf_fs_stat_chr_type@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh24:
	adrp	x8, _atf_fs_stat_blk_type@GOTPAGE
Lloh25:
	ldr	x8, [x8, _atf_fs_stat_blk_type@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot get information of %s; lstat(2) failed"

	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_atf_fs_stat_blk_type,4,2       ; @atf_fs_stat_blk_type
	.comm	_atf_fs_stat_chr_type,4,2       ; @atf_fs_stat_chr_type
	.comm	_atf_fs_stat_dir_type,4,2       ; @atf_fs_stat_dir_type
	.comm	_atf_fs_stat_fifo_type,4,2      ; @atf_fs_stat_fifo_type
	.comm	_atf_fs_stat_lnk_type,4,2       ; @atf_fs_stat_lnk_type
	.comm	_atf_fs_stat_reg_type,4,2       ; @atf_fs_stat_reg_type
	.comm	_atf_fs_stat_sock_type,4,2      ; @atf_fs_stat_sock_type
	.comm	_atf_fs_stat_wht_type,4,2       ; @atf_fs_stat_wht_type
.subsections_via_symbols
