	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stateless_hrr_prepare
_stateless_hrr_prepare:                 ## @stateless_hrr_prepare
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ptls_new
	movq	%rax, %r15
	movq	_ctx_peer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_ptls_new
	movq	%rax, %r12
	leaq	L_.str(%rip), %r14
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ptls_buffer_init
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	movq	_PTLS_ERROR_IN_PROGRESS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_ok
	movq	-72(%rbp), %rax
	movq	-64(%rbp), %rdx
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_ptls_handshake
	movq	_PTLS_ERROR_STATELESS_RETRY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_ok
	movq	%r13, %rdi
	callq	_ptls_buffer_dispose
	movq	%r12, %rdi
	callq	_ptls_free
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,4,2                        ## @ctx
	.comm	_ctx_peer,4,2                   ## @ctx_peer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ## @PTLS_ERROR_IN_PROGRESS
	.comm	_PTLS_ERROR_STATELESS_RETRY,4,2 ## @PTLS_ERROR_STATELESS_RETRY
	.no_dead_strip	_stateless_hrr_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stateless_hrr_prepare
_stateless_hrr_prepare:                 ; @stateless_hrr_prepare
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ctx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_ptls_new
	mov	x19, x0
Lloh3:
	adrp	x8, _ctx_peer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ctx_peer@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_ptls_new
	mov	x22, x0
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
	add	x0, sp, #16
	mov	x1, x23
	mov	w2, #0
	bl	_ptls_buffer_init
	mov	x0, x21
	mov	x1, x23
	mov	w2, #0
	bl	_ptls_buffer_init
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_ptls_handshake
Lloh8:
	adrp	x8, _PTLS_ERROR_IN_PROGRESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTLS_ERROR_IN_PROGRESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_ok
	ldp	x8, x2, [sp, #16]
	str	x8, [sp, #8]
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x4, x20
	bl	_ptls_handshake
Lloh11:
	adrp	x8, _PTLS_ERROR_STATELESS_RETRY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PTLS_ERROR_STATELESS_RETRY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_ok
	add	x0, sp, #16
	bl	_ptls_buffer_dispose
	mov	x0, x22
	bl	_ptls_free
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx,4,2                        ; @ctx
	.comm	_ctx_peer,4,2                   ; @ctx_peer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ; @PTLS_ERROR_IN_PROGRESS
	.comm	_PTLS_ERROR_STATELESS_RETRY,4,2 ; @PTLS_ERROR_STATELESS_RETRY
	.no_dead_strip	_stateless_hrr_prepare
.subsections_via_symbols
