	.file	"extr_megaraid_sas_fusion.c_megasas_complete_cmd_dpc_fusion.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	megasas_complete_cmd_dpc_fusion
	.type	megasas_complete_cmd_dpc_fusion, @function
megasas_complete_cmd_dpc_fusion:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 16[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR [rdi], 0
	cmovg	rbx, QWORD PTR [rdi]
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR MEGASAS_HW_CRITICAL_ERROR[rip]
	xor	esi, esi
	mov	rdi, r13
	cmp	QWORD PTR 8[rbp], rax
	je	.L8
	call	spin_unlock_irqrestore@PLT
	test	ebx, ebx
	jle	.L1
	mov	r12d, ebx
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	call	complete_cmd_fusion@PLT
	cmp	r12d, ebx
	jne	.L4
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	megasas_complete_cmd_dpc_fusion, .-megasas_complete_cmd_dpc_fusion
	.comm	MEGASAS_HW_CRITICAL_ERROR,8,8
	.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_megaraid_sas_fusion.c_megasas_complete_cmd_dpc_fusion.c"
	.text
	.align	2
	.global	megasas_complete_cmd_dpc_fusion
	.syntax unified
	.arm
	.fpu softvfp
	.type	megasas_complete_cmd_dpc_fusion, %function
megasas_complete_cmd_dpc_fusion:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r0
	ldr	r6, [r4], #8
	mov	r1, #0
	cmp	r6, #1
	mov	r0, r4
	movlt	r6, #1
	bl	spin_lock_irqsave
	ldr	r3, .L9
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r2, r3
	mov	r1, #0
	beq	.L8
	bl	spin_unlock_irqrestore
	mov	r4, #0
.L3:
	mov	r1, r4
	mov	r0, r5
	add	r4, r4, #1
	bl	complete_cmd_fusion
	cmp	r6, r4
	bne	.L3
	pop	{r4, r5, r6, pc}
.L8:
	pop	{r4, r5, r6, lr}
	b	spin_unlock_irqrestore
.L10:
	.align	2
.L9:
	.word	MEGASAS_HW_CRITICAL_ERROR
	.size	megasas_complete_cmd_dpc_fusion, .-megasas_complete_cmd_dpc_fusion
	.comm	MEGASAS_HW_CRITICAL_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
