	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_resumption_impl
_test_resumption_impl:                  ## @test_resumption_impl
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -100(%rbp)                ## 4-byte Spill
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ctx@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_ctx_peer@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	24(%rcx), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	(%r15), %rax
	movq	8(%rax), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_assert
	movq	(%r12), %rax
	movq	24(%rax), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_assert
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_ptls_minicrypto_x25519@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setne	%dil
	callq	_assert
	movq	%rbx, -80(%rbp)
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	8(%rax), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	leaq	-80(%rbp), %rcx
	movq	%rcx, 8(%rax)
LBB0_2:
	movq	_on_copy_ticket@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	_on_save_ticket@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_assert
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpl	$0, 4(%rax)
	sete	%dil
	callq	_assert
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_assert
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpq	$0, 16(%rax)
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ptls_iovec_init
	movq	_saved_ticket@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movq	(%r12), %rax
	movabsq	$35184372175232, %rcx           ## imm = 0x200000015180
	movq	%rcx, (%rax)
	leaq	-96(%rbp), %rcx
	movq	%rcx, 8(%rax)
	movq	(%r15), %rax
	leaq	-88(%rbp), %rcx
	movq	%rcx, 16(%rax)
	movq	_sc_callcnt@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	movq	_TEST_HANDSHAKE_1RTT@GOTPCREL(%rip), %r15
	movq	%r15, %rax
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_TEST_HANDSHAKE_2RTT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	(%rdx), %rdi
	movq	%rdx, %rbx
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_test_handshake
	xorl	%edi, %edi
	cmpl	$1, (%r13)
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_ok
	movl	(%r15), %esi
	movq	(%rbx), %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	-100(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_test_handshake
	xorl	%ebx, %ebx
	cmpl	$1, %r15d
	sete	%bl
	leal	1(%rbx,%rbx), %eax
	leal	1(,%rbx,4), %r12d
	movl	$7, %r14d
	movl	$1, %edx
	cmovnel	%edx, %r14d
	xorl	%edi, %edi
	cmpl	%eax, (%r13)
	sete	%dil
	callq	_ok
	movq	_TEST_HANDSHAKE_EARLY_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_saved_ticket@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_test_handshake
	xorl	%edi, %edi
	cmpl	%r12d, (%r13)
	sete	%dil
	callq	_ok
	movq	_ctx@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	$1, (%rax)
	movq	_TEST_HANDSHAKE_1RTT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_saved_ticket@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_test_handshake
	leal	1(,%rbx,8), %ebx
	xorl	%edi, %edi
	movq	_sc_callcnt@GOTPCREL(%rip), %r12
	cmpl	%r14d, (%r12)
	sete	%dil
	callq	_ok
	movq	_TEST_HANDSHAKE_EARLY_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_test_handshake
	xorl	%edi, %edi
	cmpl	%ebx, (%r12)
	sete	%dil
	callq	_ok
	movq	_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%rax)
	movq	_ctx_peer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
	movq	$0, 16(%rax)
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,8,3                        ## @ctx
	.comm	_ctx_peer,8,3                   ## @ctx_peer
	.comm	_ptls_minicrypto_x25519,8,3     ## @ptls_minicrypto_x25519
	.comm	_on_copy_ticket,4,2             ## @on_copy_ticket
	.comm	_on_save_ticket,4,2             ## @on_save_ticket
	.comm	_saved_ticket,8,3               ## @saved_ticket
	.comm	_sc_callcnt,4,2                 ## @sc_callcnt
	.comm	_TEST_HANDSHAKE_2RTT,4,2        ## @TEST_HANDSHAKE_2RTT
	.comm	_TEST_HANDSHAKE_1RTT,4,2        ## @TEST_HANDSHAKE_1RTT
	.comm	_TEST_HANDSHAKE_EARLY_DATA,4,2  ## @TEST_HANDSHAKE_EARLY_DATA
	.no_dead_strip	_test_resumption_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function test_resumption_impl
