	.file	"extr_mlx5_ib_mr.c_free_cached_mr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"order %d, cache index %d\n"
	.text
	.p2align 4
	.type	free_cached_mr, @function
free_cached_mr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR 4[rsi]
	call	order2idx@PLT
	movsx	rcx, eax
	test	ecx, ecx
	js	.L2
	cmp	DWORD PTR MAX_MR_CACHE_ENTRIES[rip], ecx
	jg	.L3
.L2:
	mov	edx, DWORD PTR 4[r12]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mlx5_ib_warn@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	lea	rdx, [rcx+rcx*4]
	lea	rbx, [rax+rdx*4]
	lea	r13, 12[rbx]
	mov	rdi, r13
	call	spin_lock_irq@PLT
	mov	rdi, r12
	lea	rsi, 16[rbx]
	call	list_add_tail@PLT
	mov	eax, DWORD PTR [rbx]
	mov	edx, DWORD PTR 4[rbx]
	mov	rdi, r13
	add	eax, 1
	add	edx, edx
	mov	DWORD PTR [rbx], eax
	cmp	eax, edx
	jg	.L4
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irq@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	spin_unlock_irq@PLT
	mov	edi, DWORD PTR 0[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	lea	rsi, 8[rbx]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	queue_work@PLT
	.cfi_endproc
.LFE0:
	.size	free_cached_mr, .-free_cached_mr
	.comm	MAX_MR_CACHE_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_mlx5_ib_mr.c_free_cached_mr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"order %d, cache index %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_cached_mr, %function
free_cached_mr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	ldr	r1, [r1, #4]
	mov	r6, r0
	bl	order2idx
	subs	r3, r0, #0
	blt	.L2
	ldr	r2, .L7
	ldr	r2, [r2]
	cmp	r2, r3
	bgt	.L3
.L2:
	mov	r0, r6
	ldr	r2, [r5, #4]
	ldr	r1, .L7+4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	mlx5_ib_warn
.L3:
	ldr	r8, [r6, #4]
	add	r3, r3, r3, lsl #2
	add	r7, r8, r3, lsl #2
	add	r9, r7, #12
	mov	r0, r9
	lsl	r4, r3, #2
	bl	spin_lock_irq
	mov	r0, r5
	add	r1, r7, #16
	bl	list_add_tail
	ldr	r3, [r8, r4]
	ldr	r2, [r7, #4]
	add	r3, r3, #1
	cmp	r3, r2, lsl #1
	mov	r0, r9
	str	r3, [r8, r4]
	bgt	.L4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	spin_unlock_irq
.L4:
	bl	spin_unlock_irq
	ldr	r0, [r6]
	add	r1, r7, #8
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	queue_work
.L8:
	.align	2
.L7:
	.word	MAX_MR_CACHE_ENTRIES
	.word	.LC0
	.size	free_cached_mr, .-free_cached_mr
	.comm	MAX_MR_CACHE_ENTRIES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
