	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolveAlias
_resolveAlias:                          ## @resolveAlias
	.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
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	js	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	%ebx, (%r13)
	setg	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_assert
	movq	8(%r13), %rax
	movslq	%ebx, %r14
	shlq	$4, %r14
	movq	8(%rax,%r14), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	movq	_EP_Resolved@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r12), %edi
	callq	_assert
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_sqlite3ExprDup
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	movq	%rax, %rbx
	movq	8(%r12), %rax
	movq	_TK_COLUMN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpb	$71, (%rax)
	je	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_incrAggFunctionDepth
	movq	_TK_AS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sqlite3PExpr
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %rbx
	movq	8(%r13), %rax
	movq	(%rax,%r14), %rcx
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.8:
	addq	%r14, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rcx
	incq	%rcx
	movq	%rcx, (%rdx)
	movq	%rcx, (%rax)
LBB0_9:
	movq	%rcx, 16(%rbx)
LBB0_10:
	movq	8(%r15), %rax
	movq	_TK_COLLATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_12
## %bb.11:
	movl	28(%r15), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_sqlite3ExprAddCollateString
	movq	%rax, %rbx
LBB0_12:
	movq	_EP_Static@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ExprSetProperty
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sqlite3ExprDelete
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_memcpy
	movq	_EP_IntValue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ExprHasProperty
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	cmpl	$0, 28(%r15)
	je	LBB0_15
## %bb.14:
	movq	_EP_Reduced@GOTPCREL(%rip), %rax
	movq	_EP_TokenOnly@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	andl	(%r15), %ecx
	sete	%dil
	callq	_assert
	movl	28(%r15), %esi
	movq	%r14, %rdi
	callq	_sqlite3DbStrDup
	movl	%eax, 28(%r15)
	movq	_EP2_MallocedToken@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r15)
LBB0_15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3DbFree                  ## TAILCALL
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EP_Resolved,4,2                ## @EP_Resolved
	.comm	_TK_COLUMN,8,3                  ## @TK_COLUMN
	.comm	_TK_AS,4,2                      ## @TK_AS
	.comm	_TK_COLLATE,8,3                 ## @TK_COLLATE
	.comm	_EP_Static,4,2                  ## @EP_Static
	.comm	_EP_IntValue,4,2                ## @EP_IntValue
	.comm	_EP_Reduced,4,2                 ## @EP_Reduced
	.comm	_EP_TokenOnly,4,2               ## @EP_TokenOnly
	.comm	_EP2_MallocedToken,4,2          ## @EP2_MallocedToken
	.no_dead_strip	_resolveAlias
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolveAlias
_resolveAlias:                          ; @resolveAlias
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x25, x5
	mov	x26, x4
	mov	x19, x3
	mov	x24, x2
	mov	x23, x1
	mov	x22, x0
	tbnz	w2, #31, LBB0_2
; %bb.1:
	ldr	w8, [x23]
	cmp	w8, w24
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
	ldr	x8, [x23, #8]
	add	x8, x8, w24, sxtw #4
	ldr	x27, [x8, #8]
	cmp	x27, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x27]
Lloh0:
	adrp	x9, _EP_Resolved@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EP_Resolved@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_assert
	ldr	x20, [x22, #8]
	mov	x0, x20
	mov	x1, x27
	mov	w2, #0
	bl	_sqlite3ExprDup
	cbz	x0, LBB0_16
; %bb.4:
	mov	x21, x0
	ldr	x8, [x27, #8]
Lloh3:
	adrp	x9, _TK_COLUMN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TK_COLUMN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.5:
	ldrb	w8, [x26]
	cmp	w8, #71
	b.eq	LBB0_10
; %bb.6:
	mov	x0, x21
	mov	x1, x25
	bl	_incrAggFunctionDepth
Lloh6:
	adrp	x8, _TK_AS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TK_AS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
	bl	_sqlite3PExpr
	cbz	x0, LBB0_16
; %bb.7:
	mov	x21, x0
	sxtw	x8, w24
	ldr	x9, [x23, #8]
	add	x8, x9, x8, lsl #4
	ldr	x9, [x8]
	cbnz	x9, LBB0_9
; %bb.8:
	ldr	x9, [x22]
	add	x9, x9, #1
	str	x9, [x22]
	str	x9, [x8]
LBB0_9:
	str	x9, [x21, #16]
LBB0_10:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _TK_COLLATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TK_COLLATE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w2, [x19, #28]
	mov	x0, x22
	mov	x1, x21
	bl	_sqlite3ExprAddCollateString
	mov	x21, x0
LBB0_12:
Lloh12:
	adrp	x8, _EP_Static@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EP_Static@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ExprSetProperty
	mov	x0, x20
	mov	x1, x19
	bl	_sqlite3ExprDelete
	mov	x0, x19
	mov	x1, x21
	mov	w2, #32
	bl	_memcpy
Lloh15:
	adrp	x8, _EP_IntValue@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EP_IntValue@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ExprHasProperty
	cbnz	w0, LBB0_15
; %bb.13:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_15
; %bb.14:
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _EP_Reduced@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EP_Reduced@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _EP_TokenOnly@GOTPAGE
Lloh22:
	ldr	x10, [x10, _EP_TokenOnly@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	cset	w0, eq
	bl	_assert
	ldr	w1, [x19, #28]
	mov	x0, x20
	bl	_sqlite3DbStrDup
Lloh24:
	adrp	x8, _EP2_MallocedToken@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EP2_MallocedToken@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	stp	w8, w0, [x19, #24]
LBB0_15:
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_sqlite3DbFree
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EP_Resolved,4,2                ; @EP_Resolved
	.comm	_TK_COLUMN,8,3                  ; @TK_COLUMN
	.comm	_TK_AS,4,2                      ; @TK_AS
	.comm	_TK_COLLATE,8,3                 ; @TK_COLLATE
	.comm	_EP_Static,4,2                  ; @EP_Static
	.comm	_EP_IntValue,4,2                ; @EP_IntValue
	.comm	_EP_Reduced,4,2                 ; @EP_Reduced
	.comm	_EP_TokenOnly,4,2               ; @EP_TokenOnly
	.comm	_EP2_MallocedToken,4,2          ; @EP2_MallocedToken
	.no_dead_strip	_resolveAlias
.subsections_via_symbols
