	.file	"extr_4965-mac.c_il4965_hw_txq_ctx_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	il4965_hw_txq_ctx_free
	.type	il4965_hw_txq_ctx_free, @function
il4965_hw_txq_ctx_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
	cmp	QWORD PTR 16[rdi], 0
	je	.L2
	mov	eax, DWORD PTR 12[rdi]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	call	il_tx_queue_free@PLT
	cmp	DWORD PTR 12[rbp], ebx
	jle	.L2
.L5:
	cmp	DWORD PTR 0[rbp], ebx
	jne	.L3
	mov	rdi, rbp
	add	ebx, 1
	call	il_cmd_queue_free@PLT
	cmp	DWORD PTR 12[rbp], ebx
	jg	.L5
.L2:
	lea	rsi, 8[rbp]
	mov	rdi, rbp
	call	il4965_free_dma_ptr@PLT
	mov	rdi, rbp
	lea	rsi, 4[rbp]
	call	il4965_free_dma_ptr@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	il_free_txq_mem@PLT
	.cfi_endproc
.LFE0:
	.size	il4965_hw_txq_ctx_free, .-il4965_hw_txq_ctx_free
	.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_4965-mac.c_il4965_hw_txq_ctx_free.c"
	.text
	.align	2
	.global	il4965_hw_txq_ctx_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	il4965_hw_txq_ctx_free, %function
il4965_hw_txq_ctx_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #16]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	beq	.L2
	ldr	r3, [r0, #12]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
	b	.L5
.L3:
	mov	r1, r5
	mov	r0, r4
	bl	il_tx_queue_free
	ldr	r3, [r4, #12]
	add	r5, r5, #1
	cmp	r3, r5
	ble	.L2
.L5:
	ldr	r3, [r4]
	cmp	r3, r5
	bne	.L3
	mov	r0, r4
	bl	il_cmd_queue_free
	ldr	r3, [r4, #12]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L5
.L2:
	add	r1, r4, #8
	mov	r0, r4
	bl	il4965_free_dma_ptr
	mov	r0, r4
	add	r1, r4, #4
	bl	il4965_free_dma_ptr
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	il_free_txq_mem
	.size	il4965_hw_txq_ctx_free, .-il4965_hw_txq_ctx_free
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
