	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_conn_release              ## -- Begin function iser_conn_release
	.p2align	4, 0x90
_iser_conn_release:                     ## @iser_conn_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ig@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	16(%rbx), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rdx
	movq	_ISER_CONN_DOWN@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rdx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_iser_warn
	movl	12(%rbx), %edi
	callq	_iscsi_destroy_endpoint
	movq	(%r15), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_iser_free_ib_conn_res
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_rdma_destroy_id
	movq	$0, 24(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ig,4,2                         ## @ig
	.comm	_ISER_CONN_DOWN,8,3             ## @ISER_CONN_DOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iser conn %p state %d, expected state down.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_conn_release              ; -- Begin function iser_conn_release
	.p2align	2
_iser_conn_release:                     ; @iser_conn_release
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _ig@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ig@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #16
	bl	_list_del
	mov	x0, x20
	bl	_mutex_unlock
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x2, [x19]
Lloh2:
	adrp	x21, _ISER_CONN_DOWN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ISER_CONN_DOWN@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x2, x8
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_iser_warn
	ldr	w0, [x19, #12]
	bl	_iscsi_destroy_endpoint
	ldr	x8, [x21]
	str	x8, [x19]
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	bl	_iser_free_ib_conn_res
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_rdma_destroy_id
	str	xzr, [x19, #24]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ig,4,2                         ; @ig
	.comm	_ISER_CONN_DOWN,8,3             ; @ISER_CONN_DOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iser conn %p state %d, expected state down.\n"

.subsections_via_symbols
