	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sha3_update
_sha3_update:                           ## @sha3_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movq	(%r15), %rcx
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	movq	%rcx, %rbx
	subq	%rdi, %rbx
	addq	16(%r15), %rdi
	cmpq	%r13, %rbx
	jbe	LBB0_4
## %bb.3:
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	addq	8(%r15), %r13
	movq	%r13, %r12
	jmp	LBB0_9
LBB0_4:
	movq	%rcx, %r12
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	addq	%rbx, %r14
	subq	%rbx, %r13
	movl	24(%r15), %edi
	movq	16(%r15), %rsi
	movq	%r12, %rdx
	movq	%r12, %rcx
	callq	_SHA3_absorb
	movq	$0, 8(%r15)
	movq	%r12, %rcx
LBB0_5:
	movq	%r13, %r12
	cmpq	%rcx, %r13
	jb	LBB0_7
## %bb.6:
	movl	24(%r15), %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_SHA3_absorb
	movq	%rax, %r12
LBB0_7:
	testq	%r12, %r12
	je	LBB0_10
## %bb.8:
	movq	16(%r15), %rdi
	addq	%r13, %r14
	subq	%r12, %r14
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_memcpy
LBB0_9:
	movq	%r12, 8(%r15)
LBB0_10:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sha3_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sha3_update
_sha3_update:                           ; @sha3_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
	cbz	x2, LBB0_10
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	x23, [x0]
	ldp	x21, x8, [x23]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x9, [x23, #16]
	add	x0, x9, x8
	sub	x22, x21, x8
	cmp	x22, x19
	b.ls	LBB0_4
; %bb.3:
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x23, #8]
	add	x22, x8, x19
	b	LBB0_9
LBB0_4:
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	add	x20, x20, x22
	sub	x19, x19, x22
	ldr	w0, [x23, #24]
	ldr	x1, [x23, #16]
	mov	x2, x21
	mov	x3, x21
	bl	_SHA3_absorb
	str	xzr, [x23, #8]
LBB0_5:
	mov	x22, x19
	cmp	x19, x21
	b.lo	LBB0_7
; %bb.6:
	ldr	w0, [x23, #24]
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_SHA3_absorb
	mov	x22, x0
LBB0_7:
	cbz	x22, LBB0_10
; %bb.8:
	ldr	x0, [x23, #16]
	add	x8, x20, x19
	sub	x1, x8, x22
	mov	x2, x22
	bl	_memcpy
LBB0_9:
	str	x22, [x23, #8]
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sha3_update
.subsections_via_symbols
