	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ciphersuite
_test_ciphersuite:                      ## @test_ciphersuite
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %r12
	movl	$1, %edx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_ptls_aead_new
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ptls_aead_encrypt_init
	leaq	L_.str.1(%rip), %rdx
	leaq	-304(%rbp), %rsi
	movl	$11, %ecx
	movq	%r14, %rdi
	callq	_ptls_aead_encrypt_update
	movq	%rax, %rbx
	leaq	(%rax,%rbp), %rsi
	addq	$-304, %rsi                     ## imm = 0xFED0
	movq	%r14, %rdi
	callq	_ptls_aead_encrypt_final
	addq	%rax, %rbx
	movq	%rbx, -1080(%rbp)               ## 8-byte Spill
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ptls_aead_encrypt_init
	leaq	L_.str.2(%rip), %rdx
	leaq	-560(%rbp), %rsi
	movl	$13, %ecx
	movq	%r14, %rdi
	callq	_ptls_aead_encrypt_update
	movq	%rax, %r13
	leaq	(%rax,%rbp), %rsi
	addq	$-560, %rsi                     ## imm = 0xFDD0
	movq	%r14, %rdi
	callq	_ptls_aead_encrypt_final
	addq	%rax, %r13
	movq	%r14, %rdi
	callq	_ptls_aead_free
	movl	(%r15), %esi
	movl	4(%r15), %edi
	xorl	%edx, %edx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_ptls_aead_new
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	$0, (%rsp)
	leaq	-816(%rbp), %rsi
	movq	%r12, %rdi
	leaq	-304(%rbp), %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ptls_aead_decrypt
	movq	%rax, %r14
	movq	_SIZE_MAX@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setne	%dil
	callq	_ok
	movl	$0, (%rsp)
	leaq	-1072(%rbp), %rsi
	movq	%r12, %rdi
	leaq	-560(%rbp), %rdx
	movq	%r13, %rcx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_ptls_aead_decrypt
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setne	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	$11, %r14
	sete	%dil
	callq	_ok
	leaq	L_.str.1(%rip), %rdi
	leaq	-816(%rbp), %r13
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	cmpq	$13, %rbx
	sete	%dil
	callq	_ok
	decq	%rbx
	leaq	L_.str.2(%rip), %rdi
	leaq	-1072(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	xorb	$1, -304(%rbp)
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	leaq	-304(%rbp), %rdx
	movq	-1080(%rbp), %rcx               ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ptls_aead_decrypt
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_ok
	movq	%r12, %rdi
	callq	_ptls_aead_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"012345678901234567890123456789012345678901234567"

L_.str.1:                               ## @.str.1
	.asciz	"hello world"

L_.str.2:                               ## @.str.2
	.asciz	"good bye, all"

	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.no_dead_strip	_test_ciphersuite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_ciphersuite
_test_ciphersuite:                      ; @test_ciphersuite
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1040
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	w1, w8, [x0]
Lloh3:
	adrp	x23, l_.str@PAGE
Lloh4:
	add	x23, x23, l_.str@PAGEOFF
	mov	x0, x8
	mov	w2, #1
	mov	x3, x23
	mov	x4, #0
	bl	_ptls_aead_new
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x24
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_ptls_aead_encrypt_init
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
	add	x21, sp, #776
	add	x1, sp, #776
	mov	x0, x24
	mov	x2, x20
	mov	w3, #11
	bl	_ptls_aead_encrypt_update
	mov	x19, x0
	add	x1, x21, x0
	mov	x0, x24
	bl	_ptls_aead_encrypt_final
	add	x19, x0, x19
	mov	x0, x24
	mov	w1, #1
	mov	x2, #0
	mov	w3, #0
	bl	_ptls_aead_encrypt_init
Lloh7:
	adrp	x21, l_.str.2@PAGE
Lloh8:
	add	x21, x21, l_.str.2@PAGEOFF
	add	x26, sp, #520
	add	x1, sp, #520
	mov	x0, x24
	mov	x2, x21
	mov	w3, #13
	bl	_ptls_aead_encrypt_update
	mov	x25, x0
	add	x1, x26, x0
	mov	x0, x24
	bl	_ptls_aead_encrypt_final
	add	x25, x0, x25
	mov	x0, x24
	bl	_ptls_aead_free
	ldp	w1, w0, [x22]
	mov	w2, #0
	mov	x3, x23
	mov	x4, #0
	bl	_ptls_aead_new
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	add	x1, sp, #264
	add	x2, sp, #776
	mov	x0, x22
	mov	x3, x19
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_ptls_aead_decrypt
	mov	x23, x0
Lloh9:
	adrp	x26, _SIZE_MAX@GOTPAGE
Lloh10:
	ldr	x26, [x26, _SIZE_MAX@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w0, ne
	bl	_ok
	add	x1, sp, #8
	add	x2, sp, #520
	mov	x0, x22
	mov	x3, x25
	mov	w4, #1
	mov	x5, #0
	mov	w6, #0
	bl	_ptls_aead_decrypt
	mov	x24, x0
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w0, ne
	bl	_ok
	cmp	x23, #11
	cset	w0, eq
	bl	_ok
	add	x1, sp, #264
	mov	x0, x20
	mov	x2, x23
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
	cmp	x24, #13
	cset	w0, eq
	bl	_ok
	sub	x2, x24, #1
	add	x1, sp, #8
	mov	x0, x21
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
	ldrb	w8, [sp, #776]
	eor	w8, w8, #0x1
	strb	w8, [sp, #776]
	add	x1, sp, #264
	add	x2, sp, #776
	mov	x0, x22
	mov	x3, x19
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_ptls_aead_decrypt
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w0, eq
	bl	_ok
	mov	x0, x22
	bl	_ptls_aead_free
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	add	sp, sp, #1040
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"012345678901234567890123456789012345678901234567"

l_.str.1:                               ; @.str.1
	.asciz	"hello world"

l_.str.2:                               ; @.str.2
	.asciz	"good bye, all"

	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.no_dead_strip	_test_ciphersuite
.subsections_via_symbols
