	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rping_persistent_server_thread
_rping_persistent_server_thread:        ## @rping_persistent_server_thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %esi
	callq	_rping_setup_qp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_fprintf
	jmp	LBB0_12
LBB0_2:
	movq	%rbx, %rdi
	callq	_rping_setup_buffers
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_fprintf
	jmp	LBB0_11
LBB0_4:
	movl	12(%rbx), %edi
	leaq	8(%rbx), %rsi
	leaq	-16(%rbp), %rdx
	callq	_ibv_post_recv
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_fprintf
	jmp	LBB0_10
LBB0_6:
	movq	_cq_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_pthread_create
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_rping_accept
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	callq	_fprintf
	movl	(%rbx), %edi
	callq	_pthread_cancel
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_pthread_join
LBB0_10:
	movq	%rbx, %rdi
	callq	_rping_free_buffers
LBB0_11:
	movq	%rbx, %rdi
	callq	_rping_free_qp
LBB0_12:
	movq	%rbx, %rdi
	callq	_free_cb
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	movq	%rbx, %rdi
	callq	_rping_test_server
	movl	4(%rbx), %edi
	callq	_rdma_disconnect
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	movq	%rbx, %rdi
	callq	_rping_free_buffers
	movq	%rbx, %rdi
	callq	_rping_free_qp
	movl	4(%rbx), %edi
	callq	_rdma_destroy_id
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setup_qp failed: %d\n"

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

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

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

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

	.no_dead_strip	_rping_persistent_server_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rping_persistent_server_thread
_rping_persistent_server_thread:        ; @rping_persistent_server_thread
	.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
	ldr	w1, [x0, #4]
	bl	_rping_setup_qp
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_rping_setup_buffers
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	b	LBB0_10
LBB0_4:
	ldr	w0, [x19, #12]
	add	x1, x19, #8
	add	x2, sp, #8
	bl	_ibv_post_recv
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x8, _cq_thread@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cq_thread@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	cbnz	w0, LBB0_13
; %bb.7:
	mov	x0, x19
	bl	_rping_accept
	cbz	w0, LBB0_12
; %bb.8:
	mov	x2, x0
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
	bl	_pthread_cancel
	ldr	w0, [x19]
	mov	x1, #0
	bl	_pthread_join
LBB0_9:
	mov	x0, x19
	bl	_rping_free_buffers
LBB0_10:
	mov	x0, x19
	bl	_rping_free_qp
LBB0_11:
	mov	x0, x19
	bl	_free_cb
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
	mov	x0, x19
	bl	_rping_test_server
	ldr	w0, [x19, #4]
	bl	_rdma_disconnect
	ldr	w0, [x19]
	mov	x1, #0
	bl	_pthread_join
	mov	x0, x19
	bl	_rping_free_buffers
	mov	x0, x19
	bl	_rping_free_qp
	ldr	w0, [x19, #4]
	bl	_rdma_destroy_id
	b	LBB0_11
LBB0_13:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setup_qp failed: %d\n"

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

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

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

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

	.no_dead_strip	_rping_persistent_server_thread
.subsections_via_symbols
