	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function test
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test:                                  ## @test
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_server@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_port@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_hints@GOTPCREL(%rip), %r15
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdx
	callq	_rdma_getaddrinfo
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	jmp	LBB0_16
LBB0_2:
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	$1, -64(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movaps	%xmm0, -80(%rbp)
	movq	-40(%rbp), %rsi
	movq	_id@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_rdma_create_ep
	movl	%eax, %ebx
	movq	-40(%rbp), %rdi
	callq	_rdma_freeaddrinfo
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.4:
	movq	(%r14), %rdi
	movq	_send_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_rdma_reg_msgs
	movq	_mr@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_rdma_connect
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	movq	(%r15), %rax
	movq	_IBV_QPT_XRC_SEND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_be32toh
	movq	_srqn@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	xorl	%eax, %eax
	callq	_post_send
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:
	movq	(%r14), %rdi
	leaq	-48(%rbp), %rsi
	callq	_rdma_get_send_comp
	testl	%eax, %eax
	jle	LBB0_13
## %bb.14:
	movq	(%r14), %rdi
	callq	_rdma_disconnect
	movl	(%r12), %edi
	callq	_rdma_dereg_mr
	movq	(%r14), %rdi
	callq	_rdma_destroy_ep
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_16
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	jmp	LBB0_15
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	jmp	LBB0_16
LBB0_11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	jmp	LBB0_16
LBB0_13:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	callq	_perror
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_server,4,2                     ## @server
	.comm	_port,4,2                       ## @port
	.comm	_hints,8,3                      ## @hints
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdma_getaddrinfo: %s\n"

	.comm	_id,8,3                         ## @id
L_.str.1:                               ## @.str.1
	.asciz	"rdma_create_ep"

	.comm	_send_msg,4,2                   ## @send_msg
	.comm	_mr,4,2                         ## @mr
L_.str.2:                               ## @.str.2
	.asciz	"rdma_reg_msgs"

L_.str.3:                               ## @.str.3
	.asciz	"rdma_connect"

	.comm	_IBV_QPT_XRC_SEND,8,3           ## @IBV_QPT_XRC_SEND
	.comm	_srqn,4,2                       ## @srqn
L_.str.4:                               ## @.str.4
	.asciz	"post_send"

L_.str.5:                               ## @.str.5
	.asciz	"rdma_get_recv_comp"

	.no_dead_strip	_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test
_test:                                  ; @test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _server@GOTPAGE
Lloh1:
	ldr	x8, [x8, _server@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _port@GOTPAGE
Lloh4:
	ldr	x8, [x8, _port@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x21, _hints@GOTPAGE
Lloh7:
	ldr	x21, [x21, _hints@GOTPAGEOFF]
	add	x3, sp, #40
	mov	x2, x21
	bl	_rdma_getaddrinfo
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_gai_strerror
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_11
LBB0_2:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	mov	w8, #1
	str	w8, [sp, #32]
	movi.4s	v0, #1
	str	q0, [sp, #16]
	ldr	x1, [sp, #40]
Lloh10:
	adrp	x19, _id@GOTPAGE
Lloh11:
	ldr	x19, [x19, _id@GOTPAGEOFF]
	add	x3, sp, #16
	mov	x0, x19
	mov	x2, #0
	bl	_rdma_create_ep
	mov	x20, x0
	ldr	x0, [sp, #40]
	bl	_rdma_freeaddrinfo
	cbnz	w20, LBB0_12
; %bb.3:
	ldr	x0, [x19]
Lloh12:
	adrp	x8, _send_msg@GOTPAGE
Lloh13:
	ldr	x8, [x8, _send_msg@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_rdma_reg_msgs
Lloh15:
	adrp	x22, _mr@GOTPAGE
Lloh16:
	ldr	x22, [x22, _mr@GOTPAGEOFF]
	str	w0, [x22]
	cbz	w0, LBB0_13
; %bb.4:
	ldr	x0, [x19]
	mov	x1, #0
	bl	_rdma_connect
	cbnz	w0, LBB0_14
; %bb.5:
	ldr	x8, [x21]
Lloh17:
	adrp	x9, _IBV_QPT_XRC_SEND@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IBV_QPT_XRC_SEND@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_be32toh
Lloh20:
	adrp	x8, _srqn@GOTPAGE
Lloh21:
	ldr	x8, [x8, _srqn@GOTPAGEOFF]
Lloh22:
	str	w0, [x8]
LBB0_7:
	bl	_post_send
	cbnz	w0, LBB0_15
; %bb.8:
	ldr	x0, [x19]
	add	x1, sp, #8
	bl	_rdma_get_send_comp
	cmp	w0, #0
	b.le	LBB0_16
; %bb.9:
	ldr	x0, [x19]
	bl	_rdma_disconnect
	ldr	w0, [x22]
	bl	_rdma_dereg_mr
	ldr	x0, [x19]
	bl	_rdma_destroy_ep
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_11
LBB0_13:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	b	LBB0_10
LBB0_14:
	mov	x20, x0
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	b	LBB0_11
LBB0_15:
	mov	x20, x0
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	b	LBB0_11
LBB0_16:
	mov	x20, x0
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_perror
	b	LBB0_11
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_server,4,2                     ; @server
	.comm	_port,4,2                       ; @port
	.comm	_hints,8,3                      ; @hints
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdma_getaddrinfo: %s\n"

	.comm	_id,8,3                         ; @id
l_.str.1:                               ; @.str.1
	.asciz	"rdma_create_ep"

	.comm	_send_msg,4,2                   ; @send_msg
	.comm	_mr,4,2                         ; @mr
l_.str.2:                               ; @.str.2
	.asciz	"rdma_reg_msgs"

l_.str.3:                               ; @.str.3
	.asciz	"rdma_connect"

	.comm	_IBV_QPT_XRC_SEND,8,3           ; @IBV_QPT_XRC_SEND
	.comm	_srqn,4,2                       ; @srqn
l_.str.4:                               ; @.str.4
	.asciz	"post_send"

l_.str.5:                               ; @.str.5
	.asciz	"rdma_get_recv_comp"

	.no_dead_strip	_test
.subsections_via_symbols
