	.file	"extr_t_quota2_1.c_do_quota.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"newfs -q user -q group -F -s 4000 -n %d %s %s"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"cannot create file system"
.LC2:
	.string	"mount point create"
.LC3:
	.string	"/diskdev"
.LC4:
	.string	"mount ffs %s"
.LC5:
	.string	"."
.LC6:
	.string	"file%d"
.LC7:
	.string	"test file no %d"
.LC8:
	.string	"unmount failed"
.LC9:
	.string	"fsck_ffs -fn -F %s"
.LC10:
	.string	"fsck returned %d"
	.text
	.p2align 4
	.type	do_quota, @function
do_quota:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r8, rdx
	mov	r14d, ecx
	lea	rdx, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	ecx, 3[rsi]
	mov	r13d, esi
	mov	esi, 1024
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 1056
	.cfi_def_cfa_offset 1104
	mov	r9, QWORD PTR FSTEST_IMGNAME[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1048[rsp], rax
	xor	eax, eax
	lea	r12, 16[rsp]
	mov	rdi, r12
	call	snprintf@PLT
	mov	rdi, r12
	call	system@PLT
	cmp	eax, -1
	je	.L22
.L2:
	xor	eax, eax
	call	rump_init@PLT
	mov	edi, DWORD PTR FSTEST_MNTNAME[rip]
	mov	esi, 511
	call	rump_sys_mkdir@PLT
	cmp	eax, -1
	je	.L23
.L3:
	mov	edx, DWORD PTR RUMP_ETFS_BLK[rip]
	mov	rsi, QWORD PTR FSTEST_IMGNAME[rip]
	lea	rdi, .LC3[rip]
	call	rump_pub_etfs_register@PLT
	lea	rdi, .LC3[rip]
	call	__UNCONST@PLT
	test	r14d, r14d
	mov	esi, DWORD PTR FSTEST_MNTNAME[rip]
	cmovne	r14d, DWORD PTR MNT_LOG[rip]
	mov	edi, DWORD PTR MOUNT_FFS[rip]
	lea	rcx, 12[rsp]
	mov	r8d, 4
	mov	DWORD PTR 12[rsp], eax
	mov	edx, r14d
	call	rump_sys_mount@PLT
	cmp	eax, -1
	je	.L24
.L5:
	xor	eax, eax
	call	atf_tc_expect_pass@PLT
	xor	eax, eax
	call	FSTEST_ENTER@PLT
	xor	edx, edx
	xor	esi, esi
	lea	rdi, .LC5[rip]
	call	rump_sys_chown@PLT
	mov	edi, eax
	call	RL@PLT
	test	r13d, r13d
	jle	.L6
	xor	ebx, ebx
	lea	r14, .LC6[rip]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, ebx
	mov	rsi, r14
	mov	rdi, r12
	call	sprintf@PLT
	mov	edx, 493
	mov	esi, DWORD PTR O_CREAT[rip]
	mov	rdi, r12
	or	esi, DWORD PTR O_RDWR[rip]
	call	rump_sys_open@PLT
	mov	edi, eax
	mov	ebp, eax
	call	RL@PLT
	mov	edx, ebx
	lea	rsi, .LC7[rip]
	mov	rdi, r12
	call	sprintf@PLT
	mov	rdi, r12
	call	strlen@PLT
	mov	rsi, r12
	mov	edi, ebp
	mov	edx, eax
	call	rump_sys_write@PLT
	mov	edi, eax
	call	RL@PLT
	lea	edx, 80000[rbx]
	mov	esi, ebx
	mov	edi, ebp
	call	rump_sys_fchown@PLT
	add	ebx, 1
	mov	edi, eax
	call	RL@PLT
	mov	edi, ebp
	call	rump_sys_close@PLT
	cmp	r13d, ebx
	jne	.L7
.L6:
	xor	eax, eax
	call	FSTEST_EXIT@PLT
	mov	edi, DWORD PTR FSTEST_MNTNAME[rip]
	xor	esi, esi
	call	rump_sys_unmount@PLT
	test	rax, rax
	jne	.L25
.L8:
	mov	rcx, QWORD PTR FSTEST_IMGNAME[rip]
	mov	rdi, r12
	xor	eax, eax
	lea	rdx, .LC9[rip]
	mov	esi, 1024
	call	snprintf@PLT
	mov	rdi, r12
	call	system@PLT
	test	eax, eax
	jne	.L26
.L1:
	mov	rax, QWORD PTR 1048[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 1056
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	edi, DWORD PTR FSTEST_MNTNAME[rip]
	mov	esi, 1
	call	rump_pub_vfs_mount_print@PLT
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	atf_tc_fail_errno@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, eax
	lea	rdi, .LC10[rip]
	call	atf_tc_fail@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR FSTEST_MNTNAME[rip]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	atf_tc_fail_errno@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	atf_tc_fail_errno@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	atf_tc_fail_errno@PLT
	jmp	.L2
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	do_quota, .-do_quota
	.comm	RUMP_ETFS_BLK,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	MOUNT_FFS,4,4
	.comm	MNT_LOG,4,4
	.comm	FSTEST_MNTNAME,4,4
	.comm	FSTEST_IMGNAME,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_t_quota2_1.c_do_quota.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"newfs -q user -q group -F -s 4000 -n %d %s %s\000"
	.align	2
.LC1:
	.ascii	"cannot create file system\000"
	.align	2
.LC2:
	.ascii	"mount point create\000"
	.align	2
.LC3:
	.ascii	"/diskdev\000"
	.align	2
.LC4:
	.ascii	"mount ffs %s\000"
	.align	2
.LC5:
	.ascii	".\000"
	.align	2
.LC6:
	.ascii	"file%d\000"
	.align	2
.LC7:
	.ascii	"test file no %d\000"
	.align	2
.LC8:
	.ascii	"unmount failed\000"
	.align	2
.LC9:
	.ascii	"fsck_ffs -fn -F %s\000"
	.align	2
.LC10:
	.ascii	"fsck returned %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_quota, %function
do_quota:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r4, r3
	ldr	r3, .L29
	sub	sp, sp, #1040
	ldr	r1, [r3]
	sub	sp, sp, #4
	ldr	ip, .L29+4
	str	r2, [sp]
	str	r1, [sp, #4]
	ldr	r2, .L29+8
	mov	r1, #1024
	add	r3, r5, #3
	add	r0, sp, #12
	ldr	ip, [ip]
	str	ip, [sp, #1036]
	mov	ip,#0
	bl	snprintf
	add	r0, sp, #12
	bl	system
	cmn	r0, #1
	beq	.L23
.L2:
	bl	rump_init
	ldr	r3, .L29+12
	ldr	r1, .L29+16
	ldr	r0, [r3]
	bl	rump_sys_mkdir
	cmn	r0, #1
	beq	.L24
.L3:
	ldr	r3, .L29+20
	ldr	r2, .L29
	ldr	r0, .L29+24
	ldr	r1, [r2]
	ldr	r2, [r3]
	bl	rump_pub_etfs_register
	ldr	r0, .L29+24
	bl	__UNCONST
	mov	ip, #4
	ldr	r3, .L29+28
	str	r0, [sp, #8]
	ldr	r0, [r3]
	ldr	r3, .L29+12
	cmp	r4, #0
	ldr	r1, [r3]
	ldrne	r3, .L29+32
	ldrne	r4, [r3]
	add	r3, sp, #8
	mov	r2, r4
	str	ip, [sp]
	bl	rump_sys_mount
	cmn	r0, #1
	beq	.L25
.L5:
	bl	atf_tc_expect_pass
	bl	FSTEST_ENTER
	mov	r2, #0
	ldr	r0, .L29+36
	mov	r1, r2
	bl	rump_sys_chown
	bl	RL
	cmp	r5, #0
	ble	.L6
	mov	r4, #0
	ldr	r10, .L29+40
	ldr	r9, .L29+44
	ldr	r8, .L29+48
	ldr	r7, .L29+52
	ldr	r6, .L29+56
.L7:
	mov	r2, r4
	mov	r1, r8
	add	r0, sp, #12
	bl	sprintf
	ldr	r3, [r9]
	ldr	r1, [r10]
	mov	r2, r7
	orr	r1, r1, r3
	add	r0, sp, #12
	bl	rump_sys_open
	mov	fp, r0
	bl	RL
	mov	r2, r4
	mov	r1, r6
	add	r0, sp, #12
	bl	sprintf
	add	r0, sp, #12
	bl	strlen
	add	r1, sp, #12
	mov	r2, r0
	mov	r0, fp
	bl	rump_sys_write
	bl	RL
	add	r2, r4, #79872
	mov	r1, r4
	add	r2, r2, #128
	mov	r0, fp
	bl	rump_sys_fchown
	bl	RL
	add	r4, r4, #1
	mov	r0, fp
	bl	rump_sys_close
	cmp	r5, r4
	bne	.L7
.L6:
	bl	FSTEST_EXIT
	ldr	r3, .L29+12
	mov	r1, #0
	ldr	r0, [r3]
	bl	rump_sys_unmount
	cmp	r0, #0
	bne	.L26
.L8:
	ldr	r3, .L29
	mov	r1, #1024
	ldr	r3, [r3]
	ldr	r2, .L29+60
	add	r0, sp, #12
	bl	snprintf
	add	r0, sp, #12
	bl	system
	subs	r1, r0, #0
	bne	.L27
.L1:
	ldr	r3, .L29+4
	ldr	r2, [r3]
	ldr	r3, [sp, #1036]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #1040
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	ldr	r3, .L29+12
	mov	r1, #1
	ldr	r0, [r3]
	bl	rump_pub_vfs_mount_print
	ldr	r0, .L29+64
	bl	atf_tc_fail_errno
	b	.L8
.L27:
	ldr	r0, .L29+68
	bl	atf_tc_fail
	b	.L1
.L25:
	ldr	r3, .L29+12
	ldr	r0, .L29+72
	ldr	r1, [r3]
	bl	atf_tc_fail_errno
	b	.L5
.L24:
	ldr	r0, .L29+76
	bl	atf_tc_fail_errno
	b	.L3
.L23:
	ldr	r0, .L29+80
	bl	atf_tc_fail_errno
	b	.L2
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	FSTEST_IMGNAME
	.word	.LC11
	.word	.LC0
	.word	FSTEST_MNTNAME
	.word	511
	.word	RUMP_ETFS_BLK
	.word	.LC3
	.word	MOUNT_FFS
	.word	MNT_LOG
	.word	.LC5
	.word	O_CREAT
	.word	O_RDWR
	.word	.LC6
	.word	493
	.word	.LC7
	.word	.LC9
	.word	.LC8
	.word	.LC10
	.word	.LC4
	.word	.LC2
	.word	.LC1
	.size	do_quota, .-do_quota
	.comm	RUMP_ETFS_BLK,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	MOUNT_FFS,4,4
	.comm	MNT_LOG,4,4
	.comm	FSTEST_MNTNAME,4,4
	.comm	FSTEST_IMGNAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
