	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_test@GOTPCREL(%rip), %r14
	movl	16(%r14), %edi
	movq	_hints@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdx
	callq	_rdma_create_id
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	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
	leaq	8(%r14), %r8
	movq	_hints@GOTPCREL(%rip), %rcx
	callq	_get_rdma_addr
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_26
LBB0_4:
	movq	-48(%rbp), %rdi
	movq	8(%r14), %rax
	movl	(%rax), %esi
	callq	_rdma_bind_addr
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_rdma_listen
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	callq	_connect_events
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_9
LBB0_26:
	movq	-48(%rbp), %rdi
	callq	_rdma_destroy_id
LBB0_27:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_message_count@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.10:
	leaq	L_str.13(%rip), %rdi
	callq	_puts
	movq	_connections@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_15
## %bb.11:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%r13, %rdi
	callq	_post_sends
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_15:
	leaq	L_str.14(%rip), %rdi
	callq	_puts
	movq	_SEND_CQ_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_poll_cqs
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_26
## %bb.16:
	leaq	L_str.15(%rip), %rdi
	callq	_puts
	movq	_RECV_CQ_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_poll_cqs
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_26
## %bb.17:
	leaq	L_str.16(%rip), %rdi
	callq	_puts
LBB0_18:
	movq	_migrate@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.19:
	movq	-48(%rbp), %rdi
	callq	_migrate_channel
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_26
LBB0_20:
	leaq	L_str.11(%rip), %rdi
	callq	_puts
	movq	_connections@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_25
## %bb.21:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_25
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	cmpq	$0, (%rcx,%rbx)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	$0, (%rcx,%rbx)
	movl	-8(%rcx,%rbx), %edi
	callq	_rdma_disconnect
	movl	(%r15), %eax
	jmp	LBB0_24
LBB0_1:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_27
LBB0_25:
	xorl	%eax, %eax
	callq	_disconnect_events
	movl	%eax, %r12d
	leaq	L_str.12(%rip), %rdi
	callq	_puts
	jmp	LBB0_26
LBB0_14:
	movl	%eax, %r12d
	jmp	LBB0_26
LBB0_5:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	jmp	LBB0_26
LBB0_7:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_test,24,3                      ## @test
	.comm	_hints,4,2                      ## @hints
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"cmatose: listen request failed"

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

L_.str.3:                               ## @.str.3
	.asciz	"cmatose: bind address failed"

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

	.comm	_message_count,8,3              ## @message_count
	.comm	_connections,4,2                ## @connections
	.comm	_SEND_CQ_INDEX,4,2              ## @SEND_CQ_INDEX
	.comm	_RECV_CQ_INDEX,4,2              ## @RECV_CQ_INDEX
	.comm	_migrate,8,3                    ## @migrate
L_str:                                  ## @str
	.asciz	"cmatose: starting server"

L_str.11:                               ## @str.11
	.asciz	"cmatose: disconnecting"

L_str.12:                               ## @str.12
	.asciz	"disconnected"

L_str.13:                               ## @str.13
	.asciz	"initiating data transfers"

L_str.14:                               ## @str.14
	.asciz	"completing sends"

L_str.15:                               ## @str.15
	.asciz	"receiving data transfers"

L_str.16:                               ## @str.16
	.asciz	"data transfers complete"

	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x19, _test@GOTPAGE
