	.file	"extr_func.c_minmaxFunc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	minmaxFunc, @function
minmaxFunc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	xor	edi, edi
	cmp	esi, 1
	setg	dil
	call	assert@PLT
	mov	rdi, r15
	call	sqlite3_user_data@PLT
	mov	rdi, r15
	mov	QWORD PTR [rsp], rax
	mov	r12, rax
	call	sqlite3GetFuncCollSeq@PLT
	mov	edi, eax
	mov	rbp, rax
	call	assert@PLT
	mov	edi, 1
	call	assert@PLT
	mov	rdi, QWORD PTR [r14]
	call	sqlite3_value_type@PLT
	cmp	rax, QWORD PTR SQLITE_NULL[rip]
	je	.L1
	cmp	ebx, 1
	jle	.L4
	xor	r13d, r13d
	test	r12, r12
	lea	r12d, -2[rbx]
	mov	r15d, 1
	setne	r13b
	add	r12, 2
	xor	ebx, ebx
	neg	r13d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	movsx	rax, ebx
	mov	rsi, QWORD PTR [r14+r15*8]
	mov	rdx, rbp
	mov	rdi, QWORD PTR [r14+rax*8]
	call	sqlite3MemCompare@PLT
	xor	eax, r13d
	js	.L6
	xor	edi, edi
	cmp	QWORD PTR [rsp], 0
	movsx	rbx, r15d
	sete	dil
	call	testcase@PLT
.L6:
	add	r15, 1
	cmp	r12, r15
	je	.L11
.L7:
	mov	rdi, QWORD PTR [r14+r15*8]
	call	sqlite3_value_type@PLT
	cmp	rax, QWORD PTR SQLITE_NULL[rip]
	jne	.L12
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	lea	r14, [r14+rbx*8]
.L4:
	mov	rsi, QWORD PTR [r14]
	mov	rdi, QWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	jmp	sqlite3_result_value@PLT
	.cfi_endproc
.LFE0:
	.size	minmaxFunc, .-minmaxFunc
	.comm	SQLITE_NULL,8,8
	.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_func.c_minmaxFunc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	minmaxFunc, %function
minmaxFunc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r0
	cmp	r1, #1
	movle	r0, #0
	movgt	r0, #1
	sub	sp, sp, #12
	mov	r4, r2
	mov	r5, r1
	bl	assert
	mov	r0, fp
	bl	sqlite3_user_data
	mov	r10, r0
	mov	r0, fp
	str	r10, [sp, #4]
	bl	sqlite3GetFuncCollSeq
	mov	r7, r0
	bl	assert
	mov	r0, #1
	bl	assert
	ldr	r0, [r4]
	bl	sqlite3_value_type
	ldr	r8, .L13
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L1
	cmp	r5, #1
	ble	.L4
	subs	r9, r10, #0
	movne	r9, #1
	mov	r6, #0
	mov	r10, #1
	rsb	r9, r9, #0
	b	.L7
.L12:
	mov	r2, r7
	ldr	r1, [r4, r10, lsl #2]
	ldr	r0, [r4, r6, lsl #2]
	bl	sqlite3MemCompare
	teq	r0, r9
	bmi	.L6
	ldr	r3, [sp, #4]
	mov	r6, r10
	clz	r0, r3
	lsr	r0, r0, #5
	bl	testcase
.L6:
	add	r10, r10, #1
	cmp	r5, r10
	beq	.L11
.L7:
	ldr	r0, [r4, r10, lsl #2]
	bl	sqlite3_value_type
	ldr	r2, [r8]
	cmp	r0, r2
	bne	.L12
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	add	r4, r4, r6, lsl #2
.L4:
	mov	r0, fp
	ldr	r1, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	sqlite3_result_value
.L14:
	.align	2
.L13:
	.word	SQLITE_NULL
	.size	minmaxFunc, .-minmaxFunc
	.comm	SQLITE_NULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
