	.file	"extr_qla_os.c_qla2x00_free_queues.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qla2x00_free_queues, @function
qla2x00_free_queues:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, QWORD PTR 48[rdi]
	test	rdi, rdi
	je	.L2
	call	kfree@PLT
	mov	QWORD PTR 48[rbx], 0
.L2:
	mov	rdi, QWORD PTR 40[rbx]
	test	rdi, rdi
	je	.L3
	call	kfree@PLT
	mov	QWORD PTR 40[rbx], 0
.L3:
	lea	r13, 16[rbx]
	xor	r12d, r12d
	mov	rsi, r12
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jle	.L4
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR 32[rbx]
	mov	edi, ebp
	call	test_bit@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR 24[rbx]
	mov	esi, DWORD PTR 32[rbx]
	mov	edi, ebp
	xor	r12d, r12d
	mov	r14, QWORD PTR [rax+rbp*8]
	call	clear_bit@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	rsi, r12
	mov	rdi, r13
	mov	QWORD PTR [rax+rbp*8], 0
	call	spin_unlock_irqrestore@PLT
	mov	rsi, r14
	mov	rdi, rbx
	call	qla2x00_free_req_que@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
.L5:
	add	rbp, 1
	cmp	DWORD PTR [rbx], ebp
	jg	.L6
.L4:
	xor	r12d, r12d
	mov	rdi, r13
	mov	rsi, r12
	call	spin_unlock_irqrestore@PLT
	mov	rdi, QWORD PTR 24[rbx]
	call	kfree@PLT
	mov	QWORD PTR 24[rbx], 0
	mov	rsi, r12
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	jle	.L7
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR 20[rbx]
	mov	edi, ebp
	call	test_bit@PLT
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR 20[rbx]
	mov	edi, ebp
	xor	r12d, r12d
	mov	r14, QWORD PTR [rax+rbp*8]
	call	clear_bit@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, r12
	mov	rdi, r13
	mov	QWORD PTR [rax+rbp*8], 0
	call	spin_unlock_irqrestore@PLT
	mov	rsi, r14
	mov	rdi, rbx
	call	qla2x00_free_rsp_que@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
.L8:
	add	rbp, 1
	cmp	DWORD PTR 4[rbx], ebp
	jg	.L9
.L7:
	xor	r12d, r12d
	mov	rdi, r13
	mov	rsi, r12
	call	spin_unlock_irqrestore@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	kfree@PLT
	mov	QWORD PTR 8[rbx], 0
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qla2x00_free_queues, .-qla2x00_free_queues
	.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_qla_os.c_qla2x00_free_queues.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla2x00_free_queues, %function
qla2x00_free_queues:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r0, #32]
	cmp	r0, #0
	beq	.L2
	bl	kfree
	mov	r3, #0
	str	r3, [r4, #32]
.L2:
	ldr	r0, [r4, #28]
	cmp	r0, #0
	beq	.L3
	bl	kfree
	mov	r3, #0
	str	r3, [r4, #28]
.L3:
	add	r7, r4, #12
	mov	r0, r7
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L4
	mov	r5, #0
	mov	r9, r5
.L6:
	mov	r0, r5
	ldr	r1, [r4, #24]
	bl	test_bit
	cmp	r0, #0
	beq	.L5
	mov	r6, #0
	ldr	r3, [r4, #20]
	ldr	r1, [r4, #24]
	mov	r0, r5
	ldr	r8, [r3, r5, lsl #2]
	bl	clear_bit
	ldr	r3, [r4, #20]
	mov	r1, r6
	str	r9, [r3, r5, lsl #2]
	mov	r0, r7
	bl	spin_unlock_irqrestore
	mov	r1, r8
	mov	r0, r4
	bl	qla2x00_free_req_que
	mov	r1, r6
	mov	r0, r7
	bl	spin_lock_irqsave
.L5:
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L6
.L4:
	mov	r6, #0
	mov	r0, r7
	mov	r1, r6
	bl	spin_unlock_irqrestore
	ldr	r0, [r4, #20]
	bl	kfree
	mov	r1, r6
	mov	r0, r7
	str	r6, [r4, #20]
	bl	spin_lock_irqsave
	ldr	r3, [r4, #4]
	mov	r5, r6
	cmp	r3, r6
	ble	.L7
	mov	r9, r6
.L9:
	mov	r0, r5
	ldr	r1, [r4, #16]
	bl	test_bit
	cmp	r0, #0
	beq	.L8
	mov	r6, #0
	ldr	r3, [r4, #8]
	ldr	r1, [r4, #16]
	mov	r0, r5
	ldr	r8, [r3, r5, lsl #2]
	bl	clear_bit
	ldr	r3, [r4, #8]
	mov	r1, r6
	str	r9, [r3, r5, lsl #2]
	mov	r0, r7
	bl	spin_unlock_irqrestore
	mov	r1, r8
	mov	r0, r4
	bl	qla2x00_free_rsp_que
	mov	r1, r6
	mov	r0, r7
	bl	spin_lock_irqsave
.L8:
	ldr	r3, [r4, #4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L9
.L7:
	mov	r1, #0
	mov	r0, r7
	bl	spin_unlock_irqrestore
	ldr	r0, [r4, #8]
	bl	kfree
	mov	r3, #0
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	qla2x00_free_queues, .-qla2x00_free_queues
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
