	.file	"10185.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC3:
	.string	"%.16f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -12[rbp], xmm0
	lea	rax, -12[rbp]
	movss	xmm1, DWORD PTR .LC1[rip]
	movss	xmm0, DWORD PTR .LC2[rip]
	mov	rdi, rax
	call	clamp_value
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	round_value
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	round_value
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rax, xmm4
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	round_value
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, xmm0
	movq	rax, xmm5
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	clamp_value
	.type	clamp_value, @function
clamp_value:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	movss	DWORD PTR -12[rbp], xmm0
	movss	DWORD PTR -16[rbp], xmm1
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR -12[rbp]
	comiss	xmm0, xmm1
	jbe	.L11
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR -12[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR [rax]
	comiss	xmm0, DWORD PTR -16[rbp]
	ja	.L10
	jmp	.L12
.L10:
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR -16[rbp]
	movss	DWORD PTR [rax], xmm0
.L12:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	clamp_value, .-clamp_value
	.globl	round_value
	.type	round_value, @function
round_value:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	movss	xmm0, DWORD PTR .LC4[rip]
	movss	DWORD PTR -8[rbp], xmm0
	mov	BYTE PTR -9[rbp], 0
	jmp	.L14
.L15:
	movss	xmm1, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR .LC5[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	movzx	eax, BYTE PTR -9[rbp]
	add	eax, 1
	mov	BYTE PTR -9[rbp], al
.L14:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, BYTE PTR -28[rbp]
	jb	.L15
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, DWORD PTR -8[rbp]
	cvttss2si	rax, xmm0
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	test	rax, rax
	js	.L16
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L17
.L16:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L17:
	divss	xmm0, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	round_value, .-round_value
	.section	.rodata
	.align 4
.LC0:
	.long	1073741824
	.align 4
.LC1:
	.long	1067414045
	.align 4
.LC2:
	.long	-1079230742
	.align 4
.LC4:
	.long	1065353216
	.align 4
.LC5:
	.long	1092616192
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"10185.c"
	.text
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%.16f\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1073741824
	str	r3, [fp, #-12]	@ float
	sub	r3, fp, #12
	ldr	r2, .L4+4
	ldr	r1, .L4+8
	mov	r0, r3
	bl	clamp_value
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L4+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, #3
	mov	r0, r3
	bl	round_value
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L4+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, #2
	mov	r0, r3
	bl	round_value
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L4+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, #1
	mov	r0, r3
	bl	round_value
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L4+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC1
	.word	1067414045
	.word	-1079230742
	.word	.LC0
	.size	main, .-main
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmplt
	.align	2
	.global	clamp_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	clamp_value, %function
clamp_value:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]	@ float
	str	r2, [fp, #-16]	@ float
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]	@ float
	str	r2, [r3]	@ float
	b	.L14
.L13:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	b	.L14
.L12:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]	@ float
	str	r2, [r3]	@ float
.L14:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	clamp_value, .-clamp_value
	.global	__aeabi_fmul
	.global	__aeabi_f2uiz
	.global	__aeabi_ui2f
	.global	__aeabi_fdiv
	.align	2
	.global	round_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	round_value, %function
round_value:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, r1
	strb	r3, [fp, #-25]
	mov	r3, #1065353216
	str	r3, [fp, #-12]	@ float
	mov	r3, #0
	strb	r3, [fp, #-13]
	b	.L16
.L17:
	ldr	r1, .L18
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-13]
.L16:
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L17
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]	@ float
	ldr	r1, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2uiz
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	__aeabi_ui2f
	mov	r3, r0
	ldr	r1, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]	@ float
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	1092616192
	.size	round_value, .-round_value
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
