	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_quota
_do_quota:                              ## @do_quota
	.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
	subq	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r8
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	3(%r12), %ecx
	movq	_FSTEST_IMGNAME@GOTPCREL(%rip), %r15
	movq	(%r15), %r9
	leaq	L_.str(%rip), %rdx
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_system
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail_errno
LBB0_2:
	xorl	%eax, %eax
	callq	_rump_init
	movq	_FSTEST_MNTNAME@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_mkdir
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail_errno
LBB0_4:
	movq	(%r15), %rsi
	movq	_RUMP_ETFS_BLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rbx
	movq	%rbx, %rdi
	callq	_rump_pub_etfs_register
	movq	%rbx, %rdi
	callq	___UNCONST
	movl	%eax, -1080(%rbp)
	movq	_MOUNT_FFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	_MNT_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_6:
	leaq	-1080(%rbp), %rcx
	movl	%r14d, %edx
	movl	$4, %r8d
	callq	_rump_sys_mount
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	movl	(%r13), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail_errno
LBB0_8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_atf_tc_expect_pass
	xorl	%eax, %eax
	callq	_FSTEST_ENTER
	leaq	L_.str.5(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_rump_sys_chown
	movl	%eax, %edi
	callq	_RL
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.9:
	movq	%r12, %r14
	leaq	-1072(%rbp), %r12
	leaq	L_.str.7(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	movl	$493, %edx                      ## imm = 0x1ED
	callq	_rump_sys_open
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_RL
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movq	%r12, %rdi
	callq	_strlen
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_rump_sys_write
	movl	%eax, %edi
	callq	_RL
	leal	80000(%rbx), %edx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_rump_sys_fchown
	movl	%eax, %edi
	callq	_RL
	movl	%r15d, %edi
	callq	_rump_sys_close
	incl	%ebx
	cmpl	%r14d, %ebx
	jne	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	callq	_FSTEST_EXIT
	movq	_FSTEST_MNTNAME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_rump_sys_unmount
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_rump_pub_vfs_mount_print
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail_errno
LBB0_13:
	movq	_FSTEST_IMGNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.9(%rip), %rdx
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_system
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.10(%rip), %rdi
	movl	%eax, %esi
	callq	_atf_tc_fail
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"newfs -q user -q group -F -s 4000 -n %d %s %s"

	.comm	_FSTEST_IMGNAME,8,3             ## @FSTEST_IMGNAME
L_.str.1:                               ## @.str.1
	.asciz	"cannot create file system"

	.comm	_FSTEST_MNTNAME,4,2             ## @FSTEST_MNTNAME
L_.str.2:                               ## @.str.2
	.asciz	"mount point create"

L_.str.3:                               ## @.str.3
	.asciz	"/diskdev"

	.comm	_RUMP_ETFS_BLK,4,2              ## @RUMP_ETFS_BLK
	.comm	_MOUNT_FFS,4,2                  ## @MOUNT_FFS
	.comm	_MNT_LOG,4,2                    ## @MNT_LOG
L_.str.4:                               ## @.str.4
	.asciz	"mount ffs %s"

L_.str.5:                               ## @.str.5
	.asciz	"."

L_.str.6:                               ## @.str.6
	.asciz	"file%d"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.7:                               ## @.str.7
	.asciz	"test file no %d"

L_.str.8:                               ## @.str.8
	.asciz	"unmount failed"

L_.str.9:                               ## @.str.9
	.asciz	"fsck_ffs -fn -F %s"

L_.str.10:                              ## @.str.10
	.asciz	"fsck returned %d"

	.no_dead_strip	_do_quota
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_quota
_do_quota:                              ; @do_quota
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1072
	mov	x20, x3
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	w8, w1, #3
Lloh3:
	adrp	x24, _FSTEST_IMGNAME@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FSTEST_IMGNAME@GOTPAGEOFF]
	ldr	x9, [x24]
	stp	x2, x9, [sp, #8]
	str	x8, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #32
	mov	w1, #1024
	bl	_snprintf
	add	x0, sp, #32
	bl	_system
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_2:
	bl	_rump_init
Lloh9:
	adrp	x25, _FSTEST_MNTNAME@GOTPAGE
Lloh10:
	ldr	x25, [x25, _FSTEST_MNTNAME@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	w1, #511
	bl	_rump_sys_mkdir
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_4:
	ldr	x1, [x24]
Lloh13:
	adrp	x8, _RUMP_ETFS_BLK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RUMP_ETFS_BLK@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x21, l_.str.3@PAGE
Lloh17:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_rump_pub_etfs_register
	mov	x0, x21
	bl	___UNCONST
	str	w0, [sp, #24]
Lloh18:
	adrp	x8, _MOUNT_FFS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MOUNT_FFS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x25]
Lloh21:
	adrp	x8, _MNT_LOG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MNT_LOG@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w2, wzr, w8, eq
	add	x3, sp, #24
	mov	w4, #4
	bl	_rump_sys_mount
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x25]
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_6:
	bl	_atf_tc_expect_pass
	bl	_FSTEST_ENTER
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w1, #0
	mov	w2, #0
	bl	_rump_sys_chown
	bl	_RL
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w20, #0
Lloh28:
	adrp	x21, l_.str.6@PAGE
Lloh29:
	add	x21, x21, l_.str.6@PAGEOFF
Lloh30:
	adrp	x26, _O_CREAT@GOTPAGE
Lloh31:
	ldr	x26, [x26, _O_CREAT@GOTPAGEOFF]
Lloh32:
	adrp	x27, _O_RDWR@GOTPAGE
Lloh33:
	ldr	x27, [x27, _O_RDWR@GOTPAGEOFF]
	mov	w28, #14464
	movk	w28, #1, lsl #16
Lloh34:
	adrp	x22, l_.str.7@PAGE
Lloh35:
	add	x22, x22, l_.str.7@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	mov	x1, x21
	mov	x2, x20
	bl	_sprintf
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w1, w9, w8
	add	x0, sp, #32
	mov	w2, #493
	bl	_rump_sys_open
	mov	x23, x0
	bl	_RL
	add	x0, sp, #32
	mov	x1, x22
	mov	x2, x20
	bl	_sprintf
	add	x0, sp, #32
	bl	_strlen
	mov	x2, x0
	add	x1, sp, #32
	mov	x0, x23
	bl	_rump_sys_write
	bl	_RL
	add	w2, w20, w28
	mov	x0, x23
	mov	x1, x20
	bl	_rump_sys_fchown
	bl	_RL
	mov	x0, x23
	bl	_rump_sys_close
	add	w20, w20, #1
	cmp	w20, w19
	b.ne	LBB0_8
LBB0_9:
	bl	_FSTEST_EXIT
	ldr	w0, [x25]
	mov	w1, #0
	bl	_rump_sys_unmount
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x25]
	mov	w1, #1
	bl	_rump_pub_vfs_mount_print
Lloh36:
	adrp	x0, l_.str.8@PAGE
Lloh37:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_11:
	ldr	x8, [x24]
	str	x8, [sp]
Lloh38:
	adrp	x2, l_.str.9@PAGE
Lloh39:
	add	x2, x2, l_.str.9@PAGEOFF
	add	x0, sp, #32
	mov	w1, #1024
	bl	_snprintf
	add	x0, sp, #32
	bl	_system
	cbz	w0, LBB0_13
; %bb.12:
	mov	x1, x0
Lloh40:
	adrp	x0, l_.str.10@PAGE
Lloh41:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_atf_tc_fail
LBB0_13:
	ldur	x8, [x29, #-96]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"newfs -q user -q group -F -s 4000 -n %d %s %s"

	.comm	_FSTEST_IMGNAME,8,3             ; @FSTEST_IMGNAME
l_.str.1:                               ; @.str.1
	.asciz	"cannot create file system"

	.comm	_FSTEST_MNTNAME,4,2             ; @FSTEST_MNTNAME
l_.str.2:                               ; @.str.2
	.asciz	"mount point create"

l_.str.3:                               ; @.str.3
	.asciz	"/diskdev"

	.comm	_RUMP_ETFS_BLK,4,2              ; @RUMP_ETFS_BLK
	.comm	_MOUNT_FFS,4,2                  ; @MOUNT_FFS
	.comm	_MNT_LOG,4,2                    ; @MNT_LOG
l_.str.4:                               ; @.str.4
	.asciz	"mount ffs %s"

l_.str.5:                               ; @.str.5
	.asciz	"."

l_.str.6:                               ; @.str.6
	.asciz	"file%d"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.7:                               ; @.str.7
	.asciz	"test file no %d"

l_.str.8:                               ; @.str.8
	.asciz	"unmount failed"

l_.str.9:                               ; @.str.9
	.asciz	"fsck_ffs -fn -F %s"

l_.str.10:                              ; @.str.10
	.asciz	"fsck returned %d"

	.no_dead_strip	_do_quota
.subsections_via_symbols
