	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_qps
_create_qps:                            ## @create_qps
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ctx@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-96(%rbp), %r14
	movq	_IBV_QP_ACCESS_FLAGS@GOTPCREL(%rip), %r13
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movq	_IBV_QPT_XRC_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_IBV_QP_INIT_ATTR_XRCD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	20(%r12), %edi
	movl	40(%r12), %eax
	movl	%eax, -72(%rbp)
	movq	%r14, %rsi
	callq	_ibv_create_qp_ex
	movq	32(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	32(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IBV_QPS_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	16(%r12), %ecx
	movl	%ecx, -60(%rbp)
	movq	_IBV_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IBV_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, -64(%rbp)
	movq	(%rax,%rbx,8), %rdi
	movq	_IBV_QP_PKEY_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IBV_QP_STATE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_IBV_QP_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	(%r13), %edx
	movq	%r15, %rsi
	callq	_ibv_modify_qp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movq	_IBV_QPT_XRC_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	28(%r12), %eax
	movl	%eax, -80(%rbp)
	movl	4(%r12), %eax
	movl	20(%r12), %edi
	imull	(%r12), %eax
	movl	%eax, -88(%rbp)
	movl	$1, -84(%rbp)
	movq	_IBV_QP_INIT_ATTR_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	24(%r12), %eax
	movl	%eax, -96(%rbp)
	movq	%r14, %rsi
	callq	_ibv_create_qp_ex
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IBV_QPS_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	16(%r12), %ecx
	movl	%ecx, -60(%rbp)
	movl	$0, -64(%rbp)
	movq	(%rax,%rbx,8), %rdi
	movq	_IBV_QP_PKEY_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IBV_QP_STATE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_IBV_QP_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	(%r13), %edx
	movq	%r15, %rsi
	callq	_ibv_modify_qp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
LBB0_11:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_14
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_13:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_14:
	movl	$1, %eax
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,48,3                       ## @ctx
	.comm	_IBV_QPT_XRC_RECV,4,2           ## @IBV_QPT_XRC_RECV
	.comm	_IBV_QP_INIT_ATTR_XRCD,4,2      ## @IBV_QP_INIT_ATTR_XRCD
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't create recv QP[%d] errno %d\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_IBV_QPS_INIT,8,3               ## @IBV_QPS_INIT
	.comm	_IBV_ACCESS_REMOTE_WRITE,4,2    ## @IBV_ACCESS_REMOTE_WRITE
	.comm	_IBV_ACCESS_REMOTE_READ,4,2     ## @IBV_ACCESS_REMOTE_READ
	.comm	_IBV_QP_STATE,4,2               ## @IBV_QP_STATE
	.comm	_IBV_QP_PKEY_INDEX,4,2          ## @IBV_QP_PKEY_INDEX
	.comm	_IBV_QP_PORT,4,2                ## @IBV_QP_PORT
	.comm	_IBV_QP_ACCESS_FLAGS,4,2        ## @IBV_QP_ACCESS_FLAGS
L_.str.1:                               ## @.str.1
	.asciz	"Failed to modify recv QP[%d] to INIT\n"

	.comm	_IBV_QPT_XRC_SEND,4,2           ## @IBV_QPT_XRC_SEND
	.comm	_IBV_QP_INIT_ATTR_PD,4,2        ## @IBV_QP_INIT_ATTR_PD
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't create send QP[%d] errno %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to modify send QP[%d] to INIT\n"

	.no_dead_strip	_create_qps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_qps
_create_qps:                            ; @create_qps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x20, _ctx@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ctx@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, #0
Lloh2:
	adrp	x23, _IBV_QPS_INIT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IBV_QPS_INIT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _IBV_QP_STATE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _IBV_QP_STATE@GOTPAGEOFF]
Lloh6:
	adrp	x27, _IBV_QP_PKEY_INDEX@GOTPAGE
Lloh7:
	ldr	x27, [x27, _IBV_QP_PKEY_INDEX@GOTPAGEOFF]
Lloh8:
	adrp	x28, _IBV_QP_PORT@GOTPAGE
Lloh9:
	ldr	x28, [x28, _IBV_QP_PORT@GOTPAGEOFF]
Lloh10:
	adrp	x24, _IBV_QP_ACCESS_FLAGS@GOTPAGE
Lloh11:
	ldr	x24, [x24, _IBV_QP_ACCESS_FLAGS@GOTPAGEOFF]
	mov	w21, #1
Lloh12:
	adrp	x22, _IBV_QP_INIT_ATTR_PD@GOTPAGE
Lloh13:
	ldr	x22, [x22, _IBV_QP_INIT_ATTR_PD@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #28
	bl	_memset
Lloh14:
	adrp	x8, _IBV_QPT_XRC_RECV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IBV_QPT_XRC_RECV@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x8]
Lloh17:
	adrp	x9, _IBV_QP_INIT_ATTR_XRCD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IBV_QP_INIT_ATTR_XRCD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w9, [sp, #36]
	ldr	w8, [x20, #40]
	stp	w10, w8, [sp, #52]
	ldr	w0, [x20, #20]
	add	x1, sp, #32
	bl	_ibv_create_qp_ex
	ldr	x8, [x20, #32]
	lsl	x25, x19, #3
	str	x0, [x8, x25]
	ldr	x8, [x20, #32]
	ldr	x9, [x8, x25]
	cbz	x9, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x23]
	stp	xzr, x9, [sp, #16]
Lloh20:
	adrp	x9, _IBV_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IBV_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _IBV_ACCESS_REMOTE_READ@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IBV_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x20, #16]
	stp	w9, w10, [sp, #8]
	ldr	x0, [x8, x19, lsl #3]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w2, w8, w9
	add	x1, sp, #8
	bl	_ibv_modify_qp
	cbnz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #28
	bl	_memset
Lloh26:
	adrp	x8, _IBV_QPT_XRC_SEND@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IBV_QPT_XRC_SEND@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x20, #28]
	stp	w9, w8, [sp, #48]
	ldp	w8, w9, [x20]
	mul	w8, w9, w8
	stp	w8, w21, [sp, #40]
	ldr	w8, [x22]
	ldp	w0, w9, [x20, #20]
	stp	w9, w8, [sp, #32]
	add	x1, sp, #32
	bl	_ibv_create_qp_ex
	ldr	x8, [x20, #8]
	str	x0, [x8, x25]
	ldr	x8, [x20, #8]
	ldr	x9, [x8, x25]
	cbz	x9, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x23]
	stp	xzr, x9, [sp, #16]
	ldr	w9, [x20, #16]
	stp	wzr, w9, [sp, #8]
	ldr	x0, [x8, x19, lsl #3]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w2, w8, w9
	add	x1, sp, #8
	bl	_ibv_modify_qp
	cbnz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x20]
	cmp	x19, x8
	b.lt	LBB0_2
LBB0_7:
	mov	w0, #0
	b	LBB0_13
LBB0_8:
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh37:
	adrp	x8, _stderr@GOTPAGE
Lloh38:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh42:
	adrp	x8, _stderr@GOTPAGE
Lloh43:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x8, _errno@GOTPAGE
Lloh46:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh48:
	adrp	x1, l_.str.2@PAGE
Lloh49:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh50:
	adrp	x8, _stderr@GOTPAGE
Lloh51:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x1, l_.str.3@PAGE
Lloh54:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x2, x19
	bl	_fprintf
	mov	w0, #1
LBB0_13:
	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
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx,48,3                       ; @ctx
	.comm	_IBV_QPT_XRC_RECV,4,2           ; @IBV_QPT_XRC_RECV
	.comm	_IBV_QP_INIT_ATTR_XRCD,4,2      ; @IBV_QP_INIT_ATTR_XRCD
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't create recv QP[%d] errno %d\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_IBV_QPS_INIT,8,3               ; @IBV_QPS_INIT
	.comm	_IBV_ACCESS_REMOTE_WRITE,4,2    ; @IBV_ACCESS_REMOTE_WRITE
	.comm	_IBV_ACCESS_REMOTE_READ,4,2     ; @IBV_ACCESS_REMOTE_READ
	.comm	_IBV_QP_STATE,4,2               ; @IBV_QP_STATE
	.comm	_IBV_QP_PKEY_INDEX,4,2          ; @IBV_QP_PKEY_INDEX
	.comm	_IBV_QP_PORT,4,2                ; @IBV_QP_PORT
	.comm	_IBV_QP_ACCESS_FLAGS,4,2        ; @IBV_QP_ACCESS_FLAGS
l_.str.1:                               ; @.str.1
	.asciz	"Failed to modify recv QP[%d] to INIT\n"

	.comm	_IBV_QPT_XRC_SEND,4,2           ; @IBV_QPT_XRC_SEND
	.comm	_IBV_QP_INIT_ATTR_PD,4,2        ; @IBV_QP_INIT_ATTR_PD
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't create send QP[%d] errno %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to modify send QP[%d] to INIT\n"

	.no_dead_strip	_create_qps
.subsections_via_symbols
