	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sha3Func
_sha3Func:                              ## @sha3Func
	.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, %rbx
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rdi
	callq	_sqlite3_value_type
	movl	%eax, %r13d
	movq	(%rbx), %rdi
	callq	_sqlite3_value_bytes
	movl	%eax, %r15d
	movl	$256, %r12d                     ## imm = 0x100
	cmpl	$1, %r14d
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_sqlite3_value_int
	movl	%eax, %r12d
	leal	-224(%r12), %eax
	roll	$27, %eax
	cmpl	$9, %eax
	ja	LBB0_9
## %bb.2:
	movl	$547, %ecx                      ## imm = 0x223
	btl	%eax, %ecx
	jae	LBB0_9
LBB0_3:
	movq	_SQLITE_NULL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_8
## %bb.4:
	leaq	-44(%rbp), %rdi
	movl	%r12d, %esi
	callq	_SHA3Init
	movq	_SQLITE_BLOB@GOTPCREL(%rip), %rax
	movq	(%rbx), %rdi
	cmpl	(%rax), %r13d
	jne	LBB0_6
## %bb.5:
	callq	_sqlite3_value_blob
	jmp	LBB0_7
LBB0_6:
	callq	_sqlite3_value_text
LBB0_7:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_SHA3Update
	movq	%rbx, %rdi
	callq	_SHA3Final
	leal	7(%r12), %edx
	testl	%r12d, %r12d
	cmovnsl	%r12d, %edx
	sarl	$3, %edx
	movq	_SQLITE_TRANSIENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_sqlite3_result_blob
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$-1, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_result_error           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHA3 size should be one of: 224 256 384 512"

	.comm	_SQLITE_NULL,4,2                ## @SQLITE_NULL
	.comm	_SQLITE_BLOB,4,2                ## @SQLITE_BLOB
	.comm	_SQLITE_TRANSIENT,4,2           ## @SQLITE_TRANSIENT
	.no_dead_strip	_sha3Func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sha3Func
_sha3Func:                              ; @sha3Func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x2]
	bl	_sqlite3_value_type
	mov	x23, x0
	ldr	x0, [x22]
	bl	_sqlite3_value_bytes
	mov	x20, x0
	cmp	w21, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #256
	b	LBB0_3
LBB0_2:
	ldr	x0, [x22, #8]
	bl	_sqlite3_value_int
	mov	x21, x0
	sub	w8, w0, #224
	ror	w8, w8, #5
	cmp	w8, #9
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #547
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_9
LBB0_3:
Lloh0:
	adrp	x8, _SQLITE_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w23, w8
	b.eq	LBB0_8
; %bb.4:
	add	x0, sp, #12
	mov	x1, x21
	bl	_SHA3Init
Lloh3:
	adrp	x8, _SQLITE_BLOB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_BLOB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x0, [x22]
	cmp	w23, w8
	b.ne	LBB0_6
; %bb.5:
	bl	_sqlite3_value_blob
	b	LBB0_7
LBB0_6:
	bl	_sqlite3_value_text
LBB0_7:
	mov	x1, x0
	add	x0, sp, #12
	mov	x2, x20
	bl	_SHA3Update
	add	x0, sp, #12
	bl	_SHA3Final
	mov	x1, x0
	add	w8, w21, #7
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w2, w8, #3
Lloh6:
	adrp	x8, _SQLITE_TRANSIENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_TRANSIENT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_sqlite3_result_blob
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #-1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_sqlite3_result_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHA3 size should be one of: 224 256 384 512"

	.comm	_SQLITE_NULL,4,2                ; @SQLITE_NULL
	.comm	_SQLITE_BLOB,4,2                ; @SQLITE_BLOB
	.comm	_SQLITE_TRANSIENT,4,2           ; @SQLITE_TRANSIENT
	.no_dead_strip	_sha3Func
.subsections_via_symbols
