	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_create_ep
_rs_create_ep:                          ## @rs_create_ep
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_rs_set_qp_size
	movq	16(%rbx), %rsi
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_IBV_TRANSPORT_IWARP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_RS_OPT_MSG_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_rs_create_cq
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%rbx, -24(%rbp)
	movq	16(%rbx), %rdi
	movl	4(%rdi), %eax
	movl	%eax, -32(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -36(%rbp)
	movq	_IBV_QPT_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	$1, -80(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -72(%rbp)
	movabsq	$4294967298, %rax               ## imm = 0x100000002
	movq	%rax, -68(%rbp)
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_rdma_create_qp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	-56(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	_RS_OPT_MSG_SEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_7
## %bb.5:
	movq	_RS_MSG_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_7
## %bb.6:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR
	jmp	LBB0_13
LBB0_7:
	movq	%rbx, %rdi
	callq	_rs_init_bufs
	testl	%eax, %eax
	je	LBB0_8
LBB0_13:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	cmpl	$0, 4(%rbx)
	jle	LBB0_9
## %bb.10:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_rs_post_recv
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%r14d
	xorl	%eax, %eax
	cmpl	4(%rbx), %r14d
	jl	LBB0_12
	jmp	LBB0_13
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_TRANSPORT_IWARP,8,3        ## @IBV_TRANSPORT_IWARP
	.comm	_RS_OPT_MSG_SEND,4,2            ## @RS_OPT_MSG_SEND
	.comm	_IBV_QPT_RC,4,2                 ## @IBV_QPT_RC
	.comm	_RS_MSG_SIZE,8,3                ## @RS_MSG_SIZE
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.no_dead_strip	_rs_create_ep
.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 rs_create_ep
lCPI0_0:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_rs_create_ep:                          ; @rs_create_ep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_rs_set_qp_size
	ldr	x1, [x19, #16]
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _IBV_TRANSPORT_IWARP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IBV_TRANSPORT_IWARP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RS_OPT_MSG_SEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RS_OPT_MSG_SEND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	mov	x0, x19
	bl	_rs_create_cq
	cbnz	w0, LBB0_8
; %bb.3:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	str	x19, [sp, #56]
	ldp	x8, x0, [x19, #8]
	ldr	d0, [x0]
	stur	d0, [sp, #44]
Lloh6:
	adrp	x9, _IBV_QPT_RC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IBV_QPT_RC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	w10, #1
	ldr	w11, [x19, #24]
	str	w9, [sp, #40]
	str	w11, [sp, #32]
	ldr	w9, [x19, #4]
	str	w10, [sp]
	str	w9, [sp, #8]
Lloh9:
	adrp	x9, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #12]
	str	x8, [sp, #24]
	mov	x2, sp
	mov	x1, #0
	bl	_rdma_create_qp
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x8, [sp, #24]
	str	x8, [x19, #8]
	ldr	w9, [x19]
Lloh11:
	adrp	x10, _RS_OPT_MSG_SEND@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RS_OPT_MSG_SEND@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.5:
Lloh14:
	adrp	x9, _RS_MSG_SIZE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RS_MSG_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.6:
Lloh17:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_ERR
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_rs_init_bufs
	cbz	w0, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	w20, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_rs_post_recv
	cbnz	w0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.lt	LBB0_11
	b	LBB0_8
LBB0_13:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_TRANSPORT_IWARP,8,3        ; @IBV_TRANSPORT_IWARP
	.comm	_RS_OPT_MSG_SEND,4,2            ; @RS_OPT_MSG_SEND
	.comm	_IBV_QPT_RC,4,2                 ; @IBV_QPT_RC
	.comm	_RS_MSG_SIZE,8,3                ; @RS_MSG_SIZE
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.no_dead_strip	_rs_create_ep
.subsections_via_symbols
