	.file	"extr_be_iscsi.c_beiscsi_ep_disconnect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"BS_%d : In beiscsi_ep_disconnect for ep_cid = %d\n"
	.align 8
.LC1:
	.string	"BS_%d : mgmt_invalidate_connection Failed for cid=%d\n"
	.text
	.p2align 4
	.globl	beiscsi_ep_disconnect
	.type	beiscsi_ep_disconnect, @function
beiscsi_ep_disconnect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rcx, .LC0[rip]
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	mov	edx, DWORD PTR BEISCSI_LOG_CONFIG[rip]
	mov	esi, DWORD PTR KERN_INFO[rip]
	movzx	r12d, WORD PTR CMD_ISCSI_SESSION_SAVE_CFG_ON_FLASH[rip]
	mov	rbp, QWORD PTR 16[rbx]
	mov	r8d, DWORD PTR 4[rbx]
	mov	rdi, rbp
	call	beiscsi_log@PLT
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR [rax]
	call	iscsi_suspend_queue@PLT
	mov	ecx, DWORD PTR BEISCSI_NO_RST_ISSUE[rip]
	mov	r13d, DWORD PTR CONNECTION_UPLOAD_GRACEFUL[rip]
	not	ecx
.L3:
	mov	edx, DWORD PTR 4[rbx]
	movzx	r8d, r12w
	mov	rsi, rbx
	mov	rdi, rbp
	call	mgmt_invalidate_connection@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L4:
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, r12d
	mov	rdi, rbp
	call	beiscsi_mccq_compl@PLT
	mov	esi, r13d
	mov	rdi, rbx
	call	beiscsi_close_conn@PLT
	mov	rdi, rbx
	call	beiscsi_free_ep@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, rbp
	call	beiscsi_unbind_conn_to_cid@PLT
	mov	edi, DWORD PTR [rbx]
	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
	jmp	iscsi_destroy_endpoint@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR BEISCSI_NO_RST_ISSUE[rip]
	mov	r13d, DWORD PTR CONNECTION_UPLOAD_ABORT[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r8d, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR BEISCSI_LOG_CONFIG[rip]
	mov	rdi, rbp
	lea	rcx, .LC1[rip]
	mov	esi, DWORD PTR KERN_ERR[rip]
	call	beiscsi_log@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	beiscsi_ep_disconnect, .-beiscsi_ep_disconnect
	.comm	KERN_INFO,4,4
	.comm	KERN_ERR,4,4
	.comm	CONNECTION_UPLOAD_GRACEFUL,4,4
	.comm	CONNECTION_UPLOAD_ABORT,4,4
	.comm	CMD_ISCSI_SESSION_SAVE_CFG_ON_FLASH,2,2
	.comm	BEISCSI_NO_RST_ISSUE,4,4
	.comm	BEISCSI_LOG_CONFIG,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_be_iscsi.c_beiscsi_ep_disconnect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BS_%d : In beiscsi_ep_disconnect for ep_cid = %d\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"BS_%d : mgmt_invalidate_connection Failed for cid=%"
	.ascii	"d\012\000"
	.text
	.align	2
	.global	beiscsi_ep_disconnect
	.syntax unified
	.arm
	.fpu softvfp
	.type	beiscsi_ep_disconnect, %function
beiscsi_ep_disconnect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	ldr	r3, .L8
	ldr	r2, [r4, #4]
	ldr	r5, [r4, #12]
	sub	sp, sp, #8
	ldr	r7, .L8+4
	str	r2, [sp]
	ldr	ip, .L8+8
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r3, .L8+12
	ldr	r2, [r7]
	ldrh	r6, [ip]
	bl	beiscsi_log
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [r3]
	bl	iscsi_suspend_queue
	ldr	r3, .L8+16
	ldr	r2, .L8+20
	ldr	r3, [r3]
	ldr	r8, [r2]
	mvn	r3, r3
.L3:
	ldr	r2, [r4, #4]
	mov	r1, r4
	str	r6, [sp]
	mov	r0, r5
	bl	mgmt_invalidate_connection
	subs	r6, r0, #0
	beq	.L7
.L4:
	mov	r3, #0
	mov	r1, r6
	mov	r2, r3
	mov	r0, r5
	bl	beiscsi_mccq_compl
	mov	r1, r8
	mov	r0, r4
	bl	beiscsi_close_conn
	mov	r0, r4
	bl	beiscsi_free_ep
	mov	r0, r5
	ldr	r1, [r4, #4]
	bl	beiscsi_unbind_conn_to_cid
	ldr	r0, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	iscsi_destroy_endpoint
.L2:
	ldr	r3, .L8+16
	ldr	r2, .L8+24
	ldr	r3, [r3]
	ldr	r8, [r2]
	b	.L3
.L7:
	ldr	r3, [r4, #4]
	ldr	r1, .L8+28
	mov	r0, r5
	ldr	r1, [r1]
	ldr	r2, [r7]
	str	r3, [sp]
	ldr	r3, .L8+32
	bl	beiscsi_log
	b	.L4
.L9:
	.align	2
.L8:
	.word	KERN_INFO
	.word	BEISCSI_LOG_CONFIG
	.word	CMD_ISCSI_SESSION_SAVE_CFG_ON_FLASH
	.word	.LC0
	.word	BEISCSI_NO_RST_ISSUE
	.word	CONNECTION_UPLOAD_GRACEFUL
	.word	CONNECTION_UPLOAD_ABORT
	.word	KERN_ERR
	.word	.LC1
	.size	beiscsi_ep_disconnect, .-beiscsi_ep_disconnect
	.comm	KERN_INFO,4,4
	.comm	KERN_ERR,4,4
	.comm	CONNECTION_UPLOAD_GRACEFUL,4,4
	.comm	CONNECTION_UPLOAD_ABORT,4,4
	.comm	CMD_ISCSI_SESSION_SAVE_CFG_ON_FLASH,2,2
	.comm	BEISCSI_NO_RST_ISSUE,4,4
	.comm	BEISCSI_LOG_CONFIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
