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

```c
o[256],z[256];main(N,S,A,C,s,a,c,r,i){for(;scanf("%d",&N),N;printf("%d %d %d\n",S,A,C)){
	double H=9,h,n=N;
	for(i=0;i<N;i++)scanf("%d",z+i);
	for(s=0;s<16;s++)for(a=0;a<16;a++)for(c=0;c<16;c++){
		for(r=s,i=0;i<N;)o[z[i++]+(r=(a*r+c)&255)&255]++;
		for(h=i=0;i<256;i++)if(o[i])h-=o[i]/n*log(o[i]/n),o[i]=0;
		if(h+1e-9<H)H=h,S=s,A=a,C=c;
	}
}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	o
	.bss
	.align 32
	.type	o, @object
	.size	o, 1024
o:
	.zero	1024
	.globl	z
	.align 32
	.type	z, @object
	.size	z, 1024
z:
	.zero	1024
	.section	.rodata
.LC1:
	.string	"%d"
.LC4:
	.string	"%d %d %d\n"
	.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	$64, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	%ecx, -48(%rbp)
	movl	%r8d, -52(%rbp)
	movl	%r9d, -56(%rbp)
	jmp	.L2
.L18:
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-36(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	$0, 32(%rbp)
	jmp	.L3
.L4:
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	z(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, 32(%rbp)
.L3:
	movl	-36(%rbp), %eax
	cmpl	%eax, 32(%rbp)
	jl	.L4
	movl	$0, -52(%rbp)
	jmp	.L5
.L17:
	movl	$0, -56(%rbp)
	jmp	.L6
.L16:
	movl	$0, 16(%rbp)
	jmp	.L7
.L15:
	movl	-52(%rbp), %eax
	movl	%eax, 24(%rbp)
	movl	$0, 32(%rbp)
	jmp	.L8
.L9:
	movl	32(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, 32(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	z(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-56(%rbp), %eax
	imull	24(%rbp), %eax
	movl	%eax, %ecx
	movl	16(%rbp), %eax
	addl	%ecx, %eax
	andl	$255, %eax
	movl	%eax, 24(%rbp)
	movl	24(%rbp), %eax
	addl	%edx, %eax
	movzbl	%al, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	o(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L8:
	movl	-36(%rbp), %eax
	cmpl	%eax, 32(%rbp)
	jl	.L9
	movl	$0, 32(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -16(%rbp)
	jmp	.L10
.L12:
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L11
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	divsd	-8(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movapd	%xmm0, %xmm2
	divsd	-8(%rbp), %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	log@PLT
	movsd	-64(%rbp), %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-16(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	$0, (%rdx,%rax)
.L11:
	addl	$1, 32(%rbp)
.L10:
	cmpl	$255, 32(%rbp)
	jle	.L12
	movsd	-16(%rbp), %xmm1
	movsd	.LC3(%rip), %xmm0
	addsd	%xmm0, %xmm1
	movsd	-24(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L13
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	16(%rbp), %eax
	movl	%eax, -48(%rbp)
.L13:
	addl	$1, 16(%rbp)
.L7:
	cmpl	$15, 16(%rbp)
	jle	.L15
	addl	$1, -56(%rbp)
.L6:
	cmpl	$15, -56(%rbp)
	jle	.L16
	addl	$1, -52(%rbp)
.L5:
	cmpl	$15, -52(%rbp)
	jle	.L17
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1075970048
	.align 8
.LC3:
	.long	-400107883
	.long	1041313291
	.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
.LC2:
	.string	"%d"
.LC4:
	.string	"%d %d %d\n"
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	o(%rip), %rbx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	leaq	60(%rsp), %rax
	movl	%edi, 60(%rsp)
	movl	%esi, 40(%rsp)
	movl	%edx, 44(%rsp)
	movl	%ecx, 56(%rsp)
	movq	%rax, 48(%rsp)
.L2:
	movq	48(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	60(%rsp), %eax
	movl	%eax, 36(%rsp)
	testl	%eax, %eax
	je	.L31
	pxor	%xmm5, %xmm5
	cvtsi2sdl	36(%rsp), %xmm5
	movsd	%xmm5, 16(%rsp)
	jle	.L3
	leaq	z(%rip), %r12
	xorl	%ebp, %ebp
.L4:
	movq	%r12, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	scanf@PLT
	movl	60(%rsp), %eax
	addq	$4, %r12
	movl	%eax, 36(%rsp)
	cmpl	%ebp, %eax
	jg	.L4
.L3:
	movl	36(%rsp), %eax
	leaq	4+z(%rip), %rdi
	movl	$0, 32(%rsp)
	leaq	1024+o(%rip), %r15
	subl	$1, %eax
	leaq	(%rdi,%rax,4), %r13
	movq	.LC1(%rip), %rax
	movq	%rax, 24(%rsp)
.L5:
	xorl	%r12d, %r12d
.L16:
	xorl	%ebp, %ebp
.L14:
	movl	36(%rsp), %edx
	movl	32(%rsp), %eax
	leaq	z(%rip), %rcx
	testl	%edx, %edx
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	imull	%r12d, %eax
	movl	(%rcx), %edx
	addq	$4, %rcx
	addl	%ebp, %eax
	movzbl	%al, %eax
	addl	%eax, %edx
	movzbl	%dl, %edx
	addl	$1, (%rbx,%rdx,4)
	cmpq	%r13, %rcx
	jne	.L6
.L12:
	leaq	o(%rip), %r14
	pxor	%xmm2, %xmm2
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$4, %r14
	cmpq	%r14, %r15
	je	.L32
.L8:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	.L7
	pxor	%xmm1, %xmm1
	movsd	%xmm2, 8(%rsp)
	addq	$4, %r14
	cvtsi2sdl	%eax, %xmm1
	divsd	16(%rsp), %xmm1
	movapd	%xmm1, %xmm0
	movsd	%xmm1, (%rsp)
	call	log@PLT
	movsd	(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	movl	$0, -4(%r14)
	mulsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm2
	cmpq	%r14, %r15
	jne	.L8
.L32:
	movsd	.LC3(%rip), %xmm0
	movsd	24(%rsp), %xmm4
	addsd	%xmm2, %xmm0
	comisd	%xmm0, %xmm4
	jbe	.L9
	movl	32(%rsp), %eax
	movl	%ebp, 56(%rsp)
	movl	%r12d, 44(%rsp)
	movl	%eax, 40(%rsp)
	movsd	%xmm2, 24(%rsp)
.L9:
	addl	$1, %ebp
	cmpl	$16, %ebp
	jne	.L14
	addl	$1, %r12d
	cmpl	$16, %r12d
	jne	.L16
	addl	$1, 32(%rsp)
	movl	32(%rsp), %eax
	cmpl	$16, %eax
	jne	.L5
	movl	56(%rsp), %ecx
	movl	44(%rsp), %edx
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	movl	40(%rsp), %esi
	call	printf@PLT
	jmp	.L2
.L31:
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	z
	.bss
	.align 32
	.type	z, @object
	.size	z, 1024
z:
	.zero	1024
	.globl	o
	.align 32
	.type	o, @object
	.size	o, 1024
o:
	.zero	1024
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1075970048
	.align 8
.LC3:
	.long	-400107883
	.long	1041313291
	.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
.LC2:
	.string	"%d"
.LC4:
	.string	"%d %d %d\n"
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	o(%rip), %rbx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	leaq	60(%rsp), %rax
	movl	%edi, 60(%rsp)
	movl	%esi, 40(%rsp)
	movl	%edx, 44(%rsp)
	movl	%ecx, 56(%rsp)
	movq	%rax, 48(%rsp)
.L2:
	movq	48(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	60(%rsp), %eax
	movl	%eax, 36(%rsp)
	testl	%eax, %eax
	je	.L31
	pxor	%xmm5, %xmm5
	cvtsi2sdl	36(%rsp), %xmm5
	movsd	%xmm5, 16(%rsp)
	jle	.L3
	leaq	z(%rip), %r12
	xorl	%ebp, %ebp
.L4:
	movq	%r12, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	scanf@PLT
	movl	60(%rsp), %eax
	addq	$4, %r12
	movl	%eax, 36(%rsp)
	cmpl	%ebp, %eax
	jg	.L4
.L3:
	movl	36(%rsp), %eax
	leaq	4+z(%rip), %rdi
	movl	$0, 32(%rsp)
	leaq	1024+o(%rip), %r15
	subl	$1, %eax
	leaq	(%rdi,%rax,4), %r13
	movq	.LC1(%rip), %rax
	movq	%rax, 24(%rsp)
.L5:
	xorl	%r12d, %r12d
.L16:
	xorl	%ebp, %ebp
.L14:
	movl	36(%rsp), %edx
	movl	32(%rsp), %eax
	leaq	z(%rip), %rcx
	testl	%edx, %edx
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	imull	%r12d, %eax
	movl	(%rcx), %edx
	addq	$4, %rcx
	addl	%ebp, %eax
	movzbl	%al, %eax
	addl	%eax, %edx
	movzbl	%dl, %edx
	addl	$1, (%rbx,%rdx,4)
	cmpq	%r13, %rcx
	jne	.L6
.L12:
	leaq	o(%rip), %r14
	pxor	%xmm2, %xmm2
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$4, %r14
	cmpq	%r14, %r15
	je	.L32
.L8:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	.L7
	pxor	%xmm1, %xmm1
	movsd	%xmm2, 8(%rsp)
	addq	$4, %r14
	cvtsi2sdl	%eax, %xmm1
	divsd	16(%rsp), %xmm1
	movapd	%xmm1, %xmm0
	movsd	%xmm1, (%rsp)
	call	log@PLT
	movsd	(%rsp), %xmm1
	movsd	8(%rsp), %xmm2
	movl	$0, -4(%r14)
	mulsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm2
	cmpq	%r14, %r15
	jne	.L8
.L32:
	movsd	.LC3(%rip), %xmm0
	movsd	24(%rsp), %xmm4
	addsd	%xmm2, %xmm0
	comisd	%xmm0, %xmm4
	jbe	.L9
	movl	32(%rsp), %eax
	movl	%ebp, 56(%rsp)
	movl	%r12d, 44(%rsp)
	movl	%eax, 40(%rsp)
	movsd	%xmm2, 24(%rsp)
.L9:
	addl	$1, %ebp
	cmpl	$16, %ebp
	jne	.L14
	addl	$1, %r12d
	cmpl	$16, %r12d
	jne	.L16
	addl	$1, 32(%rsp)
	movl	32(%rsp), %eax
	cmpl	$16, %eax
	jne	.L5
	movl	56(%rsp), %ecx
	movl	44(%rsp), %edx
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	movl	40(%rsp), %esi
	call	printf@PLT
	jmp	.L2
.L31:
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	z
	.bss
	.align 32
	.type	z, @object
	.size	z, 1024
z:
	.zero	1024
	.globl	o
	.align 32
	.type	o, @object
	.size	o, 1024
o:
	.zero	1024
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1075970048
	.align 8
.LC3:
	.long	-400107883
	.long	1041313291
	.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:

o[256],z[256];main(N,S,A,C,s,a,c,r,i){for(;scanf("%d",&N),N;printf("%d %d %d\n",S,A,C)){
	double H=9,h,n=N;
	for(i=0;i<N;i++)scanf("%d",z+i);
	for(s=0;s<16;s++)for(a=0;a<16;a++)for(c=0;c<16;c++){
		for(r=s,i=0;i<N;)o[z[i++]+(r=(a*r+c)&255)&255]++;
		for(h=i=0;i<256;i++)if(o[i])h-=o[i]/n*log(o[i]/n),o[i]=0;
		if(h+1e-9<H)H=h,S=s,A=a,C=c;
	}
}exit(0);}
5
5 4 3 2 1
5
7 7 7 7 7
10
186 8 42 24 154 40 10 56 122 141
0
 5
5 4 3 2 1
5
7 12 2 0 7
10
372 8 42 18 154 40 10 56 122 141
0
 5
5 4 3 4 1
5
7 11 7 7 14
0
186 8 42 24 154 21 10 56 122 72
0
 5
5 4 3 4 1
5
13 11 1 7 14
0
186 8 64 24 241 21 13 22 122 72
0
 5
5 4 5 4 2
5
13 11 1 7 8
0
186 4 64 24 178 15 13 44 122 72
0
 5
5 4 3 4 1
5
13 8 1 7 19
0
186 8 64 24 241 21 13 22 122 72
0
 5
5 4 3 3 1
5
7 11 1 6 14
0
186 8 64 24 154 21 13 22 122 72
0
 5
10 4 3 2 1
5
3 11 7 0 7
10
372 8 42 18 154 40 10 56 122 141
0
 5
5 3 3 4 1
5
7 11 7 4 14
0
186 8 64 24 154 21 10 22 122 96
0
 5
5 4 2 4 2
5
13 12 1 7 19
0
186 8 64 24 178 17 13 22 122 72
0

0 1 1
0 0 0
8 7 14
 0 1 1
6 11 13
8 7 14
 0 1 1
0 0 0
 0 1 1
0 1 2
 0 0 0
0 1 2
 0 1 1
0 5 1
 0 1 1
0 1 3
 0 1 1
3 8 10
8 7 14
 0 1 1
7 15 11
 0 0 0
15 11 13

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

```c
o[256],z[256];main(N,S,A,C,s,a,c,r,i){for(;scanf("%d",&N),N;printf("%d %d %d\n",S,A,C)){
	double H=9,h,n=N;
	for(i=0;i<N;i++)scanf("%d",z+i);
	for(s=0;s<16;s++)for(a=0;a<16;a++)for(c=0;c<16;c++){
		for(r=s,i=0;i<N;)o[z[i++]+(r=(a*r+c)&255)&255]++;
		for(h=i=0;i<256;i++)if(o[i])h-=o[i]/n*log(o[i]/n),o[i]=0;
		if(h+1e-9<H)H=h,S=s,A=a,C=c;
	}
}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	o
	.bss
	.align 32
	.type	o, @object
	.size	o, 1024
o:
	.zero	1024
	.globl	z
	.align 32
	.type	z, @object
	.size	z, 1024
z:
	.zero	1024
	.section	.rodata
.LC1:
	.string	"%d"
.LC4:
	.string	"%d %d %d\n"
	.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	$64, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	%ecx, -48(%rbp)
	movl	%r8d, -52(%rbp)
	movl	%r9d, -56(%rbp)
	jmp	.L2
.L18:
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-36(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	$0, 32(%rbp)
	jmp	.L3
.L4:
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	z(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, 32(%rbp)
.L3:
	movl	-36(%rbp), %eax
	cmpl	%eax, 32(%rbp)
	jl	.L4
	movl	$0, -52(%rbp)
	jmp	.L5
.L17:
	movl	$0, -56(%rbp)
	jmp	.L6
.L16:
	movl	$0, 16(%rbp)
	jmp	.L7
.L15:
	movl	-52(%rbp), %eax
	movl	%eax, 24(%rbp)
	movl	$0, 32(%rbp)
	jmp	.L8
.L9:
	movl	32(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, 32(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	z(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-56(%rbp), %eax
	imull	24(%rbp), %eax
	movl	%eax, %ecx
	movl	16(%rbp), %eax
	addl	%ecx, %eax
	andl	$255, %eax
	movl	%eax, 24(%rbp)
	movl	24(%rbp), %eax
	addl	%edx, %eax
	movzbl	%al, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	o(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L8:
	movl	-36(%rbp), %eax
	cmpl	%eax, 32(%rbp)
	jl	.L9
	movl	$0, 32(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -16(%rbp)
	jmp	.L10
.L12:
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L11
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	divsd	-8(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movapd	%xmm0, %xmm2
	divsd	-8(%rbp), %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	log@PLT
	movsd	-64(%rbp), %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-16(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	$0, (%rdx,%rax)
.L11:
	addl	$1, 32(%rbp)
.L10:
	cmpl	$255, 32(%rbp)
	jle	.L12
	movsd	-16(%rbp), %xmm1
	movsd	.LC3(%rip), %xmm0
	addsd	%xmm0, %xmm1
	movsd	-24(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L13
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	16(%rbp), %eax
	movl	%eax, -48(%rbp)
.L13:
	addl	$1, 16(%rbp)
.L7:
	cmpl	$15, 16(%rbp)
	jle	.L15
	addl	$1, -56(%rbp)
.L6:
	cmpl	$15, -56(%rbp)
	jle	.L16
	addl	$1, -52(%rbp)
.L5:
	cmpl	$15, -52(%rbp)
	jle	.L17
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1075970048
	.align 8
.LC3:
	.long	-400107883
	.long	1041313291
	.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	o
	.bss
	.align 32
	.type	o, @object
	.size	o, 1024
o:
	.zero	1024
	.globl	z
	.align 32
	.type	z, @object
	.size	z, 1024
z:
	.zero	1024
	.section	.rodata
.LC1:
	.string	"%d"
.LC4:
	.string	"%d %d %d\n"
	.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	$64, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	%ecx, -48(%rbp)
	movl	%r8d, -52(%rbp)
	movl	%r9d, -56(%rbp)
	jmp	.L2
.L18:
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-36(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	$0, 32(%rbp)
	jmp	.L3
.L4:
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	z(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, 32(%rbp)
.L3:
	movl	-36(%rbp), %eax
	cmpl	%eax, 32(%rbp)
	jl	.L4
	movl	$0, -52(%rbp)
	jmp	.L5
.L17:
	movl	$0, -56(%rbp)
	jmp	.L6
.L16:
	movl	$0, 16(%rbp)
	jmp	.L7
.L15:
	movl	-52(%rbp), %eax
	movl	%eax, 24(%rbp)
	movl	$0, 32(%rbp)
	jmp	.L8
.L9:
	movl	32(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, 32(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	z(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-56(%rbp), %eax
	imull	24(%rbp), %eax
	movl	%eax, %ecx
	movl	16(%rbp), %eax
	addl	%ecx, %eax
	andl	$255, %eax
	movl	%eax, 24(%rbp)
	movl	24(%rbp), %eax
	addl	%edx, %eax
	movzbl	%al, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	o(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L8:
	movl	-36(%rbp), %eax
	cmpl	%eax, 32(%rbp)
	jl	.L9
	movl	$0, 32(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -16(%rbp)
	jmp	.L10
.L12:
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L11
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	divsd	-8(%rbp), %xmm0
	movsd	%xmm0, -64(%rbp)
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movapd	%xmm0, %xmm2
	divsd	-8(%rbp), %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	log@PLT
	movsd	-64(%rbp), %xmm1
	mulsd	%xmm0, %xmm1
	movsd	-16(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	o(%rip), %rax
	movl	$0, (%rdx,%rax)
.L11:
	addl	$1, 32(%rbp)
.L10:
	cmpl	$255, 32(%rbp)
	jle	.L12
	movsd	-16(%rbp), %xmm1
	movsd	.LC3(%rip), %xmm0
	addsd	%xmm0, %xmm1
	movsd	-24(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L13
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	16(%rbp), %eax
	movl	%eax, -48(%rbp)
.L13:
	addl	$1, 16(%rbp)
.L7:
	cmpl	$15, 16(%rbp)
	jle	.L15
	addl	$1, -56(%rbp)
.L6:
	cmpl	$15, -56(%rbp)
	jle	.L16
	addl	$1, -52(%rbp)
.L5:
	cmpl	$15, -52(%rbp)
	jle	.L17
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1075970048
	.align 8
.LC3:
	.long	-400107883
	.long	1041313291
	.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:
