	.file	"extr_lpfc_sli.c_lpfc_sli_issue_mbox_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lpfc_sli_issue_mbox_wait
	.type	lpfc_sli_issue_mbox_wait, @function
lpfc_sli_issue_mbox_wait:
.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
	mov	r13, rdi
	mov	edi, DWORD PTR done_q[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	call	DECLARE_WAIT_QUEUE_HEAD_ONSTACK@PLT
	mov	r14, QWORD PTR 8[rbp]
	mov	rsi, rbp
	mov	rdi, r13
	mov	eax, DWORD PTR LPFC_MBX_WAKE[rip]
	mov	edx, DWORD PTR MBX_NOWAIT[rip]
	not	eax
	and	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR lpfc_sli_wake_mbox_wait[rip]
	mov	DWORD PTR 16[rbp], eax
	lea	rax, done_q[rip]
	mov	QWORD PTR 8[rbp], rax
	call	lpfc_sli_issue_mbox@PLT
	cmp	DWORD PTR MBX_BUSY[rip], eax
	je	.L2
	cmp	DWORD PTR MBX_SUCCESS[rip], eax
	mov	r12d, eax
	je	.L2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	QWORD PTR 8[rbp], r14
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	imul	edi, ebx, 1000
	call	msecs_to_jiffies@PLT
	mov	edi, DWORD PTR done_q[rip]
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, eax
	and	esi, DWORD PTR LPFC_MBX_WAKE[rip]
	call	wait_event_interruptible_timeout@PLT
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	QWORD PTR 8[rbp], r14
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR LPFC_MBX_WAKE[rip], eax
	jne	.L9
	mov	eax, DWORD PTR lpfc_sli_def_mbox_cmpl[rip]
	mov	r12d, DWORD PTR MBX_TIMEOUT[rip]
	mov	DWORD PTR 16[rbp], eax
.L5:
	mov	rdi, r13
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r13
	mov	r12d, DWORD PTR MBX_SUCCESS[rip]
	call	lpfc_sli4_swap_str@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	lpfc_sli_issue_mbox_wait, .-lpfc_sli_issue_mbox_wait
	.comm	lpfc_sli_wake_mbox_wait,4,4
	.comm	lpfc_sli_def_mbox_cmpl,4,4
	.comm	done_q,4,4
	.comm	MBX_TIMEOUT,4,4
	.comm	MBX_SUCCESS,4,4
	.comm	MBX_NOWAIT,4,4
	.comm	MBX_BUSY,4,4
	.comm	LPFC_MBX_WAKE,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_issue_mbox_wait.c"
	.text
	.align	2
	.global	lpfc_sli_issue_mbox_wait
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_sli_issue_mbox_wait, %function
lpfc_sli_issue_mbox_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r7, r0
	ldr	r8, .L10
	ldr	r9, .L10+4
	ldr	r0, [r8]
	mov	r6, r2
	bl	DECLARE_WAIT_QUEUE_HEAD_ONSTACK
	ldr	r2, .L10+8
	ldr	r0, [r9]
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r2, .L10+12
	bic	r3, r3, r0
	ldr	r10, [r4, #4]
	str	r3, [r4]
	str	r1, [r4, #8]
	mov	r0, r7
	mov	r1, r4
	ldr	r2, [r2]
	str	r8, [r4, #4]
	bl	lpfc_sli_issue_mbox
	ldr	r3, .L10+16
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L10+20
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	strne	r10, [r4, #4]
	beq	.L2
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	rsb	r0, r6, r6, lsl #5
	ldr	r1, [r9]
	ldr	r5, [r4]
	add	r0, r6, r0, lsl #2
	lsl	r0, r0, #3
	ldr	r6, [r8]
	and	r5, r5, r1
	bl	msecs_to_jiffies
	mov	r1, r5
	mov	r2, r0
	mov	r0, r6
	bl	wait_event_interruptible_timeout
	mov	r1, #0
	mov	r0, r7
	bl	spin_lock_irqsave
	ldr	r3, [r9]
	ldr	r2, [r4]
	str	r10, [r4, #4]
	tst	r2, r3
	bne	.L9
	ldr	r3, .L10+24
	ldr	r2, .L10+28
	ldr	r3, [r3]
	ldr	r5, [r2]
	str	r3, [r4, #8]
.L5:
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r3, .L10+20
	mov	r1, r4
	mov	r0, r7
	ldr	r5, [r3]
	bl	lpfc_sli4_swap_str
	b	.L5
.L11:
	.align	2
.L10:
	.word	done_q
	.word	LPFC_MBX_WAKE
	.word	lpfc_sli_wake_mbox_wait
	.word	MBX_NOWAIT
	.word	MBX_BUSY
	.word	MBX_SUCCESS
	.word	lpfc_sli_def_mbox_cmpl
	.word	MBX_TIMEOUT
	.size	lpfc_sli_issue_mbox_wait, .-lpfc_sli_issue_mbox_wait
	.comm	lpfc_sli_wake_mbox_wait,4,4
	.comm	lpfc_sli_def_mbox_cmpl,4,4
	.comm	done_q,4,4
	.comm	MBX_TIMEOUT,4,4
	.comm	MBX_SUCCESS,4,4
	.comm	MBX_NOWAIT,4,4
	.comm	MBX_BUSY,4,4
	.comm	LPFC_MBX_WAKE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
