	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convertCompoundSelectToSubquery
_convertCompoundSelectToSubquery:       ## @convertCompoundSelectToSubquery
	.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
	movq	_WRC_Continue@GOTPCREL(%rip), %r15
	cmpq	$0, (%rsi)
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r12
	movq	32(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	_TK_ALL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_TK_SELECT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%r12, %rsi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rbx
	cmpq	%rcx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %rbx
	je	LBB0_5
## %bb.6:
	movq	8(%rax), %rcx
	movl	(%rax), %eax
	movq	_EP_Collate@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-8(%rcx,%rax,8), %rsi
	decq	%rax
	testl	%edx, (%rsi)
	je	LBB0_7
## %bb.9:
	movq	(%rdi), %rax
	movq	%rax, %rbx
	movq	(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$80, %esi
	callq	_sqlite3DbMallocZero
	movq	_WRC_Abort@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rax, %r14
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %r9
	pushq	$0
	pushq	$0
	callq	_sqlite3SrcListAppendFromTerm
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movups	64(%r12), %xmm0
	movups	%xmm0, 64(%r14)
	movups	(%r12), %xmm0
	movups	16(%r12), %xmm1
	movups	32(%r12), %xmm2
	movups	48(%r12), %xmm3
	movups	%xmm3, 48(%r14)
	movups	%xmm2, 32(%r14)
	movups	%xmm1, 16(%r14)
	movups	%xmm0, (%r14)
	movq	%rax, 72(%r12)
	movq	_TK_ALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_sqlite3Expr
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_sqlite3ExprListAppend
	movl	%eax, 64(%r12)
	movq	_TK_SELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	$0, 56(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14)
	movq	$0, 48(%r14)
	movq	$0, (%r12)
	movups	%xmm0, 16(%r14)
LBB0_12:
	movq	%r15, %r13
LBB0_13:
	movl	(%r13), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRC_Continue,4,2               ## @WRC_Continue
	.comm	_TK_ALL,8,3                     ## @TK_ALL
	.comm	_TK_SELECT,8,3                  ## @TK_SELECT
	.comm	_EP_Collate,4,2                 ## @EP_Collate
	.comm	_WRC_Abort,4,2                  ## @WRC_Abort
	.no_dead_strip	_convertCompoundSelectToSubquery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convertCompoundSelectToSubquery
_convertCompoundSelectToSubquery:       ; @convertCompoundSelectToSubquery
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x19, x1
	ldr	x9, [x1, #32]
	cbz	x9, LBB0_11
; %bb.2:
Lloh0:
	adrp	x24, _TK_ALL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TK_ALL@GOTPAGEOFF]
	ldr	x10, [x24]
Lloh2:
	adrp	x23, _TK_SELECT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TK_SELECT@GOTPAGEOFF]
	ldr	x11, [x23]
Lloh4:
	adrp	x8, _WRC_Continue@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WRC_Continue@GOTPAGEOFF]
	mov	x12, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12, #8]
	cmp	x13, x10
	ccmp	x13, x11, #4, ne
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x12]
	cbnz	x12, LBB0_3
	b	LBB0_12
LBB0_5:
	ldr	x8, [x9, #8]
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _EP_Collate@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EP_Collate@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	sub	x11, x8, #8
Lloh9:
	adrp	x8, _WRC_Continue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WRC_Continue@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x11, x9, lsl #3]
	sub	x9, x9, #1
	ldr	w12, [x12]
	tst	w10, w12
	b.eq	LBB0_6
; %bb.8:
	ldr	x21, [x0]
	ldr	x22, [x21]
	mov	x0, x22
	mov	w1, #80
	bl	_sqlite3DbMallocZero
	cbz	x0, LBB0_13
; %bb.9:
	mov	x20, x0
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x4, sp, #12
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x5, x20
	mov	w6, #0
	mov	w7, #0
	bl	_sqlite3SrcListAppendFromTerm
	cbz	x0, LBB0_13
; %bb.10:
	ldr	q0, [x19]
	str	q0, [x20]
	ldp	q0, q1, [x19, #16]
	ldp	q2, q3, [x19, #48]
	stp	q2, q3, [x20, #48]
	stp	q0, q1, [x20, #16]
	str	x0, [x19, #72]
	ldr	x1, [x24]
	mov	x0, x22
	mov	w2, #0
	bl	_sqlite3Expr
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_sqlite3ExprListAppend
	str	w0, [x19, #64]
	ldr	x8, [x23]
	str	x8, [x19, #8]
	str	xzr, [x19, #56]
	stp	xzr, xzr, [x20, #32]
	str	xzr, [x20, #48]
	str	xzr, [x19]
	stp	xzr, xzr, [x20, #16]
LBB0_11:
Lloh11:
	adrp	x8, _WRC_Continue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WRC_Continue@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
LBB0_13:
Lloh13:
	adrp	x8, _WRC_Abort@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WRC_Abort@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WRC_Continue,4,2               ; @WRC_Continue
	.comm	_TK_ALL,8,3                     ; @TK_ALL
	.comm	_TK_SELECT,8,3                  ; @TK_SELECT
	.comm	_EP_Collate,4,2                 ; @EP_Collate
	.comm	_WRC_Abort,4,2                  ; @WRC_Abort
	.no_dead_strip	_convertCompoundSelectToSubquery
.subsections_via_symbols
