	.file	"extr_func.c_roundFunc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%.*f"
	.text
	.p2align 4
	.type	roundFunc, @function
roundFunc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	eax, -1[rsi]
	cmp	eax, 1
	setbe	dil
	call	assert@PLT
	cmp	ebp, 2
	je	.L28
	mov	rdi, QWORD PTR [rbx]
	call	sqlite3_value_type@PLT
	cmp	rax, QWORD PTR SQLITE_NULL[rip]
	jne	.L25
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	call	sqlite3_value_double@PLT
	movsd	QWORD PTR [rsp], xmm0
.L14:
	pxor	xmm2, xmm2
	comisd	xmm0, xmm2
	jb	.L5
	mov	eax, DWORD PTR LARGEST_INT64[rip]
	pxor	xmm1, xmm1
	sub	eax, 1
	cvtsi2sd	xmm1, eax
	comisd	xmm1, xmm0
	jbe	.L5
	addsd	xmm0, QWORD PTR .LC1[rip]
	cvttsd2si	rax, xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR [rsp], xmm0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	comisd	xmm2, xmm0
	ja	.L30
.L24:
	xor	ebp, ebp
.L4:
	mov	esi, ebp
	lea	rdi, .LC3[rip]
	call	sqlite3_mprintf@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L31
	mov	r13d, DWORD PTR SQLITE_UTF8[rip]
	mov	rdi, rax
	call	sqlite3Strlen30@PLT
	mov	rsi, rsp
	mov	rdi, rbp
	mov	edx, eax
	mov	ecx, r13d
	call	sqlite3AtoF@PLT
	mov	rdi, rbp
	call	sqlite3_free@PLT
	movsd	xmm0, QWORD PTR [rsp]
.L8:
	mov	rdi, r12
	call	sqlite3_result_double@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, QWORD PTR 8[rbx]
	call	sqlite3_value_type@PLT
	cmp	rax, QWORD PTR SQLITE_NULL[rip]
	je	.L1
	mov	rdi, QWORD PTR 8[rbx]
	mov	ebp, 0
	call	sqlite3_value_int@PLT
	mov	rdi, QWORD PTR [rbx]
	test	eax, eax
	mov	r13d, eax
	cmovns	ebp, eax
	mov	eax, 30
	cmp	ebp, 30
	cmovg	ebp, eax
	call	sqlite3_value_type@PLT
	cmp	rax, QWORD PTR SQLITE_NULL[rip]
	je	.L1
	mov	rdi, QWORD PTR [rbx]
	call	sqlite3_value_double@PLT
	movsd	QWORD PTR [rsp], xmm0
	test	r13d, r13d
	jg	.L4
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L30:
	mov	eax, DWORD PTR LARGEST_INT64[rip]
	pxor	xmm1, xmm1
	movq	xmm2, QWORD PTR .LC2[rip]
	movapd	xmm3, xmm0
	sub	eax, 1
	xorpd	xmm3, xmm2
	cvtsi2sd	xmm1, eax
	comisd	xmm1, xmm3
	jbe	.L24
	movsd	xmm1, QWORD PTR .LC1[rip]
	subsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvttsd2si	rax, xmm1
	cvtsi2sd	xmm0, rax
	xorpd	xmm0, xmm2
	movsd	QWORD PTR [rsp], xmm0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, r12
	call	sqlite3_result_error_nomem@PLT
	jmp	.L1
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	roundFunc, .-roundFunc
	.comm	SQLITE_UTF8,4,4
	.comm	SQLITE_NULL,8,8
	.comm	LARGEST_INT64,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.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_roundFunc.c"
	.text
	.global	__aeabi_dcmpge
	.global	__aeabi_i2d
	.global	__aeabi_dcmpgt
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.global	__aeabi_dcmplt
	.global	__aeabi_dsub
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%.*f\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	roundFunc, %function
roundFunc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	sub	r0, r1, #1
	cmp	r0, #1
	ldr	r3, .L32
	movhi	r0, #0
	movls	r0, #1
	sub	sp, sp, #16
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	assert
	cmp	r5, #2
	beq	.L28
	ldr	r0, [r4]
	bl	sqlite3_value_type
	ldr	r3, .L32+4
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L25
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	ldr	r0, [r4]
	bl	sqlite3_value_double
	mov	r2, r0
	mov	r3, r1
	mov	r5, r0
	mov	r4, r1
	stm	sp, {r2-r3}
.L14:
	mov	r0, r5
	mov	r1, r4
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpge
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L32+8
	ldr	r0, [r3]
	sub	r0, r0, #1
	bl	__aeabi_i2d
	mov	r2, r5
	mov	r3, r4
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	beq	.L5
	mov	r2, #0
	ldr	r3, .L32+12
	mov	r0, r5
	mov	r1, r4
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	b	.L8
.L5:
	mov	r0, r5
	mov	r1, r4
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmplt
	subs	r7, r0, #0
	bne	.L30
.L4:
	mov	r3, r4
	mov	r2, r5
	mov	r1, r7
	ldr	r0, .L32+16
	bl	sqlite3_mprintf
	subs	r4, r0, #0
	beq	.L31
	bl	sqlite3Strlen30
	ldr	r3, .L32+20
	mov	r2, r0
	mov	r1, sp
	ldr	r3, [r3]
	mov	r0, r4
	bl	sqlite3AtoF
	mov	r0, r4
	bl	sqlite3_free
	ldm	sp, {r0, r1}
.L8:
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	bl	sqlite3_result_double
	b	.L1
.L28:
	ldr	r0, [r4, #4]
	bl	sqlite3_value_type
	ldr	r5, .L32+4
	ldr	r3, [r5]
	cmp	r0, r3
	beq	.L1
	ldr	r0, [r4, #4]
	bl	sqlite3_value_int
	bic	r7, r0, r0, asr #31
	cmp	r7, #30
	mov	r8, r0
	ldr	r0, [r4]
	movge	r7, #30
	bl	sqlite3_value_type
	ldr	r3, [r5]
	cmp	r0, r3
	beq	.L1
	ldr	r0, [r4]
	bl	sqlite3_value_double
	mov	r2, r0
	mov	r3, r1
	cmp	r8, #0
	mov	r5, r0
	mov	r4, r1
	stm	sp, {r2-r3}
	bgt	.L4
	b	.L14
.L30:
	ldr	r3, .L32+8
	add	r7, r4, #-2147483648
	ldr	r0, [r3]
	sub	r0, r0, #1
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r5
	mov	r1, r7
	bl	__aeabi_dcmplt
	subs	r7, r0, #0
	beq	.L4
	mov	r2, r5
	mov	r3, r4
	mov	r0, #0
	ldr	r1, .L32+12
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	bl	__aeabi_i2d
	add	r1, r1, #-2147483648
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	b	.L8
.L31:
	mov	r0, r6
	bl	sqlite3_result_error_nomem
	b	.L1
.L29:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC1
	.word	SQLITE_NULL
	.word	LARGEST_INT64
	.word	1071644672
	.word	.LC0
	.word	SQLITE_UTF8
	.size	roundFunc, .-roundFunc
	.comm	SQLITE_UTF8,4,4
	.comm	SQLITE_NULL,4,4
	.comm	LARGEST_INT64,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
