	.file	"extr_icm.c_mlx4_free_icm_coherent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx4_free_icm_coherent, @function
mlx4_free_icm_coherent:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	jle	.L6
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 8[r12]
	lea	rbp, 0[0+rbx*4]
	add	rdi, rbp
	call	sg_dma_address@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	r14d, eax
	add	rdi, rbp
	call	sg_page@PLT
	mov	edi, eax
	call	lowmem_page_address@PLT
	mov	rdi, QWORD PTR 0[r13]
	mov	ecx, r14d
	mov	edx, eax
	mov	rax, QWORD PTR 8[r12]
	mov	esi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	dma_free_coherent@PLT
	cmp	DWORD PTR [r12], ebx
	jg	.L3
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	mlx4_free_icm_coherent, .-mlx4_free_icm_coherent
	.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_icm.c_mlx4_free_icm_coherent.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_free_icm_coherent, %function
mlx4_free_icm_coherent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	cmp	r3, #0
	bxle	lr
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r8, r0
	mov	r4, #0
.L3:
	ldr	r3, [r6, #4]
	ldr	r7, [r8]
	add	r0, r3, r4, lsl #2
	ldr	r9, [r3, r4, lsl #2]
	bl	sg_page
	bl	lowmem_page_address
	ldr	r2, [r6, #4]
	lsl	r3, r4, #2
	mov	r5, r0
	add	r0, r2, r3
	bl	sg_dma_address
	mov	r2, r5
	mov	r3, r0
	mov	r1, r9
	mov	r0, r7
	bl	dma_free_coherent
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	mlx4_free_icm_coherent, .-mlx4_free_icm_coherent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