lCPI0_0:
	.long	86400                           ; 0x15180
	.long	8192                            ; 0x2000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_test_resumption_impl:                  ; @test_resumption_impl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x21, _ctx@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ctx@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh5:
	adrp	x22, _ctx_peer@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ctx_peer@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x9, [x9, #24]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh7:
	adrp	x23, _ptls_minicrypto_x25519@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ptls_minicrypto_x25519@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	str	x23, [sp, #32]
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	stp	x9, xzr, [sp, #40]
	ldr	x9, [x8, #8]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	cbz	w20, LBB0_2
; %bb.1:
	add	x9, sp, #32
	str	x9, [x8, #8]
LBB0_2:
Lloh9:
	adrp	x8, _on_copy_ticket@GOTPAGE
Lloh10:
	ldr	x8, [x8, _on_copy_ticket@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh12:
	adrp	x8, _on_save_ticket@GOTPAGE
Lloh13:
	ldr	x8, [x8, _on_save_ticket@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22]
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, #0
	mov	w1, #0
	bl	_ptls_iovec_init
Lloh15:
	adrp	x24, _saved_ticket@GOTPAGE
Lloh16:
	ldr	x24, [x24, _saved_ticket@GOTPAGEOFF]
	str	x0, [x24]
	ldr	x8, [x22]
Lloh17:
	adrp	x9, lCPI0_0@PAGE
Lloh18:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	add	x9, sp, #24
	str	x9, [x8, #8]
	ldr	x8, [x21]
	add	x9, sp, #16
	str	x9, [x8, #16]
Lloh19:
	adrp	x25, _sc_callcnt@GOTPAGE
Lloh20:
	ldr	x25, [x25, _sc_callcnt@GOTPAGEOFF]
	str	wzr, [x25]
Lloh21:
	adrp	x8, _TEST_HANDSHAKE_2RTT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TEST_HANDSHAKE_2RTT@GOTPAGEOFF]
Lloh23:
	adrp	x26, _TEST_HANDSHAKE_1RTT@GOTPAGE
Lloh24:
	ldr	x26, [x26, _TEST_HANDSHAKE_1RTT@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x26, x8, eq
	ldr	w1, [x8]
	ldr	x0, [x24]
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_test_handshake
	ldr	w8, [x25]
	cmp	w8, #1
	cset	w0, eq
	bl	_ok
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w0, ne
	bl	_ok
	ldr	w1, [x26]
	ldr	x0, [x24]
	mov	w2, #1
	mov	w3, #0
	mov	x4, x19
	bl	_test_handshake
	cmp	w19, #1
	mov	w8, #3
	ldr	w9, [x25]
	csinc	w8, w8, wzr, eq
	mov	w10, #5
	csinc	w27, w10, wzr, eq
	mov	w10, #7
	csinc	w28, w10, wzr, eq
	mov	w10, #9
	csinc	w23, w10, wzr, eq
	cmp	w9, w8
	cset	w0, eq
	bl	_ok
Lloh25:
	adrp	x20, _TEST_HANDSHAKE_EARLY_DATA@GOTPAGE
Lloh26:
	ldr	x20, [x20, _TEST_HANDSHAKE_EARLY_DATA@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x0, [x24]
	mov	w2, #1
	mov	w3, #0
	mov	x4, x19
	bl	_test_handshake
	ldr	w8, [x25]
	cmp	w8, w27
	cset	w0, eq
	bl	_ok
	ldr	x8, [x21]
	mov	w9, #1
	str	w9, [x8]
	ldr	w1, [x26]
	ldr	x0, [x24]
	mov	w2, #1
	mov	w3, #0
	mov	x4, x19
	bl	_test_handshake
	ldr	w8, [x25]
	cmp	w8, w28
	cset	w0, eq
	bl	_ok
	ldr	w1, [x20]
	ldr	x0, [x24]
	mov	w2, #1
	mov	w3, #0
	mov	x4, x19
	bl	_test_handshake
	ldr	w8, [x25]
	cmp	w8, w23
	cset	w0, eq
	bl	_ok
	ldr	x8, [x21]
	str	wzr, [x8]
	ldr	x9, [x22]
	stp	xzr, xzr, [x9]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	stp	x9, xzr, [x8, #8]
	ldr	x8, [sp, #56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx,8,3                        ; @ctx
	.comm	_ctx_peer,8,3                   ; @ctx_peer
	.comm	_ptls_minicrypto_x25519,8,3     ; @ptls_minicrypto_x25519
	.comm	_on_copy_ticket,4,2             ; @on_copy_ticket
	.comm	_on_save_ticket,4,2             ; @on_save_ticket
	.comm	_saved_ticket,8,3               ; @saved_ticket
	.comm	_sc_callcnt,4,2                 ; @sc_callcnt
	.comm	_TEST_HANDSHAKE_2RTT,4,2        ; @TEST_HANDSHAKE_2RTT
	.comm	_TEST_HANDSHAKE_1RTT,4,2        ; @TEST_HANDSHAKE_1RTT
	.comm	_TEST_HANDSHAKE_EARLY_DATA,4,2  ; @TEST_HANDSHAKE_EARLY_DATA
	.no_dead_strip	_test_resumption_impl
.subsections_via_symbols
