	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_cache_mp_read_session    ## -- Begin function close_cache_mp_read_session
	.p2align	4, 0x90
_close_cache_mp_read_session:           ## @close_cache_mp_read_session
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	_close_cache_mp_read_session(%rip), %rdi
	callq	_TRACE_IN
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_assert
	movq	(%rbx), %rdi
	addq	$24, %rdi
	movq	_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	(%rbx), %rax
	decq	(%rax)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.2:
	movq	16(%rax), %rdi
	callq	_destroy_cache_mp_write_session
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 16(%rax)
	movq	$0, 8(%rax)
LBB0_3:
	movq	%rbx, %rdi
	callq	_destroy_cache_mp_read_session
	leaq	_close_cache_mp_read_session(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_TRACE_OUT                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_entries,4,2                    ## @entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_cache_mp_read_session    ; -- Begin function close_cache_mp_read_session
	.p2align	2
_close_cache_mp_read_session:           ; @close_cache_mp_read_session
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _close_cache_mp_read_session@PAGE
Lloh1:
	add	x0, x0, _close_cache_mp_read_session@PAGEOFF
	bl	_TRACE_IN
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
	add	x0, x8, #24
Lloh2:
	adrp	x8, _entries@GOTPAGE
Lloh3:
	ldr	x8, [x8, _entries@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	ldr	x8, [x19]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	x0, [x8, #16]
	bl	_destroy_cache_mp_write_session
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	stp	xzr, x9, [x8, #8]
LBB0_3:
	mov	x0, x19
	bl	_destroy_cache_mp_read_session
Lloh5:
	adrp	x0, _close_cache_mp_read_session@PAGE
Lloh6:
	add	x0, x0, _close_cache_mp_read_session@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_TRACE_OUT
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_entries,4,2                    ; @entries
.subsections_via_symbols
