	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getprivs
_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_filename@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	leaq	-96(%rbp), %rsi
	callq	_statfs
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	movq	_MNT_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_getmntinfo
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_setfsent
	testl	%ebx, %ebx
	jle	LBB0_25
## %bb.6:
	movl	%ebx, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rbx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_lflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$24, %r13
	cmpq	%r13, %rbx
	je	LBB0_23
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-96(%rbp), %rdi
	movq	-48(%rbp), %rax
	movq	(%rax,%r13), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_22
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax,%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax,%r13), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax
	movl	16(%rax,%r13), %edi
	callq	_getfsspec
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_getufsquota
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_22
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	$2, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_errx
	xorl	%r14d, %r14d
	cmpq	$0, (%r12)
	jne	LBB0_11
	jmp	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdi
	addq	%r13, %rdi
	movq	%r14, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_getnfsquota
	testq	%rax, %rax
	je	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r14), %edi
	movq	-48(%rbp), %rax
	movq	(%rax,%r13), %rsi
	callq	_strcpy
	movq	%r14, %rax
	testq	%r15, %r15
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	%r15, %rax
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, (%r14)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_22
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_errx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_setfsent
	jmp	LBB0_25
LBB0_23:
	testq	%r14, %r14
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	callq	_free
LBB0_25:
	xorl	%eax, %eax
	callq	_endfsent
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_filename,8,3                   ## @filename
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot statfs %s"

	.comm	_MNT_NOWAIT,4,2                 ## @MNT_NOWAIT
L_.str.1:                               ## @.str.1
	.asciz	"no filesystems mounted!"

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

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

	.comm	_lflag,8,3                      ## @lflag
L_.str.4:                               ## @.str.4
	.asciz	"ufs"

	.no_dead_strip	_getprivs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getprivs
_getprivs:                              ; @getprivs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x0
Lloh0:
	adrp	x26, _filename@GOTPAGE
Lloh1:
	ldr	x26, [x26, _filename@GOTPAGEOFF]
	ldr	x0, [x26]
	cbz	x0, LBB0_3
; %bb.1:
	add	x1, sp, #16
	bl	_statfs
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x2, [x26]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
Lloh4:
	adrp	x8, _MNT_NOWAIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MNT_NOWAIT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x0, sp, #40
	bl	_getmntinfo
	cbz	w0, LBB0_23
; %bb.4:
	mov	x22, x0
	bl	_setfsent
	cmp	w22, #1
	b.lt	LBB0_24
; %bb.5:
	mov	x27, #0
	mov	x25, #0
	mov	x21, #0
	mov	x19, #0
	mov	w8, #24
	umull	x28, w22, w8
Lloh7:
	adrp	x23, l_.str.3@PAGE
Lloh8:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh9:
	adrp	x22, _lflag@GOTPAGE
Lloh10:
	ldr	x22, [x22, _lflag@GOTPAGEOFF]
Lloh11:
	adrp	x24, l_.str.4@PAGE
Lloh12:
	add	x24, x24, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_17
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x27, x27, #24
	cmp	x28, x27
	b.eq	LBB0_21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x25, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #16
	bl	_malloc
	mov	x25, x0
	cbz	x0, LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #16]
	ldr	x8, [sp, #40]
	ldr	x1, [x8, x27]
	bl	_strcmp
	cbnz	x0, LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #40]
	add	x8, x8, x27
	ldr	x0, [x8, #8]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #40]
	add	x8, x8, x27
	ldr	x0, [x8, #8]
	mov	x1, x24
	bl	_strcmp
	cbnz	x0, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #40]
	add	x8, x8, x27
	ldr	w0, [x8, #16]
	bl	_getfsspec
	cbz	x0, LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x25
	mov	x2, x20
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	bl	_getufsquota
	cbnz	x0, LBB0_18
	b	LBB0_7
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #2
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
	ldr	x8, [x26]
	cbnz	x8, LBB0_11
	b	LBB0_12
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #40]
	add	x0, x8, x27
	mov	x1, x25
	mov	x2, x20
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	bl	_getnfsquota
	cbz	x0, LBB0_7
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x25, #8]
	ldr	x8, [sp, #40]
	ldr	x1, [x8, x27]
	bl	_strcpy
	mov	x0, x25
	cbz	x21, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x25, [x19]
	mov	x0, x21
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [x25]
	mov	x19, x25
	mov	x21, x0
	mov	x25, #0
	b	LBB0_7
LBB0_21:
	cbz	x25, LBB0_25
; %bb.22:
	mov	x0, x25
	bl	_free
	b	LBB0_25
LBB0_23:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_errx
	bl	_setfsent
LBB0_24:
	mov	x21, #0
LBB0_25:
	bl	_endfsent
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_filename,8,3                   ; @filename
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot statfs %s"

	.comm	_MNT_NOWAIT,4,2                 ; @MNT_NOWAIT
l_.str.1:                               ; @.str.1
	.asciz	"no filesystems mounted!"

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

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

	.comm	_lflag,8,3                      ; @lflag
l_.str.4:                               ; @.str.4
	.asciz	"ufs"

	.no_dead_strip	_getprivs
.subsections_via_symbols
