	.file	"extr_qeth_core_main.c_qeth_free_qdio_queues.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qeth_free_qdio_queues, @function
qeth_free_qdio_queues:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	add	rdi, 24
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rsi, QWORD PTR QETH_QDIO_UNINITIALIZED[rip]
	call	atomic_xchg@PLT
	cmp	rax, QWORD PTR QETH_QDIO_UNINITIALIZED[rip]
	je	.L1
	mov	rdi, rbp
	call	qeth_free_cq@PLT
	lea	rdi, 32[rbp]
	call	cancel_delayed_work_sync@PLT
	mov	edx, DWORD PTR QDIO_MAX_BUFFERS_PER_Q[rip]
	mov	r8, QWORD PTR 16[rbp]
	test	edx, edx
	jle	.L6
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	DWORD PTR QDIO_MAX_BUFFERS_PER_Q[rip], ebx
	jle	.L6
.L5:
	mov	rax, QWORD PTR [r8]
	mov	rdi, QWORD PTR [rax+rbx*8]
	test	rdi, rdi
	je	.L4
	call	dev_kfree_skb_any@PLT
	add	rbx, 1
	cmp	DWORD PTR QDIO_MAX_BUFFERS_PER_Q[rip], ebx
	mov	r8, QWORD PTR 16[rbp]
	jg	.L5
.L6:
	mov	rdi, r8
	call	qeth_free_qdio_queue@PLT
	mov	QWORD PTR 16[rbp], 0
	mov	rdi, rbp
	call	qeth_free_buffer_pool@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L1
	mov	rax, QWORD PTR 8[rbp]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	qeth_free_output_queue@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR [rax+rbx*8], 0
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L8
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qeth_free_qdio_queues, .-qeth_free_qdio_queues
	.comm	QETH_QDIO_UNINITIALIZED,8,8
	.comm	QDIO_MAX_BUFFERS_PER_Q,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_qeth_core_main.c_qeth_free_qdio_queues.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qeth_free_qdio_queues, %function
qeth_free_qdio_queues:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L16
	mov	r5, r0
	ldr	r1, [r4]
	add	r0, r0, #12
	bl	atomic_xchg
	ldr	r3, [r4]
	cmp	r0, r3
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	ldr	r6, .L16+4
	bl	qeth_free_cq
	add	r0, r5, #16
	bl	cancel_delayed_work_sync
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L3
	mov	r4, #0
	ldr	r2, [r5, #8]
	b	.L5
.L4:
	ldr	r3, [r6]
	cmp	r3, r4
	ble	.L6
.L5:
	ldr	r3, [r2]
	ldr	r0, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r0, #0
	beq	.L4
	bl	dev_kfree_skb_any
	ldr	r3, [r6]
	ldr	r2, [r5, #8]
	cmp	r3, r4
	bgt	.L5
.L6:
	mov	r4, #0
	mov	r0, r2
	bl	qeth_free_qdio_queue
	mov	r0, r5
	str	r4, [r5, #8]
	bl	qeth_free_buffer_pool
	ldr	r3, [r5]
	cmp	r3, r4
	pople	{r4, r5, r6, pc}
	mov	r6, r4
	ldr	r3, [r5, #4]
.L8:
	ldr	r0, [r3, r4, lsl #2]
	bl	qeth_free_output_queue
	ldm	r5, {r2, r3}
	str	r6, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L8
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r2, [r5, #8]
	b	.L6
.L17:
	.align	2
.L16:
	.word	QETH_QDIO_UNINITIALIZED
	.word	QDIO_MAX_BUFFERS_PER_Q
	.size	qeth_free_qdio_queues, .-qeth_free_qdio_queues
	.comm	QETH_QDIO_UNINITIALIZED,4,4
	.comm	QDIO_MAX_BUFFERS_PER_Q,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
