	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_aad_ciphersuite
_test_aad_ciphersuite:                  ## @test_aad_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	$536, %rsp                      ## imm = 0x218
	.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, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	leaq	L_.str.2(%rip), %rdx
	movl	$11, %ecx
	movq	%r13, %rdi
	movl	$123, %esi
	callq	_ptls_aead_encrypt_init
	leaq	L_.str.1(%rip), %rdx
	leaq	-304(%rbp), %rsi
	movl	$11, %ecx
	movq	%r13, %rdi
	movq	%rsi, %rbx
	callq	_ptls_aead_encrypt_update
	movq	%rax, %r14
	leaq	(%rax,%rbp), %rsi
	addq	$-304, %rsi                     ## imm = 0xFED0
	movq	%r13, %rdi
	callq	_ptls_aead_encrypt_final
	addq	%rax, %r14
	movq	%r13, %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, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	$11, (%rsp)
	leaq	-560(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %r13
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	$123, %r8d
	leaq	L_.str.2(%rip), %r9
	callq	_ptls_aead_decrypt
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	$11, %rax
	sete	%dil
	callq	_ok
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	movq	$11, (%rsp)
	leaq	L_.str.3(%rip), %r9
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	movl	$123, %r8d
	callq	_ptls_aead_decrypt
	movq	_SIZE_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ok
	movq	%r15, %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	$536, %rsp                      ## imm = 0x218
	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	"my true aad"

L_.str.3:                               ## @.str.3
	.asciz	"my fake aad"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_aad_ciphersuite
_test_aad_ciphersuite:                  ; @test_aad_ciphersuite
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #528
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldp	w1, w8, [x0]
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x8
	mov	w2, #1
	mov	x3, x22
	mov	x4, #0
	bl	_ptls_aead_new
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh5:
	adrp	x24, l_.str.2@PAGE
Lloh6:
	add	x24, x24, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	w1, #123
	mov	x2, x24
	mov	w3, #11
	bl	_ptls_aead_encrypt_init
Lloh7:
	adrp	x19, l_.str.1@PAGE
Lloh8:
	add	x19, x19, l_.str.1@PAGEOFF
	add	x25, sp, #264
	add	x1, sp, #264
	mov	x0, x23
	mov	x2, x19
	mov	w3, #11
	bl	_ptls_aead_encrypt_update
	mov	x20, x0
	add	x1, x25, x0
	mov	x0, x23
	bl	_ptls_aead_encrypt_final
	add	x20, x0, x20
	mov	x0, x23
	bl	_ptls_aead_free
	ldp	w1, w0, [x21]
	mov	w2, #0
	mov	x3, x22
	mov	x4, #0
	bl	_ptls_aead_new
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	add	x1, sp, #8
	add	x2, sp, #264
	mov	x0, x21
	mov	x3, x20
	mov	w4, #123
	mov	x5, x24
	mov	w6, #11
	bl	_ptls_aead_decrypt
	mov	x22, x0
	cmp	x0, #11
	cset	w0, eq
	bl	_ok
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
Lloh9:
	adrp	x5, l_.str.3@PAGE
Lloh10:
	add	x5, x5, l_.str.3@PAGEOFF
	add	x1, sp, #8
	add	x2, sp, #264
	mov	x0, x21
	mov	x3, x20
	mov	w4, #123
	mov	w6, #11
	bl	_ptls_aead_decrypt
Lloh11:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_ok
	mov	x0, x21
	bl	_ptls_aead_free
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	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	"my true aad"

l_.str.3:                               ; @.str.3
	.asciz	"my fake aad"

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