	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quota_write_limits             ## -- Begin function quota_write_limits
	.p2align	4, 0x90
_quota_write_limits:                    ## @quota_write_limits
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$-1, (%rdi)
	je	LBB0_29
## %bb.1:
	movl	4(%rbx), %eax
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.3:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_quota_read
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_28
## %bb.4:
	movq	-72(%rbp), %rcx
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.5:
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	movq	-64(%rbp), %rdx
	cmpq	%rcx, %rdx
	jge	LBB0_13
## %bb.7:
	cmpq	(%r14), %rdx
	jge	LBB0_12
	jmp	LBB0_13
LBB0_29:
	movq	_Q_SETQUOTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_QCMD
	movl	12(%rbx), %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	movq	%r14, %rcx
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_quotactl                       ## TAILCALL
LBB0_2:
	movq	_EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_28:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.9:
	testq	%rcx, %rcx
	jne	LBB0_13
## %bb.10:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	jle	LBB0_13
## %bb.11:
	cmpq	%rcx, -64(%rbp)
	jl	LBB0_13
LBB0_12:
	movq	$0, 40(%r14)
LBB0_13:
	movq	-56(%rbp), %rdx
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.14:
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.15:
	movq	-48(%rbp), %rcx
	cmpq	%rdx, %rcx
	jge	LBB0_23
## %bb.16:
	cmpq	16(%r14), %rcx
	jge	LBB0_22
	jmp	LBB0_23
LBB0_17:
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.18:
	testq	%rdx, %rdx
	jne	LBB0_19
## %bb.20:
	movq	16(%r14), %rdx
	movq	-48(%rbp), %rcx
	testq	%rdx, %rdx
	jle	LBB0_23
## %bb.21:
	cmpq	%rdx, %rcx
	jl	LBB0_23
LBB0_22:
	movq	$0, 32(%r14)
	jmp	LBB0_23
LBB0_19:
	movq	-48(%rbp), %rcx
LBB0_23:
	movq	%rcx, 24(%r14)
	movq	-64(%rbp), %rcx
	movq	%rcx, 8(%r14)
	movl	8(%rbx), %ecx
	cmpl	$64, %ecx
	je	LBB0_26
## %bb.24:
	cmpl	$32, %ecx
	jne	LBB0_27
## %bb.25:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_quota_write32
	jmp	LBB0_28
LBB0_26:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_quota_write64
	jmp	LBB0_28
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_SETQUOTA,4,2                 ## @Q_SETQUOTA
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_quota_write_limits             ; -- Begin function quota_write_limits
	.p2align	2
_quota_write_limits:                    ; @quota_write_limits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.1:
	ldr	w8, [x21, #4]
Lloh0:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_8
; %bb.2:
	mov	x1, sp
	mov	x0, x21
	mov	x2, x19
	bl	_quota_read
	cbnz	x0, LBB0_10
; %bb.3:
	ldr	x8, [sp]
	cbz	w19, LBB0_12
; %bb.4:
	cbz	x8, LBB0_12
; %bb.5:
	ldr	x9, [sp, #8]
	cmp	x9, x8
	b.ge	LBB0_18
; %bb.6:
	ldr	x8, [x20]
	b	LBB0_16
LBB0_7:
Lloh3:
	adrp	x8, _Q_SETQUOTA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Q_SETQUOTA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
	bl	_QCMD
	mov	x1, x0
	ldr	w0, [x21, #12]
	mov	x2, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_quotactl
LBB0_8:
Lloh6:
	adrp	x8, _EBADF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _errno@GOTPAGE
Lloh9:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	cbz	w19, LBB0_18
; %bb.13:
	cbnz	x8, LBB0_18
; %bb.14:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_18
; %bb.15:
	ldr	x9, [sp, #8]
LBB0_16:
	cmp	x9, x8
	b.lt	LBB0_18
; %bb.17:
	str	xzr, [x20, #40]
LBB0_18:
	ldr	x9, [sp, #16]
	cbz	w19, LBB0_22
; %bb.19:
	cbz	x9, LBB0_22
; %bb.20:
	ldr	x8, [sp, #24]
	cmp	x8, x9
	b.ge	LBB0_28
; %bb.21:
	ldr	x9, [x20, #16]
	b	LBB0_25
LBB0_22:
	cbz	w19, LBB0_27
; %bb.23:
	cbnz	x9, LBB0_27
; %bb.24:
	ldr	x9, [x20, #16]
	ldr	x8, [sp, #24]
	cmp	x9, #1
	b.lt	LBB0_28
LBB0_25:
	cmp	x8, x9
	b.lt	LBB0_28
; %bb.26:
	str	xzr, [x20, #32]
	b	LBB0_28
LBB0_27:
	ldr	x8, [sp, #24]
LBB0_28:
	str	x8, [x20, #24]
	ldr	x8, [sp, #8]
	str	x8, [x20, #8]
	ldr	w8, [x21, #8]
	cmp	w8, #64
	b.eq	LBB0_31
; %bb.29:
	cmp	w8, #32
	b.ne	LBB0_32
; %bb.30:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_quota_write32
	b	LBB0_11
LBB0_31:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_quota_write64
	b	LBB0_11
LBB0_32:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_SETQUOTA,4,2                 ; @Q_SETQUOTA
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
