	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quota_test0
_quota_test0:                           ## @quota_test0
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	$1, %r12d
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %eax
	movl	%r13d, %r12d
	cmpq	%rax, %rbx
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rbx), %eax
	movl	$0, %r13d
	cmpb	$67, %al
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movsbl	%al, %edx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_errx
	movl	%r12d, %r13d
	jmp	LBB0_6
LBB0_2:
	movl	$1, %r13d
LBB0_7:
	testl	%r13d, %r13d
	je	LBB0_9
LBB0_8:
	movq	_TEST_NONROOT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%edx, %esi
	callq	_rump_sys_chown
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_chmod
	movq	_TEST_NONROOT_ID@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rump_sys_setegid
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
	jmp	LBB0_18
LBB0_11:
	movl	(%rbx), %edi
	callq	_rump_sys_seteuid
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.3(%rip), %rdi
	callq	_warn
	jmp	LBB0_18
LBB0_13:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	movl	$420, %edx                      ## imm = 0x1A4
	callq	_rump_sys_open
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_19
## %bb.14:
	leaq	_quota_test0.buf(%rip), %r14
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_rump_sys_write
	cmpl	$512, %eax                      ## imm = 0x200
	je	LBB0_15
## %bb.16:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_17
LBB0_19:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.5(%rip), %rdi
	callq	_warn
LBB0_17:
	movl	%ebx, %edi
	callq	_rump_sys_close
	xorl	%edi, %edi
	callq	_rump_sys_seteuid
	xorl	%edi, %edi
	callq	_rump_sys_setegid
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_quota_test0.buf,512,4 ## @quota_test0.buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test4: unknown option %c"

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

	.comm	_TEST_NONROOT_ID,4,2            ## @TEST_NONROOT_ID
	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"rump_sys_setegid"

L_.str.3:                               ## @.str.3
	.asciz	"rump_sys_seteuid"

L_.str.4:                               ## @.str.4
	.asciz	"test_fillup"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.5:                               ## @.str.5
	.asciz	"rump_sys_open"

	.no_dead_strip	_quota_test0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quota_test0
_quota_test0:                           ; @quota_test0
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _TEST_NONROOT_ID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TEST_NONROOT_ID@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_strlen
	cbz	w0, LBB0_7
; %bb.2:
	mov	x23, #0
	mov	w22, #1
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	sxtb	w2, w8
	mov	w0, #1
	mov	x1, x20
	bl	_errx
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	mov	x0, x19
	bl	_strlen
	cmp	x23, w0, uxtw
	b.hs	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19, x23]
	cmp	w8, #67
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #0
	b	LBB0_4
LBB0_7:
	mov	w22, #1
LBB0_8:
	cbz	w22, LBB0_10
LBB0_9:
	ldr	w1, [x21]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x1
	bl	_rump_sys_chown
LBB0_10:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #511
	bl	_rump_sys_chmod
	ldr	w0, [x21]
	bl	_rump_sys_setegid
	cbz	x0, LBB0_12
; %bb.11:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	b	LBB0_20
LBB0_12:
	ldr	w0, [x21]
	bl	_rump_sys_seteuid
	cbz	x0, LBB0_14
; %bb.13:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warn
	b	LBB0_20
LBB0_14:
Lloh18:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w2, #420
	bl	_rump_sys_open
	mov	x20, x0
	tbnz	w0, #31, LBB0_18
; %bb.15:
Lloh26:
	adrp	x19, _quota_test0.buf@PAGE
Lloh27:
	add	x19, x19, _quota_test0.buf@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #512
	bl	_rump_sys_write
	cmp	w0, #512
	b.eq	LBB0_16
; %bb.17:
Lloh28:
	adrp	x8, _errno@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
	b	LBB0_19
LBB0_18:
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	w19, [x8]
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_warn
LBB0_19:
	mov	x0, x20
	bl	_rump_sys_close
	mov	w0, #0
	bl	_rump_sys_seteuid
	mov	w0, #0
	bl	_rump_sys_setegid
LBB0_20:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_quota_test0.buf,512,0 ; @quota_test0.buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test4: unknown option %c"

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

	.comm	_TEST_NONROOT_ID,4,2            ; @TEST_NONROOT_ID
	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"rump_sys_setegid"

l_.str.3:                               ; @.str.3
	.asciz	"rump_sys_seteuid"

l_.str.4:                               ; @.str.4
	.asciz	"test_fillup"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.5:                               ; @.str.5
	.asciz	"rump_sys_open"

	.no_dead_strip	_quota_test0
.subsections_via_symbols
