	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdbeSorterCompareInt
_vdbeSorterCompareInt:                  ## @vdbeSorterCompareInt
	.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
	movl	%r9d, -72(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rbx
	movl	8(%r8), %r13d
	leal	-1(%rbx), %eax
	cmpl	$8, %eax
	jae	LBB0_1
## %bb.2:
	movl	$1, %edi
	movl	$191, %ecx
	btl	%eax, %ecx
	jb	LBB0_3
LBB0_1:
	xorl	%edi, %edi
	cmpl	$9, %ebx
	sete	%dil
LBB0_3:
	movq	(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_assert
	leal	-1(%r13), %eax
	cmpl	$8, %eax
	jae	LBB0_4
## %bb.5:
	movl	$1, %edi
	movl	$191, %ecx
	btl	%eax, %ecx
	jb	LBB0_6
LBB0_4:
	xorl	%edi, %edi
	cmpl	$9, %r13d
	sete	%dil
LBB0_6:
	callq	_assert
	movl	%ebx, %r14d
	subl	%r13d, %r14d
	jne	LBB0_16
## %bb.7:
	movslq	%ebx, %rax
	leaq	-7(%rax), %rcx
	cmpq	$-6, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jb	LBB0_23
## %bb.8:
	leaq	_vdbeSorterCompareInt.aLen(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	cmpq	$2, %rcx
	movl	$1, %eax
	cmovaeq	%rcx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r12,%rcx,8), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%r15,%rdx,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %r13
	subq	(%rcx,%rsi,8), %r13
	testl	%r13d, %r13d
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_10
	jmp	LBB0_23
LBB0_16:
	cmpl	$8, %ebx
	jl	LBB0_19
## %bb.17:
	cmpl	$7, %r13d
	jle	LBB0_19
## %bb.18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_19:
	cmpl	$8, %ebx
	movl	$-1, %eax
	cmovgel	%eax, %r14d
	cmpl	$8, %r13d
	movl	$1, %r13d
	movl	%r14d, %ebx
	cmovgel	%r13d, %ebx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setne	%dil
	callq	_assert
	testl	%ebx, %ebx
	jle	LBB0_21
## %bb.20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movb	(%r15,%rax,8), %al
	andb	$-128, %al
	xorl	%r14d, %r14d
	negb	%al
	sbbl	%r14d, %r14d
	orl	%ebx, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%r15,%rax,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%r12,%rcx,8), %ecx
	xorl	%eax, %ecx
	testb	$-128, %cl
	je	LBB0_13
## %bb.12:
	andl	$128, %eax
	xorl	%r13d, %r13d
	negq	%rax
	sbbl	%r13d, %r13d
	orl	$1, %r13d
	jmp	LBB0_13
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testb	$-128, (%r12,%rax,8)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_13
LBB0_22:
	movl	%r14d, %r13d
	testl	%r14d, %r14d
	je	LBB0_23
LBB0_13:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	_KEYINFO_ORDER_BIGNULL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	callq	_assert
	negl	%r13d
	jmp	LBB0_15
LBB0_23:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	xorl	%r13d, %r13d
	cmpl	$2, (%rax)
	jl	LBB0_15
## %bb.24:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	movl	-72(%rbp), %r9d                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vdbeSorterCompareTail          ## TAILCALL
LBB0_15:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @vdbeSorterCompareInt.aLen
_vdbeSorterCompareInt.aLen:
	.quad	0                               ## 0x0
	.quad	1                               ## 0x1
	.quad	2                               ## 0x2
	.quad	3                               ## 0x3
	.quad	4                               ## 0x4
	.quad	6                               ## 0x6
	.quad	8                               ## 0x8
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0

	.comm	_KEYINFO_ORDER_BIGNULL,4,2      ## @KEYINFO_ORDER_BIGNULL
	.no_dead_strip	_vdbeSorterCompareInt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdbeSorterCompareInt
_vdbeSorterCompareInt:                  ; @vdbeSorterCompareInt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x22, x2
	mov	x19, x0
	ldr	x28, [x2, #8]
	ldr	w21, [x4, #8]
	sub	w8, w28, #1
	cmp	w8, #8
	str	w5, [sp, #12]                   ; 4-byte Folded Spill
	b.hs	LBB0_2
; %bb.1:
	mov	w9, #191
	lsr	w8, w9, w8
	tbnz	w8, #0, LBB0_3
LBB0_2:
	mov	x23, x1
	mov	x24, x3
	cmp	w28, #9
	cset	w0, eq
	b	LBB0_4
LBB0_3:
	mov	x23, x1
	mov	x24, x3
	mov	w0, #1
LBB0_4:
	ldr	x27, [x22]
	ldr	x26, [x20]
	bl	_assert
	sub	w8, w21, #1
	cmp	w8, #8
	b.hs	LBB0_6
; %bb.5:
	mov	w9, #191
	lsr	w8, w9, w8
	tbnz	w8, #0, LBB0_7
LBB0_6:
	cmp	w21, #9
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	bl	_assert
	subs	w25, w28, w21
	b.ne	LBB0_13
; %bb.9:
	sxtw	x8, w28
	sub	x9, x8, #7
	cmn	x9, #6
	b.lo	LBB0_22
; %bb.10:
Lloh0:
	adrp	x9, _vdbeSorterCompareInt.aLen@PAGE
Lloh1:
	add	x9, x9, _vdbeSorterCompareInt.aLen@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #1
	csinc	x8, x8, xzr, hi
	add	x9, x20, x26, lsl #3
	add	x10, x22, x27, lsl #3
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	x12, [x9]
	sub	x11, x11, x12
	cbnz	w11, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x9, #8
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_11
	b	LBB0_22
LBB0_13:
	cmp	w28, #8
	b.lt	LBB0_15
; %bb.14:
	cmp	w21, #7
	b.gt	LBB0_19
LBB0_15:
	cmp	w28, #7
	csinv	w25, w25, wzr, le
	cmp	w21, #7
	csinc	w21, w25, wzr, le
	cmp	w21, #0
	cset	w0, ne
	bl	_assert
	cmp	w21, #1
	b.lt	LBB0_18
; %bb.16:
	lsl	x8, x27, #3
	ldrb	w8, [x22, x8]
	tst	w8, #0x80
	csinv	w25, w21, wzr, eq
	b	LBB0_19
LBB0_17:
	ldr	x8, [x22, x27, lsl #3]
	lsl	x9, x26, #3
	ldr	w9, [x20, x9]
	eor	w9, w9, w8
	tst	x8, #0x80
	mov	w8, #1
	cneg	w8, w8, ne
	tst	w9, #0x80
	csel	w25, w11, w8, eq
	b	LBB0_20
LBB0_18:
	lsl	x8, x26, #3
	ldrb	w8, [x20, x8]
	tbnz	w8, #7, LBB0_26
LBB0_19:
	cbz	w25, LBB0_22
LBB0_20:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_25
; %bb.21:
Lloh2:
	adrp	x9, _KEYINFO_ORDER_BIGNULL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KEYINFO_ORDER_BIGNULL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_assert
	neg	w25, w25
	b	LBB0_25
LBB0_22:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_24
; %bb.23:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	mov	x4, x20
	ldr	w5, [sp, #12]                   ; 4-byte Folded Reload
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vdbeSorterCompareTail
LBB0_24:
	mov	w25, #0
LBB0_25:
	mov	x0, x25
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
	mov	w25, #1
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @vdbeSorterCompareInt.aLen
_vdbeSorterCompareInt.aLen:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
	.quad	4                               ; 0x4
	.quad	6                               ; 0x6
	.quad	8                               ; 0x8
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0

	.comm	_KEYINFO_ORDER_BIGNULL,4,2      ; @KEYINFO_ORDER_BIGNULL
	.no_dead_strip	_vdbeSorterCompareInt
.subsections_via_symbols
