	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function discard_handshake_context
_discard_handshake_context:             ## @discard_handshake_context
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r14d, %r14d
	cmpl	$129, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$130, %ecx
	jne	LBB0_6
## %bb.2:
	movq	_QUICLY_TRANSPORT_ERROR_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_6
LBB0_3:
	movq	%rdi, %rbx
	movq	_QUICLY_EPOCH_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_destroy_handshake_flow
	leaq	8(%rbx), %rdi
	callq	_free_handshake_space
	movq	%rbx, %rdi
	callq	_quicly_is_client
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.5:
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_ptls_cipher_free
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_ptls_aead_free
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUICLY_TRANSPORT_ERROR_PROTOCOL_VIOLATION,4,2 ## @QUICLY_TRANSPORT_ERROR_PROTOCOL_VIOLATION
	.comm	_QUICLY_EPOCH_HANDSHAKE,4,2     ## @QUICLY_EPOCH_HANDSHAKE
	.no_dead_strip	_discard_handshake_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function discard_handshake_context
_discard_handshake_context:             ; @discard_handshake_context
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w3, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w3, #130
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _QUICLY_TRANSPORT_ERROR_PROTOCOL_VIOLATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUICLY_TRANSPORT_ERROR_PROTOCOL_VIOLATION@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	mov	x19, x0
Lloh3:
	adrp	x8, _QUICLY_EPOCH_HANDSHAKE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QUICLY_EPOCH_HANDSHAKE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_destroy_handshake_flow
	add	x0, x19, #8
	bl	_free_handshake_space
	mov	x0, x19
	bl	_quicly_is_client
	cbz	w0, LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.7:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_ptls_cipher_free
	ldr	x8, [x19]
	str	xzr, [x8, #8]
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_ptls_aead_free
	mov	w0, #0
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	xzr, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QUICLY_TRANSPORT_ERROR_PROTOCOL_VIOLATION,4,2 ; @QUICLY_TRANSPORT_ERROR_PROTOCOL_VIOLATION
	.comm	_QUICLY_EPOCH_HANDSHAKE,4,2     ; @QUICLY_EPOCH_HANDSHAKE
	.no_dead_strip	_discard_handshake_context
.subsections_via_symbols
