	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdbeMergeEngineCompare
_vdbeMergeEngineCompare:                ## @vdbeMergeEngineCompare
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	%esi, (%rdi)
	setg	%al
	testl	%esi, %esi
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	(%r14), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	cmpl	%ebx, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%r14), %rax
	leal	(%rbx,%rbx), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	leal	(%rbx,%rbx), %ecx
	incl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edx
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %ecx
	subl	%eax, %ecx
	leal	(%rcx,%rcx), %edx
	incl	%edx
	movl	%ecx, %esi
	addl	%ecx, %esi
LBB0_3:
	movq	24(%r14), %r15
	movslq	%esi, %r12
	shlq	$4, %r12
	cmpq	$0, (%r15,%r12)
	je	LBB0_7
## %bb.4:
	movslq	%edx, %r13
	shlq	$4, %r13
	cmpq	$0, (%r15,%r13)
	je	LBB0_5
## %bb.6:
	movq	16(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_assert
	movl	8(%r15,%r12), %ecx
	movl	12(%r15,%r12), %edx
	movl	8(%r15,%r13), %r9d
	movl	12(%r15,%r13), %r8d
	leaq	-52(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	*8(%rdi)
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	testl	%eax, %eax
	cmovlel	-44(%rbp), %edx                 ## 4-byte Folded Reload
	jmp	LBB0_7
LBB0_5:
	movl	%esi, %edx
LBB0_7:
	movq	8(%r14), %rax
	movslq	%ebx, %rcx
	movl	%edx, (%rax,%rcx,4)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vdbeMergeEngineCompare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdbeMergeEngineCompare
_vdbeMergeEngineCompare:                ; @vdbeMergeEngineCompare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w1, #0
	ccmp	w8, w1, #4, gt
	cset	w0, gt
	bl	_assert
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	w8, w19
	b.le	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	lsl	w9, w19, #1
	ldr	w23, [x8, w9, sxtw #2]
	add	x8, x8, w19, sxtw #3
	ldr	w22, [x8, #4]
	b	LBB0_3
LBB0_2:
	sub	w8, w19, w8
	lsl	w23, w8, #1
	mov	w22, #1
	bfi	w22, w8, #1, #31
LBB0_3:
	ldr	x24, [x20, #24]
	sbfiz	x8, x23, #4, #32
	ldr	x8, [x24, x8]
	cbz	x8, LBB0_7
; %bb.4:
	sxtw	x25, w22
	lsl	x8, x25, #4
	ldr	x8, [x24, x8]
	cbz	x8, LBB0_6
; %bb.5:
	sxtw	x26, w23
	ldr	x21, [x20, #16]
	str	wzr, [sp, #12]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x21, #8]
	add	x9, x24, x26, lsl #4
	ldp	w3, w2, [x9, #8]
	add	x9, x24, x25, lsl #4
	ldp	w5, w4, [x9, #8]
	add	x1, sp, #12
	mov	x0, x21
	blr	x8
	cmp	w0, #1
	csel	w22, w23, w22, lt
	b	LBB0_7
LBB0_6:
	mov	x22, x23
LBB0_7:
	ldr	x8, [x20, #8]
	str	w22, [x8, w19, sxtw #2]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vdbeMergeEngineCompare
.subsections_via_symbols
