	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_connection
_handle_connection:                     ## @handle_connection
	.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
	movl	$16584, %eax                    ## imm = 0x40C8
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -16564(%rbp)              ## 4-byte Spill
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rsi, %rax
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	xorl	%esi, %esi
	movq	%rdx, -16560(%rbp)              ## 8-byte Spill
	testq	%rdx, %rdx
	sete	%sil
	movq	%rax, %rdi
	callq	_ptls_new
	movq	%rax, -16496(%rbp)              ## 8-byte Spill
	leaq	L_.str(%rip), %rbx
	leaq	-16584(%rbp), %rdi
	movl	$0, -16472(%rbp)                ## 4-byte Folded Spill
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	leaq	-16512(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	leaq	-16544(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	callq	_fcntl
	movl	$0, %r15d
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_open
	movl	%eax, %r15d
	cmpl	$-1, %eax
	je	LBB0_84
LBB0_2:
	movq	%r13, -16488(%rbp)              ## 8-byte Spill
	cmpq	$0, -16560(%rbp)                ## 8-byte Folded Reload
	je	LBB0_5
## %bb.3:
	movq	-16496(%rbp), %rbx              ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-16560(%rbp), %rsi              ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ptls_set_server_name
	leaq	-16512(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_ptls_handshake
	movl	%eax, %edx
	movq	_PTLS_ERROR_IN_PROGRESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_81
## %bb.4:
	movl	%edx, -16472(%rbp)              ## 4-byte Spill
LBB0_5:
	movl	$0, -16476(%rbp)                ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -16552(%rbp)              ## 8-byte Spill
	movq	%r14, -16528(%rbp)              ## 8-byte Spill
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_45 Depth 2
                                        ##     Child Loop BB0_57 Depth 2
	cmpl	%r12d, %r15d
	movl	%r12d, %r14d
	movl	%r15d, -16468(%rbp)             ## 4-byte Spill
	cmovgl	%r15d, %r14d
	leaq	-16520(%rbp), %r13
	leaq	-16568(%rbp), %r15
	leaq	-16516(%rbp), %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=2
	incl	%edi
	cmpq	$0, -16512(%rbp)
	movl	$0, %eax
	movl	$3600, %ecx                     ## imm = 0xE10
	cmovel	%ecx, %eax
	movl	%eax, -16616(%rbp)
	movq	$0, -16608(%rbp)
	movq	%r13, %rsi
	movq	%r15, %rbx
	leaq	-16568(%rbp), %r15
	movq	%r15, %rdx
	movq	%rbx, %rcx
	leaq	-16616(%rbp), %r8
	callq	_select
	cmpl	$-1, %eax
	jne	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_FD_ZERO
	movq	%r15, %rdi
	callq	_FD_ZERO
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_FD_SET
	cmpq	$0, -16512(%rbp)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_FD_SET
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%r12d, %edi
	leaq	-16516(%rbp), %r15
	movq	%r15, %rsi
	callq	_FD_SET
	movl	%r12d, %edi
	movl	-16468(%rbp), %ebx              ## 4-byte Reload
	cmpl	$-1, %ebx
	leaq	-16520(%rbp), %r13
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_FD_SET
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_FD_SET
	movl	%r14d, %edi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rsi
	movl	%r12d, %edi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_72
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	_EINTR@GOTPCREL(%rip), %r13
	movl	-16476(%rbp), %r15d             ## 4-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	leaq	-16432(%rbp), %rsi
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_read
	movq	(%rbx), %rcx
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpq	(%r13), %rcx
	je	LBB0_15
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$-1, %eax
	je	LBB0_38
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, %eax
	movl	-16472(%rbp), %ebx              ## 4-byte Reload
	jle	LBB0_91
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %eax
	movq	%rax, %r14
	movq	%rax, -16464(%rbp)
	xorl	%r13d, %r13d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=2
	movl	%eax, %ebx
	movq	_PTLS_ERROR_IN_PROGRESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_83
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=2
	addq	-16464(%rbp), %r13
	movq	%r14, %rax
	subq	%r13, %rax
	movq	%rax, -16464(%rbp)
	je	LBB0_40
LBB0_22:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-16432(,%r13), %rdx
	addq	%rbp, %rdx
	testl	%r15d, %r15d
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-16496(%rbp), %rdi              ## 8-byte Reload
	leaq	-16584(%rbp), %rsi
	leaq	-16464(%rbp), %rcx
	callq	_ptls_receive
	testl	%eax, %eax
	jne	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-16584(%rbp), %rdx
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-16576(%rbp), %rsi
	movl	$1, %edi
	callq	_write
	xorl	%ebx, %ebx
	movq	$0, -16584(%rbp)
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-16496(%rbp), %r15              ## 8-byte Reload
	movq	%r15, %rdi
	leaq	-16512(%rbp), %rsi
	leaq	-16464(%rbp), %rcx
	movq	-16528(%rbp), %r8               ## 8-byte Reload
	callq	_ptls_handshake
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=2
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	movq	_PTLS_ERROR_IN_PROGRESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_21
	jmp	LBB0_85
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	%r15, %rdi
	callq	_ptls_is_server
	movb	$1, %cl
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-16528(%rbp), %rax              ## 8-byte Reload
	movq	(%rax), %rax
	movq	_PTLS_EARLY_DATA_ACCEPTANCE_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=2
	movzbl	%cl, %edi
	callq	_assert
	movq	-16528(%rbp), %rax              ## 8-byte Reload
	movq	(%rax), %rax
	movq	_PTLS_EARLY_DATA_ACCEPTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_22 Depth=2
	leaq	-16544(%rbp), %rdi
	movq	-16552(%rbp), %rsi              ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_shift_buffer
LBB0_32:                                ##   in Loop: Header=BB0_22 Depth=2
	cmpl	$0, -16564(%rbp)                ## 4-byte Folded Reload
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ptls_update_key
LBB0_34:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-16544(%rbp), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-16536(%rbp), %rdx
	movq	%r15, %rdi
	leaq	-16512(%rbp), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ptls_send
	testl	%eax, %eax
	jne	LBB0_88
## %bb.36:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	$0, -16544(%rbp)
	xorl	%ebx, %ebx
LBB0_37:                                ##   in Loop: Header=BB0_22 Depth=2
	movl	$1, %r15d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movl	-16472(%rbp), %ebx              ## 4-byte Reload
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_91
LBB0_40:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, -16472(%rbp)              ## 4-byte Spill
	leaq	-16520(%rbp), %r13
LBB0_41:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-16468(%rbp), %edi              ## 4-byte Reload
	cmpl	$-1, %edi
	movl	%r15d, -16476(%rbp)             ## 4-byte Spill
	je	LBB0_51
## %bb.42:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	jne	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-16468(%rbp), %edi              ## 4-byte Reload
	leaq	-16516(%rbp), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_77
LBB0_44:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %rbx
	leaq	-16432(%rbp), %r14
	.p2align	4, 0x90
LBB0_45:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-16468(%rbp), %edi              ## 4-byte Reload
	movq	%r14, %rsi
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_read
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_45 Depth=2
	movq	(%rbx), %rax
	cmpq	%rax, (%r13)
	je	LBB0_45
LBB0_47:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_53
## %bb.48:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	-16544(%rbp), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_ptls_buffer_pushv
	cmpl	$0, -16476(%rbp)                ## 4-byte Folded Reload
	je	LBB0_73
## %bb.49:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-16496(%rbp), %rdi              ## 8-byte Reload
	leaq	-16512(%rbp), %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_ptls_send
	testl	%eax, %eax
	jne	LBB0_100
## %bb.50:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, -16544(%rbp)
	movl	$0, -16472(%rbp)                ## 4-byte Folded Spill
	movl	-16468(%rbp), %r15d             ## 4-byte Reload
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_51:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$-1, %r15d
LBB0_52:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %rbx
	jmp	LBB0_56
LBB0_53:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, -16488(%rbp)                ## 8-byte Folded Reload
	je	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-16468(%rbp), %edi              ## 4-byte Reload
	callq	_close
LBB0_55:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$-1, %r15d
LBB0_56:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-16512(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_65
	.p2align	4, 0x90
LBB0_57:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-16504(%rbp), %rsi
	movl	%r12d, %edi
	callq	_write
	movq	(%r13), %rcx
	cmpl	$-1, %eax
	sete	%dl
	jne	LBB0_60
## %bb.58:                              ##   in Loop: Header=BB0_57 Depth=2
	cmpq	(%rbx), %rcx
	jne	LBB0_60
## %bb.59:                              ##   in Loop: Header=BB0_57 Depth=2
	movq	-16512(%rbp), %rdx
	jmp	LBB0_57
	.p2align	4, 0x90
LBB0_60:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	%dl, %dl
	je	LBB0_63
## %bb.61:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_65
## %bb.62:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_65
	jmp	LBB0_99
	.p2align	4, 0x90
LBB0_63:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, %eax
	jle	LBB0_99
## %bb.64:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	-16512(%rbp), %rdi
	movl	%eax, %esi
	callq	_shift_buffer
LBB0_65:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-16476(%rbp), %edx              ## 4-byte Reload
	movl	%edx, %eax
	xorl	$1, %eax
	movl	%r15d, %ecx
	notl	%ecx
	orl	%eax, %ecx
	movl	$2, %eax
	cmovel	%eax, %edx
	movl	%edx, -16476(%rbp)              ## 4-byte Spill
	movl	$-1, %eax
	cmovel	%eax, %r15d
	jne	LBB0_6
## %bb.66:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 16(%rbp)
	jne	LBB0_6
## %bb.67:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	-16600(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	-16464(%rbp), %rsi
	movl	$32, %edx
	callq	_ptls_buffer_init
	movq	_PTLS_ALERT_LEVEL_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PTLS_ALERT_CLOSE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-16496(%rbp), %rdi              ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ptls_send_alert
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_69
## %bb.68:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_69:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, -16472(%rbp)              ## 4-byte Spill
	movq	-16600(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_71
## %bb.70:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-16592(%rbp), %rsi
	movl	%r12d, %edi
	callq	_write
LBB0_71:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	-16600(%rbp), %rdi
	callq	_ptls_buffer_dispose
	movq	_SHUT_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_shutdown
	movl	$-1, %r15d
	movl	$2, -16476(%rbp)                ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_72:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-16476(%rbp), %r15d             ## 4-byte Reload
	jmp	LBB0_41
LBB0_73:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, -16560(%rbp)                ## 8-byte Folded Reload
	je	LBB0_78
## %bb.74:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-16528(%rbp), %rax              ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	movl	-16468(%rbp), %r15d             ## 4-byte Reload
	je	LBB0_56
## %bb.75:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rax), %rax
	movq	-16544(%rbp), %rbx
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	movq	-16552(%rbp), %rax              ## 8-byte Reload
	cmpq	%rax, %rbx
	jne	LBB0_79
## %bb.76:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rbx
	jmp	LBB0_56
LBB0_77:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-16468(%rbp), %r15d             ## 4-byte Reload
	jmp	LBB0_52
LBB0_78:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-16468(%rbp), %r15d             ## 4-byte Reload
	jmp	LBB0_56
LBB0_79:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %ecx
	subl	%eax, %ecx
	movq	-16536(%rbp), %rdx
	movq	-16496(%rbp), %rdi              ## 8-byte Reload
	leaq	-16512(%rbp), %rsi
	callq	_ptls_send
	testl	%eax, %eax
	jne	LBB0_101
## %bb.80:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, -16472(%rbp)                ## 4-byte Folded Spill
	movq	%rbx, -16552(%rbp)              ## 8-byte Spill
	movl	-16468(%rbp), %r15d             ## 4-byte Reload
	movq	_EINTR@GOTPCREL(%rip), %rbx
	jmp	LBB0_56
LBB0_81:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
LBB0_82:
	movq	-16488(%rbp), %r13              ## 8-byte Reload
	jmp	LBB0_92
LBB0_83:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_89
LBB0_84:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%r13, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
	movl	$-1, %r15d
	jmp	LBB0_92
LBB0_85:
	movq	-16512(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_87
## %bb.86:
	movq	-16504(%rbp), %rsi
	movl	%r12d, %edi
	callq	_write
LBB0_87:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_89
LBB0_88:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_89:
	movl	%ebx, %edx
	xorl	%eax, %eax
LBB0_90:
	callq	_fprintf
LBB0_91:
	movq	-16488(%rbp), %r13              ## 8-byte Reload
	movl	-16468(%rbp), %r15d             ## 4-byte Reload
LBB0_92:
	cmpl	$-1, %r12d
	je	LBB0_94
## %bb.93:
	movl	%r12d, %edi
	callq	_close
LBB0_94:
	testq	%r13, %r13
	je	LBB0_97
## %bb.95:
	cmpl	$-1, %r15d
	je	LBB0_97
## %bb.96:
	movl	%r15d, %edi
	callq	_close
LBB0_97:
	leaq	-16584(%rbp), %rdi
	callq	_ptls_buffer_dispose
	leaq	-16512(%rbp), %rdi
	callq	_ptls_buffer_dispose
	leaq	-16544(%rbp), %rdi
	callq	_ptls_buffer_dispose
	movq	-16496(%rbp), %rdi              ## 8-byte Reload
	callq	_ptls_free
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_102
## %bb.98:
	movb	%cl, %al
	addq	$16584, %rsp                    ## imm = 0x40C8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_99:
	movl	-16472(%rbp), %ebx              ## 4-byte Reload
	jmp	LBB0_82
LBB0_100:
	movl	%eax, %edx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	movl	%edx, %ebx
	jmp	LBB0_90
LBB0_101:
	movl	%eax, %r15d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r15d, %ebx
	jmp	LBB0_91
LBB0_102:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"failed to open file:%s:%s\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ## @PTLS_ERROR_IN_PROGRESS
L_.str.2:                               ## @.str.2
	.asciz	"ptls_handshake:%d\n"

	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_PTLS_EARLY_DATA_ACCEPTANCE_UNKNOWN,8,3 ## @PTLS_EARLY_DATA_ACCEPTANCE_UNKNOWN
	.comm	_PTLS_EARLY_DATA_ACCEPTED,8,3   ## @PTLS_EARLY_DATA_ACCEPTED
L_.str.3:                               ## @.str.3
	.asciz	"ptls_send(1rtt):%d\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"ptls_send(early_data):%d\n"

	.comm	_PTLS_ALERT_LEVEL_WARNING,4,2   ## @PTLS_ALERT_LEVEL_WARNING
	.comm	_PTLS_ALERT_CLOSE_NOTIFY,4,2    ## @PTLS_ALERT_CLOSE_NOTIFY
L_.str.6:                               ## @.str.6
	.asciz	"ptls_send_alert:%d\n"

	.comm	_SHUT_WR,4,2                    ## @SHUT_WR
	.no_dead_strip	_handle_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_connection
_handle_connection:                     ; @handle_connection
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w9, #16592
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #208
	stp	w6, w5, [sp, #48]               ; 8-byte Folded Spill
	mov	x23, x4
	mov	x20, x3
	mov	x24, x2
	mov	x8, x1
	mov	x21, x0
Lloh2:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	stur	x9, [x29, #-96]
	cmp	x2, #0
	cset	w1, eq
	mov	x0, x8
	bl	_ptls_new
	mov	x19, x0
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	add	x0, sp, #144
	mov	x1, x22
	mov	w2, #0
	bl	_ptls_buffer_init
	add	x0, sp, #128
	mov	x1, x22
	mov	w2, #0
	bl	_ptls_buffer_init
	add	x0, sp, #112
	mov	x1, x22
	mov	w2, #0
	bl	_ptls_buffer_init
Lloh7:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_fcntl
Lloh13:
	adrp	x25, _stderr@GOTPAGE
Lloh14:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	cbz	x20, LBB0_3
; %bb.1:
Lloh15:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_open
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	w22, [x25]
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	bl	_strerror
	stp	x20, x0, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_fprintf
	mov	w28, #1
	mov	w22, #-1
	cmn	w21, #1
	b.ne	LBB0_82
	b	LBB0_83
LBB0_3:
	mov	w22, #0
LBB0_4:
Lloh23:
	adrp	x26, _PTLS_ERROR_IN_PROGRESS@GOTPAGE
Lloh24:
	ldr	x26, [x26, _PTLS_ERROR_IN_PROGRESS@GOTPAGEOFF]
	cbz	x24, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_ptls_set_server_name
	add	x1, sp, #128
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, x23
	bl	_ptls_handshake
	mov	x28, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x25]
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	str	x28, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w28, #1
	cmn	w21, #1
	b.ne	LBB0_82
	b	LBB0_83
LBB0_7:
	mov	w28, #0
LBB0_8:
	stp	x24, x20, [sp, #24]             ; 16-byte Folded Spill
	str	x23, [sp, #56]                  ; 8-byte Folded Spill
	mov	w27, #0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	mov	w26, #3600
Lloh27:
	adrp	x20, _errno@GOTPAGE
Lloh28:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh29:
	adrp	x24, _EINTR@GOTPAGE
Lloh30:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
                                        ;     Child Loop BB0_47 Depth 2
                                        ;     Child Loop BB0_58 Depth 2
	cmp	w22, w21
	csel	w23, w22, w21, gt
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	w0, w8, #1
	ldr	x8, [sp, #128]
	cmp	x8, #0
	csel	w8, w26, wzr, eq
	str	w8, [sp, #80]
	str	xzr, [sp, #88]
	add	x1, sp, #108
	add	x2, sp, #104
	add	x3, sp, #100
	add	x4, sp, #80
	bl	_select
	cmn	w0, #1
	b.ne	LBB0_15
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #108
	bl	_FD_ZERO
	add	x0, sp, #104
	bl	_FD_ZERO
	add	x0, sp, #100
	bl	_FD_ZERO
	add	x1, sp, #108
	mov	x0, x21
	bl	_FD_SET
	ldr	x8, [sp, #128]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x1, sp, #104
	mov	x0, x21
	bl	_FD_SET
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x1, sp, #100
	mov	x0, x21
	bl	_FD_SET
	mov	x8, x21
	cmn	w22, #1
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x1, sp, #108
	mov	x0, x22
	bl	_FD_SET
	add	x1, sp, #100
	mov	x0, x22
	bl	_FD_SET
	mov	x8, x23
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #108
	mov	x0, x21
	bl	_FD_ISSET
	cbnz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #100
	mov	x0, x21
	bl	_FD_ISSET
	cbz	x0, LBB0_44
LBB0_17:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #192
	mov	x0, x21
	mov	w2, #16384
	bl	_read
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	cmn	w0, #1
	b.eq	LBB0_43
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w0, #1
	b.lt	LBB0_81
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, #0
	mov	w25, w0
	str	x25, [sp, #160]
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	x28, x0
Lloh31:
	adrp	x8, _PTLS_ERROR_IN_PROGRESS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PTLS_ERROR_IN_PROGRESS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_76
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [sp, #160]
	add	x23, x8, x23
	subs	x8, x25, x23
	str	x8, [sp, #160]
	b.eq	LBB0_44
LBB0_23:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, sp, #192
	add	x2, x8, x23
	cbz	w27, LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	add	x1, sp, #144
	add	x3, sp, #160
	mov	x0, x19
	bl	_ptls_receive
	cbnz	w0, LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=2
	ldr	x2, [sp, #144]
	cbz	x2, LBB0_32
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=2
	ldr	x1, [sp, #152]
	mov	w0, #1
	bl	_write
	mov	w28, #0
	str	xzr, [sp, #144]
	b	LBB0_22
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=2
	add	x1, sp, #128
	add	x3, sp, #160
	mov	x0, x19
	ldr	x27, [sp, #56]                  ; 8-byte Folded Reload
	mov	x4, x27
	bl	_ptls_handshake
	cbz	w0, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	x28, x0
Lloh34:
	adrp	x8, _PTLS_ERROR_IN_PROGRESS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PTLS_ERROR_IN_PROGRESS@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_77
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	w27, #0
	b	LBB0_22
LBB0_30:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	x0, x19
	bl	_ptls_is_server
	cbz	x0, LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	w0, #1
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	w28, #0
	b	LBB0_22
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [x27]
Lloh37:
	adrp	x9, _PTLS_EARLY_DATA_ACCEPTANCE_UNKNOWN@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PTLS_EARLY_DATA_ACCEPTANCE_UNKNOWN@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
LBB0_34:                                ;   in Loop: Header=BB0_23 Depth=2
	bl	_assert
	ldr	x8, [x27]
Lloh40:
	adrp	x9, _PTLS_EARLY_DATA_ACCEPTED@GOTPAGE
Lloh41:
	ldr	x9, [x9, _PTLS_EARLY_DATA_ACCEPTED@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_23 Depth=2
	add	x0, sp, #112
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_shift_buffer
LBB0_36:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	x0, x19
	mov	w1, #1
	bl	_ptls_update_key
LBB0_38:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	x3, [sp, #112]
	cbz	x3, LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_23 Depth=2
	ldr	x2, [sp, #120]
	add	x1, sp, #128
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ptls_send
	mov	x28, x0
	cbnz	w0, LBB0_88
; %bb.40:                               ;   in Loop: Header=BB0_23 Depth=2
	str	xzr, [sp, #112]
	b	LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	w28, #0
LBB0_42:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	w27, #1
	b	LBB0_22
LBB0_43:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh43:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh44:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
Lloh46:
	adrp	x10, _EAGAIN@GOTPAGE
Lloh47:
	ldr	x10, [x10, _EAGAIN@GOTPAGEOFF]
Lloh48:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_81
LBB0_44:                                ;   in Loop: Header=BB0_9 Depth=1
	cmn	w22, #1
	b.eq	LBB0_55
; %bb.45:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #108
	mov	x0, x22
	bl	_FD_ISSET
	cbnz	x0, LBB0_47
; %bb.46:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #100
	mov	x0, x22
	bl	_FD_ISSET
	cbz	x0, LBB0_55
LBB0_47:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #192
	mov	x0, x22
	mov	w2, #16384
	bl	_read
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_47
; %bb.48:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x0
	cmp	w0, #1
	b.lt	LBB0_52
; %bb.49:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #112
	add	x1, sp, #192
	mov	x2, x23
	bl	_ptls_buffer_pushv
	cbz	w27, LBB0_71
; %bb.50:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #128
	add	x2, sp, #192
	mov	x0, x19
	mov	x3, x23
	bl	_ptls_send
	mov	x28, x0
	cbnz	w0, LBB0_88
; %bb.51:                               ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [sp, #112]
	b	LBB0_55
LBB0_52:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_54
; %bb.53:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_close
LBB0_54:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w22, #-1
LBB0_55:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x2, [sp, #128]
	cbz	x2, LBB0_64
; %bb.56:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [sp, #136]
	mov	x0, x21
	bl	_write
	mov	x1, x0
	ldr	x8, [x20]
	cmn	w0, #1
	cset	w9, eq
	b.ne	LBB0_60
; %bb.57:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x10, [x24]
	cmp	x8, x10
	b.ne	LBB0_60
LBB0_58:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x2, x1, [sp, #128]
	mov	x0, x21
	bl	_write
	cmn	w0, #1
	cset	w9, eq
	ldr	x8, [x20]
	ldr	x10, [x24]
	ccmp	x8, x10, #0, eq
	b.eq	LBB0_58
; %bb.59:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x0
LBB0_60:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	w9, LBB0_62
; %bb.61:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh49:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh50:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
Lloh52:
	adrp	x10, _EAGAIN@GOTPAGE
Lloh53:
	ldr	x10, [x10, _EAGAIN@GOTPAGEOFF]
Lloh54:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_64
	b	LBB0_81
LBB0_62:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w1, #1
	b.lt	LBB0_81
; %bb.63:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #128
	bl	_shift_buffer
LBB0_64:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w27, #1
	mov	w8, #-1
	ccmp	w22, w8, #0, eq
	mov	w8, #2
	csel	w27, w27, w8, ne
	csinv	w22, w22, wzr, ne
	b.ne	LBB0_9
; %bb.65:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_9
; %bb.66:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #64
	add	x1, sp, #160
	mov	w2, #32
	bl	_ptls_buffer_init
Lloh55:
	adrp	x8, _PTLS_ALERT_LEVEL_WARNING@GOTPAGE
Lloh56:
	ldr	x8, [x8, _PTLS_ALERT_LEVEL_WARNING@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
Lloh58:
	adrp	x8, _PTLS_ALERT_CLOSE_NOTIFY@GOTPAGE
Lloh59:
	ldr	x8, [x8, _PTLS_ALERT_CLOSE_NOTIFY@GOTPAGEOFF]
Lloh60:
	ldr	w3, [x8]
	add	x1, sp, #64
	mov	x0, x19
	bl	_ptls_send_alert
	mov	x28, x0
	cbz	w0, LBB0_68
; %bb.67:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh61:
	adrp	x8, _stderr@GOTPAGE
Lloh62:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	str	x28, [sp]
Lloh64:
	adrp	x1, l_.str.6@PAGE
Lloh65:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_68:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x2, [sp, #64]
	cbz	x2, LBB0_70
; %bb.69:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [sp, #72]
	mov	x0, x21
	bl	_write
LBB0_70:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #64
	bl	_ptls_buffer_dispose
Lloh66:
	adrp	x8, _SHUT_WR@GOTPAGE
Lloh67:
	ldr	x8, [x8, _SHUT_WR@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_shutdown
	mov	w22, #-1
	mov	w27, #2
	b	LBB0_9
LBB0_71:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_55
; %bb.72:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_55
; %bb.73:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x8]
	ldr	x9, [sp, #112]
	cmp	x8, x9
	csel	x23, x8, x9, lo
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x23, x8
	b.eq	LBB0_55
; %bb.74:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w3, w23, w8
	ldr	x2, [sp, #120]
	add	x1, sp, #128
	mov	x0, x19
	bl	_ptls_send
	mov	x28, x0
	cbnz	w0, LBB0_90
; %bb.75:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_55
LBB0_76:
Lloh69:
	adrp	x8, _stderr@GOTPAGE
Lloh70:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	mov	x8, x28
	str	x8, [sp]
Lloh72:
	adrp	x1, l_.str.4@PAGE
Lloh73:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_80
LBB0_77:
	ldr	x2, [sp, #128]
	cbz	x2, LBB0_79
; %bb.78:
	ldr	x1, [sp, #136]
	mov	x0, x21
	bl	_write
LBB0_79:
Lloh74:
	adrp	x8, _stderr@GOTPAGE
Lloh75:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	mov	x8, x28
	str	x8, [sp]
Lloh77:
	adrp	x1, l_.str.2@PAGE
Lloh78:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_80:
	bl	_fprintf
LBB0_81:
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	cmn	w21, #1
	b.eq	LBB0_83
LBB0_82:
	mov	x0, x21
	bl	_close
LBB0_83:
	cbz	x20, LBB0_86
; %bb.84:
	cmn	w22, #1
	b.eq	LBB0_86
; %bb.85:
	mov	x0, x22
	bl	_close
LBB0_86:
	add	x0, sp, #144
	bl	_ptls_buffer_dispose
	add	x0, sp, #128
	bl	_ptls_buffer_dispose
	add	x0, sp, #112
	bl	_ptls_buffer_dispose
	mov	x0, x19
	bl	_ptls_free
	cmp	w28, #0
	cset	w0, ne
	ldur	x8, [x29, #-96]
Lloh79:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh80:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh81:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_91
; %bb.87:
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #208
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_88:
Lloh82:
	adrp	x8, _stderr@GOTPAGE
Lloh83:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	str	x28, [sp]
Lloh85:
	adrp	x1, l_.str.3@PAGE
Lloh86:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_89:
	bl	_fprintf
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	b	LBB0_81
LBB0_90:
Lloh87:
	adrp	x8, _stderr@GOTPAGE
Lloh88:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
	str	x28, [sp]
Lloh90:
	adrp	x1, l_.str.5@PAGE
Lloh91:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_89
LBB0_91:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"failed to open file:%s:%s\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ; @PTLS_ERROR_IN_PROGRESS
l_.str.2:                               ; @.str.2
	.asciz	"ptls_handshake:%d\n"

	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_PTLS_EARLY_DATA_ACCEPTANCE_UNKNOWN,8,3 ; @PTLS_EARLY_DATA_ACCEPTANCE_UNKNOWN
	.comm	_PTLS_EARLY_DATA_ACCEPTED,8,3   ; @PTLS_EARLY_DATA_ACCEPTED
l_.str.3:                               ; @.str.3
	.asciz	"ptls_send(1rtt):%d\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"ptls_send(early_data):%d\n"

	.comm	_PTLS_ALERT_LEVEL_WARNING,4,2   ; @PTLS_ALERT_LEVEL_WARNING
	.comm	_PTLS_ALERT_CLOSE_NOTIFY,4,2    ; @PTLS_ALERT_CLOSE_NOTIFY
l_.str.6:                               ; @.str.6
	.asciz	"ptls_send_alert:%d\n"

	.comm	_SHUT_WR,4,2                    ; @SHUT_WR
	.no_dead_strip	_handle_connection
.subsections_via_symbols
