	.file	"extr_lpfc_sli.c_lpfc_sli_mbox_sys_shutdown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lpfc_sli_mbox_sys_shutdown
	.type	lpfc_sli_mbox_sys_shutdown, @function
lpfc_sli_mbox_sys_shutdown:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR LPFC_MBX_NO_WAIT[rip], esi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	je	.L14
	imul	edi, DWORD PTR LPFC_MBOX_TMO[rip], 1000
	call	msecs_to_jiffies@PLT
	mov	rdi, rbp
	movsx	rbx, DWORD PTR jiffies[rip]
	mov	r12, rax
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR 8[rbp]
	or	eax, DWORD PTR LPFC_SLI_ASYNC_MBX_BLK[rip]
	mov	DWORD PTR 8[rbp], eax
	test	DWORD PTR LPFC_SLI_ACTIVE[rip], eax
	je	.L3
	mov	rsi, QWORD PTR 16[rbp]
	add	rbx, r12
	test	rsi, rsi
	jne	.L15
.L5:
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, 2
	call	msleep@PLT
	mov	edi, DWORD PTR jiffies[rip]
	mov	rsi, rbx
	call	time_after@PLT
	test	rax, rax
	jne	.L7
.L6:
	cmp	QWORD PTR 16[rbp], 0
	jne	.L8
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	lpfc_sli_mbox_sys_flush@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	lpfc_sli_mbox_sys_flush@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, 100
	call	msleep@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	lpfc_sli_mbox_sys_flush@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	call	lpfc_mbox_tmo_val@PLT
	imul	edi, eax, 1000
	call	msecs_to_jiffies@PLT
	movsx	rbx, DWORD PTR jiffies[rip]
	add	rbx, rax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	lpfc_sli_mbox_sys_shutdown, .-lpfc_sli_mbox_sys_shutdown
	.comm	jiffies,4,4
	.comm	LPFC_SLI_ASYNC_MBX_BLK,4,4
	.comm	LPFC_SLI_ACTIVE,4,4
	.comm	LPFC_MBX_NO_WAIT,4,4
	.comm	LPFC_MBOX_TMO,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_lpfc_sli.c_lpfc_sli_mbox_sys_shutdown.c"
	.text
	.align	2
	.global	lpfc_sli_mbox_sys_shutdown
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_sli_mbox_sys_shutdown, %function
lpfc_sli_mbox_sys_shutdown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, r1
	beq	.L14
	ldr	r3, .L16+4
	ldr	r6, .L16+8
	ldr	r0, [r3]
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	bl	msecs_to_jiffies
	mov	r7, r0
	mov	r0, r4
	ldr	r5, [r6]
	bl	spin_lock_irq
	ldr	r3, .L16+12
	ldr	r2, .L16+16
	ldr	r1, [r3]
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	orr	r3, r3, r1
	tst	r3, r2
	str	r3, [r4, #4]
	beq	.L3
	ldr	r1, [r4, #8]
	cmp	r1, #0
	addeq	r5, r5, r7
	bne	.L15
.L5:
	mov	r0, r4
	bl	spin_unlock_irq
	b	.L6
.L8:
	mov	r0, #2
	bl	msleep
	mov	r1, r5
	ldr	r0, [r6]
	bl	time_after
	cmp	r0, #0
	bne	.L7
.L6:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L8
.L7:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	lpfc_sli_mbox_sys_flush
.L3:
	mov	r0, r4
	bl	spin_unlock_irq
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	lpfc_sli_mbox_sys_flush
.L14:
	mov	r0, #100
	bl	msleep
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	lpfc_sli_mbox_sys_flush
.L15:
	mov	r0, r4
	bl	lpfc_mbox_tmo_val
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	bl	msecs_to_jiffies
	ldr	r5, [r6]
	add	r5, r0, r5
	b	.L5
.L17:
	.align	2
.L16:
	.word	LPFC_MBX_NO_WAIT
	.word	LPFC_MBOX_TMO
	.word	jiffies
	.word	LPFC_SLI_ASYNC_MBX_BLK
	.word	LPFC_SLI_ACTIVE
	.size	lpfc_sli_mbox_sys_shutdown, .-lpfc_sli_mbox_sys_shutdown
	.comm	jiffies,4,4
	.comm	LPFC_SLI_ASYNC_MBX_BLK,4,4
	.comm	LPFC_SLI_ACTIVE,4,4
	.comm	LPFC_MBX_NO_WAIT,4,4
	.comm	LPFC_MBOX_TMO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
