	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function walIndexAppend
_walIndexAppend:                        ## @walIndexAppend
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_walFramePage
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_walHashGet
	movl	%eax, %r15d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_11
## %bb.1:
	movq	-64(%rbp), %rcx
	movq	%rbx, %r13
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	subq	%rcx, %r13
	movq	_HASHTABLE_NSLOT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	incl	%ecx
	xorl	%edi, %edi
	cmpl	%r13d, %ecx
	setge	%dil
	callq	_assert
	cmpl	$1, %r13d
	jne	LBB0_3
## %bb.2:
	movl	(%r14), %edx
	shlq	$2, %rdx
	addq	-56(%rbp), %rdx
	movq	-48(%rbp), %rdi
	addq	$8, %rdi
	subq	%rdi, %rdx
	shrq	$2, %rdx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
LBB0_3:
	movq	-48(%rbp), %rax
	movslq	%r13d, %r14
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_walCleanupHash
	movq	-48(%rbp), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax,%r14,8)
	sete	%dil
	callq	_assert
LBB0_5:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_walHash
	movq	-56(%rbp), %rdx
	movslq	%eax, %rcx
	cmpl	$0, (%rdx,%rcx,4)
	je	LBB0_9
## %bb.6:
	notl	%ebx
	addl	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %edi
	callq	_walNextHash
	movq	-56(%rbp), %rdx
	movslq	%eax, %rcx
	cmpl	$0, (%rdx,%rcx,4)
	jne	LBB0_7
LBB0_9:
	movq	-48(%rbp), %rax
	movq	%r12, (%rax,%r14,8)
	movq	-56(%rbp), %rax
	movl	%r13d, (%rax,%rcx,4)
	jmp	LBB0_11
LBB0_10:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_HASHTABLE_NSLOT,4,2            ## @HASHTABLE_NSLOT
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ## @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_walIndexAppend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function walIndexAppend
_walIndexAppend:                        ; @walIndexAppend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_walFramePage
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x22
	bl	_walHashGet
	mov	x20, x0
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.1:
	ldr	x24, [sp, #8]
Lloh3:
	adrp	x25, _HASHTABLE_NSLOT@GOTPAGE
Lloh4:
	ldr	x25, [x25, _HASHTABLE_NSLOT@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w8, w8, #1
	sub	x23, x21, x24
	cmp	w8, w23
	cset	w0, ge
	bl	_assert
	cmp	w23, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x25]
	ldp	x9, x10, [sp, #16]
	add	x8, x9, x8, lsl #2
	add	x0, x10, #8
	sub	x8, x8, x0
	lsr	x2, x8, #2
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
LBB0_3:
	ldr	x8, [sp, #24]
	sxtw	x25, w23
	sbfiz	x9, x23, #3, #32
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_walCleanupHash
	ldr	x8, [sp, #24]
	ldr	x8, [x8, x25, lsl #3]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
LBB0_5:
	mov	x0, x19
	bl	_walHash
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [sp, #16]
	ldr	w8, [x8, w0, sxtw #2]
	cbz	w8, LBB0_10
; %bb.6:
	mvn	w8, w21
	add	w21, w8, w24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	adds	w21, w21, #1
	b.hs	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_walNextHash
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [sp, #16]
	ldr	w8, [x8, w0, sxtw #2]
	cbnz	w8, LBB0_7
; %bb.9:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_10:
	sxtw	x8, w0
	ldr	x9, [sp, #24]
	str	x19, [x9, x25, lsl #3]
	ldr	x9, [sp, #16]
	str	w23, [x9, x8, lsl #2]
	b	LBB0_12
LBB0_11:
Lloh5:
	adrp	x8, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_HASHTABLE_NSLOT,4,2            ; @HASHTABLE_NSLOT
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.no_dead_strip	_walIndexAppend
.subsections_via_symbols
