	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blake2b_update                 ## -- Begin function blake2b_update
	.p2align	4, 0x90
_blake2b_update:                        ## @blake2b_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movslq	(%rdi), %rdi
	movl	$8, %ebx
	subq	%rdi, %rbx
	cmpq	%rdx, %rbx
	jae	LBB0_8
## %bb.1:
	testl	%edi, %edi
	je	LBB0_3
## %bb.2:
	shll	$2, %edi
	addl	8(%r14), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	8(%r14), %rsi
	movq	_BLAKE2B_BLOCKBYTES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_blake2b_compress
	movl	$0, (%r14)
	leaq	(%r15,%rbx,4), %r15
	subq	%rbx, %r12
LBB0_3:
	movq	_BLAKE2B_BLOCKBYTES@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	%rbx, %r12
	jbe	LBB0_8
## %bb.4:
	movq	%r12, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rbx
	jmp	LBB0_7
LBB0_5:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_7:
	testq	%rdx, %rdx
	cmovneq	%rdx, %rbx
	subq	%rbx, %r12
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_blake2b_compress
	leaq	(%r15,%r12,4), %r15
	movq	%rbx, %r12
LBB0_8:
	movq	_BLAKE2B_BLOCKBYTES@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r12
	setbe	%dil
	callq	_assert
	movl	(%r14), %edi
	shll	$2, %edi
	addl	8(%r14), %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	addl	%r12d, (%r14)
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLAKE2B_BLOCKBYTES,8,3         ## @BLAKE2B_BLOCKBYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blake2b_update                 ; -- Begin function blake2b_update
	.p2align	2
_blake2b_update:                        ; @blake2b_update
	.cfi_startproc
; %bb.0:
	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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldrsw	x8, [x0]
	mov	w9, #8
	sub	x22, x9, x8
	cmp	x22, x2
Lloh0:
	adrp	x23, _BLAKE2B_BLOCKBYTES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BLAKE2B_BLOCKBYTES@GOTPAGEOFF]
	b.hs	LBB0_5
; %bb.1:
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w9, [x19, #8]
	add	w0, w9, w8, lsl #2
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	ldr	x1, [x19, #8]
	ldr	x2, [x23]
	mov	x0, x19
	bl	_blake2b_compress
	str	wzr, [x19]
	add	x20, x20, x22, lsl #2
	sub	x21, x21, x22
LBB0_3:
	ldr	x8, [x23]
	cmp	x21, x8
	b.ls	LBB0_5
; %bb.4:
	udiv	x9, x21, x8
	msub	x9, x9, x8, x21
	cmp	x9, #0
	csel	x22, x8, x9, eq
	sub	x21, x21, x22
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_blake2b_compress
	add	x20, x20, x21, lsl #2
	mov	x21, x22
LBB0_5:
	ldr	x8, [x23]
	cmp	x21, x8
	cset	w0, ls
	bl	_assert
	ldr	w8, [x19, #8]
	ldr	w9, [x19]
	add	w0, w8, w9, lsl #2
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
	mov	w0, #1
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BLAKE2B_BLOCKBYTES,8,3         ; @BLAKE2B_BLOCKBYTES
.subsections_via_symbols
