	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isDistinctIndex
_isDistinctIndex:                       ## @isDistinctIndex
	.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, %r14d
	movq	%r8, %r12
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	testq	%r8, %r8
	setne	%dil
	callq	_assert
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	je	LBB0_20
## %bb.1:
	movl	(%r12), %edx
	movq	_BMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %edx
	jge	LBB0_20
## %bb.2:
	decl	%ecx
	xorl	%edi, %edi
	cmpl	%ecx, %edx
	sete	%dil
	callq	_testcase
	movl	$1, %eax
	cmpl	$0, (%r12)
	jle	LBB0_20
## %bb.3:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%r15)
	jne	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	btsl	%r14d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %edi
	callq	_sqlite3ExprSkipCollate
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_TK_COLUMN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r15), %esi
	movl	20(%r15), %edx
	movq	_WO_EQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movl	$-1, %ecx
	xorl	%r9d, %r9d
	callq	_findTerm
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rax
	movl	12(%rax), %edx
	movl	16(%rax), %esi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_sqlite3BinaryCompareCollSeq
	movq	%r12, %rbx
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_sqlite3ExprCollSeq
	cmpq	%rax, %r12
	movq	%rbx, %r12
	jne	LBB0_4
	jmp	LBB0_6
LBB0_11:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.12:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	8(%r14), %ebx
	jge	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rcx
	movl	%ebx, %r8d
	callq	_findIndexCol
	testl	%eax, %eax
	js	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$-2, %edx
	movl	%eax, %ecx
	roll	%cl, %edx
	incl	%ebx
	andl	%edx, %r15d
	jne	LBB0_13
LBB0_16:
	movl	$1, %eax
	jmp	LBB0_20
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMS,4,2                        ## @BMS
	.comm	_TK_COLUMN,8,3                  ## @TK_COLUMN
	.comm	_WO_EQ,4,2                      ## @WO_EQ
	.no_dead_strip	_isDistinctIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isDistinctIndex
_isDistinctIndex:                       ; @isDistinctIndex
	.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	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x25, x1
	mov	x23, x0
	cmp	x4, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x22]
	cbz	x8, LBB0_15
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _BMS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BMS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_15
; %bb.2:
	sub	w9, w9, #1
	cmp	w8, w9
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x20]
	mov	w24, #1
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.3:
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	x22, #0
	mov	w28, #0
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x26, #8]
	cmp	w8, w21
	b.ne	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	w8, w24, w22
	orr	w28, w28, w8
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x22, lsl #2]
	bl	_sqlite3ExprSkipCollate
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _TK_COLUMN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TK_COLUMN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x0
	ldr	w1, [x0, #8]
	ldr	w2, [x0, #20]
Lloh6:
	adrp	x8, _WO_EQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WO_EQ@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x25
	mov	w3, #-1
	mov	w5, #0
	bl	_findTerm
	cbz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x0]
	ldp	w2, w1, [x8, #12]
	mov	x0, x23
	bl	_sqlite3BinaryCompareCollSeq
	mov	x27, x0
	mov	x0, x23
	mov	x1, x26
	bl	_sqlite3ExprCollSeq
	cmp	x27, x0
	b.ne	LBB0_4
	b	LBB0_6
LBB0_10:
	cbz	w28, LBB0_17
; %bb.11:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	mov	w24, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22, #8]
	cmp	w19, w8
	b.ge	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x19
	bl	_findIndexCol
	tbnz	w0, #31, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	lsl	w8, w24, w0
	add	w19, w19, #1
	bics	w28, w28, w8
	b.ne	LBB0_12
	b	LBB0_16
LBB0_15:
	mov	w24, #0
LBB0_16:
	mov	x0, x24
	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_17:
	mov	w24, #1
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BMS,4,2                        ; @BMS
	.comm	_TK_COLUMN,8,3                  ; @TK_COLUMN
	.comm	_WO_EQ,4,2                      ; @WO_EQ
	.no_dead_strip	_isDistinctIndex
.subsections_via_symbols
