	.file	"extr_if_rl.c_rl_dma_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rl_dma_free, @function
rl_dma_free:
.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	rdi, QWORD PTR 32[rdi]
	test	rdi, rdi
	je	.L2
	cmp	QWORD PTR 8[rbp], 0
	jne	.L25
	mov	rsi, QWORD PTR 48[rbp]
	test	rsi, rsi
	je	.L4
.L26:
	mov	edx, DWORD PTR 56[rbp]
	call	bus_dmamem_free@PLT
	mov	rdi, QWORD PTR 32[rbp]
.L4:
	mov	QWORD PTR 48[rbp], 0
	mov	QWORD PTR 40[rbp], 0
	mov	QWORD PTR 8[rbp], 0
	call	bus_dma_tag_destroy@PLT
	mov	QWORD PTR 16[rbp], 0
.L5:
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L1
	call	bus_dma_tag_destroy@PLT
	mov	QWORD PTR 0[rbp], 0
.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
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbp]
	test	rdi, rdi
	je	.L5
	mov	eax, DWORD PTR RL_TX_LIST_CNT[rip]
	test	eax, eax
	jle	.L6
	mov	rax, QWORD PTR 24[rbp]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, QWORD PTR [rax+rbx*8]
	test	rsi, rsi
	je	.L7
	call	bus_dmamap_destroy@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax+rbx*8], 0
	mov	rdi, QWORD PTR 16[rbp]
.L7:
	add	rbx, 1
	cmp	DWORD PTR RL_TX_LIST_CNT[rip], ebx
	jg	.L8
.L6:
	call	bus_dma_tag_destroy@PLT
	mov	QWORD PTR 16[rbp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR 56[rbp]
	call	bus_dmamap_unload@PLT
	mov	rsi, QWORD PTR 48[rbp]
	mov	rdi, QWORD PTR 32[rbp]
	test	rsi, rsi
	jne	.L26
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	rl_dma_free, .-rl_dma_free
	.comm	RL_TX_LIST_CNT,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_if_rl.c_rl_dma_free.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rl_dma_free, %function
rl_dma_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0, #16]
	mov	r5, r0
	cmp	r4, #0
	beq	.L2
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L28
	ldr	r1, [r5, #24]
	cmp	r1, #0
	beq	.L4
.L29:
	mov	r0, r4
	ldr	r2, [r5, #28]
	bl	bus_dmamem_free
	ldr	r4, [r5, #16]
.L4:
	mov	r6, #0
	mov	r0, r4
	str	r6, [r5, #24]
	str	r6, [r5, #20]
	str	r6, [r5, #4]
	bl	bus_dma_tag_destroy
	str	r6, [r5, #8]
.L5:
	ldr	r0, [r5]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	bl	bus_dma_tag_destroy
	mov	r3, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r0, #8]
	cmp	r0, #0
	beq	.L5
	ldr	r6, .L30
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L6
	mov	r7, r4
	ldr	r3, [r5, #12]
.L8:
	ldr	r1, [r3, r4, lsl #2]
	cmp	r1, #0
	beq	.L7
	bl	bus_dmamap_destroy
	ldr	r3, [r5, #12]
	str	r7, [r3, r4, lsl #2]
	ldr	r0, [r5, #8]
.L7:
	ldr	r2, [r6]
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L8
.L6:
	bl	bus_dma_tag_destroy
	mov	r3, #0
	str	r3, [r5, #8]
	b	.L5
.L28:
	mov	r0, r4
	ldr	r1, [r5, #28]
	bl	bus_dmamap_unload
	ldr	r1, [r5, #24]
	ldr	r4, [r5, #16]
	cmp	r1, #0
	bne	.L29
	b	.L4
.L31:
	.align	2
.L30:
	.word	RL_TX_LIST_CNT
	.size	rl_dma_free, .-rl_dma_free
	.comm	RL_TX_LIST_CNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
