	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_quota_reserve              ## -- Begin function isc_quota_reserve
	.p2align	4, 0x90
_isc_quota_reserve:                     ## @isc_quota_reserve
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_LOCK
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%rax, 8(%rbx)
	jge	LBB0_5
LBB0_2:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpq	%rcx, %rax
	jl	LBB0_4
## %bb.3:
	movq	_ISC_R_SOFTQUOTA@GOTPCREL(%rip), %rsi
LBB0_4:
	testq	%rcx, %rcx
	cmoveq	%rdx, %rsi
	movl	(%rsi), %r15d
	incq	%rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	_ISC_R_QUOTA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	movq	%r14, %rdi
	callq	_UNLOCK
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.comm	_ISC_R_SOFTQUOTA,4,2            ## @ISC_R_SOFTQUOTA
	.comm	_ISC_R_QUOTA,4,2                ## @ISC_R_QUOTA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_quota_reserve              ; -- Begin function isc_quota_reserve
	.p2align	2
_isc_quota_reserve:                     ; @isc_quota_reserve
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	add	x19, x0, #24
	mov	x0, x19
	bl	_LOCK
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.ge	LBB0_3
LBB0_2:
	ldp	x9, x8, [x20, #8]
	cmp	x9, x8
	ccmp	x8, #0, #4, ge
Lloh0:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x10, _ISC_R_SOFTQUOTA@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ISC_R_SOFTQUOTA@GOTPAGEOFF]
	csel	x8, x8, x10, eq
	ldr	w21, [x8]
	add	x8, x9, #1
	str	x8, [x20, #8]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _ISC_R_QUOTA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ISC_R_QUOTA@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
LBB0_4:
	mov	x0, x19
	bl	_UNLOCK
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.comm	_ISC_R_SOFTQUOTA,4,2            ; @ISC_R_SOFTQUOTA
	.comm	_ISC_R_QUOTA,4,2                ; @ISC_R_QUOTA
.subsections_via_symbols
