	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iser_create_ib_conn_res
_iser_create_ib_conn_res:               ## @iser_create_ib_conn_res
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_iser_conn
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpq	$0, 32(%r15)
	sete	%dil
	callq	_BUG_ON
	movq	32(%r15), %r12
	movq	8(%r12), %r13
	leaq	-104(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_ig@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	(%r12), %r8d
	movq	16(%r12), %r10
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.1:
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
LBB0_10:
	testb	$1, %r8b
	je	LBB0_12
## %bb.11:
	movq	%rdx, %rax
	shlq	$4, %rax
	movq	(%r10,%rax), %rax
	movslq	%ebx, %rbx
	movq	%rbx, %rcx
	shlq	$4, %rcx
	cmpq	(%r10,%rcx), %rax
	cmovll	%edx, %ebx
LBB0_12:
	movslq	%ebx, %rbx
	movq	%rbx, %rax
	shlq	$4, %rax
	leaq	(%r10,%rax), %rcx
	movq	%rcx, (%r15)
	incq	(%r10,%rax)
	movq	_ig@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_iser_info
	movq	_iser_qp_event_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r15, -56(%rbp)
	movq	(%r15), %rax
	movl	8(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	%eax, -68(%rbp)
	movq	_ISER_QP_MAX_RECV_DTOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movabsq	$4294967298, %rax               ## imm = 0x100000002
	movq	%rax, -104(%rbp)
	movq	_IB_SIGNAL_REQ_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	cmpq	$0, 24(%r15)
	je	LBB0_14
## %bb.13:
	movq	_ISER_QP_SIG_MAX_REQ_DTOS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	1(%rdi), %rax
	movq	%rax, -96(%rbp)
	movq	_IB_QP_CREATE_INTEGRITY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -80(%rbp)
	jmp	LBB0_16
LBB0_14:
	movq	(%r13), %rdi
	movq	_ISER_QP_MAX_REQ_DTOS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdi
	jle	LBB0_17
## %bb.15:
	leaq	1(%rax), %rcx
	movq	%rcx, -96(%rbp)
	movq	%rax, %rdi
LBB0_16:
	callq	_ISER_GET_MAX_XMIT_CMDS
	movq	%rax, (%r14)
	jmp	LBB0_18
LBB0_3:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	leaq	16(%r10), %rdi
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%r9, %rdx
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rsi
	shlq	$4, %rsi
	movq	-16(%rdi), %rax
	movl	%edx, %ecx
	cmpq	(%r10,%rsi), %rax
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rdi), %rax
	movslq	%ecx, %rsi
	shlq	$4, %rsi
	cmpq	(%r10,%rsi), %rax
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rdx), %ebx
	jmp	LBB0_9
LBB0_17:
	movq	%rdi, -96(%rbp)
	callq	_ISER_GET_MAX_XMIT_CMDS
	movq	%rax, (%r14)
	movq	8(%r12), %rdi
	addq	$8, %rdi
	callq	_dev_name
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_iser_dbg
LBB0_18:
	movq	8(%r15), %rdi
	movl	4(%r12), %esi
	leaq	-104(%rbp), %rdx
	callq	_rdma_create_qp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movq	_ig@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	decq	(%rax)
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_iser_err
	jmp	LBB0_21
LBB0_19:
	movq	8(%r15), %rdx
	movl	(%rdx), %ecx
	movl	%ecx, 16(%r15)
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_iser_info
LBB0_21:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ig,4,2                         ## @ig
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cq index %d used for ib_conn %p\n"

	.comm	_iser_qp_event_callback,4,2     ## @iser_qp_event_callback
	.comm	_ISER_QP_MAX_RECV_DTOS,4,2      ## @ISER_QP_MAX_RECV_DTOS
	.comm	_IB_SIGNAL_REQ_WR,4,2           ## @IB_SIGNAL_REQ_WR
	.comm	_IB_QPT_RC,4,2                  ## @IB_QPT_RC
	.comm	_ISER_QP_SIG_MAX_REQ_DTOS,8,3   ## @ISER_QP_SIG_MAX_REQ_DTOS
	.comm	_IB_QP_CREATE_INTEGRITY_EN,4,2  ## @IB_QP_CREATE_INTEGRITY_EN
	.comm	_ISER_QP_MAX_REQ_DTOS,8,3       ## @ISER_QP_MAX_REQ_DTOS
L_.str.1:                               ## @.str.1
	.asciz	"device %s supports max_send_wr %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"setting conn %p cma_id %p qp %p\n"

L_.str.3:                               ## @.str.3
	.asciz	"unable to alloc mem or create resource, err %d\n"

	.no_dead_strip	_iser_create_ib_conn_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function iser_create_ib_conn_res
