	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_chacha20
_test_chacha20:                         ## @test_chacha20
	.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	$2232, %rsp                     ## imm = 0x8B8
	.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)
	leaq	L_.str(%rip), %rdx
	leaq	-176(%rbp), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_unhex
	leaq	L_.str.1(%rip), %rdx
	leaq	-208(%rbp), %r15
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_unhex
	leaq	L_.str.2(%rip), %rdx
	leaq	-2256(%rbp), %r13
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_unhex
	leaq	-1232(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	leaq	-2260(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$128, %edx
	movq	%r15, %rcx
	callq	_cf_chacha20_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_cf_chacha20_cipher
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_TEST_CHECK
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	movq	%r15, %rcx
	callq	_cf_chacha20_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_cf_chacha20_cipher
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$2232, %rsp                     ## imm = 0x8B8
	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	"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f"

L_.str.1:                               ## @.str.1
	.asciz	"0001020304050607"

L_.str.2:                               ## @.str.2
	.asciz	"f798a189f195e66982105ffb640bb7757f579da31602fc93ec01ac56f85ac3c134a4547b733b46413042c9440049176905d3be59ea1c53f15916155c2be8241a38008b9a26bc35941e2444177c8ade6689de95264986d95889fb60e84629c9bd9a5acb1cc118be563eb9b3a4a472f82e09a7e778492b562ef7130e88dfe031c79db9d4f7c7a899151b9a475032b63fc385245fe054e3dd5a97a5f576fe064025d3ce042c566ab2c507b138db853e3d6959660996546cc9c4a6eafdc777c040d70eaf46f76dad3979e5c5360c3317166a1c894c94a371876a94df7628fe4eaaf2ccb27d5aaae0ad7ad0f9d4b6ad3b54098746d4524d38407a6deb3ab78fab78c9"

	.no_dead_strip	_test_chacha20
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_chacha20
_test_chacha20:                         ; @test_chacha20
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w27, -24
	.cfi_offset w28, -32
	sub	sp, sp, #2224
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	sub	x0, x29, #152
	mov	w1, #32
	bl	_unhex
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	sub	x0, x29, #184
	mov	w1, #8
	bl	_unhex
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w1, #256
	bl	_unhex
	add	x0, sp, #1032
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	add	x0, sp, #4
	sub	x1, x29, #152
	sub	x3, x29, #184
	mov	w2, #128
	bl	_cf_chacha20_init
	add	x0, sp, #4
	add	x1, sp, #1032
	add	x2, sp, #1032
	mov	w3, #1024
	bl	_cf_chacha20_cipher
	add	x0, sp, #8
	add	x1, sp, #1032
	mov	w2, #1024
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_TEST_CHECK
	add	x0, sp, #4
	sub	x1, x29, #152
	sub	x3, x29, #184
	mov	w2, #16
	bl	_cf_chacha20_init
	add	x0, sp, #4
	add	x1, sp, #1032
	add	x2, sp, #1032
	mov	w3, #1024
	bl	_cf_chacha20_cipher
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	add	sp, sp, #2224
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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	"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f"

l_.str.1:                               ; @.str.1
	.asciz	"0001020304050607"

l_.str.2:                               ; @.str.2
	.asciz	"f798a189f195e66982105ffb640bb7757f579da31602fc93ec01ac56f85ac3c134a4547b733b46413042c9440049176905d3be59ea1c53f15916155c2be8241a38008b9a26bc35941e2444177c8ade6689de95264986d95889fb60e84629c9bd9a5acb1cc118be563eb9b3a4a472f82e09a7e778492b562ef7130e88dfe031c79db9d4f7c7a899151b9a475032b63fc385245fe054e3dd5a97a5f576fe064025d3ce042c566ab2c507b138db853e3d6959660996546cc9c4a6eafdc777c040d70eaf46f76dad3979e5c5360c3317166a1c894c94a371876a94df7628fe4eaaf2ccb27d5aaae0ad7ad0f9d4b6ad3b54098746d4524d38407a6deb3ab78fab78c9"

	.no_dead_strip	_test_chacha20
.subsections_via_symbols
