	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chacha_keysetup                ## -- Begin function chacha_keysetup
	.p2align	4, 0x90
_chacha_keysetup:                       ## @chacha_keysetup
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 32(%rcx)
	leaq	4(%r14), %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 40(%rcx)
	leaq	8(%r14), %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 48(%rcx)
	leaq	12(%r14), %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 56(%rcx)
	xorl	%ebx, %ebx
	cmpl	$256, %r15d                     ## imm = 0x100
	sete	%bl
	jne	LBB0_1
## %bb.2:
	movq	_sigma@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_tau@GOTPCREL(%rip), %rax
LBB0_3:
	shlq	$4, %rbx
	leaq	(%r14,%rbx), %rdi
	movq	(%rax), %r15
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 64(%rcx)
	leaq	(%r14,%rbx), %rdi
	addq	$4, %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 72(%rcx)
	leaq	(%r14,%rbx), %rdi
	addq	$8, %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 80(%rcx)
	leaq	(%r14,%rbx), %rdi
	addq	$12, %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 88(%rcx)
	movq	%r15, %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	leaq	4(%r15), %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx)
	leaq	8(%r15), %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 16(%rcx)
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_U8TO32_LITTLE
	movq	(%r12), %rcx
	movq	%rax, 24(%rcx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sigma,8,3                      ## @sigma
	.comm	_tau,8,3                        ## @tau
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chacha_keysetup                ; -- Begin function chacha_keysetup
	.p2align	2
_chacha_keysetup:                       ; @chacha_keysetup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #32]
	add	x0, x21, #4
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #40]
	add	x0, x21, #8
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #48]
	add	x0, x21, #12
	bl	_U8TO32_LITTLE
	cmp	w20, #256
	cset	w8, eq
	ldr	x9, [x19]
	str	x0, [x9, #56]
	add	x20, x21, w8, uxtw #4
Lloh0:
	adrp	x8, _sigma@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sigma@GOTPAGEOFF]
Lloh2:
	adrp	x9, _tau@GOTPAGE
Lloh3:
	ldr	x9, [x9, _tau@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x21, [x8]
	mov	x0, x20
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #64]
	add	x0, x20, #4
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #72]
	add	x0, x20, #8
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #80]
	add	x0, x20, #12
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #88]
	mov	x0, x21
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8]
	add	x0, x21, #4
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #8]
	add	x0, x21, #8
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #16]
	add	x0, x21, #12
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #24]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sigma,8,3                      ; @sigma
	.comm	_tau,8,3                        ; @tau
.subsections_via_symbols
