	.file	"extr_fc_fcp.c_fc_fcp_recv.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"lport state %d, ignoring r_ctl %x\n"
	.align 8
.LC1:
	.string	"command aborted, ignoring r_ctl %x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"unexpected frame.  r_ctl %x\n"
	.text
	.p2align 4
	.type	fc_fcp_recv, @function
fc_fcp_recv:
.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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR 16[rdx]
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L13
	mov	rdi, rbp
	call	fc_frame_header_get@PLT
	mov	rdx, QWORD PTR [r14]
	cmp	rdx, QWORD PTR LPORT_ST_READY[rip]
	mov	r15, QWORD PTR [rax]
	mov	r13, rax
	je	.L3
	mov	rcx, r15
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	xor	eax, eax
	call	FC_FCP_DBG@PLT
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	fc_frame_free@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, r12
	call	fc_fcp_lock_pkt@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR FC_TYPE_BLS[rip]
	cmp	QWORD PTR 8[r13], rax
	je	.L14
	mov	eax, DWORD PTR FC_SRB_ABORTED[rip]
	or	eax, DWORD PTR FC_SRB_ABORT_PENDING[rip]
	test	DWORD PTR [r12], eax
	jne	.L15
	cmp	QWORD PTR FC_RCTL_DD_DATA_DESC[rip], r15
	je	.L16
	cmp	QWORD PTR FC_RCTL_DD_SOL_DATA[rip], r15
	je	.L17
	cmp	QWORD PTR FC_RCTL_DD_CMD_STATUS[rip], r15
	je	.L18
	mov	rdx, r15
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	xor	eax, eax
	call	FC_FCP_DBG@PLT
.L6:
	mov	rdi, r12
	call	fc_fcp_unlock_pkt@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, rbp
	mov	rdi, r12
	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
	jmp	fc_fcp_error@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	call	fc_fcp_abts_resp@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, r15
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	call	FC_FCP_DBG@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	fr_flags@PLT
	and	eax, DWORD PTR FCPHF_CRC_UNCHECKED[rip]
	mov	edi, eax
	call	WARN_ON@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	fc_fcp_resp@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	call	fr_flags@PLT
	and	eax, DWORD PTR FCPHF_CRC_UNCHECKED[rip]
	mov	edi, eax
	call	WARN_ON@PLT
	mov	esi, 8
	mov	rdi, rbp
	call	fc_frame_payload_get@PLT
	xor	edi, edi
	test	rax, rax
	mov	r13, rax
	sete	dil
	call	WARN_ON@PLT
	mov	edi, DWORD PTR 0[r13]
	call	ntohl@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	r14, rax
	call	ntohl@PLT
	mov	rcx, r14
	mov	rsi, rbx
	mov	rdi, r12
	mov	rdx, rax
	call	fc_fcp_send_data@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR 8[r12]
	mov	DWORD PTR [rbx], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	call	fr_len@PLT
	xor	edi, edi
	cmp	eax, 15
	setbe	dil
	call	WARN_ON@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	fc_fcp_recv_data@PLT
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR [rbx], eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	fc_fcp_recv, .-fc_fcp_recv
	.comm	LPORT_ST_READY,8,8
	.comm	FC_TYPE_BLS,8,8
	.comm	FC_SRB_ABORT_PENDING,4,4
	.comm	FC_SRB_ABORTED,4,4
	.comm	FC_RCTL_DD_SOL_DATA,8,8
	.comm	FC_RCTL_DD_DATA_DESC,8,8
	.comm	FC_RCTL_DD_CMD_STATUS,8,8
	.comm	FCPHF_CRC_UNCHECKED,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_fc_fcp.c_fc_fcp_recv.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lport state %d, ignoring r_ctl %x\012\000"
	.align	2
.LC1:
	.ascii	"command aborted, ignoring r_ctl %x\012\000"
	.align	2
.LC2:
	.ascii	"unexpected frame.  r_ctl %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fc_fcp_recv, %function
