	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fillfs
_fillfs:                                ## @fillfs
	.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
	movl	$8216, %eax                     ## imm = 0x2018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_FSTYPE_P2K_FFS
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_FSTYPE_PUFFS
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_FSTYPE_RUMPFS
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_atf_tc_skip
LBB0_4:
	movq	%r14, %rdi
	callq	_FSTYPE_NFS
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_NFSBONUS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_6:
	movq	%rbx, %rdi
	callq	_rump_sys_chdir
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_8:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_rump_sys_open
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_10:
	movq	_FSTEST_IMGSIZE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movq	(%rax), %rax
	addq	%r12, %rax
	je	LBB0_17
## %bb.11:
	movq	%r14, -8248(%rbp)               ## 8-byte Spill
	leaq	-8240(%rbp), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_memset
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_rump_sys_write
	cmpq	$-1, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	addq	%rax, %r14
	movq	_FSTEST_IMGSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r12, %rcx
	cmpq	%rcx, %r14
	jb	LBB0_12
## %bb.15:
	movq	%rax, %rbx
	jmp	LBB0_16
LBB0_13:
	movq	$-1, %rbx
LBB0_16:
	movq	-8248(%rbp), %r14               ## 8-byte Reload
LBB0_17:
	movq	%r14, %rdi
	callq	_FSTYPE_ZFS
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.4(%rip), %rdi
	callq	_atf_tc_expect_fail
LBB0_19:
	cmpq	$-1, %rbx
	je	LBB0_20
## %bb.22:
	leaq	L_.str.6(%rip), %rdi
	callq	_atf_tc_fail
	jmp	LBB0_23
LBB0_20:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.21:
	leaq	L_.str.5(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_23:
	movl	%r15d, %edi
	callq	_rump_sys_close
	leaq	L_.str.7(%rip), %rdi
	callq	_rump_sys_chdir
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	addq	$8216, %rsp                     ## imm = 0x2018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fs does not support explicit block allocation (GOP_ALLOC)"

	.comm	_NFSBONUS,8,3                   ## @NFSBONUS
L_.str.1:                               ## @.str.1
	.asciz	"chdir mountpoint"

L_.str.2:                               ## @.str.2
	.asciz	"afile"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.3:                               ## @.str.3
	.asciz	"create file"

	.comm	_FSTEST_IMGSIZE,8,3             ## @FSTEST_IMGSIZE
L_.str.4:                               ## @.str.4
	.asciz	"PR kern/47656: Test known to be broken"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOSPC,8,3                     ## @ENOSPC
L_.str.5:                               ## @.str.5
	.asciz	"write"

L_.str.6:                               ## @.str.6
	.asciz	"filled file system over size limit"

L_.str.7:                               ## @.str.7
	.asciz	"/"

	.no_dead_strip	_fillfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fillfs
_fillfs:                                ; @fillfs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w9, #8208
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_FSTYPE_P2K_FFS
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_FSTYPE_PUFFS
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_FSTYPE_RUMPFS
	cbz	x0, LBB0_4
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_skip
LBB0_4:
	mov	x0, x19
	bl	_FSTYPE_NFS
Lloh7:
	adrp	x8, _NFSBONUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NFSBONUS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x23, xzr, x8, eq
	mov	x0, x20
	bl	_rump_sys_chdir
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_6:
Lloh12:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_rump_sys_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_8:
Lloh22:
	adrp	x24, _FSTEST_IMGSIZE@GOTPAGE
Lloh23:
	ldr	x24, [x24, _FSTEST_IMGSIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	cmn	x8, x23
	b.ne	LBB0_10
; %bb.9:
	mov	x21, #0
	b	LBB0_13
LBB0_10:
	mov	w22, #0
	mov	x25, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x22
	mov	w2, #8192
	bl	_memset
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #8192
	bl	_rump_sys_write
	mov	x21, x0
	cmn	x0, #1
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	add	x25, x21, x25
	ldr	x8, [x24]
	add	x8, x8, x23
	cmp	x25, x8
	b.lo	LBB0_11
LBB0_13:
	mov	x0, x19
	bl	_FSTYPE_ZFS
	cbz	x0, LBB0_15
; %bb.14:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_atf_tc_expect_fail
LBB0_15:
	cmn	x21, #1
	b.eq	LBB0_17
; %bb.16:
Lloh26:
	adrp	x0, l_.str.6@PAGE
Lloh27:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_atf_tc_fail
	b	LBB0_19
LBB0_17:
Lloh28:
	adrp	x8, _errno@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
Lloh31:
	adrp	x9, _ENOSPC@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ENOSPC@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.18:
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_19:
	mov	x0, x20
	bl	_rump_sys_close
Lloh36:
	adrp	x0, l_.str.7@PAGE
Lloh37:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_rump_sys_chdir
	ldur	x8, [x29, #-72]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #16
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fs does not support explicit block allocation (GOP_ALLOC)"

	.comm	_NFSBONUS,8,3                   ; @NFSBONUS
l_.str.1:                               ; @.str.1
	.asciz	"chdir mountpoint"

l_.str.2:                               ; @.str.2
	.asciz	"afile"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.3:                               ; @.str.3
	.asciz	"create file"

	.comm	_FSTEST_IMGSIZE,8,3             ; @FSTEST_IMGSIZE
l_.str.4:                               ; @.str.4
	.asciz	"PR kern/47656: Test known to be broken"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOSPC,8,3                     ; @ENOSPC
l_.str.5:                               ; @.str.5
	.asciz	"write"

l_.str.6:                               ; @.str.6
	.asciz	"filled file system over size limit"

l_.str.7:                               ; @.str.7
	.asciz	"/"

	.no_dead_strip	_fillfs
.subsections_via_symbols
