	.file	"extr_mr.c_rvt_check_refs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s timeout mr %p pd %p lkey %x refcount %ld\n"
	.text
	.p2align 4
	.type	rvt_check_refs, @function
rvt_check_refs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR 16[rdi]
	mov	rbp, rdi
	mov	edi, DWORD PTR [rax]
	call	ib_to_rvt@PLT
	cmp	QWORD PTR 8[rbp], 0
	mov	r12, rax
	jne	.L7
.L2:
	mov	eax, DWORD PTR HZ[rip]
	lea	rdi, 24[rbp]
	lea	esi, [rax+rax*4]
	call	wait_for_completion_timeout@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L8
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	rvt_dereg_clean_qps@PLT
	xor	eax, eax
	call	synchronize_rcu@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbp
	call	atomic_long_read@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r9, QWORD PTR 8[rbp]
	mov	rcx, rbp
	push	rax
	.cfi_def_cfa_offset 48
	mov	r8, QWORD PTR 16[rbp]
	mov	rdx, r13
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	rvt_pr_err@PLT
	mov	rdi, rbp
	call	rvt_get_mr@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rvt_check_refs, .-rvt_check_refs
	.comm	HZ,4,4
	.comm	EBUSY,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_mr.c_rvt_check_refs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s timeout mr %p pd %p lkey %x refcount %ld\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rvt_check_refs, %function
rvt_check_refs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0, #8]
	mov	r4, r0
	sub	sp, sp, #16
	ldr	r0, [r3]
	mov	r6, r1
	bl	ib_to_rvt
	ldr	r3, [r4, #4]
	mov	r5, r0
	cmp	r3, #0
	bne	.L10
.L2:
	ldr	r3, .L12
	add	r0, r4, #12
	ldr	r1, [r3]
	add	r1, r1, r1, lsl #2
	bl	wait_for_completion_timeout
	cmp	r0, #0
	movne	r0, #0
	beq	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r4
	bl	rvt_dereg_clean_qps
	bl	synchronize_rcu
	b	.L2
.L11:
	mov	r0, r4
	ldr	r7, [r4, #8]
	ldr	r8, [r4, #4]
	bl	atomic_long_read
	mov	r3, r4
	mov	r2, r6
	ldr	r1, .L12+4
	str	r0, [sp, #8]
	stm	sp, {r7, r8}
	mov	r0, r5
	bl	rvt_pr_err
	mov	r0, r4
	bl	rvt_get_mr
	ldr	r3, .L12+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	HZ
	.word	.LC0
	.word	EBUSY
	.size	rvt_check_refs, .-rvt_check_refs
	.comm	HZ,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
