	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rping_run_server
_rping_run_server:                      ## @rping_run_server
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_rping_bind_server
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	leaq	24(%r14), %rdi
	callq	_sem_wait
	movq	(%r14), %rdx
	movq	_CONNECT_REQUEST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.3:
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_rping_setup_qp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_fprintf
	jmp	LBB0_19
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_fprintf
	movl	$-1, %ebx
	jmp	LBB0_19
LBB0_5:
	movq	%r14, %rdi
	callq	_rping_setup_buffers
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_fprintf
	jmp	LBB0_18
LBB0_7:
	movl	20(%r14), %edi
	leaq	16(%r14), %rsi
	leaq	-24(%rbp), %rdx
	callq	_ibv_post_recv
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_10:
	leaq	12(%r14), %rdi
	movq	_cq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_pthread_create
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	callq	_rping_accept
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_9:
	movl	%ebx, %edx
	callq	_fprintf
LBB0_17:
	movq	%r14, %rdi
	callq	_rping_free_buffers
LBB0_18:
	movq	%r14, %rdi
	callq	_rping_free_qp
LBB0_19:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	callq	_rping_test_server
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	callq	_fprintf
LBB0_16:
	movl	8(%r14), %edi
	callq	_rdma_disconnect
	movl	12(%r14), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	movl	8(%r14), %edi
	callq	_rdma_destroy_id
	jmp	LBB0_17
LBB0_11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_CONNECT_REQUEST,8,3            ## @CONNECT_REQUEST
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wait for CONNECT_REQUEST state %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"setup_qp failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"rping_setup_buffers failed: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"ibv_post_recv failed: %d\n"

	.comm	_cq_thread,4,2                  ## @cq_thread
L_.str.4:                               ## @.str.4
	.asciz	"pthread_create"

L_.str.5:                               ## @.str.5
	.asciz	"connect error %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"rping server failed: %d\n"

	.no_dead_strip	_rping_run_server
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rping_run_server
_rping_run_server:                      ; @rping_run_server
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	_rping_bind_server
	mov	x20, x0
	cbnz	w0, LBB0_15
; %bb.1:
	add	x0, x19, #24
	bl	_sem_wait
	ldr	x2, [x19]
Lloh0:
	adrp	x8, _CONNECT_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONNECT_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_rping_setup_qp
	cbz	w0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	b	LBB0_15
LBB0_4:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_fprintf
	mov	w20, #-1
	b	LBB0_15
LBB0_5:
	mov	x0, x19
	bl	_rping_setup_buffers
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	b	LBB0_14
LBB0_7:
	ldr	w0, [x19, #20]
	add	x1, x19, #16
	add	x2, sp, #8
	bl	_ibv_post_recv
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, x0
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_9:
	add	x0, x19, #12
Lloh23:
	adrp	x8, _cq_thread@GOTPAGE
Lloh24:
	ldr	x8, [x8, _cq_thread@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	cbnz	w0, LBB0_19
; %bb.10:
	mov	x0, x19
	bl	_rping_accept
	cbz	w0, LBB0_16
; %bb.11:
	mov	x20, x0
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_12:
	mov	x2, x20
	bl	_fprintf
LBB0_13:
	mov	x0, x19
	bl	_rping_free_buffers
LBB0_14:
	mov	x0, x19
	bl	_rping_free_qp
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_16:
	mov	x0, x19
	bl	_rping_test_server
	mov	x20, x0
	cbz	w0, LBB0_18
; %bb.17:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x20
	bl	_fprintf
LBB0_18:
	ldr	w0, [x19, #8]
	bl	_rdma_disconnect
	ldr	w0, [x19, #12]
	mov	x1, #0
	bl	_pthread_join
	ldr	w0, [x19, #8]
	bl	_rdma_destroy_id
	b	LBB0_13
LBB0_19:
	mov	x20, x0
Lloh36:
	adrp	x0, l_.str.4@PAGE
Lloh37:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_CONNECT_REQUEST,8,3            ; @CONNECT_REQUEST
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wait for CONNECT_REQUEST state %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"setup_qp failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"rping_setup_buffers failed: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"ibv_post_recv failed: %d\n"

	.comm	_cq_thread,4,2                  ; @cq_thread
l_.str.4:                               ; @.str.4
	.asciz	"pthread_create"

l_.str.5:                               ; @.str.5
	.asciz	"connect error %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"rping server failed: %d\n"

	.no_dead_strip	_rping_run_server
.subsections_via_symbols
