	.file	"extr_cachelib.c_close_cache_mp_read_session.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	close_cache_mp_read_session
	.type	close_cache_mp_read_session, @function
close_cache_mp_read_session:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, close_cache_mp_read_session[rip]
	call	TRACE_IN@PLT
	xor	edi, edi
	test	rbp, rbp
	setne	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR entries[rip]
	mov	rsi, rbp
	lea	rdi, 24[rax]
	call	TAILQ_REMOVE@PLT
	mov	rdx, QWORD PTR 0[rbp]
	sub	QWORD PTR [rdx], 1
	jne	.L2
	cmp	QWORD PTR 8[rdx], 0
	je	.L2
	mov	rdi, QWORD PTR 16[rdx]
	call	destroy_cache_mp_write_session@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], rdx
.L2:
	mov	rdi, rbp
	call	destroy_cache_mp_read_session@PLT
	lea	rdi, close_cache_mp_read_session[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	TRACE_OUT@PLT
	.cfi_endproc
.LFE0:
	.size	close_cache_mp_read_session, .-close_cache_mp_read_session
	.comm	entries,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cachelib.c_close_cache_mp_read_session.c"
	.text
	.align	2
	.global	close_cache_mp_read_session
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_cache_mp_read_session, %function
close_cache_mp_read_session:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, .L8
	bl	TRACE_IN
	subs	r0, r4, #0
	movne	r0, #1
	bl	assert
	ldr	r0, [r4]
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r3, .L8+4
	ldr	r0, [r4]
	ldr	r2, [r3]
	mov	r1, r4
	add	r0, r0, #12
	bl	TAILQ_REMOVE
	ldr	r3, [r4]
	ldr	r5, [r3]
	sub	r5, r5, #1
	cmp	r5, #0
	str	r5, [r3]
	bne	.L2
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L2
	ldr	r0, [r3, #8]
	bl	destroy_cache_mp_write_session
	ldr	r3, [r4]
	ldr	r2, [r3, #4]
	str	r5, [r3, #4]
	str	r2, [r3, #8]
.L2:
	mov	r0, r4
	bl	destroy_cache_mp_read_session
	pop	{r4, r5, r6, lr}
	ldr	r0, .L8
	b	TRACE_OUT
.L9:
	.align	2
.L8:
	.word	close_cache_mp_read_session
	.word	entries
	.size	close_cache_mp_read_session, .-close_cache_mp_read_session
	.comm	entries,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
