	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sha3_final
_sha3_final:                            ## @sha3_final
	.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	(%rdi), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	movq	(%rbx), %r15
	movq	8(%rbx), %r12
	leaq	(,%r12,4), %rdi
	addq	24(%rbx), %rdi
	movq	%r15, %rdx
	subq	%r12, %rdx
	xorl	%esi, %esi
	callq	_memset
	movl	32(%rbx), %eax
	movq	24(%rbx), %rsi
	movl	%eax, (%rsi,%r12,4)
	orb	$-128, -4(%rsi,%r15,4)
	movl	36(%rbx), %edi
	movq	%r15, %rdx
	movq	%r15, %rcx
	callq	_SHA3_absorb
	movl	36(%rbx), %edi
	movq	16(%rbx), %rdx
	movq	%r14, %rsi
	movq	%r15, %rcx
	callq	_SHA3_squeeze
LBB0_2:
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sha3_final
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sha3_final
_sha3_final:                            ; @sha3_final
	.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
	ldr	x21, [x0]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x1
	ldp	x20, x8, [x21]
	ldr	x9, [x21, #24]
	lsl	x22, x8, #2
	add	x0, x9, x22
	sub	x2, x20, x8
	mov	w1, #0
	bl	_memset
	ldr	w8, [x21, #32]
	ldr	x1, [x21, #24]
	str	w8, [x1, x22]
	add	x8, x1, x20, lsl #2
	ldur	w9, [x8, #-4]
	orr	w9, w9, #0x80
	stur	w9, [x8, #-4]
	ldr	w0, [x21, #36]
	mov	x2, x20
	mov	x3, x20
	bl	_SHA3_absorb
	ldr	w0, [x21, #36]
	ldr	x2, [x21, #16]
	mov	x1, x19
	mov	x3, x20
	bl	_SHA3_squeeze
LBB0_2:
	mov	w0, #1
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sha3_final
.subsections_via_symbols
