Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
float a,b,c,d,p=57.29578;main(){for(;~scanf("%f%f%f%f",&a,&b,&c,&d);)a+1&&printf("%.0f\n",6378.1*acos(sin(a/p)*sin(c/p)+cos(a/p)*cos(c/p)*cos(b/p-d/p)));}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	p
	.data
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.long	1113927393
	.section	.rodata
.LC3:
	.string	"%.0f\n"
.LC4:
	.string	"%f%f%f%f"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L2
.L5:
	movss	a(%rip), %xmm1
	movss	.LC0(%rip), %xmm0
	addss	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jp	.L7
	pxor	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	je	.L2
.L7:
	movss	a(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm5, %xmm5
	cvtss2sd	%xmm0, %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	%xmm0, -8(%rbp)
	movss	c(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm6, %xmm6
	cvtss2sd	%xmm0, %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movapd	%xmm0, %xmm3
	mulsd	-8(%rbp), %xmm3
	movsd	%xmm3, -8(%rbp)
	movss	a(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm2, %xmm2
	cvtss2sd	%xmm0, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movsd	%xmm0, -16(%rbp)
	movss	c(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm5, %xmm5
	cvtss2sd	%xmm0, %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movapd	%xmm0, %xmm4
	mulsd	-16(%rbp), %xmm4
	movsd	%xmm4, -16(%rbp)
	movss	b(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	movss	d(%rip), %xmm1
	movss	p(%rip), %xmm2
	divss	%xmm2, %xmm1
	subss	%xmm1, %xmm0
	pxor	%xmm7, %xmm7
	cvtss2sd	%xmm0, %xmm7
	movq	%xmm7, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	mulsd	-16(%rbp), %xmm0
	addsd	-8(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	acos@PLT
	movsd	.LC2(%rip), %xmm1
	mulsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	testl	%eax, %eax
.L2:
	leaq	d(%rip), %r8
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L5
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1065353216
	.align 8
.LC2:
	.long	-1717986918
	.long	1085860377
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%.0f\n"
.LC4:
	.string	"%f%f%f%f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	c(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	b(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC4(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movss	a(%rip), %xmm0
	movss	.LC0(%rip), %xmm1
	pxor	%xmm5, %xmm5
	addss	%xmm0, %xmm1
	ucomiss	%xmm5, %xmm1
	jp	.L6
	jne	.L6
.L3:
	xorl	%eax, %eax
	leaq	d(%rip), %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L5
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movss	p(%rip), %xmm2
	leaq	40(%rsp), %r14
	leaq	32(%rsp), %r15
	movq	%r15, %rsi
	movq	%r14, %rdi
	divss	%xmm2, %xmm0
	movss	%xmm2, 12(%rsp)
	cvtss2sd	%xmm0, %xmm0
	call	sincos@PLT
	movq	%r14, %rdi
	movq	%r15, %rsi
	movss	12(%rsp), %xmm2
	movss	c(%rip), %xmm0
	movsd	32(%rsp), %xmm3
	movsd	40(%rsp), %xmm1
	divss	%xmm2, %xmm0
	movsd	%xmm3, 24(%rsp)
	movsd	%xmm1, 16(%rsp)
	cvtss2sd	%xmm0, %xmm0
	call	sincos@PLT
	movss	12(%rsp), %xmm2
	movss	b(%rip), %xmm0
	movss	d(%rip), %xmm4
	divss	%xmm2, %xmm0
	divss	%xmm2, %xmm4
	subss	%xmm4, %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	cos@PLT
	movsd	24(%rsp), %xmm3
	mulsd	32(%rsp), %xmm3
	movapd	%xmm0, %xmm2
	movsd	16(%rsp), %xmm1
	mulsd	40(%rsp), %xmm1
	movapd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	call	acos@PLT
	mulsd	.LC2(%rip), %xmm0
	movl	$1, %eax
	leaq	.LC3(%rip), %rdi
	call	printf@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	p
	.data
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.long	1113927393
	.globl	d
	.bss
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1065353216
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	-1717986918
	.long	1085860377
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%.0f\n"
.LC4:
	.string	"%f%f%f%f"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	c(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	b(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC4(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	movss	a(%rip), %xmm0
	movss	.LC0(%rip), %xmm1
	pxor	%xmm5, %xmm5
	addss	%xmm0, %xmm1
	ucomiss	%xmm5, %xmm1
	jp	.L6
	jne	.L6
.L3:
	xorl	%eax, %eax
	leaq	d(%rip), %r8
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L5
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movss	p(%rip), %xmm2
	leaq	40(%rsp), %r14
	leaq	32(%rsp), %r15
	movq	%r15, %rsi
	movq	%r14, %rdi
	divss	%xmm2, %xmm0
	movss	%xmm2, 12(%rsp)
	cvtss2sd	%xmm0, %xmm0
	call	sincos@PLT
	movq	%r14, %rdi
	movq	%r15, %rsi
	movss	12(%rsp), %xmm2
	movss	c(%rip), %xmm0
	movsd	32(%rsp), %xmm3
	movsd	40(%rsp), %xmm1
	divss	%xmm2, %xmm0
	movsd	%xmm3, 24(%rsp)
	movsd	%xmm1, 16(%rsp)
	cvtss2sd	%xmm0, %xmm0
	call	sincos@PLT
	movss	12(%rsp), %xmm2
	movss	b(%rip), %xmm0
	movss	d(%rip), %xmm4
	divss	%xmm2, %xmm0
	divss	%xmm2, %xmm4
	subss	%xmm4, %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	cos@PLT
	movsd	24(%rsp), %xmm3
	mulsd	32(%rsp), %xmm3
	movapd	%xmm0, %xmm2
	movsd	16(%rsp), %xmm1
	mulsd	40(%rsp), %xmm1
	movapd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	call	acos@PLT
	mulsd	.LC2(%rip), %xmm0
	movl	$1, %eax
	leaq	.LC3(%rip), %rdi
	call	printf@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	p
	.data
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.long	1113927393
	.globl	d
	.bss
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1065353216
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	-1717986918
	.long	1085860377
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.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:

float a,b,c,d,p=57.29578;main(){for(;~scanf("%f%f%f%f",&a,&b,&c,&d);)a+1&&printf("%.0f\n",6378.1*acos(sin(a/p)*sin(c/p)+cos(a/p)*cos(c/p)*cos(b/p-d/p)));}
35.997652258458864 139.77 51.15 359.82
1.37 103.92 41.78 272.25
51.15 359.82 -34.58 301.52
-1 -1 -1 -1
 35.68 139.77 51.15 359.82
1.37 103.92 41.78 272.25
51.15 359.82 -34.03920544232073 301.52
-1 -1 -1 -1
 35.997652258458864 139.77 51.15 359.82
1.37 103.92 41.78 272.25
51.15 359.82 -34.58 302.04903635880555
-1 -1 -1 -1
 35.68 139.77 51.15 359.82
1.37 103.92 42.40751195136165 272.25
51.15 359.82 -34.03920544232073 301.52
-1 -1 -1 -1
 35.68 139.77 51.15 360.2993625222263
1.37 103.92 42.40751195136165 272.25
51.15 359.82 -34.03920544232073 301.52
-1 -1 -1 -1
 35.68 139.77 51.15 359.82
1.37 103.92 41.78 272.25
51.99657446150969 359.82 -34.58 301.52
-1 -1 -1 -1
 35.997652258458864 139.77 51.15 359.82
1.37 103.92 41.78 272.25
51.15 359.82 -34.03891385785915 301.52
-1 -1 -1 -1
 35.68 139.77 51.15 359.82
1.5789515272885046 103.92 41.78 272.25
51.15 359.82 -34.03920544232073 301.52
-1 -1 -1 -1
 35.997652258458864 140.28396755648947 51.15 359.82
1.37 103.92 41.78 272.25
51.15 359.82 -34.58 302.04903635880555
-1 -1 -1 -1
 35.68 139.77 51.15 359.82
1.37 103.92 42.40751195136165 272.25
51.15 359.82 -34.03920544232073 302.3019500184568
-1 -1 -1 -1

9577
15092
11112
 9609
15092
11062
 9577
15092
11086
 9609
15025
11062
 9591
15025
11062
 9609
15092
11178
 9577
15092
11062
 9609
15069
11062
 9595
15092
11086
 9609
15025
11023

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
float a,b,c,d,p=57.29578;main(){for(;~scanf("%f%f%f%f",&a,&b,&c,&d);)a+1&&printf("%.0f\n",6378.1*acos(sin(a/p)*sin(c/p)+cos(a/p)*cos(c/p)*cos(b/p-d/p)));}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	p
	.data
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.long	1113927393
	.section	.rodata
.LC3:
	.string	"%.0f\n"
.LC4:
	.string	"%f%f%f%f"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L2
.L5:
	movss	a(%rip), %xmm1
	movss	.LC0(%rip), %xmm0
	addss	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jp	.L7
	pxor	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	je	.L2
.L7:
	movss	a(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm5, %xmm5
	cvtss2sd	%xmm0, %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	%xmm0, -8(%rbp)
	movss	c(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm6, %xmm6
	cvtss2sd	%xmm0, %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movapd	%xmm0, %xmm3
	mulsd	-8(%rbp), %xmm3
	movsd	%xmm3, -8(%rbp)
	movss	a(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm2, %xmm2
	cvtss2sd	%xmm0, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movsd	%xmm0, -16(%rbp)
	movss	c(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm5, %xmm5
	cvtss2sd	%xmm0, %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movapd	%xmm0, %xmm4
	mulsd	-16(%rbp), %xmm4
	movsd	%xmm4, -16(%rbp)
	movss	b(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	movss	d(%rip), %xmm1
	movss	p(%rip), %xmm2
	divss	%xmm2, %xmm1
	subss	%xmm1, %xmm0
	pxor	%xmm7, %xmm7
	cvtss2sd	%xmm0, %xmm7
	movq	%xmm7, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	mulsd	-16(%rbp), %xmm0
	addsd	-8(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	acos@PLT
	movsd	.LC2(%rip), %xmm1
	mulsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	testl	%eax, %eax
.L2:
	leaq	d(%rip), %r8
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L5
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1065353216
	.align 8
.LC2:
	.long	-1717986918
	.long	1085860377
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	p
	.data
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.long	1113927393
	.section	.rodata
.LC3:
	.string	"%.0f\n"
.LC4:
	.string	"%f%f%f%f"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L2
.L5:
	movss	a(%rip), %xmm1
	movss	.LC0(%rip), %xmm0
	addss	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jp	.L7
	pxor	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	je	.L2
.L7:
	movss	a(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm5, %xmm5
	cvtss2sd	%xmm0, %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	%xmm0, -8(%rbp)
	movss	c(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm6, %xmm6
	cvtss2sd	%xmm0, %xmm6
	movq	%xmm6, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movapd	%xmm0, %xmm3
	mulsd	-8(%rbp), %xmm3
	movsd	%xmm3, -8(%rbp)
	movss	a(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm2, %xmm2
	cvtss2sd	%xmm0, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movsd	%xmm0, -16(%rbp)
	movss	c(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	pxor	%xmm5, %xmm5
	cvtss2sd	%xmm0, %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movapd	%xmm0, %xmm4
	mulsd	-16(%rbp), %xmm4
	movsd	%xmm4, -16(%rbp)
	movss	b(%rip), %xmm0
	movss	p(%rip), %xmm1
	divss	%xmm1, %xmm0
	movss	d(%rip), %xmm1
	movss	p(%rip), %xmm2
	divss	%xmm2, %xmm1
	subss	%xmm1, %xmm0
	pxor	%xmm7, %xmm7
	cvtss2sd	%xmm0, %xmm7
	movq	%xmm7, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	mulsd	-16(%rbp), %xmm0
	addsd	-8(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	acos@PLT
	movsd	.LC2(%rip), %xmm1
	mulsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	testl	%eax, %eax
.L2:
	leaq	d(%rip), %r8
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L5
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1065353216
	.align 8
.LC2:
	.long	-1717986918
	.long	1085860377
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.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:
