	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reflect_conn
_reflect_conn:                          ## @reflect_conn
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	testl	%ecx, %ecx
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.1:
	cmpl	$-1, %r14d
	jne	LBB0_4
## %bb.2:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_4
LBB0_3:
	movq	_EX_NOINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movslq	%r14d, %rbx
	leaq	-1(%r15), %rax
	cmpq	%rbx, %rax
	jae	LBB0_6
## %bb.5:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	movb	$0, -1(%rbx,%r12)
	movq	_accepts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_nostart@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jne	LBB0_13
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EX_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_9:
	cmpl	$7, %r14d
	jg	LBB0_11
## %bb.10:
	movq	_EX_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_11:
	leaq	6(%r12), %r13
	movq	_testcase@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_EX_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	movq	_debug@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jle	LBB0_15
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_testcase@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rcx
	callq	_fprintf
LBB0_15:
	movq	_reflectfib@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	$-1, %rcx
	je	LBB0_17
## %bb.16:
	leaq	L_.str.8(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snprintf
	movl	%eax, %r14d
LBB0_17:
	cmpq	$0, (%r13)
	movslq	%r14d, %rbx
	jle	LBB0_19
## %bb.18:
	movb	$0, -1(%r12,%rbx)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_testcase@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rcx
	callq	_fprintf
LBB0_19:
	movb	$10, -1(%r12,%rbx)
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	testq	%r8, %r8
	je	LBB0_23
## %bb.20:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_sendto
	cmpl	$-1, %eax
	jne	LBB0_24
## %bb.21:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.22:
	leaq	L_.str.10(%rip), %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_warn
	jmp	LBB0_27
LBB0_23:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_write
	cmpl	$-1, %eax
	je	LBB0_26
LBB0_24:
	cmpl	%r14d, %eax
	movq	_accepts@GOTPCREL(%rip), %rbx
	je	LBB0_28
## %bb.25:
	movq	_EX_OSERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.12(%rip), %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_28
LBB0_26:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_err
LBB0_27:
	movq	_accepts@GOTPCREL(%rip), %rbx
LBB0_28:
	incq	(%rbx)
	leaq	L_.str.13(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_strncmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx), %eax
	addl	$-2, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read()"

	.comm	_EX_NOINPUT,4,2                 ## @EX_NOINPUT
L_.str.1:                               ## @.str.1
	.asciz	"EOF"

	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
L_.str.2:                               ## @.str.2
	.asciz	"Input too long"

	.comm	_accepts,8,3                    ## @accepts
	.comm	_nostart,8,3                    ## @nostart
L_.str.3:                               ## @.str.3
	.asciz	"START "

	.comm	_EX_PROTOCOL,4,2                ## @EX_PROTOCOL
L_.str.4:                               ## @.str.4
	.asciz	"Not received START on first connect: %s"

L_.str.5:                               ## @.str.5
	.asciz	"START without test case name: %s"

	.comm	_testcase,8,3                   ## @testcase
L_.str.6:                               ## @.str.6
	.asciz	"START test case does not match '%s': '%s'"

	.comm	_debug,8,3                      ## @debug
	.comm	_stderr,4,2                     ## @stderr
L_.str.7:                               ## @.str.7
	.asciz	"<< %s: %s\n"

	.comm	_reflectfib,8,3                 ## @reflectfib
L_.str.8:                               ## @.str.8
	.asciz	"FIB %u\n"

L_.str.9:                               ## @.str.9
	.asciz	">> %s: %s\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EHOSTUNREACH,8,3               ## @EHOSTUNREACH
L_.str.10:                              ## @.str.10
	.asciz	"ignored expected: sendto(%s, %zd)"

L_.str.11:                              ## @.str.11
	.asciz	"write(%s, %zd)"

L_.str.12:                              ## @.str.12
	.asciz	"short write(%s, %zd) %zd"

L_.str.13:                              ## @.str.13
	.asciz	"DONE"

	.no_dead_strip	_reflect_conn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reflect_conn
_reflect_conn:                          ; @reflect_conn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x22, x4
	mov	x20, x3
	mov	x24, x2
	mov	x19, x1
	mov	x23, x0
	cbz	w3, LBB0_3
; %bb.1:
	cmn	w20, #1
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EX_NOINPUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EX_NOINPUT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
LBB0_4:
	sub	x8, x24, #1
	cmp	x8, w20, sxtw
	b.hs	LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
LBB0_6:
	add	x8, x19, w20, sxtw
	sturb	wzr, [x8, #-1]
Lloh15:
	adrp	x26, _accepts@GOTPAGE
Lloh16:
	ldr	x26, [x26, _accepts@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh17:
	adrp	x9, _nostart@GOTPAGE
Lloh18:
	ldr	x9, [x9, _nostart@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x27, _testcase@GOTPAGE
Lloh21:
	ldr	x27, [x27, _testcase@GOTPAGEOFF]
	orr	x8, x8, x9
	cbnz	x8, LBB0_13
; %bb.7:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #6
	bl	_strncmp
Lloh24:
	adrp	x28, _EX_PROTOCOL@GOTPAGE
Lloh25:
	ldr	x28, [x28, _EX_PROTOCOL@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x28]
	str	x19, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_errx
LBB0_9:
	cmp	w20, #7
	b.gt	LBB0_11
; %bb.10:
	ldr	w0, [x28]
	str	x19, [sp]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_errx
LBB0_11:
	add	x25, x19, #6
	ldr	x1, [x27]
	mov	x0, x25
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w0, [x28]
	ldr	x8, [x27]
	stp	x8, x25, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_errx
LBB0_13:
Lloh32:
	adrp	x28, _debug@GOTPAGE
Lloh33:
	ldr	x28, [x28, _debug@GOTPAGEOFF]
	ldr	x8, [x28]
Lloh34:
	adrp	x25, _stderr@GOTPAGE
Lloh35:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.14:
	ldr	w0, [x25]
	ldr	x2, [x27]
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x3, x19
	bl	_fprintf
LBB0_15:
Lloh38:
	adrp	x8, _reflectfib@GOTPAGE
Lloh39:
	ldr	x8, [x8, _reflectfib@GOTPAGEOFF]
Lloh40:
	ldr	x3, [x8]
	cmn	x3, #1
	b.eq	LBB0_17
; %bb.16:
Lloh41:
	adrp	x2, l_.str.8@PAGE
Lloh42:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x1, x24
	bl	_snprintf
	mov	x20, x0
LBB0_17:
	ldr	x8, [x28]
	sxtw	x9, w20
	sub	x24, x9, #1
	cmp	x8, #1
	b.lt	LBB0_19
; %bb.18:
	strb	wzr, [x19, x24]
	ldr	w0, [x25]
	ldr	x2, [x27]
Lloh43:
	adrp	x1, l_.str.9@PAGE
Lloh44:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x3, x19
	bl	_fprintf
LBB0_19:
	mov	w8, #10
	strb	w8, [x19, x24]
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	cbz	x22, LBB0_23
; %bb.20:
	mov	w3, #0
	mov	x4, x22
	mov	x5, x21
	bl	_sendto
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.ne	LBB0_24
; %bb.21:
Lloh45:
	adrp	x8, _errno@GOTPAGE
Lloh46:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
Lloh48:
	adrp	x9, _EHOSTUNREACH@GOTPAGE
Lloh49:
	ldr	x9, [x9, _EHOSTUNREACH@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.22:
Lloh51:
	adrp	x0, l_.str.10@PAGE
Lloh52:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_warn
	b	LBB0_28
LBB0_23:
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_26
LBB0_24:
	cmp	w0, w20
	b.eq	LBB0_28
; %bb.25:
Lloh53:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x0, [sp, #8]
	str	x19, [sp]
Lloh56:
	adrp	x1, l_.str.12@PAGE
Lloh57:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x8
	b	LBB0_27
LBB0_26:
Lloh58:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x19, x20, [sp]
Lloh61:
	adrp	x1, l_.str.11@PAGE
Lloh62:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_27:
	bl	_err
LBB0_28:
	ldr	x8, [x26]
	add	x8, x8, #1
	str	x8, [x26]
Lloh63:
	adrp	x1, l_.str.13@PAGE
Lloh64:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_strncmp
	cmp	x0, #0
	mov	w8, #-2
	csel	w0, w8, wzr, eq
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.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 AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read()"

	.comm	_EX_NOINPUT,4,2                 ; @EX_NOINPUT
l_.str.1:                               ; @.str.1
	.asciz	"EOF"

	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
l_.str.2:                               ; @.str.2
	.asciz	"Input too long"

	.comm	_accepts,8,3                    ; @accepts
	.comm	_nostart,8,3                    ; @nostart
l_.str.3:                               ; @.str.3
	.asciz	"START "

	.comm	_EX_PROTOCOL,4,2                ; @EX_PROTOCOL
l_.str.4:                               ; @.str.4
	.asciz	"Not received START on first connect: %s"

l_.str.5:                               ; @.str.5
	.asciz	"START without test case name: %s"

	.comm	_testcase,8,3                   ; @testcase
l_.str.6:                               ; @.str.6
	.asciz	"START test case does not match '%s': '%s'"

	.comm	_debug,8,3                      ; @debug
	.comm	_stderr,4,2                     ; @stderr
l_.str.7:                               ; @.str.7
	.asciz	"<< %s: %s\n"

	.comm	_reflectfib,8,3                 ; @reflectfib
l_.str.8:                               ; @.str.8
	.asciz	"FIB %u\n"

l_.str.9:                               ; @.str.9
	.asciz	">> %s: %s\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EHOSTUNREACH,8,3               ; @EHOSTUNREACH
l_.str.10:                              ; @.str.10
	.asciz	"ignored expected: sendto(%s, %zd)"

l_.str.11:                              ; @.str.11
	.asciz	"write(%s, %zd)"

l_.str.12:                              ; @.str.12
	.asciz	"short write(%s, %zd) %zd"

l_.str.13:                              ; @.str.13
	.asciz	"DONE"

	.no_dead_strip	_reflect_conn
.subsections_via_symbols
