	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blake2s_update                 ## -- Begin function blake2s_update
	.p2align	4, 0x90
_blake2s_update:                        ## @blake2s_update
	.cfi_startproc
## %bb.0:
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	_BLAKE2S_BLOCKBYTES@GOTPCREL(%rip), %r13
	movq	(%r13), %r12
	subq	%rdi, %r12
	cmpq	%rdx, %r12
	jae	LBB0_5
## %bb.2:
	movq	$0, (%r14)
	addq	8(%r14), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_blake2s_increment_counter
	movq	8(%r14), %rsi
	movq	%r14, %rdi
	callq	_blake2s_compress
	addq	%r12, %r15
	subq	%r12, %rbx
	movq	(%r13), %rsi
	cmpq	%rsi, %rbx
	jbe	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_blake2s_increment_counter
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_blake2s_compress
	movq	(%r13), %rsi
	addq	%rsi, %r15
	subq	%rsi, %rbx
	cmpq	%rsi, %rbx
	ja	LBB0_3
LBB0_5:
	movq	8(%r14), %rdi
	addq	(%r14), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	addq	%rbx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_6:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_blake2s_update                 ; -- Begin function blake2s_update
	.p2align	2
_blake2s_update:                        ; @blake2s_update
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_5
; %bb.1:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _BLAKE2S_BLOCKBYTES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BLAKE2S_BLOCKBYTES@GOTPAGEOFF]
	ldr	x9, [x23]
	sub	x22, x9, x8
	cmp	x22, x2
	b.hs	LBB0_4
; %bb.2:
	str	xzr, [x20]
	ldr	x9, [x20, #8]
	add	x0, x9, x8
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	ldr	x1, [x23]
	mov	x0, x20
	bl	_blake2s_increment_counter
	ldr	x1, [x20, #8]
	mov	x0, x20
	bl	_blake2s_compress
	add	x21, x21, x22
	ldr	x1, [x23]
	sub	x19, x19, x22
	cmp	x19, x1
	b.ls	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_blake2s_increment_counter
	mov	x0, x20
	mov	x1, x21
	bl	_blake2s_compress
	ldr	x1, [x23]
	add	x21, x21, x1
	sub	x19, x19, x1
	cmp	x19, x1
	b.hi	LBB0_3
LBB0_4:
	ldp	x9, x8, [x20]
	add	x0, x8, x9
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x20]
	add	x8, x8, x19
	str	x8, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
LBB0_5:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BLAKE2S_BLOCKBYTES,8,3         ; @BLAKE2S_BLOCKBYTES
.subsections_via_symbols
