	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function roundFunc
LCPI0_0:
	.quad	0xc330000000000000              ## double -4503599627370496
LCPI0_1:
	.quad	0x4330000000000000              ## double 4503599627370496
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_roundFunc:                             ## @roundFunc
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	-1(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	setb	%dil
	callq	_assert
	xorl	%r15d, %r15d
	cmpl	$2, %ebx
	jne	LBB0_3
## %bb.1:
	movq	_SQLITE_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%r12), %rdi
	callq	_sqlite3_value_type
	cmpq	%rax, %rbx
	je	LBB0_11
## %bb.2:
	movq	8(%r12), %rdi
	callq	_sqlite3_value_int
	cmpl	$30, %eax
	movl	$30, %ecx
	cmovll	%eax, %ecx
	xorl	%r15d, %r15d
	testl	%ecx, %ecx
	cmovgl	%ecx, %r15d
LBB0_3:
	movq	(%r12), %rdi
	callq	_sqlite3_value_type
	movq	_SQLITE_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.4:
	movq	(%r12), %rdi
	callq	_sqlite3_value_double
	movsd	%xmm0, -40(%rbp)
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_10
## %bb.5:
	ucomisd	LCPI0_1(%rip), %xmm0
	ja	LBB0_10
## %bb.6:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.8:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_sqlite3_mprintf
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_sqlite3Strlen30
	movq	_SQLITE_UTF8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_sqlite3AtoF
	movq	%rbx, %rdi
	callq	_sqlite3_free
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	jmp	LBB0_10
LBB0_7:
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
	ucomisd	%xmm0, %xmm1
	seta	%al
	leaq	LCPI0_2(%rip), %rcx
	addsd	(%rcx,%rax,8), %xmm0
	cvttsd2si	%xmm0, %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	%xmm0, -40(%rbp)
LBB0_10:
	movq	%r14, %rdi
	callq	_sqlite3_result_double
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3_result_error_nomem     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NULL,8,3                ## @SQLITE_NULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.*f"

	.comm	_SQLITE_UTF8,4,2                ## @SQLITE_UTF8
	.no_dead_strip	_roundFunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function roundFunc
_roundFunc:                             ; @roundFunc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	sub	w8, w1, #1
	cmp	w8, #2
	cset	w0, lo
	bl	_assert
Lloh0:
	adrp	x22, _SQLITE_NULL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SQLITE_NULL@GOTPAGEOFF]
	cmp	w21, #2
	b.ne	LBB0_3
; %bb.1:
	ldr	x21, [x22]
	ldr	x0, [x20, #8]
	bl	_sqlite3_value_type
	cmp	x21, x0
	b.eq	LBB0_11
; %bb.2:
	ldr	x0, [x20, #8]
	bl	_sqlite3_value_int
	mov	w8, #30
	cmp	w0, #30
	csel	w8, w0, w8, lt
	cmp	w8, #0
	csel	w21, w8, wzr, gt
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	ldr	x0, [x20]
	bl	_sqlite3_value_type
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.5:
	ldr	x0, [x20]
	bl	_sqlite3_value_double
	str	d0, [sp, #8]
	mov	x8, #-4382002437431492608
	fmov	d1, x8
	fcmp	d0, d1
	mov	x8, #4841369599423283200
	fmov	d1, x8
	fccmp	d0, d1, #0, pl
	b.gt	LBB0_10
; %bb.6:
	cbz	w21, LBB0_9
; %bb.7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_sqlite3_mprintf
	cbz	x0, LBB0_12
; %bb.8:
	mov	x20, x0
	bl	_sqlite3Strlen30
	mov	x2, x0
Lloh4:
	adrp	x8, _SQLITE_UTF8@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_UTF8@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_sqlite3AtoF
	mov	x0, x20
	bl	_sqlite3_free
	ldr	d0, [sp, #8]
	b	LBB0_10
LBB0_9:
	fcmp	d0, #0.0
	fmov	d1, #0.50000000
	fmov	d2, #-0.50000000
	fcsel	d1, d2, d1, mi
	fadd	d0, d0, d1
	fcvtzs	d0, d0
	scvtf	d0, d0
	str	d0, [sp, #8]
LBB0_10:
	mov	x0, x19
	bl	_sqlite3_result_double
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_sqlite3_result_error_nomem
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NULL,8,3                ; @SQLITE_NULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.*f"

	.comm	_SQLITE_UTF8,4,2                ; @SQLITE_UTF8
	.no_dead_strip	_roundFunc
.subsections_via_symbols
