	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_handler
_connect_handler:                       ## @connect_handler
	.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
	movq	%rdi, %r14
	movq	_test@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_connections@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	16(%r13), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%r13)
	shlq	$4, %rax
	leaq	(%rcx,%rax), %r15
	leaq	(%rcx,%rax), %r12
	addq	$8, %r12
	movq	%r14, 8(%rcx,%rax)
	movq	%r15, 8(%r14)
	movq	%r15, %rdi
	callq	_verify_test_params
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_init_node
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_post_recvs
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	$0, (%r12)
	xorl	%eax, %eax
	callq	_connect_error
LBB0_8:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_rdma_reject
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-48(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_rdma_accept
	testl	%eax, %eax
	jne	LBB0_6
## %bb.10:
	movl	$1, (%r15)
	decl	8(%r13)
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %ebx
	callq	_perror
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_test,24,3                      ## @test
	.comm	_connections,8,3                ## @connections
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"udaddy: failure accepting"

L_str:                                  ## @str
	.asciz	"udaddy: failing connection request"

	.no_dead_strip	_connect_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_handler
_connect_handler:                       ; @connect_handler
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _test@GOTPAGE
Lloh1:
	ldr	x22, [x22, _test@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _connections@GOTPAGE
Lloh3:
	ldr	x9, [x9, _connections@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_2:
	ldr	x9, [x22, #16]
	add	x10, x8, #1
	str	x10, [x22]
	add	x21, x9, x8, lsl #4
	mov	x23, x21
	str	x19, [x23, #8]!
	str	x21, [x19, #8]
	mov	x0, x21
	bl	_verify_test_params
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_init_node
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_post_recvs
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_5:
	str	xzr, [x23]
	bl	_connect_error
LBB0_6:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_rdma_reject
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:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x0, [x23]
	ldr	x8, [x0]
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	bl	_rdma_accept
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [x22, #8]
	sub	w8, w8, #1
	str	w8, [x22, #8]
	b	LBB0_7
LBB0_10:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_test,24,3                      ; @test
	.comm	_connections,8,3                ; @connections
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"udaddy: failure accepting"

l_str:                                  ; @str
	.asciz	"udaddy: failing connection request"

	.no_dead_strip	_connect_handler
.subsections_via_symbols
