	.file	"552863.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"%f %f %f %f %f %f"
.LC9:
	.string	"%s %f %f\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, 2144
	mov	DWORD PTR -2116[rbp], edi
	mov	QWORD PTR -2128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -2072[rbp], xmm0
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -2068[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -2056[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -2052[rbp], xmm0
	mov	rax, QWORD PTR -2128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2024[rbp], rax
	mov	rax, QWORD PTR -2128[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -2032[rbp], rax
	mov	DWORD PTR -2080[rbp], 0
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -2032[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -2080[rbp]
	cdqe
	mov	BYTE PTR -2016[rbp+rax], dl
	add	DWORD PTR -2080[rbp], 1
	add	QWORD PTR -2032[rbp], 1
.L2:
	cmp	DWORD PTR -2080[rbp], 1000
	jg	.L3
	mov	rax, QWORD PTR -2032[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	je	.L3
	mov	rax, QWORD PTR -2032[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L4
.L3:
	mov	eax, DWORD PTR -2080[rbp]
	cdqe
	mov	BYTE PTR -2016[rbp+rax], 0
	mov	DWORD PTR -2076[rbp], 0
	jmp	.L5
.L13:
	movzx	eax, BYTE PTR -1008[rbp]
	cmp	al, 33
	je	.L5
	pxor	xmm0, xmm0
	movss	DWORD PTR -2084[rbp], xmm0
	movss	xmm0, DWORD PTR -2084[rbp]
	movss	DWORD PTR -2088[rbp], xmm0
	movss	xmm0, DWORD PTR -2088[rbp]
	movss	DWORD PTR -2092[rbp], xmm0
	add	DWORD PTR -2076[rbp], 1
	lea	rax, -1008[rbp]
	mov	QWORD PTR -2032[rbp], rax
	mov	DWORD PTR -2080[rbp], 0
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -2032[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 118
	jne	.L7
	mov	rax, QWORD PTR -2032[rbp]
	mov	BYTE PTR [rax], 32
.L7:
	add	DWORD PTR -2080[rbp], 1
	add	QWORD PTR -2032[rbp], 1
.L6:
	cmp	DWORD PTR -2080[rbp], 1000
	jg	.L8
	mov	rax, QWORD PTR -2032[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L8
	mov	rax, QWORD PTR -2032[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L9
.L8:
	lea	r8, -2092[rbp]
	lea	rdi, -2096[rbp]
	lea	rcx, -2100[rbp]
	lea	rdx, -2104[rbp]
	lea	rax, -1008[rbp]
	lea	rsi, -2084[rbp]
	push	rsi
	lea	rsi, -2088[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 16
	movss	xmm1, DWORD PTR -2104[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -2104[rbp], xmm0
	movss	xmm0, DWORD PTR -2096[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC5[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -2096[rbp], xmm0
	movss	xmm0, DWORD PTR -2100[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movsd	QWORD PTR -2136[rbp], xmm3
	movss	xmm0, DWORD PTR -2096[rbp]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rax, xmm4
	movq	xmm0, rax
	call	sin@PLT
	mulsd	xmm0, QWORD PTR -2136[rbp]
	movsd	xmm1, QWORD PTR .LC7[rip]
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -2040[rbp], xmm0
	movss	xmm0, DWORD PTR -2100[rbp]
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, xmm0
	movsd	QWORD PTR -2136[rbp], xmm5
	movss	xmm0, DWORD PTR -2096[rbp]
	pxor	xmm6, xmm6
	cvtss2sd	xmm6, xmm0
	movq	rax, xmm6
	movq	xmm0, rax
	call	cos@PLT
	mulsd	xmm0, QWORD PTR -2136[rbp]
	movsd	xmm1, QWORD PTR .LC7[rip]
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -2036[rbp], xmm0
	movss	xmm0, DWORD PTR -2104[rbp]
	comiss	xmm0, DWORD PTR -2072[rbp]
	jbe	.L19
	movss	xmm0, DWORD PTR -2072[rbp]
	movss	DWORD PTR -2068[rbp], xmm0
	movss	xmm0, DWORD PTR -2064[rbp]
	movss	DWORD PTR -2056[rbp], xmm0
	movss	xmm0, DWORD PTR -2060[rbp]
	movss	DWORD PTR -2052[rbp], xmm0
	movss	xmm0, DWORD PTR -2104[rbp]
	movss	DWORD PTR -2072[rbp], xmm0
	movss	xmm0, DWORD PTR -2040[rbp]
	movss	DWORD PTR -2064[rbp], xmm0
	movss	xmm0, DWORD PTR -2036[rbp]
	movss	DWORD PTR -2060[rbp], xmm0
	jmp	.L5
.L19:
	movss	xmm0, DWORD PTR -2104[rbp]
	comiss	xmm0, DWORD PTR -2068[rbp]
	ja	.L18
	jmp	.L5
.L18:
	movss	xmm0, DWORD PTR -2104[rbp]
	movss	DWORD PTR -2068[rbp], xmm0
	movss	xmm0, DWORD PTR -2040[rbp]
	movss	DWORD PTR -2056[rbp], xmm0
	movss	xmm0, DWORD PTR -2036[rbp]
	movss	DWORD PTR -2052[rbp], xmm0
.L5:
	mov	rdx, QWORD PTR -2024[rbp]
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L13
	cmp	DWORD PTR -2076[rbp], 1
	jle	.L14
	movss	xmm0, DWORD PTR -2064[rbp]
	subss	xmm0, DWORD PTR -2056[rbp]
	pxor	xmm7, xmm7
	cvtss2sd	xmm7, xmm0
	movq	rax, xmm7
	movsd	xmm0, QWORD PTR .LC8[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	QWORD PTR -2136[rbp], xmm0
	movss	xmm0, DWORD PTR -2060[rbp]
	subss	xmm0, DWORD PTR -2052[rbp]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rax, xmm4
	movsd	xmm0, QWORD PTR .LC8[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm2, xmm0
	addsd	xmm2, QWORD PTR -2136[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	sqrt@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -2048[rbp], xmm0
	movss	xmm0, DWORD PTR -2072[rbp]
	divss	xmm0, DWORD PTR -2068[rbp]
	movss	DWORD PTR -2044[rbp], xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -2044[rbp]
	pxor	xmm7, xmm7
	cvtss2sd	xmm7, DWORD PTR -2048[rbp]
	movq	rdx, xmm7
	lea	rax, -2016[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 2
	call	printf@PLT
.L14:
	mov	rax, QWORD PTR -2024[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	-1082130432
	.align 4
.LC4:
	.long	1148846080
	.align 8
.LC5:
	.long	1413754136
	.long	1074340347
	.align 8
.LC6:
	.long	0
	.long	1080459264
	.align 8
.LC7:
	.long	0
	.long	1083129856
	.align 8
.LC8:
	.long	0
	.long	1073741824
	.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	"552863.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"%f %f %f %f %f %f\000"
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_d2f
	.global	__aeabi_fcmplt
	.global	__aeabi_fsub
	.global	__aeabi_dadd
	.global	__aeabi_fdiv
	.align	2
.LC2:
	.ascii	"%s %f %f\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #2112
	str	r0, [fp, #-2104]
	str	r1, [fp, #-2108]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L20+4
	str	r3, [fp, #-2064]	@ float
	ldr	r3, .L20+4
	str	r3, [fp, #-2060]	@ float
	mov	r3, #0
	str	r3, [fp, #-2048]	@ float
	mov	r3, #0
	str	r3, [fp, #-2044]	@ float
	ldr	r3, [fp, #-2108]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L20+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-2036]
	ldr	r3, [fp, #-2108]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-2040]
	mov	r3, #0
	str	r3, [fp, #-2072]
	b	.L2
.L4:
	ldr	r3, [fp, #-2040]
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-2072]
	add	r3, r3, #1
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2040]
	add	r3, r3, #1
	str	r3, [fp, #-2040]
.L2:
	ldr	r3, [fp, #-2072]
	cmp	r3, #1000
	bgt	.L3
	ldr	r3, [fp, #-2040]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L3
	ldr	r3, [fp, #-2040]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
.L3:
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-2068]
	b	.L5
.L13:
	ldrb	r3, [fp, #-1016]	@ zero_extendqisi2
	cmp	r3, #33
	beq	.L5
	mov	r3, #0
	str	r3, [fp, #-2076]	@ float
	ldr	r3, [fp, #-2076]	@ float
	str	r3, [fp, #-2080]	@ float
	ldr	r3, [fp, #-2080]	@ float
	str	r3, [fp, #-2084]	@ float
	ldr	r3, [fp, #-2068]
	add	r3, r3, #1
	str	r3, [fp, #-2068]
	sub	r3, fp, #1016
	str	r3, [fp, #-2040]
	mov	r3, #0
	str	r3, [fp, #-2072]
	b	.L6
.L9:
	ldr	r3, [fp, #-2040]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #118
	bne	.L7
	ldr	r3, [fp, #-2040]
	mov	r2, #32
	strb	r2, [r3]
.L7:
	ldr	r3, [fp, #-2072]
	add	r3, r3, #1
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2040]
	add	r3, r3, #1
	str	r3, [fp, #-2040]
.L6:
	ldr	r3, [fp, #-2072]
	cmp	r3, #1000
	bgt	.L8
	ldr	r3, [fp, #-2040]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L8
	ldr	r3, [fp, #-2040]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
.L8:
	sub	r1, fp, #2080
	sub	r1, r1, #12
	sub	r2, fp, #2080
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #1016
	sub	r3, fp, #2064
	sub	r3, r3, #12
	str	r3, [sp, #12]
	sub	r3, fp, #2064
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp, #8]
	sub	r3, fp, #2064
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp, #4]
	sub	r3, fp, #2064
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L20+12
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-2096]	@ float
	ldr	r1, .L20+16
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-2096]	@ float
	ldr	r3, [fp, #-2088]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L20+20
	ldr	r3, .L20+24
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L20+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-2088]	@ float
	ldr	r3, [fp, #-2092]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-2088]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L20+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-2024]	@ float
	ldr	r3, [fp, #-2092]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-2088]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L20+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-2020]	@ float
	ldr	r3, [fp, #-2096]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-2064]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-2064]	@ float
	str	r3, [fp, #-2060]	@ float
	ldr	r3, [fp, #-2056]	@ float
	str	r3, [fp, #-2048]	@ float
	ldr	r3, [fp, #-2052]	@ float
	str	r3, [fp, #-2044]	@ float
	ldr	r3, [fp, #-2096]	@ float
	str	r3, [fp, #-2064]	@ float
	ldr	r3, [fp, #-2024]	@ float
	str	r3, [fp, #-2056]	@ float
	ldr	r3, [fp, #-2020]	@ float
	str	r3, [fp, #-2052]	@ float
	b	.L5
.L19:
	ldr	r3, [fp, #-2096]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-2060]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	b	.L5
.L18:
	ldr	r3, [fp, #-2096]	@ float
	str	r3, [fp, #-2060]	@ float
	ldr	r3, [fp, #-2024]	@ float
	str	r3, [fp, #-2048]	@ float
	ldr	r3, [fp, #-2020]	@ float
	str	r3, [fp, #-2044]	@ float
.L5:
	sub	r3, fp, #1016
	ldr	r2, [fp, #-2036]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-2068]
	cmp	r3, #1
	ble	.L14
	ldr	r1, [fp, #-2048]	@ float
	ldr	r0, [fp, #-2056]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r1, [fp, #-2044]	@ float
	ldr	r0, [fp, #-2052]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-2032]	@ float
	ldr	r1, [fp, #-2060]	@ float
	ldr	r0, [fp, #-2064]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-2028]	@ float
	ldr	r0, [fp, #-2032]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-2028]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #2000
	sub	r1, r1, #12
	sub	r1, r1, #4
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L20+36
	bl	printf
.L14:
	ldr	r0, [fp, #-2036]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	-1082130432
	.word	.LC0
	.word	.LC1
	.word	1148846080
	.word	1413754136
	.word	1074340347
	.word	1080459264
	.word	1083129856
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
