	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function walHashGet
_walHashGet:                            ## @walHashGet
	.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, %r14
	movl	%esi, %ebx
	callq	_walIndexPage
	movl	%eax, %r15d
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	sete	%al
	testl	%ebx, %ebx
	setg	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	cmpl	(%r12), %r15d
	jne	LBB0_5
## %bb.1:
	movq	(%r14), %rax
	movq	_HASHTABLE_NPAGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdx
	movq	%rdx, 16(%r14)
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	movq	_HASHTABLE_NPAGE_ONE@GOTPCREL(%rip), %rdx
	decl	%ebx
	movslq	%ebx, %rsi
	imulq	%rsi, %rcx
	addq	(%rdx), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_WALINDEX_HDR_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	andq	$-4, %rcx
	addq	%rcx, %rax
	xorl	%ecx, %ecx
LBB0_4:
	movq	%rcx, 8(%r14)
	addq	$-4, %rax
	movq	%rax, (%r14)
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_HASHTABLE_NPAGE,8,3            ## @HASHTABLE_NPAGE
	.comm	_WALINDEX_HDR_SIZE,4,2          ## @WALINDEX_HDR_SIZE
	.comm	_HASHTABLE_NPAGE_ONE,8,3        ## @HASHTABLE_NPAGE_ONE
	.no_dead_strip	_walHashGet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function walHashGet
_walHashGet:                            ; @walHashGet
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_walIndexPage
	mov	x20, x0
Lloh0:
	adrp	x22, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, #0
	ccmp	w0, w8, #4, le
	cset	w0, eq
	bl	_assert
	ldr	w8, [x22]
	cmp	w20, w8
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _HASHTABLE_NPAGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HASHTABLE_NPAGE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x10, x8, x9, lsl #2
	str	x10, [x19, #16]
	cbz	w21, LBB0_3
; %bb.2:
Lloh5:
	adrp	x10, _HASHTABLE_NPAGE_ONE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HASHTABLE_NPAGE_ONE@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	sub	w11, w21, #1
	sxtw	x11, w11
	madd	x9, x9, x11, x10
	b	LBB0_4
LBB0_3:
	mov	x9, #0
Lloh8:
	adrp	x10, _WALINDEX_HDR_SIZE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WALINDEX_HDR_SIZE@GOTPAGEOFF]
Lloh10:
	ldrsw	x10, [x10]
	and	x10, x10, #0xfffffffffffffffc
	add	x8, x8, x10
LBB0_4:
	sub	x8, x8, #4
	stp	x8, x9, [x19]
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_HASHTABLE_NPAGE,8,3            ; @HASHTABLE_NPAGE
	.comm	_WALINDEX_HDR_SIZE,4,2          ; @WALINDEX_HDR_SIZE
	.comm	_HASHTABLE_NPAGE_ONE,8,3        ; @HASHTABLE_NPAGE_ONE
	.no_dead_strip	_walHashGet
.subsections_via_symbols
