	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isDistinctRedundant
_isDistinctRedundant:                   ## @isDistinctRedundant
	.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
	xorl	%eax, %eax
	cmpl	$1, (%rsi)
	jne	LBB0_21
## %bb.1:
	movq	%rdx, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movl	(%rax), %r15d
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rcx)
	jle	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	movq	_TK_COLUMN@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%r14, %rcx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r14
	movq	8(%rcx), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_sqlite3ExprSkipCollate
	movq	(%rax), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r15d, 8(%rax)
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%rax)
	jns	LBB0_3
LBB0_20:
	movl	$1, %eax
	jmp	LBB0_21
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_19
## %bb.9:
	movq	%rcx, %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r14), %eax
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	%eax, %r12d
	je	LBB0_20
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_19
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r14, %rdi
	callq	_IsUniqueIndex
	testl	%eax, %eax
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r14), %eax
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jg	LBB0_16
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=2
	incl	%r12d
	cmpl	(%r14), %r12d
	jge	LBB0_10
LBB0_16:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_WO_EQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	$-1, %ecx
	movq	%r14, %r9
	callq	_sqlite3WhereFindTerm
	testq	%rax, %rax
	jne	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	callq	_findIndexCol
	testq	%rax, %rax
	js	LBB0_10
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_indexColumnNotNull
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_10
LBB0_19:
	xorl	%eax, %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TK_COLUMN,8,3                  ## @TK_COLUMN
	.comm	_WO_EQ,4,2                      ## @WO_EQ
	.no_dead_strip	_isDistinctRedundant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isDistinctRedundant
_isDistinctRedundant:                   ; @isDistinctRedundant
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x1]
	cmp	w8, #1
	b.ne	LBB0_20
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x8, [x1, #8]
	ldr	w22, [x8]
	ldr	x23, [x8, #8]
	ldr	w8, [x3]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x24, #0
Lloh0:
	adrp	x25, _TK_COLUMN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TK_COLUMN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x24, lsl #2]
	bl	_sqlite3ExprSkipCollate
	ldr	x8, [x0]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x0, #8]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0, #16]
	tbz	x8, #63, LBB0_3
	b	LBB0_19
LBB0_7:
	ldr	x23, [x23]
	cbz	x23, LBB0_20
; %bb.8:
Lloh2:
	adrp	x25, _WO_EQ@GOTPAGE
Lloh3:
	ldr	x25, [x25, _WO_EQ@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x23]
	cmp	w24, w8
	b.eq	LBB0_19
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_20
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	mov	x0, x23
	bl	_IsUniqueIndex
	cbz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w24, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.ge	LBB0_9
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w4, [x25]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	mov	w3, #-1
	mov	x5, x23
	bl	_sqlite3WhereFindTerm
	cbnz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_findIndexCol
	tbnz	x0, #63, LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x23
	mov	x1, x24
	bl	_indexColumnNotNull
	cbnz	x0, LBB0_14
	b	LBB0_9
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w24, #0
	cmp	w24, w8
	b.ne	LBB0_10
LBB0_19:
	mov	w0, #1
	b	LBB0_21
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TK_COLUMN,8,3                  ; @TK_COLUMN
	.comm	_WO_EQ,4,2                      ; @WO_EQ
	.no_dead_strip	_isDistinctRedundant
.subsections_via_symbols
