	.file	"extr_zfcp_fsf.c_zfcp_fsf_fcp_handler_common.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fssfch1"
.LC1:
	.string	"fssfch2"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Incorrect direction %d, LUN 0x%016Lx on port 0x%016Lx closed\n"
	.section	.rodata.str1.1
.LC3:
	.string	"fssfch3"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Incorrect FCP_CMND length %d, FCP device closed\n"
	.section	.rodata.str1.1
.LC5:
	.string	"fssfch4"
.LC6:
	.string	"fssfch5"
.LC7:
	.string	"fssfch6"
	.text
	.p2align 4
	.type	zfcp_fsf_fcp_handler_common, @function
zfcp_fsf_fcp_handler_common:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR [rdi]
	and	edi, DWORD PTR ZFCP_STATUS_FSFREQ_ERROR[rip]
	call	unlikely@PLT
	test	rax, rax
	je	.L15
.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
.L15:
	.cfi_restore_state
	mov	rdi, r12
	call	sdev_to_zfcp@PLT
	mov	r13, rax
	mov	eax, DWORD PTR 8[rbx]
	add	eax, -128
	cmp	eax, 9
	ja	.L1
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L11-.L4
	.long	.L8-.L4
	.long	.L10-.L4
	.long	.L7-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 0[r13]
	lea	rdx, .LC1[rip]
	xor	esi, esi
	call	zfcp_erp_port_reopen@PLT
	mov	eax, DWORD PTR ZFCP_STATUS_FSFREQ_ERROR[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR 8[rbp]
	lea	rdx, .LC0[rip]
	xor	esi, esi
	call	zfcp_erp_adapter_reopen@PLT
	mov	eax, DWORD PTR ZFCP_STATUS_FSFREQ_ERROR[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR ZFCP_STATUS_COMMON_ACCESS_BOXED[rip]
	mov	rdi, QWORD PTR 0[r13]
	call	zfcp_erp_set_port_status@PLT
	mov	esi, DWORD PTR ZFCP_STATUS_COMMON_ERP_FAILED[rip]
	mov	rdi, QWORD PTR 0[r13]
	lea	rdx, .LC6[rip]
	call	zfcp_erp_port_reopen@PLT
	mov	eax, DWORD PTR ZFCP_STATUS_FSFREQ_ERROR[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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	zfcp_fsf_class_not_supp@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR FSF_SQ_INVOKE_LINK_TEST_PROCEDURE[rip]
	cmp	DWORD PTR [rax], ecx
	je	.L16
.L12:
	mov	eax, DWORD PTR ZFCP_STATUS_FSFREQ_ERROR[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, QWORD PTR [rax]
	mov	edx, DWORD PTR [rdx]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 8[rbp]
	lea	rdx, .LC5[rip]
	xor	esi, esi
	call	zfcp_erp_adapter_shutdown@PLT
	mov	eax, DWORD PTR ZFCP_STATUS_FSFREQ_ERROR[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r12
	mov	rbx, QWORD PTR [rax]
	call	zfcp_scsi_dev_lun@PLT
	lea	rsi, .LC2[rip]
	mov	rcx, rax
	mov	rax, QWORD PTR 16[rbp]
	mov	r8, rbx
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rax]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 8[rbp]
	lea	rdx, .LC3[rip]
	xor	esi, esi
	call	zfcp_erp_adapter_shutdown@PLT
	mov	eax, DWORD PTR ZFCP_STATUS_FSFREQ_ERROR[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR ZFCP_STATUS_COMMON_ACCESS_BOXED[rip]
	mov	rdi, r12
	call	zfcp_erp_set_lun_status@PLT
	mov	esi, DWORD PTR ZFCP_STATUS_COMMON_ERP_FAILED[rip]
	lea	rdx, .LC7[rip]
	mov	rdi, r12
	call	zfcp_erp_lun_reopen@PLT
	mov	eax, DWORD PTR ZFCP_STATUS_FSFREQ_ERROR[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, QWORD PTR 0[r13]
	call	zfcp_fc_test_link@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	zfcp_fsf_fcp_handler_common, .-zfcp_fsf_fcp_handler_common
	.comm	ZFCP_STATUS_FSFREQ_ERROR,4,4
	.comm	ZFCP_STATUS_COMMON_ERP_FAILED,4,4
	.comm	ZFCP_STATUS_COMMON_ACCESS_BOXED,4,4
	.comm	FSF_SQ_INVOKE_LINK_TEST_PROCEDURE,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_zfcp_fsf.c_zfcp_fsf_fcp_handler_common.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fssfch1\000"
	.align	2
.LC1:
	.ascii	"fssfch2\000"
	.align	2
.LC2:
	.ascii	"Incorrect direction %d, LUN 0x%016Lx on port 0x%016"
	.ascii	"Lx closed\012\000"
	.align	2
.LC3:
	.ascii	"fssfch3\000"
	.align	2
.LC4:
	.ascii	"Incorrect FCP_CMND length %d, FCP device closed\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"fssfch4\000"
	.align	2
.LC6:
	.ascii	"fssfch5\000"
	.align	2
.LC7:
	.ascii	"fssfch6\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfcp_fsf_fcp_handler_common, %function
zfcp_fsf_fcp_handler_common:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r5, .L19
	ldr	r0, [r0]
	ldr	r3, [r5]
	sub	sp, sp, #16
	and	r0, r0, r3
	mov	r6, r1
	ldr	r7, [r4, #8]
	bl	unlikely
	cmp	r0, #0
	beq	.L17
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r0, r6
	bl	sdev_to_zfcp
	ldr	r3, [r7, #8]
	mov	r8, r0
	sub	r3, r3, #128
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L1
.L4:
	.word	.L11
	.word	.L8
	.word	.L10
	.word	.L7
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	mov	r1, #0
	ldr	r0, [r0]
	ldr	r2, .L19+4
.L14:
	bl	zfcp_erp_port_reopen
	ldr	r2, [r5]
	ldr	r3, [r4]
	orr	r3, r3, r2
	str	r3, [r4]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r2, .L19+8
	mov	r1, #0
	ldr	r0, [r4, #4]
	bl	zfcp_erp_adapter_reopen
	ldr	r2, [r5]
	ldr	r3, [r4]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L10:
	ldr	r3, .L19+12
	ldr	r0, [r0]
	ldr	r1, [r3]
	bl	zfcp_erp_set_port_status
	ldr	r3, .L19+16
	ldr	r0, [r8]
	ldr	r1, [r3]
	ldr	r2, .L19+20
	b	.L14
.L11:
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	zfcp_fsf_class_not_supp
.L3:
	ldr	r2, [r7, #12]
	ldr	r3, .L19+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L18
.L12:
	ldr	r2, [r5]
	ldr	r3, [r4]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L5:
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r0, [r3]
	ldr	r1, .L19+28
	bl	dev_err
	ldr	r2, .L19+32
.L15:
	mov	r1, #0
	ldr	r0, [r4, #4]
	bl	zfcp_erp_adapter_shutdown
	ldr	r2, [r5]
	ldr	r3, [r4]
	orr	r3, r3, r2
	str	r3, [r4]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r0, r6
	ldmib	r4, {r2, r3}
	ldr	r6, [r3, #4]
	ldr	r10, [r2]
	bl	zfcp_scsi_dev_lun
	mov	r2, r6
	mov	r6, r0
	ldr	r3, [r8]
	asr	r7, r0, #31
	ldr	r8, [r3]
	mov	r0, r10
	asr	r9, r8, #31
	str	r8, [sp, #8]
	str	r9, [sp, #12]
	stm	sp, {r6-r7}
	ldr	r1, .L19+36
	bl	dev_err
	ldr	r2, .L19+40
	b	.L15
.L9:
	ldr	r3, .L19+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	zfcp_erp_set_lun_status
	ldr	r3, .L19+16
	ldr	r2, .L19+44
	ldr	r1, [r3]
	mov	r0, r6
	bl	zfcp_erp_lun_reopen
	ldr	r2, [r5]
	ldr	r3, [r4]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L18:
	ldr	r0, [r0]
	bl	zfcp_fc_test_link
	b	.L12
.L20:
	.align	2
.L19:
	.word	ZFCP_STATUS_FSFREQ_ERROR
	.word	.LC1
	.word	.LC0
	.word	ZFCP_STATUS_COMMON_ACCESS_BOXED
	.word	ZFCP_STATUS_COMMON_ERP_FAILED
	.word	.LC6
	.word	FSF_SQ_INVOKE_LINK_TEST_PROCEDURE
	.word	.LC4
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC7
	.size	zfcp_fsf_fcp_handler_common, .-zfcp_fsf_fcp_handler_common
	.comm	ZFCP_STATUS_FSFREQ_ERROR,4,4
	.comm	ZFCP_STATUS_COMMON_ERP_FAILED,4,4
	.comm	ZFCP_STATUS_COMMON_ACCESS_BOXED,4,4
	.comm	FSF_SQ_INVOKE_LINK_TEST_PROCEDURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
