	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReservePrivateRefCountEntry
_ReservePrivateRefCountEntry:           ## @ReservePrivateRefCountEntry
	.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	_ReservedRefCountEntry@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jne	LBB0_7
## %bb.1:
	movq	_REFCOUNT_ARRAY_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PrivateRefCountArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_InvalidBuffer@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	testl	%edi, %edi
	jle	LBB0_6
## %bb.2:
	movq	%rdi, %rdx
	movq	%rcx, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rax)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rax
	decq	%rdx
	jne	LBB0_4
LBB0_6:
	movq	_PrivateRefCountClock@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	leal	1(%rax), %ebx
	movl	%ebx, (%rdx)
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%edi
	movslq	%edx, %rax
	shlq	$4, %rax
	leaq	(%rcx,%rax), %rdx
	movq	%rdx, (%r14)
	xorl	%edi, %edi
	cmpq	%rsi, (%rcx,%rax)
	setne	%dil
	callq	_Assert
	movq	_PrivateRefCountHash@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	callq	_hash_search
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpl	$0, -28(%rbp)
	sete	%dil
	callq	_Assert
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movq	(%r15), %rcx
	movq	%rcx, (%rax)
	movq	$0, 8(%rax)
	movq	_PrivateRefCountOverflowed@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_7
LBB0_5:
	movq	%rax, (%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ReservedRefCountEntry,8,3      ## @ReservedRefCountEntry
	.comm	_REFCOUNT_ARRAY_ENTRIES,4,2     ## @REFCOUNT_ARRAY_ENTRIES
	.comm	_PrivateRefCountArray,8,3       ## @PrivateRefCountArray
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_PrivateRefCountClock,4,2       ## @PrivateRefCountClock
	.comm	_PrivateRefCountHash,4,2        ## @PrivateRefCountHash
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_PrivateRefCountOverflowed,4,2  ## @PrivateRefCountOverflowed
	.no_dead_strip	_ReservePrivateRefCountEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReservePrivateRefCountEntry
_ReservePrivateRefCountEntry:           ; @ReservePrivateRefCountEntry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _ReservedRefCountEntry@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ReservedRefCountEntry@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _REFCOUNT_ARRAY_ENTRIES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REFCOUNT_ARRAY_ENTRIES@GOTPAGEOFF]
Lloh4:
	adrp	x9, _PrivateRefCountArray@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PrivateRefCountArray@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x8]
Lloh7:
	ldr	x8, [x9]
Lloh8:
	adrp	x21, _InvalidBuffer@GOTPAGE
Lloh9:
	ldr	x21, [x21, _InvalidBuffer@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x12, x10
	mov	x11, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	cmp	x13, x9
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #16
	subs	x12, x12, #1
	b.ne	LBB0_3
LBB0_5:
Lloh10:
	adrp	x11, _PrivateRefCountClock@GOTPAGE
Lloh11:
	ldr	x11, [x11, _PrivateRefCountClock@GOTPAGEOFF]
	ldr	w12, [x11]
	add	w13, w12, #1
	str	w13, [x11]
	sdiv	w11, w12, w10
	msub	w10, w11, w10, w12
	sbfiz	x10, x10, #4, #32
	add	x11, x8, x10
	str	x11, [x20]
	ldr	x8, [x8, x10]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
Lloh12:
	adrp	x8, _PrivateRefCountHash@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PrivateRefCountHash@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x1, [x20]
Lloh15:
	adrp	x8, _HASH_ENTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HASH_ENTER@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_hash_search
	mov	x19, x0
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	str	x9, [x19, #8]
	ldr	x9, [x21]
	stp	x9, xzr, [x8]
Lloh18:
	adrp	x8, _PrivateRefCountOverflowed@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PrivateRefCountOverflowed@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_7
LBB0_6:
	str	x11, [x20]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ReservedRefCountEntry,8,3      ; @ReservedRefCountEntry
	.comm	_REFCOUNT_ARRAY_ENTRIES,4,2     ; @REFCOUNT_ARRAY_ENTRIES
	.comm	_PrivateRefCountArray,8,3       ; @PrivateRefCountArray
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_PrivateRefCountClock,4,2       ; @PrivateRefCountClock
	.comm	_PrivateRefCountHash,4,2        ; @PrivateRefCountHash
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_PrivateRefCountOverflowed,4,2  ; @PrivateRefCountOverflowed
	.no_dead_strip	_ReservePrivateRefCountEntry
.subsections_via_symbols
