	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function minmaxFunc
_minmaxFunc:                            ## @minmaxFunc
	.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	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpl	$2, %esi
	setge	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_sqlite3_user_data
	xorl	%r14d, %r14d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	negq	%rax
	movl	$0, %r12d
	sbbl	%r12d, %r12d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_sqlite3GetFuncCollSeq
	movq	%rax, %r15
	movl	%r15d, %edi
	callq	_assert
	movl	$1, %edi
	callq	_assert
	movq	(%rbx), %rdi
	callq	_sqlite3_value_type
	movq	_SQLITE_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$2, %r13d
	jl	LBB0_7
## %bb.2:
	xorl	%eax, %eax
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	sete	%al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$1, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r13,8), %rdi
	callq	_sqlite3_value_type
	movq	_SQLITE_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %rax
	movq	(%rbx,%rax,8), %rdi
	movq	(%rbx,%r13,8), %rsi
	movq	%r15, %rdx
	callq	_sqlite3MemCompare
	xorl	%r12d, %eax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_testcase
	movl	%r13d, %r14d
	jmp	LBB0_6
LBB0_7:
	movslq	%r14d, %rax
	movq	(%rbx,%rax,8), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_result_value           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NULL,8,3                ## @SQLITE_NULL
	.no_dead_strip	_minmaxFunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function minmaxFunc
_minmaxFunc:                            ; @minmaxFunc
	.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	x19, x2
	mov	x23, x1
	mov	x20, x0
	cmp	w1, #1
	cset	w0, gt
	bl	_assert
	mov	x0, x20
	bl	_sqlite3_user_data
	mov	x22, x0
	cmp	x0, #0
	csetm	w24, ne
	mov	x0, x20
	bl	_sqlite3GetFuncCollSeq
	mov	x21, x0
	bl	_assert
	mov	w0, #1
	bl	_assert
	ldr	x0, [x19]
	bl	_sqlite3_value_type
Lloh0:
	adrp	x25, _SQLITE_NULL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SQLITE_NULL@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	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
LBB0_2:
	cmp	w23, #2
	b.lt	LBB0_8
; %bb.3:
	mov	w26, #0
	cmp	x22, #0
	cset	w22, eq
	mov	w23, w23
	mov	w27, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	cmp	x23, x27
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, x27, lsl #3]
	bl	_sqlite3_value_type
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, w26, sxtw #3]
	ldr	x1, [x19, x27, lsl #3]
	mov	x2, x21
	bl	_sqlite3MemCompare
	eor	w8, w0, w24
	tbnz	w8, #31, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_testcase
	mov	x26, x27
	b	LBB0_4
LBB0_8:
	mov	w26, #0
LBB0_9:
	ldr	x1, [x19, w26, sxtw #3]
	mov	x0, x20
	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	_sqlite3_result_value
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NULL,8,3                ; @SQLITE_NULL
	.no_dead_strip	_minmaxFunc
.subsections_via_symbols
