	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_init_ctx
_pp_init_ctx:                           ## @pp_init_ctx
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_ctx@GOTPCREL(%rip), %r14
	movl	40(%r14), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r13
	movq	%rax, 112(%r14)
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r12
	movq	%rax, 104(%r14)
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 96(%r14)
	testq	%r13, %r13
	je	LBB0_37
## %bb.1:
	testq	%r12, %r12
	je	LBB0_37
## %bb.2:
	testq	%rax, %rax
	je	LBB0_37
## %bb.3:
	movq	%r15, %rdi
	callq	_open_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_36
LBB0_6:
	movl	12(%r14), %edi
	movl	92(%r14), %esi
	leaq	-56(%rbp), %rdx
	callq	_pp_get_port_info
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_36
LBB0_10:
	movl	-48(%rbp), %eax
	movl	%eax, 88(%r14)
	movq	-56(%rbp), %rcx
	movq	_IBV_LINK_LAYER_ETHERNET@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_13
## %bb.11:
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_36
LBB0_13:
	movq	_page_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_memalign
	movq	%rax, 80(%r14)
	testq	%rax, %rax
	je	LBB0_25
## %bb.14:
	movl	(%r14), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpq	$0, 56(%r14)
	je	LBB0_16
## %bb.15:
	movl	12(%r14), %edi
	callq	_ibv_create_comp_channel
	movq	%rax, 64(%r14)
	testq	%rax, %rax
	je	LBB0_27
LBB0_16:
	movl	12(%r14), %edi
	callq	_ibv_alloc_pd
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_26
## %bb.17:
	movq	80(%r14), %rsi
	movl	(%r14), %edx
	movq	_IBV_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	callq	_ibv_reg_mr
	movl	%eax, 72(%r14)
	testl	%eax, %eax
	je	LBB0_28
