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

```c
r['~~'];n,i,s,c;main(j){for(;scanf("%d%d",&n,&s)*n;printf("%d\n",c))for(c=i=0;i<n;)for(scanf("%d",++i+r),j=i;--j;c+=r[i]+r[j]>s);}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.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
	leaq	r(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	s(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	n(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	n(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, i(%rip)
	movl	$0, c(%rip)
	testl	%edx, %edx
	jle	.L10
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%edx, i(%rip)
	movslq	%edx, %rdx
	leaq	(%r14,%rdx,4), %rsi
	call	scanf@PLT
	movl	i(%rip), %edx
	movl	%edx, %esi
	subl	$1, %esi
	je	.L4
	movslq	%edx, %rax
	leal	-2(%rdx), %ecx
	movl	s(%rip), %r10d
	movl	%esi, %r11d
	movl	(%r14,%rax,4), %r9d
	movl	c(%rip), %r8d
	cmpl	$2, %ecx
	jbe	.L5
	leaq	-16(%r14,%rax,4), %rcx
	movd	%r9d, %xmm4
	pxor	%xmm1, %xmm1
	movl	%esi, %edi
	shrl	$2, %edi
	leaq	-16(%rcx), %rax
	movd	%r10d, %xmm5
	leal	-1(%rdi), %r15d
	movq	%rax, %rdi
	pshufd	$0, %xmm4, %xmm3
	salq	$4, %r15
	pshufd	$0, %xmm5, %xmm2
	subq	%r15, %rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	subq	$16, %rax
.L6:
	movdqu	(%rcx), %xmm0
	movq	%rax, %rcx
	pshufd	$27, %xmm0, %xmm0
	paddd	%xmm3, %xmm0
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rdi, %rax
	jne	.L26
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r8d
	movl	%esi, %eax
	andl	$-4, %eax
	subl	%eax, %esi
	cmpl	%eax, %r11d
	je	.L7
.L5:
	movslq	%esi, %rax
	movl	(%r14,%rax,4), %ecx
	addl	%r9d, %ecx
	cmpl	%ecx, %r10d
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	movl	%esi, %eax
	subl	$1, %eax
	je	.L7
	cltq
	movl	(%r14,%rax,4), %edi
	addl	%r9d, %edi
	cmpl	%edi, %r10d
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	subl	$2, %esi
	je	.L7
	movslq	%esi, %rsi
	xorl	%eax, %eax
	addl	(%r14,%rsi,4), %r9d
	cmpl	%r9d, %r10d
	setl	%al
	addl	%eax, %r8d
.L7:
	movl	%r8d, c(%rip)
.L4:
	cmpl	%edx, n(%rip)
	jg	.L8
	movl	c(%rip), %esi
.L3:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L25:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	xorl	%esi, %esi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	s
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	r
	.align 32
	.type	r, @object
	.size	r, 129528
r:
	.zero	129528
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.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
	leaq	r(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	s(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	n(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	n(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, i(%rip)
	movl	$0, c(%rip)
	testl	%edx, %edx
	jle	.L10
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%edx, i(%rip)
	movslq	%edx, %rdx
	leaq	(%r14,%rdx,4), %rsi
	call	scanf@PLT
	movl	i(%rip), %edx
	movl	%edx, %esi
	subl	$1, %esi
	je	.L4
	movslq	%edx, %rax
	leal	-2(%rdx), %ecx
	movl	s(%rip), %r10d
	movl	%esi, %r11d
	movl	(%r14,%rax,4), %r9d
	movl	c(%rip), %r8d
	cmpl	$2, %ecx
	jbe	.L5
	leaq	-16(%r14,%rax,4), %rcx
	movd	%r9d, %xmm4
	pxor	%xmm1, %xmm1
	movl	%esi, %edi
	shrl	$2, %edi
	leaq	-16(%rcx), %rax
	movd	%r10d, %xmm5
	leal	-1(%rdi), %r15d
	movq	%rax, %rdi
	pshufd	$0, %xmm4, %xmm3
	salq	$4, %r15
	pshufd	$0, %xmm5, %xmm2
	subq	%r15, %rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	subq	$16, %rax
.L6:
	movdqu	(%rcx), %xmm0
	movq	%rax, %rcx
	pshufd	$27, %xmm0, %xmm0
	paddd	%xmm3, %xmm0
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rdi, %rax
	jne	.L26
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r8d
	movl	%esi, %eax
	andl	$-4, %eax
	subl	%eax, %esi
	cmpl	%eax, %r11d
	je	.L7
.L5:
	movslq	%esi, %rax
	movl	(%r14,%rax,4), %ecx
	addl	%r9d, %ecx
	cmpl	%ecx, %r10d
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	movl	%esi, %eax
	subl	$1, %eax
	je	.L7
	cltq
	movl	(%r14,%rax,4), %edi
	addl	%r9d, %edi
	cmpl	%edi, %r10d
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	subl	$2, %esi
	je	.L7
	movslq	%esi, %rsi
	xorl	%eax, %eax
	addl	(%r14,%rsi,4), %r9d
	cmpl	%r9d, %r10d
	setl	%al
	addl	%eax, %r8d
.L7:
	movl	%r8d, c(%rip)
.L4:
	cmpl	%edx, n(%rip)
	jg	.L8
	movl	c(%rip), %esi
.L3:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L25:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	xorl	%esi, %esi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	s
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	r
	.align 32
	.type	r, @object
	.size	r, 129528
r:
	.zero	129528
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.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
	leaq	r(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	s(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	n(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	n(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, i(%rip)
	movl	$0, c(%rip)
	testl	%edx, %edx
	jle	.L10
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%edx, i(%rip)
	movslq	%edx, %rdx
	leaq	(%r14,%rdx,4), %rsi
	call	scanf@PLT
	movl	i(%rip), %edx
	movl	%edx, %esi
	subl	$1, %esi
	je	.L4
	movslq	%edx, %rax
	leal	-2(%rdx), %ecx
	movl	s(%rip), %r10d
	movl	%esi, %r11d
	movl	(%r14,%rax,4), %r9d
	movl	c(%rip), %r8d
	cmpl	$2, %ecx
	jbe	.L5
	leaq	-16(%r14,%rax,4), %rcx
	movd	%r9d, %xmm4
	pxor	%xmm1, %xmm1
	movl	%esi, %edi
	shrl	$2, %edi
	leaq	-16(%rcx), %rax
	movd	%r10d, %xmm5
	leal	-1(%rdi), %r15d
	movq	%rax, %rdi
	pshufd	$0, %xmm4, %xmm3
	salq	$4, %r15
	pshufd	$0, %xmm5, %xmm2
	subq	%r15, %rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	subq	$16, %rax
.L6:
	movdqu	(%rcx), %xmm0
	movq	%rax, %rcx
	pshufd	$27, %xmm0, %xmm0
	paddd	%xmm3, %xmm0
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rdi, %rax
	jne	.L26
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r8d
	movl	%esi, %eax
	andl	$-4, %eax
	subl	%eax, %esi
	cmpl	%eax, %r11d
	je	.L7
.L5:
	movslq	%esi, %rax
	movl	(%r14,%rax,4), %ecx
	addl	%r9d, %ecx
	cmpl	%ecx, %r10d
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	movl	%esi, %eax
	subl	$1, %eax
	je	.L7
	cltq
	movl	(%r14,%rax,4), %edi
	addl	%r9d, %edi
	cmpl	%edi, %r10d
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	subl	$2, %esi
	je	.L7
	movslq	%esi, %rsi
	xorl	%eax, %eax
	addl	(%r14,%rsi,4), %r9d
	cmpl	%r9d, %r10d
	setl	%al
	addl	%eax, %r8d
.L7:
	movl	%r8d, c(%rip)
.L4:
	cmpl	%edx, n(%rip)
	jg	.L8
	movl	c(%rip), %esi
.L3:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L25:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	xorl	%esi, %esi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	s
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	r
	.align 32
	.type	r, @object
	.size	r, 129528
r:
	.zero	129528
	.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:
```
```c
r['~~'];n,i,s,c;main(j){for(;scanf("%d%d",&n,&s)*n;printf("%d\n",c))for(c=i=0;i<n;)for(scanf("%d",++i+r),j=i;--j;c+=r[i]+r[j]>s);}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
r['~~'];n,i,s,c;main(j){for(;scanf("%d%d",&n,&s)*n;printf("%d\n",c))for(c=i=0;i<n;)for(scanf("%d",++i+r),j=i;--j;c+=r[i]+r[j]>s);}```

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.
Optimized Assembly Code:

