	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ecb
_test_ecb:                              ## @test_ecb
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_malloc
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memset
	leaq	_test_ecb.key(%rip), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ptls_cipher_new
	movq	%rax, %r12
	leaq	_test_ecb.plaintext(%rip), %rdx
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_ptls_cipher_encrypt
	movq	%r12, %rdi
	callq	_ptls_cipher_free
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	movq	%r15, %rdi
	xorl	%esi, %esi
	leaq	_test_ecb.key(%rip), %rdx
	callq	_ptls_cipher_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_ptls_cipher_encrypt
	movq	%rbx, %rdi
	callq	_ptls_cipher_free
	movq	%r13, %rdi
	leaq	_test_ecb.plaintext(%rip), %rsi
	movq	%r14, %rdx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ok
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @test_ecb.key
_test_ecb.key:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	7                               ## 0x7
	.long	8                               ## 0x8
	.long	9                               ## 0x9
	.long	10                              ## 0xa
	.long	11                              ## 0xb
	.long	12                              ## 0xc
	.long	13                              ## 0xd
	.long	14                              ## 0xe
	.long	15                              ## 0xf
	.long	16                              ## 0x10
	.long	17                              ## 0x11
	.long	18                              ## 0x12
	.long	19                              ## 0x13
	.long	20                              ## 0x14
	.long	21                              ## 0x15
	.long	22                              ## 0x16
	.long	23                              ## 0x17
	.long	24                              ## 0x18
	.long	25                              ## 0x19
	.long	26                              ## 0x1a
	.long	27                              ## 0x1b
	.long	28                              ## 0x1c
	.long	29                              ## 0x1d
	.long	30                              ## 0x1e
	.long	31                              ## 0x1f

	.p2align	4                               ## @test_ecb.plaintext
_test_ecb.plaintext:
	.long	0                               ## 0x0
	.long	17                              ## 0x11
	.long	34                              ## 0x22
	.long	51                              ## 0x33
	.long	68                              ## 0x44
	.long	85                              ## 0x55
	.long	102                             ## 0x66
	.long	119                             ## 0x77
	.long	136                             ## 0x88
	.long	153                             ## 0x99
	.long	170                             ## 0xaa
	.long	187                             ## 0xbb
	.long	204                             ## 0xcc
	.long	221                             ## 0xdd
	.long	238                             ## 0xee
	.long	255                             ## 0xff

	.no_dead_strip	_test_ecb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_ecb
_test_ecb:                              ; @test_ecb
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x2
	bl	_malloc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_memset
Lloh0:
	adrp	x23, _test_ecb.key@PAGE
Lloh1:
	add	x23, x23, _test_ecb.key@PAGEOFF
	mov	x0, x22
	mov	w1, #1
	mov	x2, x23
	bl	_ptls_cipher_new
	mov	x24, x0
Lloh2:
	adrp	x25, _test_ecb.plaintext@PAGE
Lloh3:
	add	x25, x25, _test_ecb.plaintext@PAGEOFF
	mov	x1, x19
	mov	x2, x25
	mov	x3, x20
	bl	_ptls_cipher_encrypt
	mov	x0, x24
	bl	_ptls_cipher_free
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	bl	_ptls_cipher_new
	mov	x21, x0
	mov	x1, x19
	mov	x2, x19
	mov	x3, x20
	bl	_ptls_cipher_encrypt
	mov	x0, x21
	bl	_ptls_cipher_free
	mov	x0, x19
	mov	x1, x25
	mov	x2, x20
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_ok
	mov	x0, x19
	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
	b	_free
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @test_ecb.key
_test_ecb.key:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	7                               ; 0x7
	.long	8                               ; 0x8
	.long	9                               ; 0x9
	.long	10                              ; 0xa
	.long	11                              ; 0xb
	.long	12                              ; 0xc
	.long	13                              ; 0xd
	.long	14                              ; 0xe
	.long	15                              ; 0xf
	.long	16                              ; 0x10
	.long	17                              ; 0x11
	.long	18                              ; 0x12
	.long	19                              ; 0x13
	.long	20                              ; 0x14
	.long	21                              ; 0x15
	.long	22                              ; 0x16
	.long	23                              ; 0x17
	.long	24                              ; 0x18
	.long	25                              ; 0x19
	.long	26                              ; 0x1a
	.long	27                              ; 0x1b
	.long	28                              ; 0x1c
	.long	29                              ; 0x1d
	.long	30                              ; 0x1e
	.long	31                              ; 0x1f

	.p2align	2                               ; @test_ecb.plaintext
_test_ecb.plaintext:
	.long	0                               ; 0x0
	.long	17                              ; 0x11
	.long	34                              ; 0x22
	.long	51                              ; 0x33
	.long	68                              ; 0x44
	.long	85                              ; 0x55
	.long	102                             ; 0x66
	.long	119                             ; 0x77
	.long	136                             ; 0x88
	.long	153                             ; 0x99
	.long	170                             ; 0xaa
	.long	187                             ; 0xbb
	.long	204                             ; 0xcc
	.long	221                             ; 0xdd
	.long	238                             ; 0xee
	.long	255                             ; 0xff

	.no_dead_strip	_test_ecb
.subsections_via_symbols
