	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_hrr
_test_hrr:                              ## @test_hrr
	.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	$196744, %eax                   ## imm = 0x30088
	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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	l___const.test_hrr.client_keyex+16(%rip), %rax
	movq	%rax, -64(%rbp)
	movaps	l___const.test_hrr.client_keyex(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	_ptls_minicrypto_random_bytes@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -196784(%rbp)
	movl	_ptls_get_time@GOTPCREL(%rip), %eax
	movl	%eax, -196776(%rbp)
	leaq	-80(%rbp), %rax
	movq	%rax, -196768(%rbp)
	movq	_ptls_minicrypto_cipher_suites@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -196760(%rbp)
	movl	$0, -196752(%rbp)
	movq	_ctx_peer@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movq	_PTLS_GROUP_SECP256R1@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_assert
	movq	(%rbx), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_assert
	leaq	-196784(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ptls_new
	movq	%rax, %r15
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_ptls_new
	movq	%rax, %r14
	leaq	-196712(%rbp), %rbx
	leaq	-65616(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_ptls_buffer_init
	leaq	-196728(%rbp), %r12
	leaq	-131152(%rbp), %rsi
	movq	%r12, %rdi
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_ptls_buffer_init
	leaq	-196744(%rbp), %rdi
	leaq	-196688(%rbp), %rsi
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_ptls_buffer_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	movq	_PTLS_ERROR_IN_PROGRESS@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	sete	%dil
	callq	_ok
	movq	-196712(%rbp), %rax
	movq	-196704(%rbp), %rdx
	movq	%rax, -196696(%rbp)
	leaq	-196696(%rbp), %r13
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	sete	%dil
	callq	_ok
	movq	-196696(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-196712(%rbp), %rax
	sete	%dil
	callq	_ok
	movq	$0, -196712(%rbp)
	xorl	%edi, %edi
	cmpq	$10, -196728(%rbp)
	setae	%dil
	callq	_ok
	movq	-196720(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$2, 20(%rax)
	sete	%dil
	callq	_ok
	movq	-196728(%rbp), %rax
	movq	-196720(%rbp), %rdx
	movq	%rax, -196696(%rbp)
	movq	%r15, %rdi
	leaq	-196712(%rbp), %r12
	movq	%r12, %rsi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	sete	%dil
	callq	_ok
	movq	-196696(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-196728(%rbp), %rax
	sete	%dil
	callq	_ok
	movq	$0, -196728(%rbp)
	xorl	%edi, %edi
	cmpq	$9, -196712(%rbp)
	setae	%dil
	callq	_ok
	movq	-196704(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$1, 20(%rax)
	sete	%dil
	callq	_ok
	movq	-196712(%rbp), %rax
	movq	-196704(%rbp), %rdx
	movq	%rax, -196696(%rbp)
	movq	%r14, %rdi
	leaq	-196728(%rbp), %rsi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	-196696(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-196712(%rbp), %rax
	sete	%dil
	callq	_ok
	movq	$0, -196712(%rbp)
	xorl	%edi, %edi
	cmpq	$9, -196728(%rbp)
	setae	%dil
	callq	_ok
	movq	-196720(%rbp), %rax
	xorl	%edi, %edi
	cmpl	$2, 20(%rax)
	sete	%dil
	callq	_ok
	movq	-196728(%rbp), %rax
	movq	-196720(%rbp), %rdx
	movq	%rax, -196696(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r12, %rbx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_ptls_handshake
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	-196696(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-196728(%rbp), %rax
	sete	%dil
	callq	_ok
	movq	$0, -196728(%rbp)
	leaq	L_.str(%rip), %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	$11, %ecx
	callq	_ptls_send
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	-196712(%rbp), %rax
	movq	-196704(%rbp), %rdx
	movq	%rax, -196696(%rbp)
	movq	%r14, %rdi
	leaq	-196744(%rbp), %rbx
	movq	%rbx, %rsi
	movq	%r13, %rcx
	callq	_ptls_receive
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ok
	movq	-196696(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-196712(%rbp), %rax
	sete	%dil
	callq	_ok
	movq	$0, -196712(%rbp)
	xorl	%edi, %edi
	cmpq	$11, -196744(%rbp)
	sete	%dil
	callq	_ok
	movq	-196736(%rbp), %rdi
	movq	%r12, %rsi
	movl	$11, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	movq	%rbx, %rdi
	callq	_ptls_buffer_dispose
	leaq	-196728(%rbp), %rdi
	callq	_ptls_buffer_dispose
	leaq	-196712(%rbp), %rdi
	callq	_ptls_buffer_dispose
	movq	%r15, %rdi
	callq	_ptls_free
	movq	%r14, %rdi
	callq	_ptls_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$196744, %rsp                   ## imm = 0x30088
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ptls_minicrypto_x25519,4,2     ## @ptls_minicrypto_x25519
	.comm	_ptls_minicrypto_secp256r1,4,2  ## @ptls_minicrypto_secp256r1
	.section	__DATA,__const
	.p2align	4                               ## @__const.test_hrr.client_keyex
l___const.test_hrr.client_keyex:
	.quad	_ptls_minicrypto_x25519
	.quad	_ptls_minicrypto_secp256r1
	.quad	0

	.comm	_ptls_minicrypto_random_bytes,4,2 ## @ptls_minicrypto_random_bytes
	.comm	_ptls_get_time,4,2              ## @ptls_get_time
	.comm	_ptls_minicrypto_cipher_suites,4,2 ## @ptls_minicrypto_cipher_suites
	.comm	_ctx_peer,8,3                   ## @ctx_peer
	.comm	_PTLS_GROUP_SECP256R1,8,3       ## @PTLS_GROUP_SECP256R1
	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ## @PTLS_ERROR_IN_PROGRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hello world"

	.no_dead_strip	_test_hrr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_hrr
_test_hrr:                              ; @test_hrr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	w9, #128
	movk	w9, #3, lsl #16
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #48, lsl #12            ; =196608
	sub	sp, sp, #128
	sub	x8, x29, #64
Lloh2:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
Lloh5:
	adrp	x9, l___const.test_hrr.client_keyex@PAGE
Lloh6:
	add	x9, x9, l___const.test_hrr.client_keyex@PAGEOFF
	ldr	q0, [x9]
	str	q0, [x8]
	ldr	x9, [x9, #16]
	str	x9, [x8, #16]
Lloh7:
	adrp	x9, _ptls_minicrypto_random_bytes@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ptls_minicrypto_random_bytes@GOTPAGEOFF]
Lloh9:
	ldrsw	x9, [x9]
	str	x9, [sp, #56]
Lloh10:
	adrp	x9, _ptls_get_time@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ptls_get_time@GOTPAGEOFF]
	str	w9, [sp, #64]
Lloh12:
	adrp	x9, _ptls_minicrypto_cipher_suites@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ptls_minicrypto_cipher_suites@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	stp	x8, x9, [sp, #72]
	str	wzr, [sp, #88]
Lloh15:
	adrp	x20, _ctx_peer@GOTPAGE
Lloh16:
	ldr	x20, [x20, _ctx_peer@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _PTLS_GROUP_SECP256R1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PTLS_GROUP_SECP256R1@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	add	x0, sp, #56
	mov	w1, #0
	bl	_ptls_new
	mov	x19, x0
	ldr	x0, [x20]
	mov	w1, #1
	bl	_ptls_new
	mov	x20, x0
	add	x0, sp, #40
	add	x1, sp, #32, lsl #12            ; =131072
	add	x1, x1, #96
	mov	w2, #65536
	bl	_ptls_buffer_init
	add	x0, sp, #24
	add	x1, sp, #16, lsl #12            ; =65536
	add	x1, x1, #96
	mov	w2, #65536
	bl	_ptls_buffer_init
	add	x0, sp, #8
	add	x1, sp, #96
	mov	w2, #65536
	bl	_ptls_buffer_init
	add	x1, sp, #40
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_ptls_handshake
Lloh20:
	adrp	x21, _PTLS_ERROR_IN_PROGRESS@GOTPAGE
Lloh21:
	ldr	x21, [x21, _PTLS_ERROR_IN_PROGRESS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, eq
	bl	_ok
	ldp	x8, x2, [sp, #40]
	str	x8, [sp]
	add	x1, sp, #24
	mov	x3, sp
	mov	x0, x20
	mov	x4, #0
	bl	_ptls_handshake
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp]
	ldr	x9, [sp, #40]
	cmp	x8, x9
	cset	w0, eq
	bl	_ok
	str	xzr, [sp, #40]
	ldr	x8, [sp, #24]
	cmp	x8, #9
	cset	w0, hi
	bl	_ok
	ldr	x8, [sp, #32]
	ldr	w8, [x8, #20]
	cmp	w8, #2
	cset	w0, eq
	bl	_ok
	ldp	x8, x2, [sp, #24]
	str	x8, [sp]
	add	x1, sp, #40
	mov	x3, sp
	mov	x0, x19
	mov	x4, #0
	bl	_ptls_handshake
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp]
	ldr	x9, [sp, #24]
	cmp	x8, x9
	cset	w0, eq
	bl	_ok
	str	xzr, [sp, #24]
	ldr	x8, [sp, #40]
	cmp	x8, #8
	cset	w0, hi
	bl	_ok
	ldr	x8, [sp, #48]
	ldr	w8, [x8, #20]
	cmp	w8, #1
	cset	w0, eq
	bl	_ok
	ldp	x8, x2, [sp, #40]
	str	x8, [sp]
	add	x1, sp, #24
	mov	x3, sp
	mov	x0, x20
	mov	x4, #0
	bl	_ptls_handshake
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp]
	ldr	x9, [sp, #40]
	cmp	x8, x9
	cset	w0, eq
	bl	_ok
	str	xzr, [sp, #40]
	ldr	x8, [sp, #24]
	cmp	x8, #8
	cset	w0, hi
	bl	_ok
	ldr	x8, [sp, #32]
	ldr	w8, [x8, #20]
	cmp	w8, #2
	cset	w0, eq
	bl	_ok
	ldp	x8, x2, [sp, #24]
	str	x8, [sp]
	add	x1, sp, #40
	mov	x3, sp
	mov	x0, x19
	mov	x4, #0
	bl	_ptls_handshake
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp]
	ldr	x9, [sp, #24]
	cmp	x8, x9
	cset	w0, eq
	bl	_ok
	str	xzr, [sp, #24]
Lloh22:
	adrp	x21, l_.str@PAGE
Lloh23:
	add	x21, x21, l_.str@PAGEOFF
	add	x1, sp, #40
	mov	x0, x19
	mov	x2, x21
	mov	w3, #11
	bl	_ptls_send
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldp	x8, x2, [sp, #40]
	str	x8, [sp]
	add	x1, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_ptls_receive
	cmp	w0, #0
	cset	w0, eq
	bl	_ok
	ldr	x8, [sp]
	ldr	x9, [sp, #40]
	cmp	x8, x9
	cset	w0, eq
	bl	_ok
	str	xzr, [sp, #40]
	ldr	x8, [sp, #8]
	cmp	x8, #11
	cset	w0, eq
	bl	_ok
	ldr	x0, [sp, #16]
	mov	x1, x21
	mov	w2, #11
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
	add	x0, sp, #8
	bl	_ptls_buffer_dispose
	add	x0, sp, #24
	bl	_ptls_buffer_dispose
	add	x0, sp, #40
	bl	_ptls_buffer_dispose
	mov	x0, x19
	bl	_ptls_free
	mov	x0, x20
	bl	_ptls_free
	ldur	x8, [x29, #-40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	add	sp, sp, #48, lsl #12            ; =196608
	add	sp, sp, #128
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ptls_minicrypto_x25519,4,2     ; @ptls_minicrypto_x25519
	.comm	_ptls_minicrypto_secp256r1,4,2  ; @ptls_minicrypto_secp256r1
	.section	__DATA,__const
	.p2align	3                               ; @__const.test_hrr.client_keyex
l___const.test_hrr.client_keyex:
	.quad	_ptls_minicrypto_x25519
	.quad	_ptls_minicrypto_secp256r1
	.quad	0

	.comm	_ptls_minicrypto_random_bytes,4,2 ; @ptls_minicrypto_random_bytes
	.comm	_ptls_get_time,4,2              ; @ptls_get_time
	.comm	_ptls_minicrypto_cipher_suites,4,2 ; @ptls_minicrypto_cipher_suites
	.comm	_ctx_peer,8,3                   ; @ctx_peer
	.comm	_PTLS_GROUP_SECP256R1,8,3       ; @PTLS_GROUP_SECP256R1
	.comm	_PTLS_ERROR_IN_PROGRESS,4,2     ; @PTLS_ERROR_IN_PROGRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hello world"

	.no_dead_strip	_test_hrr
.subsections_via_symbols