Lloh3:
	ldr	x19, [x19, _test@GOTPAGEOFF]
	ldr	w0, [x19, #16]
Lloh4:
	adrp	x8, _hints@GOTPAGE
Lloh5:
	ldr	x8, [x8, _hints@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x2, x19
	bl	_rdma_create_id
	cbnz	w0, LBB0_23
; %bb.1:
Lloh7:
	adrp	x8, _src_addr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _src_addr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _dst_addr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dst_addr@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _port@GOTPAGE
Lloh14:
	ldr	x8, [x8, _port@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x3, _hints@GOTPAGE
Lloh17:
	ldr	x3, [x3, _hints@GOTPAGEOFF]
	add	x4, x19, #8
	bl	_get_rdma_addr
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
	bl	_gai_strerror
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_6
LBB0_3:
	ldr	x0, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_rdma_bind_addr
	cbnz	w0, LBB0_26
; %bb.4:
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_rdma_listen
	cbnz	w0, LBB0_27
; %bb.5:
	bl	_connect_events
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_rdma_destroy_id
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh20:
	adrp	x8, _message_count@GOTPAGE
Lloh21:
	ldr	x8, [x8, _message_count@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.9:
Lloh23:
	adrp	x0, l_str.13@PAGE
Lloh24:
	add	x0, x0, l_str.13@PAGEOFF
	bl	_puts
Lloh25:
	adrp	x21, _connections@GOTPAGE
Lloh26:
	ldr	x21, [x21, _connections@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x22, #0
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x22
	bl	_post_sends
	cbnz	w0, LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #16
	cmp	x23, x8
	b.lt	LBB0_11
LBB0_13:
Lloh27:
	adrp	x0, l_str.14@PAGE
Lloh28:
	add	x0, x0, l_str.14@PAGEOFF
	bl	_puts
Lloh29:
	adrp	x8, _SEND_CQ_INDEX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SEND_CQ_INDEX@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_poll_cqs
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.14:
Lloh32:
	adrp	x0, l_str.15@PAGE
Lloh33:
	add	x0, x0, l_str.15@PAGEOFF
	bl	_puts
Lloh34:
	adrp	x8, _RECV_CQ_INDEX@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RECV_CQ_INDEX@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_poll_cqs
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.15:
Lloh37:
	adrp	x0, l_str.16@PAGE
Lloh38:
	add	x0, x0, l_str.16@PAGEOFF
	bl	_puts
LBB0_16:
Lloh39:
	adrp	x8, _migrate@GOTPAGE
Lloh40:
	ldr	x8, [x8, _migrate@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x0, [sp, #8]
	bl	_migrate_channel
	mov	x20, x0
	cbnz	w0, LBB0_6
LBB0_18:
Lloh42:
	adrp	x0, l_str.11@PAGE
Lloh43:
	add	x0, x0, l_str.11@PAGEOFF
	bl	_puts
Lloh44:
	adrp	x20, _connections@GOTPAGE
Lloh45:
	ldr	x20, [x20, _connections@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.19:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, w8, sxtw
	b.ge	LBB0_24
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	add	x10, x9, x21
	ldr	x11, [x10, #8]
	cbz	x11, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	str	xzr, [x10, #8]
	ldr	w0, [x9, x21]
	bl	_rdma_disconnect
	ldr	w8, [x20]
	b	LBB0_20
LBB0_23:
	mov	x20, x0
Lloh46:
	adrp	x0, l_.str.1@PAGE
Lloh47:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_7
LBB0_24:
	bl	_disconnect_events
	mov	x20, x0
Lloh48:
	adrp	x0, l_str.12@PAGE
Lloh49:
	add	x0, x0, l_str.12@PAGEOFF
	bl	_puts
	b	LBB0_6
LBB0_25:
	mov	x20, x0
	b	LBB0_6
LBB0_26:
	mov	x20, x0
Lloh50:
	adrp	x0, l_.str.3@PAGE
Lloh51:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	b	LBB0_6
LBB0_27:
	mov	x20, x0
Lloh52:
	adrp	x0, l_.str.4@PAGE
Lloh53:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_test,24,3                      ; @test
	.comm	_hints,4,2                      ; @hints
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"cmatose: listen request failed"

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

l_.str.3:                               ; @.str.3
	.asciz	"cmatose: bind address failed"

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

	.comm	_message_count,8,3              ; @message_count
	.comm	_connections,4,2                ; @connections
	.comm	_SEND_CQ_INDEX,4,2              ; @SEND_CQ_INDEX
	.comm	_RECV_CQ_INDEX,4,2              ; @RECV_CQ_INDEX
	.comm	_migrate,8,3                    ; @migrate
l_str:                                  ; @str
	.asciz	"cmatose: starting server"

l_str.11:                               ; @str.11
	.asciz	"cmatose: disconnecting"

l_str.12:                               ; @str.12
	.asciz	"disconnected"

l_str.13:                               ; @str.13
	.asciz	"initiating data transfers"

l_str.14:                               ; @str.14
	.asciz	"completing sends"

l_str.15:                               ; @str.15
	.asciz	"receiving data transfers"

l_str.16:                               ; @str.16
	.asciz	"data transfers complete"

	.no_dead_strip	_run_server
.subsections_via_symbols
