	.file	"extr_zfcp_erp.c_zfcp_erp_port_strategy_open_common.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zfcp_erp_port_strategy_open_common, @function
zfcp_erp_port_strategy_open_common:
.LFB0:
	.cfi_startproc
	endbr64
	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
	mov	r12, QWORD PTR 8[rdi]
	mov	rbx, QWORD PTR 16[rdi]
	lea	rdi, 4[r12]
	call	atomic_read@PLT
	mov	edx, DWORD PTR 0[rbp]
	cmp	edx, 129
	je	.L2
	jle	.L21
	sub	edx, 130
	cmp	edx, 1
	ja	.L5
.L4:
	mov	edi, DWORD PTR [rbx]
	call	fc_host_port_type@PLT
	cmp	eax, DWORD PTR FC_PORTTYPE_PTP[rip]
	je	.L22
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	je	.L19
	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	zfcp_erp_port_strategy_open_port@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	cmp	edx, 128
	je	.L4
.L5:
	mov	r8d, DWORD PTR ZFCP_ERP_FAILED[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR [r12]
	test	DWORD PTR ZFCP_STATUS_COMMON_OPEN[rip], eax
	je	.L9
	mov	r8d, DWORD PTR ZFCP_ERP_SUCCEEDED[rip]
	test	edx, edx
	jne	.L1
.L19:
	mov	rdi, r12
	call	zfcp_fc_trigger_did_lookup@PLT
	mov	r8d, DWORD PTR ZFCP_ERP_EXIT[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r8d, DWORD PTR ZFCP_ERP_FAILED[rip]
	test	edx, edx
	je	.L1
	test	DWORD PTR ZFCP_STATUS_COMMON_NOESC[rip], eax
	jne	.L1
	mov	DWORD PTR [r12], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	zfcp_erp_open_ptp_port@PLT
	.cfi_endproc
.LFE0:
	.size	zfcp_erp_port_strategy_open_common, .-zfcp_erp_port_strategy_open_common
	.comm	ZFCP_STATUS_COMMON_OPEN,4,4
	.comm	ZFCP_STATUS_COMMON_NOESC,4,4
	.comm	ZFCP_ERP_SUCCEEDED,4,4
	.comm	ZFCP_ERP_FAILED,4,4
	.comm	ZFCP_ERP_EXIT,4,4
	.comm	FC_PORTTYPE_PTP,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_erp.c_zfcp_erp_port_strategy_open_common.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfcp_erp_port_strategy_open_common, %function
zfcp_erp_port_strategy_open_common:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldmib	r0, {r5, r6}
	mov	r4, r0
	add	r0, r5, #4
	bl	atomic_read
	ldr	r3, [r4]
	cmp	r3, #129
	beq	.L2
	ble	.L21
	sub	r3, r3, #130
	cmp	r3, #1
	bhi	.L5
.L4:
	ldr	r0, [r6]
	bl	fc_host_port_type
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L22
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L19
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	zfcp_erp_port_strategy_open_port
.L21:
	cmp	r3, #128
	beq	.L4
.L5:
	ldr	r3, .L23+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L23+8
	mov	r2, r0
	ldr	r3, [r3]
	ldr	r1, [r5]
	tst	r0, r3
	beq	.L9
	cmp	r1, #0
	beq	.L19
	ldr	r3, .L23+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L23+4
	cmp	r1, #0
	ldr	r0, [r3]
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L23+16
	ldr	r3, [r3]
	ands	r2, r2, r3
	popne	{r4, r5, r6, pc}
	str	r2, [r5]
	pop	{r4, r5, r6, pc}
.L19:
	mov	r0, r5
	bl	zfcp_fc_trigger_did_lookup
	ldr	r3, .L23+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L22:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	zfcp_erp_open_ptp_port
.L24:
	.align	2
.L23:
	.word	FC_PORTTYPE_PTP
	.word	ZFCP_ERP_FAILED
	.word	ZFCP_STATUS_COMMON_OPEN
	.word	ZFCP_ERP_SUCCEEDED
	.word	ZFCP_STATUS_COMMON_NOESC
	.word	ZFCP_ERP_EXIT
	.size	zfcp_erp_port_strategy_open_common, .-zfcp_erp_port_strategy_open_common
	.comm	ZFCP_STATUS_COMMON_OPEN,4,4
	.comm	ZFCP_STATUS_COMMON_NOESC,4,4
	.comm	ZFCP_ERP_SUCCEEDED,4,4
	.comm	ZFCP_ERP_FAILED,4,4
	.comm	ZFCP_ERP_EXIT,4,4
	.comm	FC_PORTTYPE_PTP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