## %bb.18:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	(%rax), %esi
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IRGRP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	L_.str.7(%rip), %rdi
	callq	_open
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	jns	LBB0_20
## %bb.19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$-1, 4(%r14)
LBB0_20:
	leaq	-168(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_IBV_XRCD_INIT_ATTR_FD@GOTPCREL(%rip), %rax
	movq	_IBV_XRCD_INIT_ATTR_OFLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -168(%rbp)
	movl	4(%r14), %eax
	movl	12(%r14), %edi
	movl	%eax, -164(%rbp)
	movl	(%r15), %eax
	movl	%eax, -160(%rbp)
	movq	%rbx, %rsi
	callq	_ibv_open_xrcd
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_29
## %bb.21:
	movl	12(%r14), %edi
	movl	40(%r14), %esi
	movq	64(%r14), %rcx
	leaq	24(%r14), %rdx
	xorl	%r8d, %r8d
	callq	_ibv_create_cq
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_33
## %bb.22:
	cmpq	$0, 56(%r14)
	je	LBB0_30
## %bb.23:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ibv_req_notify_cq
	testq	%rax, %rax
	je	LBB0_30
## %bb.24:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_36
LBB0_25:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_36
LBB0_26:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_36
LBB0_27:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_36
LBB0_28:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_36
LBB0_29:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_37
LBB0_30:
	movl	12(%r14), %edi
	movl	40(%r14), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ibv_create_cq
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_34
## %bb.31:
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	40(%r14), %eax
	movl	%eax, -64(%rbp)
	movq	_IBV_SRQ_INIT_ATTR_TYPE@GOTPCREL(%rip), %rax
	movq	_IBV_SRQ_INIT_ATTR_XRCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$1, -68(%rbp)
	movq	_IBV_SRQ_INIT_ATTR_CQ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IBV_SRQ_INIT_ATTR_PD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -112(%rbp)
	movq	_IBV_SRQT_XRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	32(%r14), %rax
	movq	%rax, -80(%rbp)
	movups	16(%r14), %xmm0
	movups	%xmm0, -96(%rbp)
	movl	12(%r14), %edi
	movq	%rbx, %rsi
	callq	_ibv_create_srq_ex
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_35
## %bb.32:
	xorl	%eax, %eax
	callq	_create_qps
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	jmp	LBB0_38
LBB0_33:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_36
LBB0_34:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_36
LBB0_35:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.13(%rip), %rsi
LBB0_36:
	xorl	%eax, %eax
	callq	_fprintf
LBB0_37:
	movl	$1, %ecx
LBB0_38:
	movl	%ecx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,120,3                      ## @ctx
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to open device\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get port info\n"

	.comm	_IBV_LINK_LAYER_ETHERNET,8,3    ## @IBV_LINK_LAYER_ETHERNET
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't get local LID\n"

	.comm	_page_size,4,2                  ## @page_size
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't allocate work buf.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Couldn't create completion channel\n"

L_.str.5:                               ## @.str.5
	.asciz	"Couldn't allocate PD\n"

	.comm	_IBV_ACCESS_LOCAL_WRITE,4,2     ## @IBV_ACCESS_LOCAL_WRITE
L_.str.6:                               ## @.str.6
	.asciz	"Couldn't register MR\n"

L_.str.7:                               ## @.str.7
	.asciz	"/tmp/xrc_domain"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IRGRP,4,2                    ## @S_IRGRP
L_.str.8:                               ## @.str.8
	.asciz	"Couldn't create the file for the XRC Domain but not stopping %d\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_IBV_XRCD_INIT_ATTR_FD,4,2      ## @IBV_XRCD_INIT_ATTR_FD
	.comm	_IBV_XRCD_INIT_ATTR_OFLAGS,4,2  ## @IBV_XRCD_INIT_ATTR_OFLAGS
L_.str.9:                               ## @.str.9
	.asciz	"Couldn't Open the XRC Domain %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"Couldn't create recv CQ\n"

L_.str.11:                              ## @.str.11
	.asciz	"Couldn't request CQ notification\n"

L_.str.12:                              ## @.str.12
	.asciz	"Couldn't create send CQ\n"

	.comm	_IBV_SRQ_INIT_ATTR_TYPE,4,2     ## @IBV_SRQ_INIT_ATTR_TYPE
	.comm	_IBV_SRQ_INIT_ATTR_XRCD,4,2     ## @IBV_SRQ_INIT_ATTR_XRCD
	.comm	_IBV_SRQ_INIT_ATTR_CQ,4,2       ## @IBV_SRQ_INIT_ATTR_CQ
	.comm	_IBV_SRQ_INIT_ATTR_PD,4,2       ## @IBV_SRQ_INIT_ATTR_PD
	.comm	_IBV_SRQT_XRC,4,2               ## @IBV_SRQT_XRC
L_.str.13:                              ## @.str.13
	.asciz	"Couldn't create SRQ\n"

	.no_dead_strip	_pp_init_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pp_init_ctx
_pp_init_ctx:                           ; @pp_init_ctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x0
Lloh0:
	adrp	x24, _ctx@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ctx@GOTPAGEOFF]
	ldr	w21, [x24, #40]
	mov	w19, #1
	mov	x0, x21
	mov	w1, #1
	bl	_calloc
	mov	x22, x0
	str	x0, [x24, #112]
	mov	x0, x21
	mov	w1, #1
	bl	_calloc
	mov	x23, x0
	str	x0, [x24, #104]
	mov	x0, x21
	mov	w1, #1
	bl	_calloc
	str	x0, [x24, #96]
	cmp	x22, #0
	ccmp	x23, #0, #4, ne
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_31
; %bb.1:
	mov	x0, x20
	bl	_open_device
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_30
LBB0_3:
	ldr	w0, [x24, #12]
	ldr	w1, [x24, #92]
	add	x2, sp, #16
	bl	_pp_get_port_info
	cbz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_30
LBB0_5:
	ldr	w8, [sp, #24]
	str	w8, [x24, #88]
	ldr	x9, [sp, #16]
Lloh12:
	adrp	x10, _IBV_LINK_LAYER_ETHERNET@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IBV_LINK_LAYER_ETHERNET@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_18
; %bb.6:
Lloh15:
	adrp	x8, _page_size@GOTPAGE
Lloh16:
	ldr	x8, [x8, _page_size@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x24]
	bl	_memalign
	str	x0, [x24, #80]
	cbz	x0, LBB0_19
; %bb.7:
	ldr	w2, [x24]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x24, #56]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x24, #12]
	bl	_ibv_create_comp_channel
	str	x0, [x24, #64]
	cbz	x0, LBB0_21
LBB0_9:
	ldr	w0, [x24, #12]
	bl	_ibv_alloc_pd
	str	x0, [x24, #16]
	cbz	x0, LBB0_20
; %bb.10:
	ldr	x1, [x24, #80]
	ldr	w2, [x24]
Lloh18:
	adrp	x8, _IBV_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IBV_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	bl	_ibv_reg_mr
	str	w0, [x24, #72]
	cbz	w0, LBB0_22
; %bb.11:
Lloh21:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x19, _O_CREAT@GOTPAGE
Lloh25:
	ldr	x19, [x19, _O_CREAT@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh26:
	adrp	x10, _S_IRUSR@GOTPAGE
Lloh27:
	ldr	x10, [x10, _S_IRUSR@GOTPAGEOFF]
	orr	w1, w9, w8
Lloh28:
	ldr	w8, [x10]
Lloh29:
	adrp	x9, _S_IRGRP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _S_IRGRP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh32:
	adrp	x0, l_.str.7@PAGE
Lloh33:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_open
	str	w0, [x24, #4]
	tbz	w0, #31, LBB0_13
; %bb.12:
Lloh34:
	adrp	x8, _stderr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _errno@GOTPAGE
Lloh38:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
	mov	w8, #-1
	str	w8, [x24, #4]
LBB0_13:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh42:
	adrp	x8, _IBV_XRCD_INIT_ATTR_FD@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IBV_XRCD_INIT_ATTR_FD@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _IBV_XRCD_INIT_ATTR_OFLAGS@GOTPAGE
Lloh46:
	ldr	x9, [x9, _IBV_XRCD_INIT_ATTR_OFLAGS@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x24, #4]
	stp	w8, w9, [sp, #32]
	ldr	w8, [x19]
	str	w8, [sp, #40]
	ldr	w0, [x24, #12]
	add	x1, sp, #32
	bl	_ibv_open_xrcd
	str	x0, [x24, #32]
	cbz	x0, LBB0_23
; %bb.14:
	ldr	w0, [x24, #12]
	ldr	w1, [x24, #40]
	ldr	x3, [x24, #64]
	add	x2, x24, #24
	mov	w4, #0
	bl	_ibv_create_cq
	str	x0, [x24, #24]
	cbz	x0, LBB0_27
; %bb.15:
	ldr	x8, [x24, #56]
	cbz	x8, LBB0_24
; %bb.16:
	mov	w1, #0
	bl	_ibv_req_notify_cq
	cbz	x0, LBB0_24
; %bb.17:
Lloh48:
	adrp	x8, _stderr@GOTPAGE
Lloh49:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
Lloh51:
	adrp	x1, l_.str.11@PAGE
Lloh52:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_30
LBB0_18:
Lloh53:
	adrp	x8, _stderr@GOTPAGE
Lloh54:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
Lloh56:
	adrp	x1, l_.str.2@PAGE
Lloh57:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_30
LBB0_19:
Lloh58:
	adrp	x8, _stderr@GOTPAGE
Lloh59:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
Lloh61:
	adrp	x1, l_.str.3@PAGE
Lloh62:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_30
LBB0_20:
Lloh63:
	adrp	x8, _stderr@GOTPAGE
Lloh64:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
Lloh66:
	adrp	x1, l_.str.5@PAGE
Lloh67:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_30
LBB0_21:
Lloh68:
	adrp	x8, _stderr@GOTPAGE
Lloh69:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
Lloh71:
	adrp	x1, l_.str.4@PAGE
Lloh72:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_30
LBB0_22:
Lloh73:
	adrp	x8, _stderr@GOTPAGE
Lloh74:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh75:
	ldr	w0, [x8]
Lloh76:
	adrp	x1, l_.str.6@PAGE
Lloh77:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_30
LBB0_23:
Lloh78:
	adrp	x8, _stderr@GOTPAGE
Lloh79:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh80:
	ldr	w0, [x8]
Lloh81:
	adrp	x8, _errno@GOTPAGE
Lloh82:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh84:
	adrp	x1, l_.str.9@PAGE
Lloh85:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_30
LBB0_24:
	ldr	w0, [x24, #12]
	ldr	w1, [x24, #40]
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_ibv_create_cq
	str	x0, [x24, #48]
	cbz	x0, LBB0_28
; %bb.25:
	add	x0, sp, #88
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	w8, [x24, #40]
	str	w8, [sp, #136]
Lloh86:
	adrp	x8, _IBV_SRQ_INIT_ATTR_TYPE@GOTPAGE
Lloh87:
	ldr	x8, [x8, _IBV_SRQ_INIT_ATTR_TYPE@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
Lloh89:
	adrp	x9, _IBV_SRQ_INIT_ATTR_XRCD@GOTPAGE
Lloh90:
	ldr	x9, [x9, _IBV_SRQ_INIT_ATTR_XRCD@GOTPAGEOFF]
Lloh91:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh92:
	adrp	x9, _IBV_SRQ_INIT_ATTR_CQ@GOTPAGE
Lloh93:
	ldr	x9, [x9, _IBV_SRQ_INIT_ATTR_CQ@GOTPAGEOFF]
Lloh94:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh95:
	adrp	x9, _IBV_SRQ_INIT_ATTR_PD@GOTPAGE
Lloh96:
	ldr	x9, [x9, _IBV_SRQ_INIT_ATTR_PD@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	w9, #1
	str	w8, [sp, #88]
Lloh98:
	adrp	x8, _IBV_SRQT_XRC@GOTPAGE
Lloh99:
	ldr	x8, [x8, _IBV_SRQT_XRC@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
	stp	w8, w9, [sp, #128]
	ldr	x8, [x24, #32]
	str	x8, [sp, #120]
	ldr	q0, [x24, #16]
	stur	q0, [sp, #104]
	ldr	w0, [x24, #12]
	add	x1, sp, #88
	bl	_ibv_create_srq_ex
	str	w0, [x24, #8]
	cbz	w0, LBB0_29
; %bb.26:
	bl	_create_qps
	cmp	x0, #0
	cset	w19, ne
	b	LBB0_31
LBB0_27:
Lloh101:
	adrp	x8, _stderr@GOTPAGE
Lloh102:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh103:
	ldr	w0, [x8]
Lloh104:
	adrp	x1, l_.str.10@PAGE
Lloh105:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_30
LBB0_28:
Lloh106:
	adrp	x8, _stderr@GOTPAGE
Lloh107:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh108:
	ldr	w0, [x8]
Lloh109:
	adrp	x1, l_.str.12@PAGE
Lloh110:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_30
LBB0_29:
Lloh111:
	adrp	x8, _stderr@GOTPAGE
Lloh112:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh113:
	ldr	w0, [x8]
Lloh114:
	adrp	x1, l_.str.13@PAGE
Lloh115:
	add	x1, x1, l_.str.13@PAGEOFF
LBB0_30:
	bl	_fprintf
	mov	w19, #1
LBB0_31:
	mov	x0, x19
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx,120,3                      ; @ctx
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to open device\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get port info\n"

	.comm	_IBV_LINK_LAYER_ETHERNET,8,3    ; @IBV_LINK_LAYER_ETHERNET
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't get local LID\n"

	.comm	_page_size,4,2                  ; @page_size
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't allocate work buf.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Couldn't create completion channel\n"

l_.str.5:                               ; @.str.5
	.asciz	"Couldn't allocate PD\n"

	.comm	_IBV_ACCESS_LOCAL_WRITE,4,2     ; @IBV_ACCESS_LOCAL_WRITE
l_.str.6:                               ; @.str.6
	.asciz	"Couldn't register MR\n"

l_.str.7:                               ; @.str.7
	.asciz	"/tmp/xrc_domain"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IRGRP,4,2                    ; @S_IRGRP
l_.str.8:                               ; @.str.8
	.asciz	"Couldn't create the file for the XRC Domain but not stopping %d\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_IBV_XRCD_INIT_ATTR_FD,4,2      ; @IBV_XRCD_INIT_ATTR_FD
	.comm	_IBV_XRCD_INIT_ATTR_OFLAGS,4,2  ; @IBV_XRCD_INIT_ATTR_OFLAGS
l_.str.9:                               ; @.str.9
	.asciz	"Couldn't Open the XRC Domain %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"Couldn't create recv CQ\n"

l_.str.11:                              ; @.str.11
	.asciz	"Couldn't request CQ notification\n"

l_.str.12:                              ; @.str.12
	.asciz	"Couldn't create send CQ\n"

	.comm	_IBV_SRQ_INIT_ATTR_TYPE,4,2     ; @IBV_SRQ_INIT_ATTR_TYPE
	.comm	_IBV_SRQ_INIT_ATTR_XRCD,4,2     ; @IBV_SRQ_INIT_ATTR_XRCD
	.comm	_IBV_SRQ_INIT_ATTR_CQ,4,2       ; @IBV_SRQ_INIT_ATTR_CQ
	.comm	_IBV_SRQ_INIT_ATTR_PD,4,2       ; @IBV_SRQ_INIT_ATTR_PD
	.comm	_IBV_SRQT_XRC,4,2               ; @IBV_SRQT_XRC
l_.str.13:                              ; @.str.13
	.asciz	"Couldn't create SRQ\n"

	.no_dead_strip	_pp_init_ctx
.subsections_via_symbols
