	.file	"extr_cnic.c_cnic_free_dma.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cnic_free_dma, @function
cnic_free_dma:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, QWORD PTR 8[rsi]
	test	rdi, rdi
	je	.L1
	mov	eax, DWORD PTR [rsi]
	mov	rbp, rsi
	test	eax, eax
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, QWORD PTR [rdi+rbx*8]
	test	rdx, rdx
	je	.L4
	mov	rax, QWORD PTR 32[rbp]
	mov	rdi, QWORD PTR [r12]
	mov	esi, DWORD PTR CNIC_PAGE_SIZE[rip]
	mov	ecx, DWORD PTR [rax+rbx*4]
	call	dma_free_coherent@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	QWORD PTR [rdi+rbx*8], 0
.L4:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L5
.L3:
	mov	rdx, QWORD PTR 16[rbp]
	test	rdx, rdx
	je	.L6
	mov	rdi, QWORD PTR [r12]
	mov	ecx, DWORD PTR 24[rbp]
	mov	esi, DWORD PTR 28[rbp]
	call	dma_free_coherent@PLT
	mov	QWORD PTR 16[rbp], 0
	mov	rdi, QWORD PTR 8[rbp]
.L6:
	call	kfree@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	DWORD PTR 0[rbp], 0
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cnic_free_dma, .-cnic_free_dma
	.comm	CNIC_PAGE_SIZE,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_cnic.c_cnic_free_dma.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cnic_free_dma, %function
cnic_free_dma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r1, [r1]
	mov	r6, r0
	cmp	r1, #0
	ble	.L3
	mov	r4, #0
	mov	r8, r4
	ldr	r7, .L21
.L5:
	ldr	r2, [r3, r4, lsl #2]
	cmp	r2, #0
	beq	.L4
	ldr	r3, [r5, #20]
	ldr	r1, [r7]
	ldr	r3, [r3, r4, lsl #2]
	ldr	r0, [r6]
	bl	dma_free_coherent
	ldm	r5, {r1, r3}
	str	r8, [r3, r4, lsl #2]
.L4:
	add	r4, r4, #1
	cmp	r1, r4
	bgt	.L5
.L3:
	ldr	r2, [r5, #8]
	cmp	r2, #0
	beq	.L6
	ldr	r3, [r5, #12]
	ldr	r0, [r6]
	ldr	r1, [r5, #16]
	bl	dma_free_coherent
	mov	r2, #0
	ldr	r3, [r5, #4]
	str	r2, [r5, #8]
.L6:
	mov	r0, r3
	bl	kfree
	mov	r3, #0
	str	r3, [r5, #4]
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	.align	2
.L21:
	.word	CNIC_PAGE_SIZE
	.size	cnic_free_dma, .-cnic_free_dma
	.comm	CNIC_PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
