	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_TK_COLUMN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	cmpl	%r12d, 8(%rbx)
	jne	LBB0_9
## %bb.4:
	xorl	%r12d, %r12d
	movl	$0, %edi
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setb	%dil
LBB0_6:
	callq	_assert
	cmpq	$0, 40(%rbx)
	jne	LBB0_8
## %bb.7:
	xorl	%r12d, %r12d
	cmpq	$0, 32(%rbx)
	sete	%r12b
LBB0_8:
	movl	%r12d, %edi
	callq	_assert
	movq	8(%r15), %rax
	movq	16(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_sqlite3ExprDup
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sqlite3ExprDelete
	movq	%r15, %rax
	jmp	LBB0_13
LBB0_9:
	movq	40(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_substExpr
	movq	%rax, 40(%rbx)
	movq	32(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_substExpr
	movq	%rax, 32(%rbx)
	movq	_EP_xIsSelect@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ExprHasProperty
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	28(%rbx), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_substSelect
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_11:
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_substExprList
LBB0_12:
	movq	%rbx, %rax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TK_COLUMN,8,3                  ## @TK_COLUMN
	.comm	_TK_NULL,8,3                    ## @TK_NULL
	.comm	_EP_xIsSelect,4,2               ## @EP_xIsSelect
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	cbz	x1, LBB0_8
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _TK_COLUMN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TK_COLUMN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.3:
	cbz	x21, LBB0_10
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, lo
	b	LBB0_11
LBB0_5:
	ldr	x1, [x19, #40]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	bl	_substExpr
	str	x0, [x19, #40]
	ldr	x1, [x19, #32]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	bl	_substExpr
	str	x0, [x19, #32]
Lloh3:
	adrp	x8, _EP_xIsSelect@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EP_xIsSelect@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ExprHasProperty
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x19, #28]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	bl	_substSelect
	b	LBB0_8
LBB0_7:
	ldr	w1, [x19, #24]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	bl	_substExprList
LBB0_8:
	mov	x0, x19
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w0, #0
LBB0_11:
	bl	_assert
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, eq
LBB0_14:
	bl	_assert
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #16]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	mov	w2, #0
	bl	_sqlite3ExprDup
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_sqlite3ExprDelete
	mov	x0, x21
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TK_COLUMN,8,3                  ; @TK_COLUMN
	.comm	_TK_NULL,8,3                    ; @TK_NULL
	.comm	_EP_xIsSelect,4,2               ; @EP_xIsSelect
	.no_dead_strip	_substExpr
.subsections_via_symbols
