	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function substExpr
_substExpr:                             ## @substExpr
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_EP_FromJoin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ExprHasProperty
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%r12), %rax
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.4:
	movq	8(%r14), %rax
	movq	%rax, (%r12)
LBB0_5:
	movq	8(%r12), %rax
	movq	_TK_COLUMN@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_25
## %bb.6:
	movq	16(%r12), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_25
## %bb.7:
	movq	24(%r12), %rax
	movq	32(%r14), %rcx
	movq	8(%rcx), %rdx
	movq	(%rdx,%rax,8), %rbx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setb	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 48(%r12)
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_sqlite3ExprIsVector
	movq	16(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rsi
	callq	_sqlite3VectorErrorMsg
	jmp	LBB0_33
LBB0_25:
	movq	_TK_IF_NULL_ROW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.26:
	movq	16(%r12), %rax
	cmpq	(%r14), %rax
	jne	LBB0_28
## %bb.27:
	movq	8(%r14), %rax
	movq	%rax, 16(%r12)
LBB0_28:
	movq	56(%r12), %rsi
	movq	%r14, %rdi
	callq	_substExpr
	movq	%rax, 56(%r12)
	movq	48(%r12), %rsi
	movq	%r14, %rdi
	callq	_substExpr
	movq	%rax, 48(%r12)
	movq	_EP_xIsSelect@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ExprHasProperty
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movl	44(%r12), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_substSelect
	jmp	LBB0_31
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_33
LBB0_30:
	movl	40(%r12), %esi
	movq	%r14, %rdi
	callq	_substExprList
LBB0_31:
	movq	_EP_WinFunc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ExprHasProperty
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	32(%r12), %rbx
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_substExpr
	movq	%rax, 8(%rbx)
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_substExprList
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_substExprList
LBB0_33:
	movq	%r12, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%rdi), %r13
	cmpq	$0, 24(%r14)
	je	LBB0_12
## %bb.10:
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_12
## %bb.11:
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_TK_IF_NULL_ROW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movq	%rbx, -56(%rbp)
	movq	8(%r14), %rax
	movq	%rax, -96(%rbp)
	leaq	-112(%rbp), %rbx
LBB0_12:
	movq	_EP_Subquery@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ExprHasProperty
	movq	%rax, %rdi
	callq	_testcase
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sqlite3ExprDup
	testq	%rax, %rax
	je	LBB0_24
## %bb.13:
	movq	%rax, %rbx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%r14)
	je	LBB0_15
## %bb.14:
	movq	_EP_CanBeNull@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ExprSetProperty
