	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function salsa20_encrypt_bytes
_salsa20_encrypt_bytes:                 ## @salsa20_encrypt_bytes
	.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	%r12
	pushq	%rbx
	subq	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpq	%rdx, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.3:
	leaq	-304(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	%r12, %rdi
	callq	_salsa20_wordtobyte
	movq	(%r15), %rax
	incl	32(%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	36(%rax)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$64, %r14d
	jbe	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$64, %edx
	callq	_crypto_xor
	addl	$-64, %r14d
	addq	$256, %rbx                      ## imm = 0x100
	jmp	LBB0_4
LBB0_7:
	leaq	-304(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_crypto_xor
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.9:
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_salsa20_encrypt_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function salsa20_encrypt_bytes
_salsa20_encrypt_bytes:                 ; @salsa20_encrypt_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x21, x3
	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]
	stur	x8, [x29, #-56]
	cmp	x1, x2
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x2
	mov	x2, x21
	bl	_memcpy
LBB0_2:
	cbz	w21, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20]
	add	x0, sp, #8
	bl	_salsa20_wordtobyte
	ldr	x8, [x20]
	ldr	w9, [x8, #32]
	adds	w9, w9, #1
	str	w9, [x8, #32]
	b.lo	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #36]
	add	w9, w9, #1
	str	w9, [x8, #36]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	subs	w22, w21, #64
	b.ls	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	w2, #64
	bl	_crypto_xor
	add	x19, x19, #256
	mov	x21, x22
	b	LBB0_3
LBB0_7:
	mov	x0, x19
	mov	x2, x21
	bl	_crypto_xor
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_salsa20_encrypt_bytes
.subsections_via_symbols
