	.file	"extr_lpfc_sli.c_lpfc_set_rrq_active.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"3155 Unable to allocate RRQ xri:0x%x rxid:0x%x DID:0x%x Send:%d\n"
	.align 8
.LC1:
	.string	"2921 Can't set rrq active xri:0x%x rxid:0x%x DID:0x%x Send:%d\n"
	.text
	.p2align 4
	.globl	lpfc_set_rrq_active
	.type	lpfc_set_rrq_active, @function
lpfc_set_rrq_active:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	test	rsi, rsi
	je	.L4
	mov	rbp, rdi
	mov	edi, DWORD PTR [rdi]
	test	edi, edi
	jne	.L24
.L4:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	r15, r8
	lea	r8, 8[rbp]
	mov	rbx, rsi
	xor	esi, esi
	mov	rdi, r8
	mov	QWORD PTR 8[rsp], r8
	mov	r13, rdx
	mov	r14, rcx
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	r8, QWORD PTR 8[rsp]
	mov	r12d, DWORD PTR [rax]
	and	r12d, DWORD PTR FC_UNLOADING[rip]
	je	.L5
	mov	eax, DWORD PTR HBA_RRQ_ACTIVE[rip]
	not	eax
	and	DWORD PTR 12[rbp], eax
.L6:
	mov	rdi, r8
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR [rbx]
	push	r15
	.cfi_def_cfa_offset 104
	mov	r9, r14
	mov	r8, r13
	lea	rcx, .LC1[rip]
	push	rax
	.cfi_def_cfa_offset 112
.L22:
	mov	edx, DWORD PTR LOG_SLI[rip]
	mov	esi, DWORD PTR KERN_INFO[rip]
	mov	rdi, rbp
	call	lpfc_printf_log@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], r8
	call	NLP_CHK_FREE_REQ@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR FC_UNLOADING[rip], eax
	jne	.L6
.L8:
	mov	esi, DWORD PTR 16[rbx]
	test	esi, esi
	je	.L6
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], r8
	call	test_and_set_bit@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	rax, rax
	mov	QWORD PTR 16[rsp], rax
	jne	.L6
	mov	rdi, r8
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	edi, DWORD PTR 20[rbp]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	mempool_alloc@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	test	rax, rax
	je	.L25
	cmp	DWORD PTR 0[rbp], 1
	mov	QWORD PTR 8[rsp], rax
	cmovne	r15, rdx
	mov	QWORD PTR 48[rax], r13
	lea	r13, 16[rbp]
	mov	QWORD PTR 24[rsp], r8
	mov	QWORD PTR 56[rax], r15
	mov	eax, DWORD PTR 4[rbp]
	lea	edi, 1[rax]
	imul	edi, edi, 1000
	call	msecs_to_jiffies@PLT
	mov	r9, QWORD PTR 8[rsp]
	add	rax, QWORD PTR jiffies[rip]
	xor	esi, esi
	mov	r8, QWORD PTR 24[rsp]
	mov	QWORD PTR 40[r9], rax
	mov	eax, DWORD PTR [rbx]
	mov	QWORD PTR 32[r9], rbx
	mov	rdi, r8
	mov	DWORD PTR 24[r9], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[r9], r14
	mov	QWORD PTR 16[r9], rax
	mov	QWORD PTR 8[rsp], r8
	mov	QWORD PTR 16[rsp], r9
	call	spin_lock_irqsave@PLT
	mov	rdi, r13
	call	list_empty@PLT
	mov	r9, QWORD PTR 16[rsp]
	mov	rsi, r13
	mov	ebx, eax
	mov	rdi, r9
	call	list_add_tail@PLT
	mov	eax, DWORD PTR HBA_RRQ_ACTIVE[rip]
	or	DWORD PTR 12[rbp], eax
	test	ebx, ebx
	mov	r8, QWORD PTR 8[rsp]
	jne	.L26
.L11:
	xor	esi, esi
	mov	rdi, r8
	call	spin_unlock_irqrestore@PLT
	jmp	.L1
.L26:
	mov	rdi, rbp
	call	lpfc_worker_wake_up@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L11
.L25:
	mov	eax, DWORD PTR [rbx]
	push	r15
	.cfi_def_cfa_offset 104
	mov	r9, r14
	mov	r8, r13
	lea	rcx, .LC0[rip]
	push	rax
	.cfi_def_cfa_offset 112
	jmp	.L22
	.cfi_endproc
