	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getprivs                       ## -- Begin function getprivs
	.p2align	4, 0x90
_getprivs:                              ## @getprivs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_setfsent
	xorl	%eax, %eax
	callq	_getfsent
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r12
	leaq	L_.str(%rip), %r13
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	16(%r12), %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	xorl	%eax, %eax
	callq	_getfsent
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_12
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpb	$0, (%rbx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_quota_open
	testq	%rax, %rax
	je	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, %r14
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	$2, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_errx
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, 16(%r15)
	movl	12(%r15), %edi
	movq	8(%r12), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r15, %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_quota_read
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_warn
	movq	%r15, %rdi
	callq	_freeprivs
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r12), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	jmp	LBB0_11
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	jmp	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%r15)
	xorl	%eax, %eax
	callq	_getfsent
	movq	%rax, %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_2
	jmp	LBB0_22
LBB0_12:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	jne	LBB0_22
LBB0_13:
	testq	%rbx, %rbx
	leaq	L_.str.5(%rip), %rsi
	cmovneq	%rbx, %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_warnx
	xorl	%r14d, %r14d
LBB0_22:
	xorl	%eax, %eax
	callq	_endfsent
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ufs"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_errno,8,3                      ## @errno
	.comm	_EOPNOTSUPP,8,3                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"cannot open quotas on %s"

L_.str.2:                               ## @.str.2
	.asciz	"out of memory"

L_.str.3:                               ## @.str.3
	.asciz	"cannot read quotas on %s"

L_.str.4:                               ## @.str.4
	.asciz	"No quotas on %s"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getprivs                       ; -- Begin function getprivs
	.p2align	2
_getprivs:                              ; @getprivs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_setfsent
	bl	_getfsent
	cbz	x0, LBB0_20
; %bb.1:
	mov	x27, x0
	mov	x22, #0
	str	xzr, [sp, #8]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
Lloh2:
	adrp	x25, _O_CREAT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _O_CREAT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _O_RDWR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _O_RDWR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x27, #16]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_getfsent
	mov	x27, x0
	cbz	x0, LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x19, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x19]
	cbz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x27]
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x27, #8]
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_3
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	x0, x27
	mov	x1, x20
	bl	_quota_open
	cbz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x28, x0
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #2
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x24, [x28, #16]
	ldr	w0, [x28, #12]
	ldr	x1, [x27, #8]
	mov	w2, #4
	bl	_strlcpy
	add	x1, x28, #8
	mov	x0, x24
	mov	x2, x21
	bl	_quota_read
	cmn	w0, #1
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x27, #8]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warn
	mov	x0, x28
	bl	_freeprivs
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EOPNOTSUPP@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x27, #8]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x22, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x28, [x8]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x28
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x28]
	bl	_getfsent
	mov	x27, x0
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	cbnz	x0, LBB0_4
	b	LBB0_21
LBB0_19:
	cbnz	x22, LBB0_21
LBB0_20:
Lloh18:
	adrp	x8, l_.str.5@PAGE
Lloh19:
	add	x8, x8, l_.str.5@PAGEOFF
	cmp	x19, #0
	csel	x1, x8, x19, eq
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
	mov	x22, #0
LBB0_21:
	bl	_endfsent
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ufs"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_errno,8,3                      ; @errno
	.comm	_EOPNOTSUPP,8,3                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"cannot open quotas on %s"

l_.str.2:                               ; @.str.2
	.asciz	"out of memory"

l_.str.3:                               ; @.str.3
	.asciz	"cannot read quotas on %s"

l_.str.4:                               ; @.str.4
	.asciz	"No quotas on %s"

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

.subsections_via_symbols
