	.file	"extr_h_quota2_tests.c_quota_test0.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"."
.LC1:
	.string	"test4: unknown option %c"
.LC2:
	.string	"rump_sys_setegid"
.LC3:
	.string	"rump_sys_seteuid"
.LC4:
	.string	"test_fillup"
.LC5:
	.string	"rump_sys_open"
	.text
	.p2align 4
	.type	quota_test0, @function
quota_test0:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	test	rdi, rdi
	jne	.L2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	errx@PLT
.L4:
	add	ebx, 1
.L2:
	mov	rdi, rbp
	call	strlen@PLT
	cmp	eax, ebx
	jbe	.L21
	mov	eax, ebx
	movsx	edx, BYTE PTR 0[rbp+rax]
	cmp	dl, 67
	jne	.L22
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	test	r12d, r12d
	jne	.L6
.L3:
	lea	rdi, .LC0[rip]
	mov	esi, 511
	call	rump_sys_chmod@PLT
	mov	edi, DWORD PTR TEST_NONROOT_ID[rip]
	call	rump_sys_setegid@PLT
	test	rax, rax
	jne	.L23
	mov	edi, DWORD PTR TEST_NONROOT_ID[rip]
	call	rump_sys_seteuid@PLT
	test	rax, rax
	jne	.L24
	mov	esi, DWORD PTR O_CREAT[rip]
	mov	edx, 420
	or	esi, DWORD PTR O_RDWR[rip]
	lea	rdi, .LC4[rip]
	call	rump_sys_open@PLT
	lea	rbx, buf.1952[rip]
	mov	ebp, eax
	test	eax, eax
	js	.L25
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, 512
	mov	rsi, rbx
	mov	edi, ebp
	call	rump_sys_write@PLT
	cmp	eax, 512
	je	.L10
	mov	r12d, DWORD PTR errno[rip]
.L11:
	mov	edi, ebp
	call	rump_sys_close@PLT
	xor	edi, edi
	call	rump_sys_seteuid@PLT
	xor	edi, edi
	call	rump_sys_setegid@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	r12d, DWORD PTR errno[rip]
	lea	rdi, .LC3[rip]
	call	warn@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	r12d, DWORD PTR errno[rip]
	lea	rdi, .LC2[rip]
	call	warn@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR TEST_NONROOT_ID[rip]
	lea	rdi, .LC0[rip]
	mov	edx, esi
	call	rump_sys_chown@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, .LC5[rip]
	mov	r12d, DWORD PTR errno[rip]
	call	warn@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	quota_test0, .-quota_test0
	.local	buf.1952
	.comm	buf.1952,512,32
	.comm	errno,4,4
	.comm	TEST_NONROOT_ID,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.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_h_quota2_tests.c_quota_test0.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".\000"
	.align	2
.LC1:
	.ascii	"test4: unknown option %c\000"
	.align	2
.LC2:
	.ascii	"rump_sys_setegid\000"
	.align	2
.LC3:
	.ascii	"rump_sys_seteuid\000"
	.align	2
.LC4:
	.ascii	"test_fillup\000"
	.align	2
.LC5:
	.ascii	"rump_sys_open\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	quota_test0, %function
quota_test0:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r0, #0
	beq	.L7
	bl	strlen
	mov	r6, #1
	mov	r4, #0
	ldr	r7, .L22
	b	.L4
.L6:
	ldrb	r2, [r5, r4]	@ zero_extendqisi2
	cmp	r2, #67
	moveq	r6, #0
	beq	.L5
	mov	r1, r7
	mov	r0, #1
	bl	errx
	mov	r0, r5
	bl	strlen
.L5:
	add	r4, r4, #1
.L4:
	cmp	r0, r4
	bhi	.L6
	cmp	r6, #0
	bne	.L7
	ldr	r4, .L22+4
.L3:
	ldr	r1, .L22+8
	ldr	r0, .L22+12
	bl	rump_sys_chmod
	ldr	r0, [r4]
	bl	rump_sys_setegid
	cmp	r0, #0
	bne	.L20
	ldr	r0, [r4]
	bl	rump_sys_seteuid
	cmp	r0, #0
	bne	.L21
	ldr	r2, .L22+16
	ldr	r3, .L22+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, #420
	ldr	r0, .L22+24
	orr	r1, r1, r3
	bl	rump_sys_open
	subs	r4, r0, #0
	blt	.L17
	ldr	r5, .L22+28
.L11:
	mov	r2, #512
	mov	r1, r5
	mov	r0, r4
	bl	rump_sys_write
	cmp	r0, #512
	beq	.L11
	ldr	r3, .L22+32
	ldr	r5, [r3]
.L12:
	mov	r0, r4
	bl	rump_sys_close
	mov	r0, #0
	bl	rump_sys_seteuid
	mov	r0, #0
	bl	rump_sys_setegid
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	ldr	r3, .L22+32
	ldr	r0, .L22+36
	ldr	r5, [r3]
	bl	warn
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r3, .L22+32
	ldr	r0, .L22+40
	ldr	r5, [r3]
	bl	warn
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r4, .L22+4
	ldr	r0, .L22+12
	ldr	r2, [r4]
	mov	r1, r2
	bl	rump_sys_chown
	b	.L3
.L17:
	ldr	r3, .L22+32
	ldr	r0, .L22+44
	ldr	r5, [r3]
	bl	warn
	b	.L12
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	TEST_NONROOT_ID
	.word	511
	.word	.LC0
	.word	O_CREAT
	.word	O_RDWR
	.word	.LC4
	.word	.LANCHOR0
	.word	errno
	.word	.LC3
	.word	.LC2
	.word	.LC5
	.size	quota_test0, .-quota_test0
	.comm	errno,4,4
	.comm	TEST_NONROOT_ID,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	buf.4236, %object
	.size	buf.4236, 512
buf.4236:
	.space	512
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