.LFE0:
	.size	lpfc_set_rrq_active, .-lpfc_set_rrq_active
	.comm	jiffies,8,8
	.comm	LOG_SLI,4,4
	.comm	KERN_INFO,4,4
	.comm	HBA_RRQ_ACTIVE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FC_UNLOADING,4,4
	.comm	EINVAL,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_set_rrq_active.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"3155 Unable to allocate RRQ xri:0x%x rxid:0x%x DID:"
	.ascii	"0x%x Send:%d\012\000"
	.align	2
.LC1:
	.ascii	"2921 Can't set rrq active xri:0x%x rxid:0x%x DID:0x"
	.ascii	"%x Send:%d\012\000"
	.text
	.align	2
	.global	lpfc_set_rrq_active
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_set_rrq_active, %function
lpfc_set_rrq_active:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r6, r1, #0
	sub	sp, sp, #16
	beq	.L27
	mov	r8, r3
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, #0
	bne	.L29
.L27:
	ldr	r3, .L32
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L29:
	add	r9, r0, #8
	mov	r0, r9
	mov	r1, #0
	mov	r7, r2
	ldr	r5, .L32+4
	bl	spin_lock_irqsave
	ldr	r2, [r4, #24]
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r2, r3
	beq	.L5
	ldr	r2, .L32+8
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	bic	r3, r3, r2
	str	r3, [r4, #12]
.L6:
	mov	r0, r9
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r1, [r6]
	stm	sp, {r7, r8}
	str	r1, [sp, #8]
	ldr	r1, [sp, #48]
	ldr	r3, .L32+12
	ldr	r2, .L32+16
	str	r1, [sp, #12]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r3, .L32+20
	bl	lpfc_printf_log
	b	.L27
.L5:
	mov	r0, r6
	bl	NLP_CHK_FREE_REQ
	cmp	r0, #0
	bne	.L6
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L8
	ldr	r2, [r3]
	ldr	r3, [r5]
	tst	r2, r3
	bne	.L6
.L8:
	ldr	r1, [r6, #8]
	cmp	r1, #0
	beq	.L6
	mov	r0, r7
	bl	test_and_set_bit
	subs	r5, r0, #0
	bne	.L6
	mov	r1, #0
	mov	r0, r9
	bl	spin_unlock_irqrestore
	ldr	r3, .L32+24
	ldr	r0, [r4, #20]
	ldr	r1, [r3]
	bl	mempool_alloc
	subs	r10, r0, #0
	beq	.L30
	ldr	r3, [r4]
	ldr	r0, [r4, #4]
	cmp	r3, #1
	ldr	r3, [sp, #48]
	movne	r3, #0
	add	r0, r0, #1
	str	r3, [sp, #48]
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	ldr	r3, [sp, #48]
	str	r7, [r10, #24]
	str	r3, [r10, #28]
	lsl	r0, r0, #3
	bl	msecs_to_jiffies
	ldr	r3, .L32+28
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	ldr	r1, [r6]
	add	r3, r3, r0
	str	r3, [r10, #20]
	str	r2, [r10, #8]
	str	r6, [r10, #16]
	str	r1, [r10, #12]
	add	r6, r4, #16
	mov	r1, #0
	mov	r0, r9
	str	r8, [r10, #4]
	bl	spin_lock_irqsave
	mov	r0, r6
	bl	list_empty
	mov	r7, r0
	mov	r1, r6
	mov	r0, r10
	bl	list_add_tail
	ldr	r2, .L32+8
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	cmp	r7, #0
	orr	r3, r3, r2
	str	r3, [r4, #12]
	bne	.L31
.L11:
	mov	r0, r9
	mov	r1, #0
	bl	spin_unlock_irqrestore
	b	.L1
.L31:
	mov	r0, r4
	bl	lpfc_worker_wake_up
	b	.L11
.L30:
	ldr	r1, [r6]
	stm	sp, {r7, r8}
	str	r1, [sp, #8]
	ldr	r1, [sp, #48]
	ldr	r3, .L32+12
	ldr	r2, .L32+16
	str	r1, [sp, #12]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L32+32
	ldr	r2, [r2]
	bl	lpfc_printf_log
	ldr	r3, .L32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L33:
	.align	2
.L32:
	.word	EINVAL
	.word	FC_UNLOADING
	.word	HBA_RRQ_ACTIVE
	.word	KERN_INFO
	.word	LOG_SLI
	.word	.LC1
	.word	GFP_KERNEL
	.word	jiffies
	.word	.LC0
	.size	lpfc_set_rrq_active, .-lpfc_set_rrq_active
	.comm	jiffies,4,4
	.comm	LOG_SLI,4,4
	.comm	KERN_INFO,4,4
	.comm	HBA_RRQ_ACTIVE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FC_UNLOADING,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
