	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blake2sp_init                  ## -- Begin function blake2sp_init
	.p2align	4, 0x90
_blake2sp_init:                         ## @blake2sp_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r12
	movq	_BLAKE2S_OUTBYTES@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jb	LBB0_10
## %bb.2:
	movq	%rdi, %r15
	movl	32(%rdi), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	$0, 24(%r15)
	movq	%r12, (%r15)
	movq	16(%r15), %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_blake2sp_init_root
	testq	%rax, %rax
	js	LBB0_10
## %bb.3:
	movq	_PARALLELISM_DEGREE@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_blake2sp_init_leaf
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jb	LBB0_7
## %bb.8:
	decq	%rax
	jmp	LBB0_9
LBB0_4:
	movq	$-1, %rax
LBB0_9:
	movq	16(%r15), %rcx
	movl	$1, (%rcx)
	movq	8(%r15), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	$1, (%rax)
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLAKE2S_OUTBYTES,8,3           ## @BLAKE2S_OUTBYTES
	.comm	_PARALLELISM_DEGREE,8,3         ## @PARALLELISM_DEGREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blake2sp_init                  ; -- Begin function blake2sp_init
	.p2align	2
_blake2sp_init:                         ; @blake2sp_init
	.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	x19, x0
	mov	w0, #-1
	cbz	x1, LBB0_11
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _BLAKE2S_OUTBYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLAKE2S_OUTBYTES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.lo	LBB0_11
; %bb.2:
	ldr	w0, [x19, #32]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	xzr, [x19, #24]
	str	x20, [x19]
	ldr	x0, [x19, #16]
	mov	x1, x20
	mov	w2, #0
	bl	_blake2sp_init_root
	tbnz	x0, #63, LBB0_8
; %bb.3:
Lloh3:
	adrp	x22, _PARALLELISM_DEGREE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PARALLELISM_DEGREE@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_9
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21, lsl #3]
	mov	x1, x20
	mov	w2, #0
	mov	x3, x21
	bl	_blake2sp_init_leaf
	tbnz	x0, #63, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x8, [x22]
	cmp	x21, x8
	b.lo	LBB0_5
; %bb.7:
	sub	x8, x8, #1
	b	LBB0_10
LBB0_8:
	mov	w0, #-1
	b	LBB0_11
LBB0_9:
	mov	x8, #-1
LBB0_10:
	mov	w0, #0
	mov	w9, #1
	ldp	x11, x10, [x19, #8]
	str	w9, [x10]
	ldr	x8, [x11, x8, lsl #3]
	str	w9, [x8]
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BLAKE2S_OUTBYTES,8,3           ; @BLAKE2S_OUTBYTES
	.comm	_PARALLELISM_DEGREE,8,3         ; @PARALLELISM_DEGREE
.subsections_via_symbols
