	.file	"extr_mlx4_srq.c_mlx4_srq_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"HW2SW_SRQ failed (%d) for SRQN %06x\n"
	.text
	.p2align 4
	.globl	mlx4_srq_free
	.type	mlx4_srq_free, @function
mlx4_srq_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	mlx4_priv@PLT
	mov	edx, DWORD PTR [rbx]
	xor	esi, esi
	mov	rdi, rbp
	mov	r12, rax
	call	mlx4_HW2SW_SRQ@PLT
	test	eax, eax
	jne	.L12
.L2:
	mov	rdi, r12
	call	spin_lock_irq@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, 4[r12]
	call	radix_tree_delete@PLT
	mov	rdi, r12
	lea	r12, 4[rbx]
	call	spin_unlock_irq@PLT
	lea	rdi, 8[rbx]
	call	atomic_dec_and_test@PLT
	test	rax, rax
	jne	.L13
.L3:
	mov	rdi, r12
	call	wait_for_completion@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mlx4_srq_free_icm@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	ecx, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	mlx4_warn@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r12
	call	complete@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	mlx4_srq_free, .-mlx4_srq_free
	.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_mlx4_srq.c_mlx4_srq_free.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"HW2SW_SRQ failed (%d) for SRQN %06x\012\000"
	.text
	.align	2
	.global	mlx4_srq_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_srq_free, %function
mlx4_srq_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r0
	bl	mlx4_priv
	ldr	r2, [r4]
	mov	r5, r0
	mov	r1, #0
	mov	r0, r6
	bl	mlx4_HW2SW_SRQ
	subs	r2, r0, #0
	bne	.L12
.L2:
	mov	r7, r4
	mov	r0, r5
	bl	spin_lock_irq
	ldr	r1, [r7], #8
	add	r0, r5, #4
	bl	radix_tree_delete
	mov	r0, r5
	bl	spin_unlock_irq
	mov	r0, r7
	bl	atomic_dec_and_test
	cmp	r0, #0
	add	r5, r4, #4
	bne	.L13
.L3:
	mov	r0, r5
	bl	wait_for_completion
	mov	r0, r6
	ldr	r1, [r4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	mlx4_srq_free_icm
.L12:
	mov	r0, r6
	ldr	r3, [r4]
	ldr	r1, .L14
	bl	mlx4_warn
	b	.L2
.L13:
	mov	r0, r5
	bl	complete
	b	.L3
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	mlx4_srq_free, .-mlx4_srq_free
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
