	.file	"extr_zfcp_erp.c_zfcp_erp_strategy_check_port.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ERP failed for remote port 0x%016Lx\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"erpsck1"
	.text
	.p2align 4
	.type	zfcp_erp_strategy_check_port, @function
zfcp_erp_strategy_check_port:
.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	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	cmp	esi, 128
	je	.L2
	cmp	esi, 129
	jne	.L4
	call	atomic_read@PLT
	test	DWORD PTR ZFCP_STATUS_COMMON_NOESC[rip], eax
	jne	.L15
.L5:
	lea	r13, 24[rbp]
	mov	rdi, r13
	call	atomic_inc@PLT
	mov	rdi, r13
	call	atomic_read@PLT
	cmp	eax, DWORD PTR ZFCP_MAX_ERPS[rip]
	jg	.L16
.L4:
	mov	rdi, rbp
	call	atomic_read@PLT
	test	DWORD PTR ZFCP_STATUS_COMMON_ERP_FAILED[rip], eax
	jne	.L17
.L6:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L2:
	.cfi_restore_state
	xor	esi, esi
	lea	rdi, 24[rdi]
	call	atomic_set@PLT
	mov	rdi, rbp
	call	zfcp_erp_port_unblock@PLT
	mov	rdi, rbp
	call	atomic_read@PLT
	test	DWORD PTR ZFCP_STATUS_COMMON_ERP_FAILED[rip], eax
	je	.L6
.L17:
	mov	rdi, rbp
	xor	esi, esi
	call	zfcp_erp_port_block@PLT
	mov	r12d, DWORD PTR ZFCP_ERP_EXIT[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, QWORD PTR [rax]
	call	dev_err@PLT
	xor	edx, edx
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	zfcp_erp_port_failed@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	xor	esi, esi
	mov	rdi, rbp
	call	zfcp_erp_port_block@PLT
	mov	r12d, DWORD PTR ZFCP_ERP_EXIT[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	zfcp_erp_strategy_check_port, .-zfcp_erp_strategy_check_port
	.comm	ZFCP_STATUS_COMMON_NOESC,4,4
	.comm	ZFCP_STATUS_COMMON_ERP_FAILED,4,4
	.comm	ZFCP_MAX_ERPS,4,4
	.comm	ZFCP_ERP_EXIT,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_strategy_check_port.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERP failed for remote port 0x%016Lx\012\000"
	.align	2
.LC1:
	.ascii	"erpsck1\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfcp_erp_strategy_check_port, %function
zfcp_erp_strategy_check_port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #128
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	beq	.L2
	cmp	r1, #129
	bne	.L4
	bl	atomic_read
	ldr	r3, .L18
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L15
.L5:
	add	r6, r5, #12
	mov	r0, r6
	bl	atomic_inc
	mov	r0, r6
	bl	atomic_read
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r0, r3
	bgt	.L16
.L4:
	mov	r0, r5
	bl	atomic_read
	ldr	r3, .L18+8
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L17
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	mov	r1, #0
	add	r0, r0, #12
	bl	atomic_set
	mov	r0, r5
	bl	zfcp_erp_port_unblock
	b	.L4
.L17:
	mov	r0, r5
	mov	r1, #0
	bl	zfcp_erp_port_block
	ldr	r3, .L18+12
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #8]
	asr	r3, r2, #31
	ldr	r0, [r1]
	ldr	r1, .L18+16
	bl	dev_err
	mov	r2, #0
	mov	r0, r5
	ldr	r1, .L18+20
	bl	zfcp_erp_port_failed
	b	.L4
.L15:
	mov	r1, #0
	mov	r0, r5
	bl	zfcp_erp_port_block
	ldr	r3, .L18+12
	ldr	r4, [r3]
	b	.L5
.L19:
	.align	2
.L18:
	.word	ZFCP_STATUS_COMMON_NOESC
	.word	ZFCP_MAX_ERPS
	.word	ZFCP_STATUS_COMMON_ERP_FAILED
	.word	ZFCP_ERP_EXIT
	.word	.LC0
	.word	.LC1
	.size	zfcp_erp_strategy_check_port, .-zfcp_erp_strategy_check_port
	.comm	ZFCP_STATUS_COMMON_NOESC,4,4
	.comm	ZFCP_STATUS_COMMON_ERP_FAILED,4,4
	.comm	ZFCP_MAX_ERPS,4,4
	.comm	ZFCP_ERP_EXIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
