	.file	"extr_mad.c_mlx4_ib_free_pv_qp_bufs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx4_ib_free_pv_qp_bufs, @function
mlx4_ib_free_pv_qp_bufs:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR IB_QPT_GSI[rip], esi
	jb	.L1
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, esi
	mov	eax, DWORD PTR MLX4_NUM_TUNNEL_BUFS[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	sal	rsi, 4
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR 8[rdi]
	add	rbx, rsi
	test	eax, eax
	jle	.L3
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [rbx]
	lea	r12, 0[rbp+rbp*4]
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edx, 4
	sal	r12, 3
	mov	edi, DWORD PTR 0[r13]
	add	rbp, 1
	mov	esi, DWORD PTR 32[rax+r12]
	call	ib_dma_unmap_single@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR 24[rax+r12]
	call	kfree@PLT
	mov	eax, DWORD PTR MLX4_NUM_TUNNEL_BUFS[rip]
	cmp	eax, ebp
	jg	.L4
	mov	rdi, QWORD PTR 8[rbx]
	test	eax, eax
	jle	.L5
	xor	ebp, ebp
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	add	rbp, 1
	cmp	DWORD PTR MLX4_NUM_TUNNEL_BUFS[rip], ebp
	jle	.L5
.L7:
	lea	r12, 0[rbp+rbp*4]
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	edx, 4
	lea	r14, 0[0+r12*8]
	mov	esi, DWORD PTR 16[rdi+r14]
	mov	edi, DWORD PTR 0[r13]
	call	ib_dma_unmap_single@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 8[rax+r14]
	call	kfree@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	r8, QWORD PTR [rdi+r12*8]
	test	r8, r8
	je	.L6
	mov	rdi, r8
	add	rbp, 1
	call	ib_destroy_ah@PLT
	cmp	DWORD PTR MLX4_NUM_TUNNEL_BUFS[rip], ebp
	mov	rdi, QWORD PTR 8[rbx]
	jg	.L7
.L5:
	call	kfree@PLT
	mov	rdi, QWORD PTR [rbx]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	mov	rdi, QWORD PTR 8[rbx]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	mlx4_ib_free_pv_qp_bufs, .-mlx4_ib_free_pv_qp_bufs
	.comm	MLX4_NUM_TUNNEL_BUFS,4,4
	.comm	IB_QPT_GSI,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,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_mad.c_mlx4_ib_free_pv_qp_bufs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_ib_free_pv_qp_bufs, %function
mlx4_ib_free_pv_qp_bufs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, r1
	popcc	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r8, .L15+4
	ldr	fp, [r0, #4]
	ldr	r3, [r8]
	mov	r10, r1
	cmp	r3, #0
	mov	r7, r0
	add	r5, fp, r1, lsl #3
	ble	.L3
	mov	r4, #0
	mov	r6, r4
	ldr	r9, .L15+8
.L4:
	ldr	r2, [r5]
	ldr	r3, [r9]
	add	r2, r2, r4
	ldr	r1, [r2, #16]
	ldr	r0, [r7]
	mov	r2, #4
	bl	ib_dma_unmap_single
	ldr	r3, [r5]
	add	r6, r6, #1
	add	r3, r3, r4
	ldr	r0, [r3, #12]
	bl	kfree
	ldr	r3, [r8]
	add	r4, r4, #20
	cmp	r3, r6
	bgt	.L4
	cmp	r3, #0
	ldr	r3, [r5, #4]
	ble	.L5
	mov	r4, #0
	ldr	r9, .L15+12
	b	.L7
.L6:
	ldr	r2, [r8]
	cmp	r2, r4
	ble	.L5
.L7:
	add	r6, r4, r4, lsl #2
	add	r3, r3, r6, lsl #2
	ldr	r1, [r3, #8]
	mov	r2, #4
	ldr	r3, [r9]
	ldr	r0, [r7]
	bl	ib_dma_unmap_single
	ldr	r3, [r5, #4]
	lsl	r2, r6, #2
	add	r3, r3, r2
	ldr	r0, [r3, #4]
	bl	kfree
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	ldr	r0, [r3, r6, lsl #2]
	cmp	r0, #0
	beq	.L6
	bl	ib_destroy_ah
	ldr	r2, [r8]
	ldr	r3, [r5, #4]
	cmp	r2, r4
	bgt	.L7
.L5:
	mov	r0, r3
	bl	kfree
	ldr	r0, [fp, r10, lsl #3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	kfree
.L3:
	ldr	r3, [r5, #4]
	b	.L5
.L16:
	.align	2
.L15:
	.word	IB_QPT_GSI
	.word	MLX4_NUM_TUNNEL_BUFS
	.word	DMA_FROM_DEVICE
	.word	DMA_TO_DEVICE
	.size	mlx4_ib_free_pv_qp_bufs, .-mlx4_ib_free_pv_qp_bufs
	.comm	MLX4_NUM_TUNNEL_BUFS,4,4
	.comm	IB_QPT_GSI,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