LBB0_15:
	movq	_EP_FromJoin@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ExprHasProperty
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ExprSetProperty
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_sqlite3ExprDelete
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_23
## %bb.18:
	movq	_TK_COLLATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.19:
	movq	16(%r14), %rdi
	movq	%rbx, %rsi
	callq	_sqlite3ExprCollSeq
	movq	16(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	(%rax), %rdx
	jmp	LBB0_22
LBB0_24:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_sqlite3ExprDelete
	xorl	%r12d, %r12d
	jmp	LBB0_33
LBB0_20:
	leaq	L_.str(%rip), %rdx
LBB0_22:
	movq	%rbx, %rsi
	callq	_sqlite3ExprAddCollateString
	movq	%rax, %rbx
LBB0_23:
	movq	_EP_Collate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ExprClearProperty
	movq	%rbx, %r12
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_EP_FromJoin,4,2                ## @EP_FromJoin
	.comm	_TK_COLUMN,8,3                  ## @TK_COLUMN
	.comm	_TK_NULL,8,3                    ## @TK_NULL
	.comm	_TK_IF_NULL_ROW,8,3             ## @TK_IF_NULL_ROW
	.comm	_EP_Subquery,4,2                ## @EP_Subquery
	.comm	_EP_CanBeNull,4,2               ## @EP_CanBeNull
	.comm	_TK_COLLATE,8,3                 ## @TK_COLLATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BINARY"

	.comm	_EP_Collate,4,2                 ## @EP_Collate
	.comm	_EP_xIsSelect,4,2               ## @EP_xIsSelect
	.comm	_EP_WinFunc,4,2                 ## @EP_WinFunc
	.no_dead_strip	_substExpr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function substExpr
_substExpr:                             ; @substExpr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	cbz	x1, LBB0_16
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x23, _EP_FromJoin@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EP_FromJoin@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ExprHasProperty
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	str	x8, [x19]
LBB0_4:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x24, _TK_COLUMN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TK_COLUMN@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	x9, [x19, #16]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19, #24]
	ldr	x9, [x20, #32]
	ldp	x9, x10, [x9]
	ldr	x22, [x10, x8, lsl #3]
	cmp	x8, x9
	cset	w0, lo
	bl	_assert
	ldr	x8, [x19, #48]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x22
	bl	_sqlite3ExprIsVector
	mov	x8, x0
	ldr	x0, [x20, #16]
	cbz	x8, LBB0_17
; %bb.7:
	mov	x1, x22
	bl	_sqlite3VectorErrorMsg
	b	LBB0_16
LBB0_8:
Lloh4:
	adrp	x9, _TK_IF_NULL_ROW@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TK_IF_NULL_ROW@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	str	x8, [x19, #16]
LBB0_11:
	ldr	x1, [x19, #56]
	mov	x0, x20
	bl	_substExpr
	str	x0, [x19, #56]
	ldr	x1, [x19, #48]
	mov	x0, x20
	bl	_substExpr
	str	x0, [x19, #48]
Lloh7:
	adrp	x8, _EP_xIsSelect@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EP_xIsSelect@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ExprHasProperty
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w1, [x19, #44]
	mov	x0, x20
	mov	w2, #1
	bl	_substSelect
	b	LBB0_14
LBB0_13:
	ldr	w1, [x19, #40]
	mov	x0, x20
	bl	_substExprList
LBB0_14:
Lloh10:
	adrp	x8, _EP_WinFunc@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EP_WinFunc@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ExprHasProperty
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x21, [x19, #32]
	ldr	x1, [x21, #8]
	mov	x0, x20
	bl	_substExpr
	str	x0, [x21, #8]
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_substExprList
	ldr	w1, [x21]
	mov	x0, x20
	bl	_substExprList
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	ldr	x21, [x0]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_20
; %bb.18:
	ldr	x8, [x22, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.19:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh13:
	adrp	x8, _TK_IF_NULL_ROW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TK_IF_NULL_ROW@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x22, [sp, #56]
	ldr	x9, [x20, #8]
	stp	x8, x9, [sp, #8]
	mov	x22, sp
LBB0_20:
Lloh16:
	adrp	x8, _EP_Subquery@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EP_Subquery@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ExprHasProperty
	bl	_testcase
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_sqlite3ExprDup
	cbz	x0, LBB0_28
; %bb.21:
	mov	x22, x0
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_23
; %bb.22:
Lloh19:
	adrp	x8, _EP_CanBeNull@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EP_CanBeNull@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ExprSetProperty
LBB0_23:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ExprHasProperty
	cbz	x0, LBB0_25
; %bb.24:
	ldr	x8, [x19]
	str	x8, [x22]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ExprSetProperty
LBB0_25:
	mov	x0, x21
	mov	x1, x19
	bl	_sqlite3ExprDelete
	ldr	x8, [x22, #8]
	ldr	x9, [x24]
Lloh22:
	adrp	x10, _TK_COLLATE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _TK_COLLATE@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_31
; %bb.26:
	ldr	x0, [x20, #16]
	mov	x1, x22
	bl	_sqlite3ExprCollSeq
	mov	x8, x0
	ldr	x0, [x20, #16]
	cbz	x8, LBB0_29
; %bb.27:
	ldr	x2, [x8]
	b	LBB0_30
LBB0_28:
	mov	x0, x21
	mov	x1, x19
	bl	_sqlite3ExprDelete
	mov	x19, #0
	b	LBB0_16
LBB0_29:
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
LBB0_30:
	mov	x1, x22
	bl	_sqlite3ExprAddCollateString
	mov	x22, x0
LBB0_31:
Lloh27:
	adrp	x8, _EP_Collate@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EP_Collate@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ExprClearProperty
	mov	x19, x22
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EP_FromJoin,4,2                ; @EP_FromJoin
	.comm	_TK_COLUMN,8,3                  ; @TK_COLUMN
	.comm	_TK_NULL,8,3                    ; @TK_NULL
	.comm	_TK_IF_NULL_ROW,8,3             ; @TK_IF_NULL_ROW
	.comm	_EP_Subquery,4,2                ; @EP_Subquery
	.comm	_EP_CanBeNull,4,2               ; @EP_CanBeNull
	.comm	_TK_COLLATE,8,3                 ; @TK_COLLATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BINARY"

	.comm	_EP_Collate,4,2                 ; @EP_Collate
	.comm	_EP_xIsSelect,4,2               ; @EP_xIsSelect
	.comm	_EP_WinFunc,4,2                 ; @EP_WinFunc
	.no_dead_strip	_substExpr
.subsections_via_symbols
