	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdbeIncrPopulate
_vdbeIncrPopulate:                      ## @vdbeIncrPopulate
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rax
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	(%rdi), %rbx
	movq	24(%rdi), %r13
	movq	40(%rdi), %r12
	movq	32(%rdi), %r14
	xorl	%edi, %edi
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_assert
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_vdbeSorterPopulateDebug
	movl	12(%r12), %edi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rsi
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_vdbePmaWriterInit
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_8
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	16(%r13), %r15
	movq	8(%rax), %r12
	leaq	(%r12,%r12,2), %rax
	cmpq	$0, 8(%r15,%rax,8)
	je	LBB0_5
## %bb.2:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rax,8), %rax
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rax), %r13
	movq	%r13, %r14
	addq	-80(%rbp), %r14
	addq	-72(%rbp), %r14
	movl	%r13d, %edi
	callq	_sqlite3VarintLen
	addq	%r14, %rax
	movq	16(%rbx), %rcx
	addq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	cmpq	%rcx, %rax
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_vdbePmaWriteVarint
	leaq	(%r12,%r12,2), %rax
	movl	16(%r15,%rax,8), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_vdbePmaWriteBlob
	movq	24(%rbx), %rax
	xorl	%edi, %edi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, 8(%rax)
	sete	%dil
	callq	_assert
	movq	24(%rbx), %rdi
	leaq	-108(%rbp), %rsi
	callq	_vdbeMergeEngineStep
	movl	%eax, %r15d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	16(%rcx), %r15
	movq	8(%rax), %r12
	leaq	(%r12,%r12,2), %rcx
	leaq	(%r15,%rcx,8), %rax
	cmpq	$0, 8(%r15,%rcx,8)
	jne	LBB0_4
LBB0_5:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_8
LBB0_7:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_8:
	addq	$8, %r12
	leaq	-80(%rbp), %rdi
	movq	%r12, %rsi
	callq	_vdbePmaWriterFinish
	movl	%eax, %r14d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	cmovnel	%r15d, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_vdbeSorterPopulateDebug
	movl	%r14d, %eax
	addq	$72, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter"

L_.str.1:                               ## @.str.1
	.asciz	"exit"

	.no_dead_strip	_vdbeIncrPopulate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdbeIncrPopulate
_vdbeIncrPopulate:                      ; @vdbeIncrPopulate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x23, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SQLITE_OK@GOTPAGEOFF]
	ldr	w21, [x23]
	ldp	x19, x24, [x0, #32]
	ldr	x26, [x0, #24]
	ldp	x22, x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_vdbeSorterPopulateDebug
	ldr	w0, [x24, #12]
	ldr	x8, [x19]
	ldr	w2, [x8]
	add	x1, sp, #16
	mov	x3, x22
	bl	_vdbePmaWriterInit
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_7
; %bb.1:
	str	x24, [sp]                       ; 8-byte Folded Spill
	ldr	x28, [x26, #16]
	ldr	x8, [x26]
	ldr	x25, [x8, #8]
	mov	w8, #24
	madd	x8, x25, x8, x28
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	w8, #24
	madd	x8, x25, x8, x28
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x23, [x8]
	ldp	x24, x27, [sp, #16]
	mov	x0, x23
	bl	_sqlite3VarintLen
	add	x8, x24, x23
	add	x8, x8, x27
	add	x8, x8, x0
	ldr	x9, [x20, #16]
	add	x9, x9, x22
	cmp	x8, x9
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #16
	mov	x1, x23
	bl	_vdbePmaWriteVarint
	mov	w24, #24
	madd	x8, x25, x24, x28
	ldr	w1, [x8, #16]
	add	x0, sp, #16
	mov	x2, x23
	bl	_vdbePmaWriteBlob
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	cmp	x8, x19
	cset	w0, eq
	bl	_assert
	ldr	x0, [x20, #24]
	add	x1, sp, #12
	bl	_vdbeMergeEngineStep
	mov	x21, x0
Lloh4:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x28, [x26, #16]
	ldr	x8, [x26]
	ldr	x25, [x8, #8]
	madd	x8, x25, x24, x28
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_3
LBB0_6:
	ldr	x24, [sp]                       ; 8-byte Folded Reload
LBB0_7:
	add	x1, x24, #8
	add	x0, sp, #16
	bl	_vdbePmaWriterFinish
Lloh7:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w21, w8
	csel	w20, w0, w21, eq
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_vdbeSorterPopulateDebug
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter"

l_.str.1:                               ; @.str.1
	.asciz	"exit"

	.no_dead_strip	_vdbeIncrPopulate
.subsections_via_symbols
