	.file	"extr_zfcp_fsf.c_zfcp_fsf_close_physical_port.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfcp_fsf_close_physical_port
	.type	zfcp_fsf_close_physical_port, @function
zfcp_fsf_close_physical_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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 16[rdi]
	mov	r13d, DWORD PTR EIO[rip]
	mov	r12, QWORD PTR [rax]
	neg	r13d
	mov	rdi, r12
	call	spin_lock_bh@PLT
	mov	rdi, r12
	call	zfcp_fsf_req_sbal_get@PLT
	test	rax, rax
	je	.L10
.L3:
	mov	rdi, r12
	call	spin_unlock_bh@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r12]
	mov	esi, DWORD PTR FSF_QTCB_CLOSE_PHYSICAL_PORT[rip]
	mov	rdi, r12
	mov	edx, DWORD PTR [rax]
	call	zfcp_fsf_req_create@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L11
	mov	eax, DWORD PTR ZFCP_STATUS_FSFREQ_CLEANUP[rip]
	or	DWORD PTR 36[rbp], eax
	lea	rsi, 32[rbp]
	mov	rdi, r12
	call	zfcp_qdio_sbale_req@PLT
	mov	edx, DWORD PTR SBAL_SFLAGS0_TYPE_READ[rip]
	mov	rdi, rbp
	or	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR SBAL_EFLAGS_LAST_ENTRY[rip]
	or	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 16[rbp]
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR zfcp_fsf_close_physical_port_handler[rip]
	mov	QWORD PTR 8[rbp], rbx
	mov	DWORD PTR 0[rbp], eax
	mov	QWORD PTR [rbx], rbp
	call	zfcp_fsf_start_erp_timer@PLT
	mov	rdi, rbp
	call	zfcp_fsf_req_send@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L3
	mov	rdi, rbp
	call	zfcp_fsf_req_free@PLT
	mov	QWORD PTR [rbx], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rbp
	call	PTR_ERR@PLT
	mov	r13d, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	zfcp_fsf_close_physical_port, .-zfcp_fsf_close_physical_port
	.comm	zfcp_fsf_close_physical_port_handler,4,4
	.comm	ZFCP_STATUS_FSFREQ_CLEANUP,4,4
	.comm	SBAL_SFLAGS0_TYPE_READ,4,4
	.comm	SBAL_EFLAGS_LAST_ENTRY,4,4
	.comm	FSF_QTCB_CLOSE_PHYSICAL_PORT,4,4
	.comm	EIO,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_close_physical_port.c"
	.text
	.align	2
	.global	zfcp_fsf_close_physical_port
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfcp_fsf_close_physical_port, %function
zfcp_fsf_close_physical_port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #8]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r2]
	ldr	r3, .L12
	mov	r5, r0
	mov	r0, r4
	ldr	r7, [r3]
	bl	spin_lock_bh
	mov	r0, r4
	bl	zfcp_fsf_req_sbal_get
	cmp	r0, #0
	rsbne	r7, r7, #0
	beq	.L10
.L3:
	mov	r0, r4
	bl	spin_unlock_bh
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L12+4
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	zfcp_fsf_req_create
	mov	r6, r0
	bl	IS_ERR
	subs	r8, r0, #0
	bne	.L11
	ldr	r2, .L12+8
	ldr	r3, [r6, #20]
	ldr	r2, [r2]
	add	r1, r6, #16
	orr	r3, r3, r2
	str	r3, [r6, #20]
	mov	r0, r4
	bl	zfcp_qdio_sbale_req
	ldr	r3, .L12+12
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	ldr	r1, .L12+16
	orr	r2, r2, r3
	ldr	ip, [r1]
	ldr	r3, [r0, #8]
	ldr	r1, [r5, #4]
	orr	r3, r3, ip
	str	r2, [r0, #4]
	ldr	ip, [r1]
	ldr	r2, [r6, #8]
	str	r3, [r0, #8]
	ldr	r3, .L12+20
	str	r1, [r6, #12]
	str	ip, [r2]
	ldr	r3, [r3]
	mov	r0, r6
	stm	r6, {r3, r5}
	str	r6, [r5]
	bl	zfcp_fsf_start_erp_timer
	mov	r0, r6
	bl	zfcp_fsf_req_send
	subs	r7, r0, #0
	beq	.L3
	mov	r0, r6
	bl	zfcp_fsf_req_free
	str	r8, [r5]
	b	.L3
.L11:
	mov	r0, r6
	bl	PTR_ERR
	mov	r7, r0
	b	.L3
.L13:
	.align	2
.L12:
	.word	EIO
	.word	FSF_QTCB_CLOSE_PHYSICAL_PORT
	.word	ZFCP_STATUS_FSFREQ_CLEANUP
	.word	SBAL_SFLAGS0_TYPE_READ
	.word	SBAL_EFLAGS_LAST_ENTRY
	.word	zfcp_fsf_close_physical_port_handler
	.size	zfcp_fsf_close_physical_port, .-zfcp_fsf_close_physical_port
	.comm	zfcp_fsf_close_physical_port_handler,4,4
	.comm	ZFCP_STATUS_FSFREQ_CLEANUP,4,4
	.comm	SBAL_SFLAGS0_TYPE_READ,4,4
	.comm	SBAL_EFLAGS_LAST_ENTRY,4,4
	.comm	FSF_QTCB_CLOSE_PHYSICAL_PORT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
