	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_server
_run_server:                            ## @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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_req_work@GOTPCREL(%rip), %rbx
	leaq	8(%rbx), %rdi
	callq	_INIT_LIST
	movq	_disc_work@GOTPCREL(%rip), %r15
	leaq	8(%r15), %rdi
	callq	_INIT_LIST
	addq	$4, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	addq	$4, %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	_req_work@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movq	_disc_work@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	movq	_req_handler_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:
	movq	_disc_handler_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:
	movq	_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_hints@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_rdma_create_id
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:
	movq	_src_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dst_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_port@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hints@GOTPCREL(%rip), %rcx
	movq	_rai@GOTPCREL(%rip), %rbx
	movq	%rbx, %r8
	callq	_get_rdma_addr
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.7(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	jmp	LBB0_21
LBB0_16:
	movq	-32(%rbp), %rdi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	_rdma_bind_addr
	testl	%eax, %eax
	jne	LBB0_17
## %bb.18:
	movq	-32(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_rdma_listen
	testl	%eax, %eax
	jne	LBB0_19
## %bb.20:
	xorl	%edi, %edi
	callq	_process_events
LBB0_21:
	movq	-32(%rbp), %rdi
	callq	_rdma_destroy_id
LBB0_22:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_22
LBB0_3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_22
LBB0_5:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	jmp	LBB0_22
LBB0_7:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	jmp	LBB0_22
LBB0_9:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	jmp	LBB0_22
LBB0_11:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rdi
	callq	_perror
	jmp	LBB0_22
LBB0_13:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rdi
	callq	_perror
	jmp	LBB0_22
LBB0_17:
	movl	%eax, %r14d
	leaq	L_.str.8(%rip), %rdi
	callq	_perror
	jmp	LBB0_21
LBB0_19:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rdi
	callq	_perror
	movl	%ebx, %r14d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_req_work,12,2                  ## @req_work
	.comm	_disc_work,12,2                 ## @disc_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"initializing mutex for req work"

L_.str.1:                               ## @.str.1
	.asciz	"initializing mutex for disc work"

L_.str.2:                               ## @.str.2
	.asciz	"initializing cond for req work"

L_.str.3:                               ## @.str.3
	.asciz	"initializing cond for disc work"

	.comm	_req_handler_thread,4,2         ## @req_handler_thread
L_.str.4:                               ## @.str.4
	.asciz	"failed to create req handler thread"

	.comm	_disc_handler_thread,4,2        ## @disc_handler_thread
L_.str.5:                               ## @.str.5
	.asciz	"failed to create disconnect handler thread"

	.comm	_channel,4,2                    ## @channel
	.comm	_hints,4,2                      ## @hints
L_.str.6:                               ## @.str.6
	.asciz	"listen request failed"

	.comm	_src_addr,4,2                   ## @src_addr
	.comm	_dst_addr,4,2                   ## @dst_addr
	.comm	_port,4,2                       ## @port
	.comm	_rai,8,3                        ## @rai
L_.str.7:                               ## @.str.7
	.asciz	"getrdmaaddr error: %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"bind address failed"

L_.str.9:                               ## @.str.9
	.asciz	"failure trying to listen"

	.no_dead_strip	_run_server
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_server
_run_server:                            ; @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
Lloh0:
	adrp	x19, _req_work@GOTPAGE
Lloh1:
	ldr	x19, [x19, _req_work@GOTPAGEOFF]
	add	x0, x19, #8
	bl	_INIT_LIST
Lloh2:
	adrp	x20, _disc_work@GOTPAGE
Lloh3:
	ldr	x20, [x20, _disc_work@GOTPAGEOFF]
	add	x0, x20, #8
	bl	_INIT_LIST
	add	x0, x19, #4
	mov	x1, #0
	bl	_pthread_mutex_init
	cbnz	w0, LBB0_14
; %bb.1:
	add	x0, x20, #4
	mov	x1, #0
	bl	_pthread_mutex_init
	cbnz	w0, LBB0_15
; %bb.2:
Lloh4:
	adrp	x0, _req_work@GOTPAGE
Lloh5:
	ldr	x0, [x0, _req_work@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_cond_init
	cbnz	w0, LBB0_16
; %bb.3:
Lloh6:
	adrp	x0, _disc_work@GOTPAGE
Lloh7:
	ldr	x0, [x0, _disc_work@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_cond_init
	cbnz	w0, LBB0_17
; %bb.4:
Lloh8:
	adrp	x8, _req_handler_thread@GOTPAGE
Lloh9:
	ldr	x8, [x8, _req_handler_thread@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
	cbnz	w0, LBB0_18
; %bb.5:
Lloh11:
	adrp	x8, _disc_handler_thread@GOTPAGE
Lloh12:
	ldr	x8, [x8, _disc_handler_thread@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
	cbnz	w0, LBB0_19
; %bb.6:
Lloh14:
	adrp	x8, _channel@GOTPAGE
Lloh15:
	ldr	x8, [x8, _channel@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _hints@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hints@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_rdma_create_id
	cbnz	w0, LBB0_20
; %bb.7:
Lloh20:
	adrp	x8, _src_addr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _src_addr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _dst_addr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _dst_addr@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _port@GOTPAGE
Lloh27:
	ldr	x8, [x8, _port@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x3, _hints@GOTPAGE
Lloh30:
	ldr	x3, [x3, _hints@GOTPAGEOFF]
Lloh31:
	adrp	x20, _rai@GOTPAGE
Lloh32:
	ldr	x20, [x20, _rai@GOTPAGEOFF]
	mov	x4, x20
	bl	_get_rdma_addr
	cbz	w0, LBB0_9
; %bb.8:
	mov	x19, x0
	bl	_gai_strerror
	mov	x1, x0
Lloh33:
	adrp	x0, l_.str.7@PAGE
Lloh34:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	b	LBB0_12
LBB0_9:
	ldr	x0, [sp]
	ldr	x8, [x20]
	ldr	w1, [x8]
	bl	_rdma_bind_addr
	cbnz	w0, LBB0_21
; %bb.10:
	ldr	x0, [sp]
	mov	w1, #0
	bl	_rdma_listen
	mov	x19, x0
	cbnz	w0, LBB0_22
; %bb.11:
	mov	x0, #0
	bl	_process_events
LBB0_12:
	ldr	x0, [sp]
	bl	_rdma_destroy_id
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_14:
	mov	x19, x0
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_13
LBB0_15:
	mov	x19, x0
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_13
LBB0_16:
	mov	x19, x0
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	b	LBB0_13
LBB0_17:
	mov	x19, x0
Lloh41:
	adrp	x0, l_.str.3@PAGE
Lloh42:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	b	LBB0_13
LBB0_18:
	mov	x19, x0
Lloh43:
	adrp	x0, l_.str.4@PAGE
Lloh44:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	b	LBB0_13
LBB0_19:
	mov	x19, x0
Lloh45:
	adrp	x0, l_.str.5@PAGE
Lloh46:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_perror
	b	LBB0_13
LBB0_20:
	mov	x19, x0
Lloh47:
	adrp	x0, l_.str.6@PAGE
Lloh48:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_perror
	b	LBB0_13
LBB0_21:
	mov	x19, x0
Lloh49:
	adrp	x0, l_.str.8@PAGE
Lloh50:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_perror
	b	LBB0_12
LBB0_22:
Lloh51:
	adrp	x0, l_.str.9@PAGE
Lloh52:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_perror
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_req_work,12,2                  ; @req_work
	.comm	_disc_work,12,2                 ; @disc_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"initializing mutex for req work"

l_.str.1:                               ; @.str.1
	.asciz	"initializing mutex for disc work"

l_.str.2:                               ; @.str.2
	.asciz	"initializing cond for req work"

l_.str.3:                               ; @.str.3
	.asciz	"initializing cond for disc work"

	.comm	_req_handler_thread,4,2         ; @req_handler_thread
l_.str.4:                               ; @.str.4
	.asciz	"failed to create req handler thread"

	.comm	_disc_handler_thread,4,2        ; @disc_handler_thread
l_.str.5:                               ; @.str.5
	.asciz	"failed to create disconnect handler thread"

	.comm	_channel,4,2                    ; @channel
	.comm	_hints,4,2                      ; @hints
l_.str.6:                               ; @.str.6
	.asciz	"listen request failed"

	.comm	_src_addr,4,2                   ; @src_addr
	.comm	_dst_addr,4,2                   ; @dst_addr
	.comm	_port,4,2                       ; @port
	.comm	_rai,8,3                        ; @rai
l_.str.7:                               ; @.str.7
	.asciz	"getrdmaaddr error: %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"bind address failed"

l_.str.9:                               ; @.str.9
	.asciz	"failure trying to listen"

	.no_dead_strip	_run_server
.subsections_via_symbols
