	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blake2sp_init_key              ## -- Begin function blake2sp_init_key
	.p2align	4, 0x90
_blake2sp_init_key:                     ## @blake2sp_init_key
	.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	$24, %rsp
	.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)
	movl	$-1, %r14d
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movq	%rsi, %rbx
	movq	_BLAKE2S_OUTBYTES@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jb	LBB0_16
## %bb.2:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.3:
	movq	%rcx, %r15
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.4:
	movq	_BLAKE2S_KEYBYTES@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jb	LBB0_16
## %bb.5:
	movq	%rdi, %r13
	movq	32(%rdi), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	$0, 24(%r13)
	movq	%rbx, (%r13)
	movq	16(%r13), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_blake2sp_init_root
	testq	%rax, %rax
	js	LBB0_16
## %bb.6:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	_PARALLELISM_DEGREE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.8:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_blake2sp_init_leaf
	testq	%rax, %rax
	js	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	movq	_PARALLELISM_DEGREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r12
	jb	LBB0_10
## %bb.11:
	decq	%rax
	jmp	LBB0_12
LBB0_7:
	movq	$-1, %rax
LBB0_12:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rcx
	movl	$1, (%rcx)
	movq	8(%r13), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	$1, (%rax)
	movq	_BLAKE2S_BLOCKBYTES@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
	movq	_PARALLELISM_DEGREE@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%r12), %edx
	movq	%r14, %rsi
	callq	_blake2s_update
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_14
LBB0_15:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_secure_zero_memory
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	xorl	%r14d, %r14d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BLAKE2S_OUTBYTES,8,3           ## @BLAKE2S_OUTBYTES
	.comm	_BLAKE2S_KEYBYTES,8,3           ## @BLAKE2S_KEYBYTES
	.comm	_PARALLELISM_DEGREE,8,3         ## @PARALLELISM_DEGREE
	.comm	_BLAKE2S_BLOCKBYTES,4,2         ## @BLAKE2S_BLOCKBYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blake2sp_init_key              ; -- Begin function blake2sp_init_key
	.p2align	2
_blake2sp_init_key:                     ; @blake2sp_init_key
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	w0, #-1
	cbz	x1, LBB0_17
; %bb.1:
	mov	x22, x1
Lloh3:
	adrp	x8, _BLAKE2S_OUTBYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLAKE2S_OUTBYTES@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.lo	LBB0_17
; %bb.2:
	mov	x21, x2
	mov	w0, #-1
	cbz	x2, LBB0_17
; %bb.3:
	mov	x20, x3
	cbz	x3, LBB0_17
; %bb.4:
Lloh6:
	adrp	x8, _BLAKE2S_KEYBYTES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BLAKE2S_KEYBYTES@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x20
	b.lo	LBB0_17
; %bb.5:
	ldr	x0, [x19, #32]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	xzr, [x19, #24]
	str	x22, [x19]
	ldr	x0, [x19, #16]
	mov	x1, x22
	mov	x2, x20
	bl	_blake2sp_init_root
	tbnz	x0, #63, LBB0_11
; %bb.6:
Lloh9:
	adrp	x24, _PARALLELISM_DEGREE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _PARALLELISM_DEGREE@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_12
; %bb.7:
	mov	x23, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x22
	mov	x2, x20
	mov	x3, x23
	bl	_blake2sp_init_leaf
	tbnz	x0, #63, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldr	x8, [x24]
	cmp	x23, x8
	b.lo	LBB0_8
; %bb.10:
	sub	x8, x8, #1
	b	LBB0_13
LBB0_11:
	mov	w0, #-1
	b	LBB0_17
LBB0_12:
	mov	x8, #-1
LBB0_13:
	mov	x23, sp
	mov	w9, #1
	ldp	x11, x10, [x19, #8]
	str	w9, [x10]
	ldr	x8, [x11, x8, lsl #3]
	str	w9, [x8]
Lloh11:
	adrp	x25, _BLAKE2S_BLOCKBYTES@GOTPAGE
Lloh12:
	ldr	x25, [x25, _BLAKE2S_BLOCKBYTES@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w2, [x25]
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x24]
	cbz	x8, LBB0_16
; %bb.14:
	mov	x20, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	ldr	w2, [x25]
	mov	x1, x22
	bl	_blake2s_update
	add	x20, x20, #1
	ldr	x8, [x24]
	cmp	x20, x8
	b.lo	LBB0_15
LBB0_16:
	ldr	w1, [x25]
	mov	x0, x22
	bl	_secure_zero_memory
	mov	sp, x23
	mov	w0, #0
LBB0_17:
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #64
	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
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BLAKE2S_OUTBYTES,8,3           ; @BLAKE2S_OUTBYTES
	.comm	_BLAKE2S_KEYBYTES,8,3           ; @BLAKE2S_KEYBYTES
	.comm	_PARALLELISM_DEGREE,8,3         ; @PARALLELISM_DEGREE
	.comm	_BLAKE2S_BLOCKBYTES,4,2         ; @BLAKE2S_BLOCKBYTES
.subsections_via_symbols
