	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdbeSorterCompareText
_vdbeSorterCompareText:                 ## @vdbeSorterCompareText
	.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	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	(%rdx), %rax
	leaq	(%rdx,%rax,8), %r15
	movq	(%r8), %rax
	leaq	(%r8,%rax,8), %r13
	leaq	8(%rdx), %rdi
	callq	_getVarint32
	leaq	8(%r12), %rdi
	callq	_getVarint32
	callq	_MIN
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	addl	$-13, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	addl	$-13, %edx
	sarl	%edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_memcmp
	movl	%eax, %ecx
	movq	(%r14), %rax
	movq	(%rax), %rdx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.3:
	movq	8(%rdx), %rdx
	movl	%ecx, %eax
	negl	%eax
	cmpq	$0, (%rdx)
	cmovel	%ecx, %eax
	jmp	LBB0_4
LBB0_1:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	cmpl	$2, (%rdx)
	jl	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%r12, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vdbeSorterCompareTail          ## TAILCALL
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vdbeSorterCompareText
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdbeSorterCompareText
_vdbeSorterCompareText:                 ; @vdbeSorterCompareText
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	x0, x2
	ldr	x8, [x0], #8
	add	x25, x2, x8, lsl #3
	mov	x26, x4
	ldr	x8, [x26], #8
	add	x27, x4, x8, lsl #3
	bl	_getVarint32
	mov	x0, x26
	bl	_getVarint32
	bl	_MIN
	sub	w8, w0, #13
	sub	w9, w0, #12
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #1
	mov	x0, x25
	mov	x1, x27
	bl	_memcmp
	ldr	x8, [x24]
	ldr	x8, [x8]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	cneg	w0, w0, ne
	b	LBB0_5
LBB0_2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_vdbeSorterCompareTail
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vdbeSorterCompareText
.subsections_via_symbols
