	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetPrivateRefCountEntry
_GetPrivateRefCountEntry:               ## @GetPrivateRefCountEntry
	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	%rdi, -48(%rbp)
	callq	_BufferIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	%r15, %rdi
	callq	_BufferIsLocal
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_REFCOUNT_ARRAY_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	_PrivateRefCountArray@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rbx)
	je	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rbx
	decq	%rax
	jne	LBB0_3
LBB0_4:
	movq	_PrivateRefCountOverflowed@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.6:
	movq	_PrivateRefCountHash@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_HASH_FIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	_hash_search
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r15
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.9:
	xorl	%eax, %eax
	callq	_ReservePrivateRefCountEntry
	movq	_ReservedRefCountEntry@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_Assert
	movq	(%r14), %rbx
	movq	$0, (%r14)
	movq	(%rbx), %rax
	movq	_InvalidBuffer@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx)
	movl	8(%r15), %eax
	movl	%eax, 8(%rbx)
	movl	(%r13), %edi
	movq	_HASH_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rcx
	callq	_hash_search
	movl	-52(%rbp), %edi
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	setg	%dil
	callq	_Assert
	decq	(%r12)
	jmp	LBB0_10
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %rbx
LBB0_10:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REFCOUNT_ARRAY_ENTRIES,4,2     ## @REFCOUNT_ARRAY_ENTRIES
	.comm	_PrivateRefCountArray,8,3       ## @PrivateRefCountArray
	.comm	_PrivateRefCountOverflowed,8,3  ## @PrivateRefCountOverflowed
	.comm	_PrivateRefCountHash,4,2        ## @PrivateRefCountHash
	.comm	_HASH_FIND,4,2                  ## @HASH_FIND
	.comm	_ReservedRefCountEntry,8,3      ## @ReservedRefCountEntry
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_HASH_REMOVE,4,2                ## @HASH_REMOVE
	.no_dead_strip	_GetPrivateRefCountEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetPrivateRefCountEntry
_GetPrivateRefCountEntry:               ; @GetPrivateRefCountEntry
	.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, x1
	mov	x21, x0
	str	x0, [sp, #8]
	bl	_BufferIsValid
	bl	_Assert
	mov	x0, x21
	bl	_BufferIsLocal
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh0:
	adrp	x8, _REFCOUNT_ARRAY_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REFCOUNT_ARRAY_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _PrivateRefCountArray@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PrivateRefCountArray@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x9, x21
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #16
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
Lloh6:
	adrp	x21, _PrivateRefCountOverflowed@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PrivateRefCountOverflowed@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.5:
Lloh8:
	adrp	x22, _PrivateRefCountHash@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PrivateRefCountHash@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh10:
	adrp	x8, _HASH_FIND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HASH_FIND@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x3, #0
	bl	_hash_search
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.6:
	cbz	w19, LBB0_9
; %bb.7:
	bl	_ReservePrivateRefCountEntry
Lloh13:
	adrp	x19, _ReservedRefCountEntry@GOTPAGE
Lloh14:
	ldr	x19, [x19, _ReservedRefCountEntry@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x23, [x19]
	str	xzr, [x19]
	ldr	x8, [x23]
Lloh15:
	adrp	x9, _InvalidBuffer@GOTPAGE
Lloh16:
	ldr	x9, [x9, _InvalidBuffer@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [sp, #8]
	str	x8, [x23]
	ldr	w8, [x20, #8]
	str	w8, [x23, #8]
	ldr	w0, [x22]
Lloh18:
	adrp	x8, _HASH_REMOVE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HASH_REMOVE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x1, sp, #8
	add	x3, sp, #4
	bl	_hash_search
	ldr	w0, [sp, #4]
	bl	_Assert
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x21]
	sub	x8, x8, #1
	str	x8, [x21]
	mov	x20, x23
	b	LBB0_9
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_REFCOUNT_ARRAY_ENTRIES,4,2     ; @REFCOUNT_ARRAY_ENTRIES
	.comm	_PrivateRefCountArray,8,3       ; @PrivateRefCountArray
	.comm	_PrivateRefCountOverflowed,8,3  ; @PrivateRefCountOverflowed
	.comm	_PrivateRefCountHash,4,2        ; @PrivateRefCountHash
	.comm	_HASH_FIND,4,2                  ; @HASH_FIND
	.comm	_ReservedRefCountEntry,8,3      ; @ReservedRefCountEntry
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_HASH_REMOVE,4,2                ; @HASH_REMOVE
	.no_dead_strip	_GetPrivateRefCountEntry
.subsections_via_symbols
