	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_conn_terminate            ## -- Begin function iser_conn_terminate
	.p2align	4, 0x90
_iser_conn_terminate:                   ## @iser_conn_terminate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_ISER_CONN_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISER_CONN_TERMINATING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_iser_conn_state_comp_exch
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_iser_info
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_iscsi_suspend_queue
LBB0_4:
	movq	24(%rbx), %rdi
	movl	$1, %r14d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	callq	_rdma_disconnect
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_iser_err
LBB0_7:
	movl	16(%rbx), %edi
	callq	_ib_drain_sq
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISER_CONN_UP,4,2               ## @ISER_CONN_UP
	.comm	_ISER_CONN_TERMINATING,4,2      ## @ISER_CONN_TERMINATING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iser_conn %p state %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to disconnect, conn: 0x%p err %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_conn_terminate            ; -- Begin function iser_conn_terminate
	.p2align	2
_iser_conn_terminate:                   ; @iser_conn_terminate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ISER_CONN_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISER_CONN_UP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ISER_CONN_TERMINATING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISER_CONN_TERMINATING@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_iser_conn_state_comp_exch
	cbz	w0, LBB0_8
; %bb.1:
	ldr	w2, [x19, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_iser_info
	ldr	x0, [x19]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_iscsi_suspend_queue
LBB0_3:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_7
; %bb.4:
	bl	_rdma_disconnect
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_iser_err
LBB0_6:
	ldr	w0, [x19, #16]
	bl	_ib_drain_sq
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ISER_CONN_UP,4,2               ; @ISER_CONN_UP
	.comm	_ISER_CONN_TERMINATING,4,2      ; @ISER_CONN_TERMINATING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iser_conn %p state %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to disconnect, conn: 0x%p err %d\n"

.subsections_via_symbols
