	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function minMaxQuery
_minMaxQuery:                           ## @minMaxQuery
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_WHERE_ORDERBY_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	$0, (%rsi)
	movl	$1, %ebx
	cmpl	$1, (%rdi)
	jne	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	(%r12), %rax
	movq	16(%r12), %r13
	movq	_TK_AGG_FUNCTION@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	testq	%r13, %r13
	je	LBB0_11
## %bb.2:
	cmpl	$1, (%r13)
	jne	LBB0_11
## %bb.3:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_TK_AGG_COLUMN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	movq	8(%r12), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_sqlite3StrICmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_sqlite3StrICmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_11:
	movq	(%r15), %r13
	testq	%r13, %r13
	je	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
	cmpl	$1, (%r13)
	sete	%bl
LBB0_10:
	movl	%ebx, %edi
	callq	_assert
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_WHERE_ORDERBY_MIN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_WHERE_ORDERBY_MAX@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r14d
	movq	%r13, (%r15)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_WHERE_ORDERBY_NORMAL,4,2       ## @WHERE_ORDERBY_NORMAL
	.comm	_TK_AGG_FUNCTION,8,3            ## @TK_AGG_FUNCTION
	.comm	_TK_AGG_COLUMN,8,3              ## @TK_AGG_COLUMN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"min"

	.comm	_WHERE_ORDERBY_MIN,4,2          ## @WHERE_ORDERBY_MIN
L_.str.1:                               ## @.str.1
	.asciz	"max"

	.comm	_WHERE_ORDERBY_MAX,4,2          ## @WHERE_ORDERBY_MAX
	.no_dead_strip	_minMaxQuery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function minMaxQuery
_minMaxQuery:                           ; @minMaxQuery
	.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
Lloh0:
	adrp	x8, _WHERE_ORDERBY_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WHERE_ORDERBY_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	str	xzr, [x1]
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x1
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	x22, [x21, #16]
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _TK_AGG_FUNCTION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TK_AGG_FUNCTION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	cbz	x22, LBB0_6
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _TK_AGG_COLUMN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TK_AGG_COLUMN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x21, [x21, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_sqlite3StrICmp
	cbz	x0, LBB0_10
; %bb.5:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_sqlite3StrICmp
	cbz	x0, LBB0_11
LBB0_6:
	ldr	x22, [x20]
	cbz	x22, LBB0_8
LBB0_7:
	ldr	w8, [x22]
	cmp	w8, #1
	cset	w0, eq
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	bl	_assert
	mov	x0, x19
	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:
Lloh13:
	adrp	x8, _WHERE_ORDERBY_MIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WHERE_ORDERBY_MIN@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh15:
	adrp	x8, _WHERE_ORDERBY_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WHERE_ORDERBY_MAX@GOTPAGEOFF]
LBB0_12:
	ldr	w19, [x8]
	str	x22, [x20]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WHERE_ORDERBY_NORMAL,4,2       ; @WHERE_ORDERBY_NORMAL
	.comm	_TK_AGG_FUNCTION,8,3            ; @TK_AGG_FUNCTION
	.comm	_TK_AGG_COLUMN,8,3              ; @TK_AGG_COLUMN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"min"

	.comm	_WHERE_ORDERBY_MIN,4,2          ; @WHERE_ORDERBY_MIN
l_.str.1:                               ; @.str.1
	.asciz	"max"

	.comm	_WHERE_ORDERBY_MAX,4,2          ; @WHERE_ORDERBY_MAX
	.no_dead_strip	_minMaxQuery
.subsections_via_symbols
