	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _getquota
__getquota:                             ## @_getquota
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	cmpl	$129, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %r13d
	jne	LBB0_9
## %bb.2:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	(%rbx), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_6
## %bb.3:
	movq	_unprivileged_get_quota@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
	jmp	LBB0_6
LBB0_5:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	(%rbx), %rsi
	movl	%r15d, %edi
	callq	_groupmember
	movq	_unprivileged_get_quota@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jne	LBB0_6
LBB0_4:
	movq	_PRIV_VFS_GETQUOTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_priv_check
	testl	%eax, %eax
	jne	LBB0_8
LBB0_6:
	movq	_NODQUOT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	_NULLVP@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r12, %rdi
	callq	_VFSTOUFS
	leaq	-56(%rbp), %r8
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%r13d, %ecx
	callq	_dqget
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rsi
	movl	(%rsi), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%r14), %edi
	callq	_dqrele
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_unprivileged_get_quota,4,2     ## @unprivileged_get_quota
	.comm	_PRIV_VFS_GETQUOTA,4,2          ## @PRIV_VFS_GETQUOTA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NODQUOT,8,3                    ## @NODQUOT
	.comm	_NULLVP,4,2                     ## @NULLVP
	.no_dead_strip	__getquota
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _getquota
__getquota:                             ; @_getquota
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	cmp	w3, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #128
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x23]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _unprivileged_get_quota@GOTPAGE
Lloh1:
	ldr	x9, [x9, _unprivileged_get_quota@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_4
	b	LBB0_5
LBB0_3:
	ldr	x1, [x23]
	mov	x0, x21
	bl	_groupmember
Lloh3:
	adrp	x8, _unprivileged_get_quota@GOTPAGE
Lloh4:
	ldr	x8, [x8, _unprivileged_get_quota@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w0, w8
	cbnz	w8, LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _PRIV_VFS_GETQUOTA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PRIV_VFS_GETQUOTA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_priv_check
	cbnz	w0, LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _NODQUOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NODQUOT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh12:
	adrp	x24, _NULLVP@GOTPAGE
Lloh13:
	ldr	x24, [x24, _NULLVP@GOTPAGEOFF]
	ldr	w23, [x24]
	mov	x0, x22
	bl	_VFSTOUFS
	mov	x2, x0
	add	x4, sp, #8
	mov	x0, x23
	mov	x1, x21
	mov	x3, x20
	bl	_dqget
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x1, [sp, #8]
	ldr	w8, [x1]
	str	w8, [x19]
	ldr	w0, [x24]
	bl	_dqrele
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_unprivileged_get_quota,4,2     ; @unprivileged_get_quota
	.comm	_PRIV_VFS_GETQUOTA,4,2          ; @PRIV_VFS_GETQUOTA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NODQUOT,8,3                    ; @NODQUOT
	.comm	_NULLVP,4,2                     ; @NULLVP
	.no_dead_strip	__getquota
.subsections_via_symbols
