	.file	"extr_select.c_minMaxQuery.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"min"
.LC1:
	.string	"max"
	.text
	.p2align 4
	.type	minMaxQuery, @function
minMaxQuery:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR [rdx], 0
	mov	r13, QWORD PTR 16[rsi]
	sete	dil
	mov	r14d, DWORD PTR WHERE_ORDERBY_NORMAL[rip]
	call	assert@PLT
	xor	edi, edi
	mov	rax, QWORD PTR TK_AGG_FUNCTION[rip]
	cmp	QWORD PTR [rbx], rax
	sete	dil
	call	assert@PLT
	test	r13, r13
	je	.L1
	cmp	DWORD PTR 0[r13], 1
	je	.L11
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	r15, QWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	call	sqlite3StrICmp@PLT
	test	rax, rax
	jne	.L3
	mov	r14d, DWORD PTR WHERE_ORDERBY_MIN[rip]
	mov	r15d, DWORD PTR SQLITE_SO_ASC[rip]
.L4:
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, r12
	call	sqlite3ExprListDup@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rbx, rax
	test	rax, rax
	je	.L12
	mov	edi, 1
	call	assert@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR [rax], r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	sqlite3StrICmp@PLT
	test	rax, rax
	jne	.L1
	mov	r14d, DWORD PTR WHERE_ORDERBY_MAX[rip]
	mov	r15d, DWORD PTR SQLITE_SO_DESC[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	xor	edi, edi
	cmp	QWORD PTR [r12], 0
	setne	dil
	call	assert@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	minMaxQuery, .-minMaxQuery
	.comm	WHERE_ORDERBY_NORMAL,4,4
	.comm	WHERE_ORDERBY_MIN,4,4
	.comm	WHERE_ORDERBY_MAX,4,4
	.comm	TK_AGG_FUNCTION,8,8
	.comm	SQLITE_SO_DESC,4,4
	.comm	SQLITE_SO_ASC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_select.c_minMaxQuery.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"min\000"
	.align	2
.LC1:
	.ascii	"max\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	minMaxQuery, %function
minMaxQuery:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r2]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	clz	r0, r3
	mov	r4, r1
	ldr	r3, .L13
	lsr	r0, r0, #5
	ldr	r7, [r1, #8]
	mov	r5, r2
	ldr	r8, [r3]
	bl	assert
	ldr	r3, .L13+4
	ldr	r0, [r4]
	ldr	r3, [r3]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	cmp	r7, #0
	beq	.L1
	ldr	r3, [r7]
	cmp	r3, #1
	beq	.L11
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r4, [r4, #4]
	ldr	r1, .L13+8
	mov	r0, r4
	bl	sqlite3StrICmp
	cmp	r0, #0
	bne	.L3
	ldr	r2, .L13+12
	ldr	r3, .L13+16
	ldr	r8, [r2]
	ldr	r9, [r3]
.L4:
	mov	r1, r7
	mov	r2, #0
	mov	r0, r6
	bl	sqlite3ExprListDup
	cmp	r0, #0
	mov	r4, r0
	str	r0, [r5]
	beq	.L12
	mov	r0, #1
	bl	assert
	ldr	r3, [r4, #4]
	mov	r0, r8
	str	r9, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r4
	ldr	r1, .L13+20
	bl	sqlite3StrICmp
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L13+24
	ldr	r3, .L13+28
	ldr	r8, [r2]
	ldr	r9, [r3]
	b	.L4
.L12:
	ldr	r0, [r6]
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	b	.L1
.L14:
	.align	2
.L13:
	.word	WHERE_ORDERBY_NORMAL
	.word	TK_AGG_FUNCTION
	.word	.LC0
	.word	WHERE_ORDERBY_MIN
	.word	SQLITE_SO_ASC
	.word	.LC1
	.word	WHERE_ORDERBY_MAX
	.word	SQLITE_SO_DESC
	.size	minMaxQuery, .-minMaxQuery
	.comm	WHERE_ORDERBY_NORMAL,4,4
	.comm	WHERE_ORDERBY_MIN,4,4
	.comm	WHERE_ORDERBY_MAX,4,4
	.comm	TK_AGG_FUNCTION,4,4
	.comm	SQLITE_SO_DESC,4,4
	.comm	SQLITE_SO_ASC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
