	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tstatvfs
_tstatvfs:                              ## @tstatvfs
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_atf_tc_get_md_var
	movq	%rax, %r14
	movq	_ST_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_rump_sys_statvfs1
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_2:
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	setg	%cl
	movq	_MAXNAMLEN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setle	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_ATF_REQUIRE
	movq	%rbx, %rdi
	callq	_FSTYPE_PUFFS
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_FSTYPE_P2K_FFS
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	-28(%rbp), %edi
	movq	%r14, %rsi
	callq	_ATF_REQUIRE_STREQ
LBB0_5:
	movl	-32(%rbp), %edi
	movq	%r15, %rsi
	callq	_ATF_REQUIRE_STREQ
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X-fs.mntname"

	.comm	_ST_WAIT,4,2                    ## @ST_WAIT
L_.str.1:                               ## @.str.1
	.asciz	"statvfs"

	.comm	_MAXNAMLEN,8,3                  ## @MAXNAMLEN
	.no_dead_strip	_tstatvfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tstatvfs
_tstatvfs:                              ; @tstatvfs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_atf_tc_get_md_var
	mov	x20, x0
Lloh2:
	adrp	x8, _ST_WAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST_WAIT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_rump_sys_statvfs1
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_2:
	ldr	x8, [sp]
	cmp	x8, #0
Lloh7:
	adrp	x9, _MAXNAMLEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAXNAMLEN@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, gt
	cset	w0, le
	bl	_ATF_REQUIRE
	mov	x0, x21
	bl	_FSTYPE_PUFFS
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_FSTYPE_P2K_FFS
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [sp, #12]
	mov	x1, x20
	bl	_ATF_REQUIRE_STREQ
LBB0_5:
	ldr	w0, [sp, #8]
	mov	x1, x19
	bl	_ATF_REQUIRE_STREQ
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X-fs.mntname"

	.comm	_ST_WAIT,4,2                    ; @ST_WAIT
l_.str.1:                               ; @.str.1
	.asciz	"statvfs"

	.comm	_MAXNAMLEN,8,3                  ; @MAXNAMLEN
	.no_dead_strip	_tstatvfs
.subsections_via_symbols
