	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iscsi_iser_conn_bind
_iscsi_iser_conn_bind:                  ## @iscsi_iser_conn_bind
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rsi), %r15
	movl	%ecx, %edx
	callq	_iscsi_conn_bind
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	callq	_iscsi_lookup_endpoint
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %r12
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r12), %rdx
	movq	_ISER_CONN_UP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.5:
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_iser_alloc_rx_descriptors
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_iser_info
	movq	%r12, (%r15)
	movq	%r15, 16(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_iser_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_iser_err
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't bind eph %llx\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ISER_CONN_UP,8,3               ## @ISER_CONN_UP
L_.str.1:                               ## @.str.1
	.asciz	"iser_conn %p state is %d, teardown started\n"

L_.str.2:                               ## @.str.2
	.asciz	"binding iscsi conn %p to iser_conn %p\n"

	.no_dead_strip	_iscsi_iser_conn_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iscsi_iser_conn_bind
_iscsi_iser_conn_bind:                  ; @iscsi_iser_conn_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	ldr	x20, [x1]
	mov	x2, x3
	bl	_iscsi_conn_bind
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_iscsi_lookup_endpoint
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x21, [x0]
	add	x19, x21, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _ISER_CONN_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISER_CONN_UP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_iser_alloc_rx_descriptors
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_iser_info
	str	x21, [x20]
	str	x20, [x21, #16]
	b	LBB0_7
LBB0_5:
	str	x19, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iser_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x9, _EINVAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	neg	w22, w9
	stp	x21, x8, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iser_err
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't bind eph %llx\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ISER_CONN_UP,8,3               ; @ISER_CONN_UP
l_.str.1:                               ; @.str.1
	.asciz	"iser_conn %p state is %d, teardown started\n"

l_.str.2:                               ; @.str.2
	.asciz	"binding iscsi conn %p to iser_conn %p\n"

	.no_dead_strip	_iscsi_iser_conn_bind
.subsections_via_symbols