3 7
1
6
10
0 0
 3 11
0
3
10
0 0
 3 7
2
6
10
0 0
 3 7
1
0
5
0 0
 3 7
0
3
10
0 0
 3 7
1
3
16
0 0
 3 7
1
3
25
0 0
 3 11
0
3
18
0 0
 3 7
1
1
25
0 0
 3 11
0
3
20
0 0

2
 1
 3
 0
 2
 2
 2
 2
 2
 2

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

```c
r['~~'];n,i,s,c;main(j){for(;scanf("%d%d",&n,&s)*n;printf("%d\n",c))for(c=i=0;i<n;)for(scanf("%d",++i+r),j=i;--j;c+=r[i]+r[j]>s);}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.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
	leaq	r(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	s(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	n(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	n(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, i(%rip)
	movl	$0, c(%rip)
	testl	%edx, %edx
	jle	.L10
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%edx, i(%rip)
	movslq	%edx, %rdx
	leaq	(%r14,%rdx,4), %rsi
	call	scanf@PLT
	movl	i(%rip), %edx
	movl	%edx, %esi
	subl	$1, %esi
	je	.L4
	movslq	%edx, %rax
	leal	-2(%rdx), %ecx
	movl	s(%rip), %r10d
	movl	%esi, %r11d
	movl	(%r14,%rax,4), %r9d
	movl	c(%rip), %r8d
	cmpl	$2, %ecx
	jbe	.L5
	leaq	-16(%r14,%rax,4), %rcx
	movd	%r9d, %xmm4
	pxor	%xmm1, %xmm1
	movl	%esi, %edi
	shrl	$2, %edi
	leaq	-16(%rcx), %rax
	movd	%r10d, %xmm5
	leal	-1(%rdi), %r15d
	movq	%rax, %rdi
	pshufd	$0, %xmm4, %xmm3
	salq	$4, %r15
	pshufd	$0, %xmm5, %xmm2
	subq	%r15, %rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	subq	$16, %rax
.L6:
	movdqu	(%rcx), %xmm0
	movq	%rax, %rcx
	pshufd	$27, %xmm0, %xmm0
	paddd	%xmm3, %xmm0
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rdi, %rax
	jne	.L26
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r8d
	movl	%esi, %eax
	andl	$-4, %eax
	subl	%eax, %esi
	cmpl	%eax, %r11d
	je	.L7
.L5:
	movslq	%esi, %rax
	movl	(%r14,%rax,4), %ecx
	addl	%r9d, %ecx
	cmpl	%ecx, %r10d
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	movl	%esi, %eax
	subl	$1, %eax
	je	.L7
	cltq
	movl	(%r14,%rax,4), %edi
	addl	%r9d, %edi
	cmpl	%edi, %r10d
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	subl	$2, %esi
	je	.L7
	movslq	%esi, %rsi
	xorl	%eax, %eax
	addl	(%r14,%rsi,4), %r9d
	cmpl	%r9d, %r10d
	setl	%al
	addl	%eax, %r8d
.L7:
	movl	%r8d, c(%rip)
.L4:
	cmpl	%edx, n(%rip)
	jg	.L8
	movl	c(%rip), %esi
.L3:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L25:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	xorl	%esi, %esi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	s
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	r
	.align 32
	.type	r, @object
	.size	r, 129528
r:
	.zero	129528
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.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
	leaq	r(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	s(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	n(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	n(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, i(%rip)
	movl	$0, c(%rip)
	testl	%edx, %edx
	jle	.L10
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%edx, i(%rip)
	movslq	%edx, %rdx
	leaq	(%r14,%rdx,4), %rsi
	call	scanf@PLT
	movl	i(%rip), %edx
	movl	%edx, %esi
	subl	$1, %esi
	je	.L4
	movslq	%edx, %rax
	leal	-2(%rdx), %ecx
	movl	s(%rip), %r10d
	movl	%esi, %r11d
	movl	(%r14,%rax,4), %r9d
	movl	c(%rip), %r8d
	cmpl	$2, %ecx
	jbe	.L5
	leaq	-16(%r14,%rax,4), %rcx
	movd	%r9d, %xmm4
	pxor	%xmm1, %xmm1
	movl	%esi, %edi
	shrl	$2, %edi
	leaq	-16(%rcx), %rax
	movd	%r10d, %xmm5
	leal	-1(%rdi), %r15d
	movq	%rax, %rdi
	pshufd	$0, %xmm4, %xmm3
	salq	$4, %r15
	pshufd	$0, %xmm5, %xmm2
	subq	%r15, %rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	subq	$16, %rax
.L6:
	movdqu	(%rcx), %xmm0
	movq	%rax, %rcx
	pshufd	$27, %xmm0, %xmm0
	paddd	%xmm3, %xmm0
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rdi, %rax
	jne	.L26
	movdqa	%xmm1, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r8d
	movl	%esi, %eax
	andl	$-4, %eax
	subl	%eax, %esi
	cmpl	%eax, %r11d
	je	.L7
.L5:
	movslq	%esi, %rax
	movl	(%r14,%rax,4), %ecx
	addl	%r9d, %ecx
	cmpl	%ecx, %r10d
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	movl	%esi, %eax
	subl	$1, %eax
	je	.L7
	cltq
	movl	(%r14,%rax,4), %edi
	addl	%r9d, %edi
	cmpl	%edi, %r10d
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	subl	$2, %esi
	je	.L7
	movslq	%esi, %rsi
	xorl	%eax, %eax
	addl	(%r14,%rsi,4), %r9d
	cmpl	%r9d, %r10d
	setl	%al
	addl	%eax, %r8d
.L7:
	movl	%r8d, c(%rip)
.L4:
	cmpl	%edx, n(%rip)
	jg	.L8
	movl	c(%rip), %esi
.L3:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L25:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	xorl	%esi, %esi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	c
	.bss
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	s
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	r
	.align 32
	.type	r, @object
	.size	r, 129528
r:
	.zero	129528
	.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:
```