fc_fcp_recv:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r0, r1
	mov	r4, r1
	mov	r5, r2
	ldr	r8, [r2, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L13
	mov	r0, r4
	bl	fc_frame_header_get
	ldr	r3, .L19
	ldr	r2, [r8]
	ldr	r3, [r3]
	mov	r6, r0
	cmp	r2, r3
	ldr	r8, [r0]
	beq	.L3
	mov	r3, r8
	mov	r0, r5
	ldr	r1, .L19+4
	bl	FC_FCP_DBG
.L4:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	fc_frame_free
.L3:
	mov	r0, r5
	bl	fc_fcp_lock_pkt
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L19+8
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L14
	ldr	r2, .L19+12
	ldr	r3, .L19+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r5]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L15
	ldr	r3, .L19+20
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L16
	ldr	r3, .L19+24
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L17
	ldr	r3, .L19+28
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L18
	mov	r2, r8
	mov	r0, r5
	ldr	r1, .L19+32
	bl	FC_FCP_DBG
.L6:
	mov	r0, r5
	bl	fc_fcp_unlock_pkt
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	fc_frame_free
.L13:
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	fc_fcp_error
.L14:
	mov	r1, r4
	mov	r0, r5
	bl	fc_fcp_abts_resp
	b	.L6
.L15:
	mov	r2, r8
	mov	r0, r5
	ldr	r1, .L19+36
	bl	FC_FCP_DBG
	b	.L6
.L18:
	mov	r0, r4
	bl	fr_flags
	ldr	r3, .L19+40
	ldr	r3, [r3]
	and	r0, r0, r3
	bl	WARN_ON
	mov	r1, r4
	mov	r0, r5
	bl	fc_fcp_resp
	b	.L6
.L16:
	mov	r0, r4
	bl	fr_flags
	ldr	r3, .L19+40
	ldr	r3, [r3]
	and	r0, r0, r3
	bl	WARN_ON
	mov	r1, #8
	mov	r0, r4
	bl	fc_frame_payload_get
	mov	r6, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON
	ldr	r0, [r6, #4]
	bl	ntohl
	mov	r2, r0
	ldr	r0, [r6]
	mov	r6, r2
	bl	ntohl
	mov	r2, r6
	mov	r3, r0
	mov	r1, r7
	mov	r0, r5
	bl	fc_fcp_send_data
	cmp	r0, #0
	ldreq	r3, [r5, #8]
	streq	r3, [r7]
	b	.L6
.L17:
	mov	r0, r4
	bl	fr_len
	cmp	r0, #7
	movhi	r0, #0
	movls	r0, #1
	bl	WARN_ON
	mov	r1, r4
	mov	r0, r5
	bl	fc_fcp_recv_data
	ldr	r3, [r5, #4]
	str	r3, [r7]
	b	.L6
.L20:
	.align	2
.L19:
	.word	LPORT_ST_READY
	.word	.LC0
	.word	FC_TYPE_BLS
	.word	FC_SRB_ABORT_PENDING
	.word	FC_SRB_ABORTED
	.word	FC_RCTL_DD_DATA_DESC
	.word	FC_RCTL_DD_SOL_DATA
	.word	FC_RCTL_DD_CMD_STATUS
	.word	.LC2
	.word	.LC1
	.word	FCPHF_CRC_UNCHECKED
	.size	fc_fcp_recv, .-fc_fcp_recv
	.comm	LPORT_ST_READY,4,4
	.comm	FC_TYPE_BLS,4,4
	.comm	FC_SRB_ABORT_PENDING,4,4
	.comm	FC_SRB_ABORTED,4,4
	.comm	FC_RCTL_DD_SOL_DATA,4,4
	.comm	FC_RCTL_DD_DATA_DESC,4,4
	.comm	FC_RCTL_DD_CMD_STATUS,4,4
	.comm	FCPHF_CRC_UNCHECKED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