lCPI0_0:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_iser_create_ib_conn_res:               ; @iser_create_ib_conn_res
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x0
	bl	_to_iser_conn
	mov	x20, x0
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x21, [x19, #32]
	ldr	x22, [x21, #8]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh0:
	adrp	x0, _ig@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ig@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w9, [x21]
	ldr	x8, [x21, #16]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x11, #0
	mov	w10, #0
	mov	x12, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12], #16
	sbfiz	x14, x10, #4, #32
	ldr	x14, [x8, x14]
	cmp	x13, x14
	csel	w10, w11, w10, lt
	add	x11, x11, #1
	cmp	x9, x11
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w10, #0
LBB0_4:
	mov	x23, x10
	sbfiz	x9, x23, #4, #32
	add	x10, x8, x9
	str	x10, [x19]
	ldr	x10, [x10]
	add	x10, x10, #1
	str	x10, [x8, x9]
Lloh2:
	adrp	x0, _ig@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ig@GOTPAGEOFF]
	bl	_mutex_unlock
	stp	x23, x19, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iser_info
Lloh6:
	adrp	x8, _iser_qp_event_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iser_qp_event_callback@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	str	x19, [sp, #80]
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	str	w8, [sp, #72]
Lloh9:
	adrp	x9, _ISER_QP_MAX_RECV_DTOS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISER_QP_MAX_RECV_DTOS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [sp, #32]
Lloh14:
	adrp	x10, _IB_SIGNAL_REQ_WR@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IB_SIGNAL_REQ_WR@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	stp	w10, w8, [sp, #64]
Lloh17:
	adrp	x8, _IB_QPT_RC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_QPT_RC@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w9, [sp, #48]
	str	w8, [sp, #60]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _ISER_QP_SIG_MAX_REQ_DTOS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ISER_QP_SIG_MAX_REQ_DTOS@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	add	x8, x0, #1
	str	x8, [sp, #40]
Lloh23:
	adrp	x8, _IB_QP_CREATE_INTEGRITY_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IB_QP_CREATE_INTEGRITY_EN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [sp, #56]
	orr	w8, w9, w8
	str	w8, [sp, #56]
	b	LBB0_8
LBB0_6:
	ldr	x0, [x22]
Lloh26:
	adrp	x8, _ISER_QP_MAX_REQ_DTOS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ISER_QP_MAX_REQ_DTOS@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_9
; %bb.7:
	add	x9, x8, #1
	str	x9, [sp, #40]
	mov	x0, x8
LBB0_8:
	bl	_ISER_GET_MAX_XMIT_CMDS
	str	x0, [x20]
	b	LBB0_10
LBB0_9:
	str	x0, [sp, #40]
	bl	_ISER_GET_MAX_XMIT_CMDS
	str	x0, [x20]
	ldr	x8, [x21, #8]
	add	x0, x8, #8
	bl	_dev_name
	mov	x1, x0
	ldr	x2, [x22]
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iser_dbg
LBB0_10:
	ldr	x0, [x19, #8]
	ldr	w1, [x21, #4]
	add	x2, sp, #32
	bl	_rdma_create_qp
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.11:
Lloh31:
	adrp	x21, _ig@GOTPAGE
Lloh32:
	ldr	x21, [x21, _ig@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19]
	ldr	x9, [x8]
	sub	x9, x9, #1
	str	x9, [x8]
	mov	x0, x21
	bl	_mutex_unlock
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_iser_err
	b	LBB0_13
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	str	w9, [x19, #16]
	stp	x8, x9, [sp, #8]
	str	x19, [sp]
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_iser_info
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ig,4,2                         ; @ig
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cq index %d used for ib_conn %p\n"

	.comm	_iser_qp_event_callback,4,2     ; @iser_qp_event_callback
	.comm	_ISER_QP_MAX_RECV_DTOS,4,2      ; @ISER_QP_MAX_RECV_DTOS
	.comm	_IB_SIGNAL_REQ_WR,4,2           ; @IB_SIGNAL_REQ_WR
	.comm	_IB_QPT_RC,4,2                  ; @IB_QPT_RC
	.comm	_ISER_QP_SIG_MAX_REQ_DTOS,8,3   ; @ISER_QP_SIG_MAX_REQ_DTOS
	.comm	_IB_QP_CREATE_INTEGRITY_EN,4,2  ; @IB_QP_CREATE_INTEGRITY_EN
	.comm	_ISER_QP_MAX_REQ_DTOS,8,3       ; @ISER_QP_MAX_REQ_DTOS
l_.str.1:                               ; @.str.1
	.asciz	"device %s supports max_send_wr %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"setting conn %p cma_id %p qp %p\n"

l_.str.3:                               ; @.str.3
	.asciz	"unable to alloc mem or create resource, err %d\n"

	.no_dead_strip	_iser_create_ib_conn_res
.subsections_via_symbols
