	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdbePmaReaderNext
_vdbePmaReaderNext:                     ## @vdbePmaReaderNext
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	$0, -40(%rbp)
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	jge	LBB0_1
LBB0_6:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vdbePmaReadVarint
	movl	%eax, %r14d
	movl	(%r12), %eax
LBB0_7:
	cmpl	%eax, %r14d
	jne	LBB0_10
## %bb.8:
	movl	-40(%rbp), %esi
	movl	%esi, 16(%rbx)
	leaq	20(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_vdbePmaReadBlob
	movl	%eax, %r14d
	xorl	%edi, %edi
	cmpl	(%r12), %eax
	jmp	LBB0_9
LBB0_1:
	movq	24(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_vdbeIncrSwap
	movl	%eax, %r14d
	cmpl	(%r12), %eax
	jne	LBB0_4
## %bb.3:
	cmpq	$0, (%r15)
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_vdbePmaReaderClear
	xorl	%edi, %edi
	cmpl	(%r12), %r14d
LBB0_9:
	setne	%dil
	callq	_testcase
LBB0_10:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	24(%r15), %edi
	movq	16(%r15), %rdx
	movl	8(%r15), %ecx
	movq	%rbx, %rsi
	callq	_vdbePmaReaderSeek
	movl	%eax, %r14d
	movl	(%r12), %eax
	cmpl	%eax, %r14d
	je	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_vdbePmaReaderNext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdbePmaReaderNext
_vdbePmaReaderNext:                     ; @vdbePmaReaderNext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SQLITE_OK@GOTPAGEOFF]
	ldr	w20, [x22]
	str	xzr, [sp, #8]
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_3
LBB0_1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_vdbePmaReadVarint
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w20, w8
	b.ne	LBB0_8
LBB0_2:
	ldr	w1, [sp, #8]
	str	w1, [x19, #16]
	add	x2, x19, #20
	mov	x0, x19
	bl	_vdbePmaReadBlob
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b	LBB0_7
LBB0_3:
	ldr	x21, [x19, #24]
	cbz	x21, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_vdbeIncrSwap
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x21]
	cbz	x8, LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_vdbePmaReaderClear
	ldr	w8, [x22]
	cmp	w20, w8
LBB0_7:
	cset	w0, ne
	bl	_testcase
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	w0, [x21, #24]
	ldr	x2, [x21, #16]
	ldr	w3, [x21, #8]
	mov	x1, x19
	bl	_vdbePmaReaderSeek
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_1
; %bb.10:
	mov	x20, x0
	cmp	w20, w8
	b.eq	LBB0_2
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_vdbePmaReaderNext
.subsections_via_symbols
