	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msdosfs_filestat               ## -- Begin function msdosfs_filestat
	.p2align	4, 0x90
_msdosfs_filestat:                      ## @msdosfs_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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_VTODE
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$56, %ecx
	callq	_kvm_read_all
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	_msdosfs_filestat.mounts(%rip), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:
	movq	-80(%rbp), %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rbx)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	64(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_5:
	movl	$72, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	%rax, %rbx
	movq	-80(%rbp), %rsi
	movq	%rax, %rdx
	addq	$8, %rdx
	movq	%r15, %rdi
	movl	$56, %ecx
	callq	_kvm_read_all
	testl	%eax, %eax
	je	LBB0_19
## %bb.7:
	movq	_msdosfs_filestat.mounts(%rip), %rax
	movq	%rax, 64(%rbx)
	movq	%rbx, _msdosfs_filestat.mounts(%rip)
	movq	-80(%rbp), %rax
	movq	%rax, (%rbx)
LBB0_8:
	movl	56(%rbx), %esi
	movq	%r15, %rdi
	callq	_dev2udev
	movl	%eax, 12(%r14)
	movl	$365, (%r14)                    ## imm = 0x16D
	movl	-72(%rbp), %eax
	movq	_ATTR_READONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	$511, %ecx                      ## imm = 0x1FF
	movl	$365, %edx                      ## imm = 0x16D
	cmovel	%ecx, %edx
	andl	20(%rbx), %edx
	movl	%edx, (%r14)
	movq	_ATTR_DIRECTORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%eax, %esi
	jne	LBB0_11
## %bb.9:
	movq	_S_IFREG@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_VTODE
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	jmp	LBB0_20
LBB0_11:
	movq	_S_IFDIR@GOTPCREL(%rip), %rsi
LBB0_12:
	orl	(%rsi), %edx
	movl	%edx, (%r14)
	movl	-36(%rbp), %edx
	movl	%edx, 8(%r14)
	movl	24(%rbx), %r15d
	addq	$8, %rbx
	sarl	$2, %r15d
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.13:
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cntobn
	imull	%r15d, %eax
	movq	-56(%rbp), %rcx
	movq	_MSDOSFSROOT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	jmp	LBB0_21
LBB0_15:
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cntobn
	movq	-48(%rbp), %rcx
	movq	_MSDOSFSROOT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_roottobn
LBB0_17:
	imull	%r15d, %eax
	movl	-40(%rbp), %ecx
	sarl	$2, %ecx
	addl	%eax, %ecx
LBB0_18:
	movl	%ecx, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_19:
	movq	%rbx, %rdi
	callq	_free
	movq	-80(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
LBB0_20:
	callq	_warnx
LBB0_21:
	movl	$1, %eax
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_msdosfs_filestat.mounts,8,3 ## @msdosfs_filestat.mounts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't read denode at %p"

L_.str.1:                               ## @.str.1
	.asciz	"malloc()"

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

	.comm	_ATTR_READONLY,4,2              ## @ATTR_READONLY
	.comm	_ATTR_DIRECTORY,4,2             ## @ATTR_DIRECTORY
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_MSDOSFSROOT,8,3                ## @MSDOSFSROOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msdosfs_filestat               ; -- Begin function msdosfs_filestat
	.p2align	2
_msdosfs_filestat:                      ; @msdosfs_filestat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	_VTODE
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w3, #56
	bl	_kvm_read_all
	cbz	w0, LBB0_10
; %bb.1:
	adrp	x22, _msdosfs_filestat.mounts@PAGE
	ldr	x20, [x22, _msdosfs_filestat.mounts@PAGEOFF]
	cbz	x20, LBB0_5
; %bb.2:
	ldr	x8, [sp, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x9, x8
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #64]
	cbnz	x20, LBB0_3
LBB0_5:
	mov	w0, #72
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.6:
	mov	x20, x0
	ldr	x1, [sp, #8]
	add	x2, x0, #8
	mov	x0, x21
	mov	w3, #56
	bl	_kvm_read_all
	cbz	w0, LBB0_16
; %bb.7:
	ldr	x8, [x22, _msdosfs_filestat.mounts@PAGEOFF]
	str	x8, [x20, #64]
	str	x20, [x22, _msdosfs_filestat.mounts@PAGEOFF]
	ldr	x8, [sp, #8]
	str	x8, [x20]
LBB0_8:
	add	x22, x20, #8
	ldr	w1, [x20, #56]
	mov	x0, x21
	bl	_dev2udev
	str	w0, [x19, #12]
	mov	w8, #365
	str	w8, [x19]
Lloh0:
	adrp	x9, _ATTR_READONLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATTR_READONLY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [sp, #16]
	ldr	w11, [sp, #52]
	tst	w9, w10
	mov	w9, #511
	csel	w8, w9, w8, eq
	ldr	w9, [x20, #20]
	and	w8, w8, w9
	str	w8, [x19]
Lloh3:
	adrp	x9, _ATTR_DIRECTORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATTR_DIRECTORY@GOTPAGEOFF]
	ldr	w12, [x9]
Lloh5:
	adrp	x13, _S_IFDIR@GOTPAGE
Lloh6:
	ldr	x13, [x13, _S_IFDIR@GOTPAGEOFF]
	tst	w12, w10
Lloh7:
	adrp	x12, _S_IFREG@GOTPAGE
Lloh8:
	ldr	x12, [x12, _S_IFREG@GOTPAGEOFF]
	csel	x12, x12, x13, eq
	ldr	w12, [x12]
	orr	w8, w12, w8
	str	w8, [x19]
	str	w11, [x19, #8]
	ldr	w8, [x20, #24]
	asr	w20, w8, #2
	ldr	w8, [x9]
	tst	w8, w10
	b.eq	LBB0_12
; %bb.9:
	ldr	x1, [sp, #32]
	mov	x0, x22
	bl	_cntobn
	mul	w8, w0, w20
	ldr	x9, [sp, #32]
Lloh9:
	adrp	x10, _MSDOSFSROOT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MSDOSFSROOT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	csinc	w8, w8, wzr, ne
	b	LBB0_15
LBB0_10:
	mov	x0, x20
	bl	_VTODE
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_11:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_18
LBB0_12:
	ldr	x1, [sp, #40]
	mov	x0, x22
	bl	_cntobn
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, _MSDOSFSROOT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MSDOSFSROOT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x22
	mov	w1, #0
	bl	_roottobn
LBB0_14:
	mul	w8, w0, w20
	ldr	w9, [sp, #48]
	add	w8, w8, w9, asr #2
LBB0_15:
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_19
LBB0_16:
	mov	x0, x20
	bl	_free
	ldr	x1, [sp, #8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_17:
	bl	_warnx
LBB0_18:
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_msdosfs_filestat.mounts,8,3 ; @msdosfs_filestat.mounts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't read denode at %p"

l_.str.1:                               ; @.str.1
	.asciz	"malloc()"

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

	.comm	_ATTR_READONLY,4,2              ; @ATTR_READONLY
	.comm	_ATTR_DIRECTORY,4,2             ; @ATTR_DIRECTORY
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_MSDOSFSROOT,8,3                ; @MSDOSFSROOT
.subsections_via_symbols
