	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devfs_filestat                 ## -- Begin function devfs_filestat
	.p2align	4, 0x90
_devfs_filestat:                        ## @devfs_filestat
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_getvnodedata
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$16, %ecx
	callq	_kvm_read_all
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	callq	_getvnodemount
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$16, %ecx
	callq	_kvm_read_all
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movl	-36(%rbp), %eax
	movl	%eax, 16(%r14)
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-40(%rbp), %eax
	movq	_S_IFCHR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	movq	$0, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	callq	_getvnodemount
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
LBB0_2:
	callq	_warnx
	movl	$1, %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't read devfs_dirent at %p"

L_.str.1:                               ## @.str.1
	.asciz	"can't read mount at %p"

	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFCHR,4,2                    ## @S_IFCHR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_devfs_filestat                 ; -- Begin function devfs_filestat
	.p2align	2
_devfs_filestat:                        ; @devfs_filestat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_getvnodedata
	mov	x1, x0
	add	x2, sp, #16
	mov	x0, x21
	mov	w3, #16
	bl	_kvm_read_all
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_getvnodemount
	mov	x1, x0
	mov	x2, sp
	mov	x0, x21
	mov	w3, #16
	bl	_kvm_read_all
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #0
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	ldp	w10, w9, [sp, #16]
	stp	w9, w8, [x19, #16]
Lloh0:
	adrp	x8, _S_IFMT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IFMT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w10, w8
Lloh3:
	adrp	x9, _S_IFCHR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_IFCHR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	str	xzr, [x19, #8]
	b	LBB0_6
LBB0_3:
	ldr	x1, [x20]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_getvnodemount
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_warnx
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't read devfs_dirent at %p"

l_.str.1:                               ; @.str.1
	.asciz	"can't read mount at %p"

	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFCHR,4,2                    ; @S_IFCHR
.subsections_via_symbols
