	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_input
_handle_input:                          ## @handle_input
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	-56(%rbp), %rsi
	movq	%rcx, %rdx
	movq	%r8, %rcx
	callq	_parse_record
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%edi, %edi
	cmpq	$0, -56(%rbp)
	setne	%dil
	callq	_assert
	movl	-48(%rbp), %eax
	movq	_PTLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.3:
	movq	(%rbx), %rax
	movq	_PTLS_STATE_POST_HANDSHAKE_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_26
## %bb.4:
	cmpl	$1, -44(%rbp)
	jne	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rax
	cmpl	$1, (%rax)
	je	LBB0_27
LBB0_6:
	movq	_PTLS_ALERT_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_1
LBB0_7:
	leaq	32(%rbx), %rsi
	cmpq	$0, 32(%rbx)
	je	LBB0_14
## %bb.8:
	cmpl	$129, %eax
	je	LBB0_14
## %bb.9:
	cmpl	$128, %eax
	jne	LBB0_26
## %bb.10:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %esi
	addl	$5, %esi
	movq	%r14, %rdi
	callq	_ptls_buffer_reserve
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_1
## %bb.11:
	movslq	8(%r14), %rsi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movq	-56(%rbp), %rcx
	movl	-44(%rbp), %r8d
	leaq	-72(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_aead_decrypt
	testl	%eax, %eax
	je	LBB0_31
## %bb.12:
	movl	%eax, %r13d
	cmpq	$0, 40(%rbx)
	je	LBB0_1
## %bb.13:
	movq	8(%rbx), %rcx
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_1
	jmp	LBB0_25
LBB0_14:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.15:
	movl	$128, %eax
	cmpq	$0, 40(%rbx)
	je	LBB0_17
## %bb.16:
	movq	8(%rbx), %rcx
	movq	_UINT32_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_25
LBB0_17:
	cmpq	$0, 24(%rbx)
	jne	LBB0_38
LBB0_18:
	movq	_PTLS_CONTENT_TYPE_HANDSHAKE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_38
## %bb.19:
	cmpl	$129, %eax
	je	LBB0_30
## %bb.20:
	cmpl	$128, %eax
	jne	LBB0_28
## %bb.21:
	movq	(%rbx), %rax
	movq	_PTLS_STATE_POST_HANDSHAKE_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_36
## %bb.22:
	movq	_PTLS_STATE_SERVER_EXPECT_END_OF_EARLY_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.23:
	xorl	%r13d, %r13d
	cmpq	$0, (%rsi)
	je	LBB0_40
## %bb.24:
	movl	-44(%rbp), %eax
	addl	%eax, 8(%r14)
	jmp	LBB0_40
LBB0_25:
	movslq	-44(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, 8(%rbx)
	movq	_PTLS_MAX_EARLY_DATA_SKIP_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_27
LBB0_26:
	movq	_PTLS_ALERT_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_1
LBB0_27:
	movq	_PTLS_ERROR_IN_PROGRESS@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_28:
	movq	_PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %r13d
	jmp	LBB0_40
LBB0_30:
	movq	-56(%rbp), %rsi
	movslq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_handle_alert
	jmp	LBB0_39
LBB0_31:
	movq	-72(%rbp), %rcx
	movl	%ecx, -44(%rbp)
	movq	(%r14), %rdx
	movslq	8(%r14), %rsi
	leaq	(%rdx,%rsi,4), %rax
	movq	%rax, -56(%rbp)
	testl	%ecx, %ecx
	je	LBB0_35
## %bb.32:
	movslq	%ecx, %rdi
	decl	%ecx
	addq	%rdi, %rsi
	leaq	(%rdx,%rsi,4), %rdx
	addq	$-4, %rdx
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx)
	jne	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movl	%ecx, -44(%rbp)
	addq	$-4, %rdx
	addl	$-1, %ecx
	jb	LBB0_33
LBB0_35:
	movq	_PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_1
LBB0_36:
	movl	-44(%rbp), %eax
	addl	%eax, 8(%r14)
	xorl	%r13d, %r13d
	jmp	LBB0_40
LBB0_37:
	movl	%ecx, -44(%rbp)
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -48(%rbp)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmpq	$0, 24(%rbx)
	je	LBB0_18
LBB0_38:
	movq	_handle_handshake_message@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%r15, %r8
	callq	_handle_handshake_record
LBB0_39:
	movl	%eax, %r13d
LBB0_40:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_ptls_buffer_dispose
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,4,2 ## @PTLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.comm	_PTLS_STATE_POST_HANDSHAKE_MIN,8,3 ## @PTLS_STATE_POST_HANDSHAKE_MIN
	.comm	_PTLS_ALERT_ILLEGAL_PARAMETER,4,2 ## @PTLS_ALERT_ILLEGAL_PARAMETER
	.comm	_PTLS_ALERT_HANDSHAKE_FAILURE,4,2 ## @PTLS_ALERT_HANDSHAKE_FAILURE
	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ## @PTLS_ERROR_IN_PROGRESS
	.comm	_UINT32_MAX,8,3                 ## @UINT32_MAX
	.comm	_PTLS_ALERT_UNEXPECTED_MESSAGE,4,2 ## @PTLS_ALERT_UNEXPECTED_MESSAGE
	.comm	_PTLS_CONTENT_TYPE_HANDSHAKE,4,2 ## @PTLS_CONTENT_TYPE_HANDSHAKE
	.comm	_handle_handshake_message,4,2   ## @handle_handshake_message
	.comm	_PTLS_STATE_SERVER_EXPECT_END_OF_EARLY_DATA,8,3 ## @PTLS_STATE_SERVER_EXPECT_END_OF_EARLY_DATA
	.comm	_PTLS_MAX_EARLY_DATA_SKIP_SIZE,8,3 ## @PTLS_MAX_EARLY_DATA_SKIP_SIZE
	.no_dead_strip	_handle_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_input
_handle_input:                          ; @handle_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x5
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	add	x1, sp, #16
	mov	x2, x3
	mov	x3, x4
	bl	_parse_record
	mov	x24, x0
	cbnz	w0, LBB0_34
; %bb.1:
	ldr	x8, [sp, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [sp, #24]
Lloh0:
	adrp	x9, _PTLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PTLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _PTLS_STATE_POST_HANDSHAKE_MIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PTLS_STATE_POST_HANDSHAKE_MIN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_26
; %bb.3:
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_28
LBB0_5:
Lloh6:
	adrp	x8, _PTLS_ALERT_ILLEGAL_PARAMETER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTLS_ALERT_ILLEGAL_PARAMETER@GOTPAGEOFF]
	b	LBB0_27
LBB0_6:
	mov	x23, x19
	ldr	x9, [x23, #32]!
	cbz	x9, LBB0_13
; %bb.7:
	cmp	w8, #129
	b.eq	LBB0_13
; %bb.8:
	cmp	w8, #128
	b.ne	LBB0_26
; %bb.9:
	ldr	w8, [sp, #28]
	add	w1, w8, #5
	mov	x0, x20
	bl	_ptls_buffer_reserve
	mov	x24, x0
	cbnz	w0, LBB0_34
; %bb.10:
	ldr	x8, [x20]
	ldrsw	x9, [x20, #8]
	add	x1, x8, x9, lsl #2
	ldr	x3, [sp, #16]
	ldr	w4, [sp, #28]
	add	x2, sp, #8
	mov	x0, x23
	bl	_aead_decrypt
	cbz	w0, LBB0_35
; %bb.11:
	mov	x24, x0
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_34
; %bb.12:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _UINT32_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UINT32_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_34
	b	LBB0_25
LBB0_13:
	cmp	w8, #128
	b.ne	LBB0_17
; %bb.14:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _UINT32_MAX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UINT32_MAX@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
LBB0_16:
	mov	w8, #128
LBB0_17:
	ldr	x9, [x19, #24]
Lloh14:
	adrp	x10, _PTLS_CONTENT_TYPE_HANDSHAKE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PTLS_CONTENT_TYPE_HANDSHAKE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	x9, #0
	ccmp	w8, w10, #4, eq
	b.ne	LBB0_19
; %bb.18:
Lloh17:
	adrp	x8, _handle_handshake_message@GOTPAGE
Lloh18:
	ldr	x8, [x8, _handle_handshake_message@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	x0, x19
	mov	x2, x22
	mov	x4, x21
	bl	_handle_handshake_record
	b	LBB0_32
LBB0_19:
	cmp	w8, #129
	b.eq	LBB0_31
; %bb.20:
	cmp	w8, #128
	b.ne	LBB0_29
; %bb.21:
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _PTLS_STATE_POST_HANDSHAKE_MIN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PTLS_STATE_POST_HANDSHAKE_MIN@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_24
; %bb.22:
Lloh23:
	adrp	x9, _PTLS_STATE_SERVER_EXPECT_END_OF_EARLY_DATA@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PTLS_STATE_SERVER_EXPECT_END_OF_EARLY_DATA@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.23:
	ldr	x8, [x23]
	cbz	x8, LBB0_41
LBB0_24:
	mov	w24, #0
	ldr	w8, [sp, #28]
	ldr	w9, [x20, #8]
	add	w8, w9, w8
	str	w8, [x20, #8]
	b	LBB0_33
LBB0_25:
	ldrsw	x9, [sp, #28]
Lloh26:
	adrp	x10, _PTLS_MAX_EARLY_DATA_SKIP_SIZE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _PTLS_MAX_EARLY_DATA_SKIP_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	add	x8, x8, x9
	cmp	x8, x10
	str	x8, [x19, #8]
	b.le	LBB0_28
LBB0_26:
Lloh29:
	adrp	x8, _PTLS_ALERT_HANDSHAKE_FAILURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PTLS_ALERT_HANDSHAKE_FAILURE@GOTPAGEOFF]
LBB0_27:
	ldr	w24, [x8]
	b	LBB0_34
LBB0_28:
Lloh31:
	adrp	x8, _PTLS_ERROR_IN_PROGRESS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PTLS_ERROR_IN_PROGRESS@GOTPAGEOFF]
	b	LBB0_30
LBB0_29:
Lloh33:
	adrp	x8, _PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
LBB0_30:
	ldr	w24, [x8]
	b	LBB0_33
LBB0_31:
	ldr	x1, [sp, #16]
	ldrsw	x2, [sp, #28]
	mov	x0, x19
	bl	_handle_alert
LBB0_32:
	mov	x24, x0
LBB0_33:
	add	x0, x19, #16
	bl	_ptls_buffer_dispose
LBB0_34:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
LBB0_35:
	ldr	x10, [sp, #8]
	str	w10, [sp, #28]
	ldr	x11, [x20]
	ldrsw	x12, [x20, #8]
	add	x8, x11, x12, lsl #2
	str	x8, [sp, #16]
	cbz	w10, LBB0_39
; %bb.36:
	sub	w9, w10, #1
	add	x10, x12, w10, sxtw
	add	x10, x11, x10, lsl #2
	sub	x10, x10, #4
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cbnz	w11, LBB0_40
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	str	w9, [sp, #28]
	sub	w9, w9, #1
	sub	x10, x10, #4
	cmn	w9, #1
	b.ne	LBB0_37
LBB0_39:
Lloh35:
	adrp	x8, _PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
	b	LBB0_27
LBB0_40:
	str	w9, [sp, #28]
	ldr	w8, [x8, w9, sxtw #2]
	str	w8, [sp, #24]
	b	LBB0_17
LBB0_41:
	mov	w24, #0
	b	LBB0_33
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,4,2 ; @PTLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.comm	_PTLS_STATE_POST_HANDSHAKE_MIN,8,3 ; @PTLS_STATE_POST_HANDSHAKE_MIN
	.comm	_PTLS_ALERT_ILLEGAL_PARAMETER,4,2 ; @PTLS_ALERT_ILLEGAL_PARAMETER
	.comm	_PTLS_ALERT_HANDSHAKE_FAILURE,4,2 ; @PTLS_ALERT_HANDSHAKE_FAILURE
	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ; @PTLS_ERROR_IN_PROGRESS
	.comm	_UINT32_MAX,8,3                 ; @UINT32_MAX
	.comm	_PTLS_ALERT_UNEXPECTED_MESSAGE,4,2 ; @PTLS_ALERT_UNEXPECTED_MESSAGE
	.comm	_PTLS_CONTENT_TYPE_HANDSHAKE,4,2 ; @PTLS_CONTENT_TYPE_HANDSHAKE
	.comm	_handle_handshake_message,4,2   ; @handle_handshake_message
	.comm	_PTLS_STATE_SERVER_EXPECT_END_OF_EARLY_DATA,8,3 ; @PTLS_STATE_SERVER_EXPECT_END_OF_EARLY_DATA
	.comm	_PTLS_MAX_EARLY_DATA_SKIP_SIZE,8,3 ; @PTLS_MAX_EARLY_DATA_SKIP_SIZE
	.no_dead_strip	_handle_input
.subsections_via_symbols
