	.file	"extr_if_iwi.c_iwi_free_rx_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iwi_free_rx_ring, @function
iwi_free_rx_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, QWORD PTR 16[rsi]
	test	rdi, rdi
	je	.L2
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	jle	.L3
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rbx, r12
	sal	rbx, 4
	add	rbx, rdi
	cmp	QWORD PTR 8[rbx], 0
	mov	rsi, QWORD PTR [rbx]
	je	.L4
	mov	edx, DWORD PTR BUS_DMASYNC_POSTREAD[rip]
	mov	rdi, QWORD PTR 8[rbp]
	call	bus_dmamap_sync@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, QWORD PTR 8[rbp]
	call	bus_dmamap_unload@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	m_freem@PLT
	mov	rsi, QWORD PTR [rbx]
.L4:
	test	rsi, rsi
	je	.L5
	mov	rdi, QWORD PTR 8[rbp]
	call	bus_dmamap_destroy@PLT
.L5:
	mov	rdi, QWORD PTR 16[rbp]
	add	r12, 1
	cmp	DWORD PTR 0[rbp], r12d
	jg	.L6
.L3:
	mov	esi, DWORD PTR M_DEVBUF[rip]
	call	free@PLT
.L2:
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	bus_dma_tag_destroy@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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	iwi_free_rx_ring, .-iwi_free_rx_ring
	.comm	M_DEVBUF,4,4
	.comm	BUS_DMASYNC_POSTREAD,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_iwi.c_iwi_free_rx_ring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwi_free_rx_ring, %function
iwi_free_rx_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [r1, #8]
	mov	r5, r1
	cmp	r8, #0
	beq	.L2
	ldr	r3, [r1]
	cmp	r3, #0
	ble	.L3
	mov	r4, #0
	ldr	r7, .L20
.L6:
	add	r6, r8, r4, lsl #3
	ldr	r3, [r6, #4]
	ldr	r1, [r8, r4, lsl #3]
	cmp	r3, #0
	beq	.L4
	ldr	r2, [r7]
	ldr	r0, [r5, #4]
	bl	bus_dmamap_sync
	ldr	r1, [r8, r4, lsl #3]
	ldr	r0, [r5, #4]
	bl	bus_dmamap_unload
	ldr	r0, [r6, #4]
	bl	m_freem
	ldr	r1, [r8, r4, lsl #3]
.L4:
	cmp	r1, #0
	add	r4, r4, #1
	beq	.L5
	ldr	r0, [r5, #4]
	bl	bus_dmamap_destroy
.L5:
	ldr	r3, [r5]
	ldr	r8, [r5, #8]
	cmp	r3, r4
	bgt	.L6
.L3:
	ldr	r3, .L20+4
	mov	r0, r8
	ldr	r1, [r3]
	bl	free
.L2:
	ldr	r0, [r5, #4]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	pop	{r4, r5, r6, r7, r8, lr}
	b	bus_dma_tag_destroy
.L21:
	.align	2
.L20:
	.word	BUS_DMASYNC_POSTREAD
	.word	M_DEVBUF
	.size	iwi_free_rx_ring, .-iwi_free_rx_ring
	.comm	M_DEVBUF,4,4
	.comm	BUS_DMASYNC_POSTREAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
