	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chacha_ivsetup                 ## -- Begin function chacha_ivsetup
	.p2align	4, 0x90
_chacha_ivsetup:                        ## @chacha_ivsetup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	callq	_U8TO32_LITTLE
	movq	(%r14), %rcx
	movq	%rax, 96(%rcx)
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_U8TO32_LITTLE
	jmp	LBB0_3
LBB0_1:
	movq	(%r14), %rax
	movq	$0, 96(%rax)
	xorl	%eax, %eax
LBB0_3:
	movq	(%r14), %rcx
	movq	%rax, 104(%rcx)
	movq	%r15, %rdi
	callq	_U8TO32_LITTLE
	movq	(%r14), %rcx
	movq	%rax, 112(%rcx)
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_U8TO32_LITTLE
	movq	(%r14), %rcx
	movq	%rax, 120(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chacha_ivsetup                 ; -- Begin function chacha_ivsetup
	.p2align	2
_chacha_ivsetup:                        ; @chacha_ivsetup
	.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, x1
	mov	x19, x0
	cbz	x2, LBB0_2
; %bb.1:
	mov	x21, x2
	mov	x0, x2
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #96]
	add	x0, x21, #16
	bl	_U8TO32_LITTLE
	b	LBB0_3
LBB0_2:
	mov	x0, #0
	ldr	x8, [x19]
	str	xzr, [x8, #96]
LBB0_3:
	ldr	x8, [x19]
	str	x0, [x8, #104]
	mov	x0, x20
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #112]
	add	x0, x20, #16
	bl	_U8TO32_LITTLE
	ldr	x8, [x19]
	str	x0, [x8, #120]
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
