	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_handle_message            ## -- Begin function ptls_handle_message
	.p2align	4, 0x90
_ptls_handle_message:                   ## @ptls_handle_message
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rbp), %r14
	movq	%rsi, -104(%rbp)
	leaq	-96(%rbp), %r15
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movl	%edx, -92(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -88(%rbp)
	movups	%xmm0, -72(%rbp)
	movq	_PTLS_CONTENT_TYPE_HANDSHAKE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -48(%rbp)
	movl	%r9d, -40(%rbp)
	movl	%r8d, -36(%rbp)
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r12
	movq	%rbx, %rdi
	callq	_ptls_get_read_epoch
	cmpq	%r12, %rax
	jne	LBB0_3
## %bb.4:
	movq	_handle_handshake_message@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r14, %r8
	callq	_handle_handshake_record
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_send_client_hello
	jmp	LBB0_5
LBB0_3:
	movq	_PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
	.comm	_PTLS_CONTENT_TYPE_HANDSHAKE,4,2 ## @PTLS_CONTENT_TYPE_HANDSHAKE
	.comm	_PTLS_ALERT_UNEXPECTED_MESSAGE,4,2 ## @PTLS_ALERT_UNEXPECTED_MESSAGE
	.comm	_handle_handshake_message,4,2   ## @handle_handshake_message
	.comm	_begin_raw_message,4,2          ## @begin_raw_message
	.comm	_commit_raw_message,4,2         ## @commit_raw_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_handle_message            ; -- Begin function ptls_handle_message
	.p2align	2
_ptls_handle_message:                   ; @ptls_handle_message
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x6
	mov	x20, x0
	str	x1, [sp, #32]
	add	x8, sp, #32
	add	x21, x8, #8
Lloh0:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w2, [sp, #40]
	movi.2d	v0, #0000000000000000
Lloh3:
	adrp	x8, _PTLS_CONTENT_TYPE_HANDSHAKE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTLS_CONTENT_TYPE_HANDSHAKE@GOTPAGEOFF]
	stp	q0, q0, [sp, #48]
Lloh5:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #8]
	stp	w5, w4, [sp, #24]
	cbz	x4, LBB0_3
; %bb.1:
	mov	x22, x3
	mov	x0, x20
	bl	_ptls_get_read_epoch
	cmp	x0, x22
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _handle_handshake_message@GOTPAGE
Lloh7:
	ldr	x8, [x8, _handle_handshake_message@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, x21
	mov	x4, x19
	bl	_handle_handshake_record
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, #0
	bl	_send_client_hello
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_5:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
	.comm	_PTLS_CONTENT_TYPE_HANDSHAKE,4,2 ; @PTLS_CONTENT_TYPE_HANDSHAKE
	.comm	_PTLS_ALERT_UNEXPECTED_MESSAGE,4,2 ; @PTLS_ALERT_UNEXPECTED_MESSAGE
	.comm	_handle_handshake_message,4,2   ; @handle_handshake_message
	.comm	_begin_raw_message,4,2          ; @begin_raw_message
	.comm	_commit_raw_message,4,2         ; @commit_raw_message
.subsections_via_symbols
