	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blake2sp_update                ## -- Begin function blake2sp_update
	.p2align	4, 0x90
_blake2sp_update:                       ## @blake2sp_update
	.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	%rdx, %r9
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r8
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	$8, %r13d
	subq	%rdi, %r13
	cmpq	%r9, %r13
	ja	LBB0_7
## %bb.3:
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	addq	8(%r8), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r8, %r12
	callq	_memcpy
	movq	_PARALLELISM_DEGREE@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_BLAKE2S_BLOCKBYTES@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	(%r15), %rdx
	movq	%rdx, %rsi
	imulq	%rbx, %rsi
	addq	8(%r12), %rsi
	callq	_blake2s_update
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_5
LBB0_6:
	addq	%r13, -48(%rbp)                 ## 8-byte Folded Spill
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	subq	%r13, %r9
	xorl	%edi, %edi
	movq	%r12, %r8
	jmp	LBB0_7
LBB0_1:
	xorl	%edi, %edi
LBB0_7:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_PARALLELISM_DEGREE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_BLAKE2S_BLOCKBYTES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	xorl	%r15d, %r15d
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	cmpq	%rax, %r15
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	jae	LBB0_14
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%r10, %rdx
	imulq	%rax, %rdx
	cmpq	%rdx, %r9
	jb	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r10, %rbx
	imulq	%r15, %rbx
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%r9, %r12
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r8), %rax
	movl	(%rax,%r15,4), %edi
	movq	%rbx, %rsi
	movq	%r10, %rdx
	movq	%r8, %r13
	callq	_blake2s_update
	movq	_BLAKE2S_BLOCKBYTES@GOTPCREL(%rip), %rdx
	movq	%r13, %r8
	movq	(%r14), %rax
	movq	(%rdx), %r10
	movq	%r10, %rdx
	imulq	%rax, %rdx
	addq	%rdx, %rbx
	subq	%rdx, %r12
	cmpq	%rdx, %r12
	jae	LBB0_12
	jmp	LBB0_13
LBB0_8:
	movq	_BLAKE2S_BLOCKBYTES@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	xorl	%eax, %eax
LBB0_14:
	imulq	%rax, %r10
	movq	%r9, %rax
	orq	%r10, %rax
	shrq	$32, %rax
	je	LBB0_15
## %bb.16:
	movq	%r9, %rax
	xorl	%edx, %edx
	divq	%r10
	movq	%rdx, %rbx
	jmp	LBB0_17
LBB0_15:
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	%r10d
	movl	%edx, %ebx
LBB0_17:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.18:
	subq	%rbx, %r9
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	%r9, %rsi
	movq	8(%r8), %rdi
	addq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%r8, %r14
	callq	_memcpy
	movq	%r14, %r8
LBB0_19:
	addq	%r15, %rbx
	movq	%rbx, (%r8)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARALLELISM_DEGREE,8,3         ## @PARALLELISM_DEGREE
	.comm	_BLAKE2S_BLOCKBYTES,8,3         ## @BLAKE2S_BLOCKBYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blake2sp_update                ; -- Begin function blake2sp_update
	.p2align	2
_blake2sp_update:                       ; @blake2sp_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x0]
Lloh0:
	adrp	x23, _PARALLELISM_DEGREE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PARALLELISM_DEGREE@GOTPAGEOFF]
	cbz	x24, LBB0_6
; %bb.1:
	mov	w8, #8
	sub	x22, x8, x24
	cmp	x22, x21
	b.hi	LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	add	x0, x8, x24
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x24, #0
Lloh2:
	adrp	x25, _BLAKE2S_BLOCKBYTES@GOTPAGE
Lloh3:
	ldr	x25, [x25, _BLAKE2S_BLOCKBYTES@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #8]
	ldr	w0, [x8, x24, lsl #2]
	ldr	x2, [x25]
	madd	x1, x2, x24, x9
	bl	_blake2s_update
	add	x24, x24, #1
	ldr	x8, [x23]
	cmp	x24, x8
	b.lo	LBB0_4
LBB0_5:
	mov	x24, #0
	add	x20, x20, x22
	sub	x21, x21, x22
LBB0_6:
	ldr	x8, [x23]
	cbz	x8, LBB0_12
; %bb.7:
	mov	x25, #0
Lloh4:
	adrp	x26, _BLAKE2S_BLOCKBYTES@GOTPAGE
Lloh5:
	ldr	x26, [x26, _BLAKE2S_BLOCKBYTES@GOTPAGEOFF]
	ldr	x2, [x26]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	cmp	x25, x8
	b.hs	LBB0_13
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mul	x9, x2, x8
	cmp	x21, x9
	b.lo	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	madd	x22, x2, x25, x20
	mov	x27, x21
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x25, lsl #2]
	mov	x1, x22
	bl	_blake2s_update
	ldr	x8, [x23]
	ldr	x2, [x26]
	mul	x9, x2, x8
	add	x22, x22, x9
	sub	x27, x27, x9
	cmp	x27, x9
	b.hs	LBB0_11
	b	LBB0_8
LBB0_12:
Lloh6:
	adrp	x9, _BLAKE2S_BLOCKBYTES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BLAKE2S_BLOCKBYTES@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x9]
LBB0_13:
	mul	x8, x2, x8
	udiv	x9, x21, x8
	msub	x22, x9, x8, x21
	cbz	x22, LBB0_15
; %bb.14:
	sub	x8, x21, x22
	add	x1, x20, x8
	ldr	x8, [x19, #8]
	add	x0, x8, x24
	mov	x2, x22
	bl	_memcpy
LBB0_15:
	add	x8, x22, x24
	str	x8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PARALLELISM_DEGREE,8,3         ; @PARALLELISM_DEGREE
	.comm	_BLAKE2S_BLOCKBYTES,8,3         ; @BLAKE2S_BLOCKBYTES
.subsections_via_symbols
