	.file	"extr_qedi_main.c_qedi_free_bdq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qedi_free_bdq, @function
qedi_free_bdq:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR 40[rdi]
	test	rdx, rdx
	jne	.L19
	mov	rdx, QWORD PTR 24[rbp]
	test	rdx, rdx
	jne	.L20
.L3:
	mov	eax, DWORD PTR QEDI_BDQ_NUM[rip]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 1
	cmp	DWORD PTR QEDI_BDQ_NUM[rip], ebx
	jle	.L1
.L6:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 8[rax]
	test	rdx, rdx
	je	.L5
	mov	rdi, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR [rax]
	add	rbx, 1
	mov	esi, DWORD PTR QEDI_BDQ_BUF_SIZE[rip]
	call	dma_free_coherent@PLT
	cmp	DWORD PTR QEDI_BDQ_NUM[rip], ebx
	jg	.L6
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	ecx, DWORD PTR 36[rdi]
	mov	esi, DWORD PTR QEDI_PAGE_SIZE[rip]
	mov	rdi, QWORD PTR 8[rdi]
	call	dma_free_coherent@PLT
	mov	rdx, QWORD PTR 24[rbp]
	test	rdx, rdx
	je	.L3
.L20:
	mov	ecx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR 32[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	call	dma_free_coherent@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	qedi_free_bdq, .-qedi_free_bdq
	.comm	QEDI_PAGE_SIZE,4,4
	.comm	QEDI_BDQ_NUM,4,4
	.comm	QEDI_BDQ_BUF_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_qedi_main.c_qedi_free_bdq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qedi_free_bdq, %function
qedi_free_bdq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #24]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, #0
	mov	r5, r0
	bne	.L19
	ldr	r2, [r5, #12]
	cmp	r2, #0
	bne	.L20
.L3:
	ldr	r6, .L21
	ldr	r3, [r6]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r4, #0
	ldr	r7, .L21+4
	b	.L6
.L5:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	pople	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, [r5]
	add	r2, r3, r4, lsl #3
	ldr	r2, [r2, #4]
	cmp	r2, #0
	beq	.L5
	ldr	r3, [r3, r4, lsl #3]
	ldr	r1, [r7]
	ldr	r0, [r5, #4]
	bl	dma_free_coherent
	b	.L5
.L19:
	ldr	r3, .L21+8
	ldr	r1, [r3]
	ldr	r3, [r0, #20]
	ldr	r0, [r0, #4]
	bl	dma_free_coherent
	ldr	r2, [r5, #12]
	cmp	r2, #0
	beq	.L3
.L20:
	ldr	r3, [r5, #8]
	ldr	r1, [r5, #16]
	ldr	r0, [r5, #4]
	bl	dma_free_coherent
	b	.L3
.L22:
	.align	2
.L21:
	.word	QEDI_BDQ_NUM
	.word	QEDI_BDQ_BUF_SIZE
	.word	QEDI_PAGE_SIZE
	.size	qedi_free_bdq, .-qedi_free_bdq
	.comm	QEDI_PAGE_SIZE,4,4
	.comm	QEDI_BDQ_NUM,4,4
	.comm	QEDI_BDQ_BUF_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
