	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_connect                   ## -- Begin function iser_connect
	.p2align	4, 0x90
_iser_connect:                          ## @iser_connect
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	20(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_sprintf
	movl	20(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_iser_info
	movq	$0, 32(%rbx)
	movq	_ISER_CONN_PENDING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_iser_cma_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RDMA_PS_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_init_net@GOTPCREL(%rip), %rdi
	movq	%rbx, %rdx
	callq	_rdma_create_id
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	24(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	callq	_PTR_ERR
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_iser_err
	movq	$0, 24(%rbx)
	jmp	LBB0_2
LBB0_4:
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_rdma_resolve_addr
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_iser_err
LBB0_2:
	movq	_ISER_CONN_DOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_iser_conn_release
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.7:
	leaq	16(%rbx), %rdi
	callq	_wait_for_completion_interruptible
	movq	(%rbx), %rax
	movq	_ISER_CONN_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_ig@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	addq	$12, %rbx
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%pISp"

L_.str.1:                               ## @.str.1
	.asciz	"connecting to: %s\n"

	.comm	_ISER_CONN_PENDING,8,3          ## @ISER_CONN_PENDING
	.comm	_init_net,4,2                   ## @init_net
	.comm	_iser_cma_handler,4,2           ## @iser_cma_handler
	.comm	_RDMA_PS_TCP,4,2                ## @RDMA_PS_TCP
	.comm	_IB_QPT_RC,4,2                  ## @IB_QPT_RC
L_.str.2:                               ## @.str.2
	.asciz	"rdma_create_id failed: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"rdma_resolve_addr failed: %d\n"

	.comm	_ISER_CONN_UP,8,3               ## @ISER_CONN_UP
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ig,8,2                         ## @ig
	.comm	_ISER_CONN_DOWN,8,3             ## @ISER_CONN_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_connect                   ; -- Begin function iser_connect
	.p2align	2
_iser_connect:                          ; @iser_connect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w0, [x19, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_sprintf
	ldr	w1, [x19, #20]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iser_info
Lloh4:
	adrp	x8, _ISER_CONN_PENDING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ISER_CONN_PENDING@GOTPAGEOFF]
	str	xzr, [x19, #32]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh7:
	adrp	x8, _iser_cma_handler@GOTPAGE
Lloh8:
	ldr	x8, [x8, _iser_cma_handler@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _RDMA_PS_TCP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RDMA_PS_TCP@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _IB_QPT_RC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_QPT_RC@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
Lloh16:
	adrp	x0, _init_net@GOTPAGE
Lloh17:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	mov	x2, x19
	bl	_rdma_create_id
	str	x0, [x19, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_PTR_ERR
	mov	x22, x0
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_iser_err
	str	xzr, [x19, #24]
	b	LBB0_4
LBB0_2:
	mov	x1, x23
	mov	x2, x22
	mov	w3, #1000
	bl	_rdma_resolve_addr
	cbz	w0, LBB0_7
; %bb.3:
	mov	x22, x0
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_iser_err
LBB0_4:
Lloh22:
	adrp	x8, _ISER_CONN_DOWN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ISER_CONN_DOWN@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_5:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_iser_conn_release
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	cbnz	w21, LBB0_9
; %bb.8:
	add	x0, x19, #16
	bl	_wait_for_completion_interruptible
	ldr	x8, [x19]
Lloh25:
	adrp	x9, _ISER_CONN_UP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ISER_CONN_UP@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_mutex_unlock
Lloh28:
	adrp	x20, _ig@GOTPAGE
Lloh29:
	ldr	x20, [x20, _ig@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #12
	add	x1, x20, #4
	bl	_list_add
	mov	x0, x20
	bl	_mutex_unlock
	mov	w22, #0
	b	LBB0_6
LBB0_10:
Lloh30:
	adrp	x8, _EIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%pISp"

l_.str.1:                               ; @.str.1
	.asciz	"connecting to: %s\n"

	.comm	_ISER_CONN_PENDING,8,3          ; @ISER_CONN_PENDING
	.comm	_init_net,4,2                   ; @init_net
	.comm	_iser_cma_handler,4,2           ; @iser_cma_handler
	.comm	_RDMA_PS_TCP,4,2                ; @RDMA_PS_TCP
	.comm	_IB_QPT_RC,4,2                  ; @IB_QPT_RC
l_.str.2:                               ; @.str.2
	.asciz	"rdma_create_id failed: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"rdma_resolve_addr failed: %d\n"

	.comm	_ISER_CONN_UP,8,3               ; @ISER_CONN_UP
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ig,8,2                         ; @ig
	.comm	_ISER_CONN_DOWN,8,3             ; @ISER_CONN_DOWN
.subsections_via_symbols
