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

```c
c[9];j;M;m;main(q){
for(scanf("%d",&q);~scanf("%d",&q);q<8?c[q]=1:M++)q/=400;
for(;8-j;m+=c[j++])M+=c[j];
printf("%d %d",m?:1,M);}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	c(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	leaq	12(%rsp), %rbp
	movl	%edi, 12(%rsp)
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L30
	movslq	12(%rsp), %rax
	movq	%rax, %rdx
	imulq	$1374389535, %rax, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	sarq	$39, %rax
	subl	%ecx, %eax
	movl	%eax, 12(%rsp)
	cmpl	$3199, %edx
	jg	.L3
	cltq
	movl	$1, (%r12,%rax,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, M(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	movl	j(%rip), %eax
	movl	M(%rip), %r8d
	movl	m(%rip), %esi
	cmpl	$8, %eax
	je	.L6
	movl	$7, %edx
	movl	$8, %ecx
	leaq	c(%rip), %rdi
	subl	%eax, %edx
	subl	%eax, %ecx
	cmpl	$3, %edx
	jbe	.L7
	movslq	%eax, %rdx
	leaq	c(%rip), %rdi
	movl	%ecx, %r9d
	leaq	(%rdi,%rdx,4), %rdx
	shrl	$2, %r9d
	movdqu	(%rdx), %xmm0
	cmpl	$1, %r9d
	je	.L8
	movdqu	16(%rdx), %xmm1
	paddd	%xmm1, %xmm0
.L8:
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	addl	%edx, %esi
	addl	%edx, %r8d
	movl	%ecx, %edx
	andl	$-4, %edx
	addl	%edx, %eax
	cmpl	%edx, %ecx
	je	.L9
.L7:
	movslq	%eax, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	1(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$7, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	2(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$6, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	3(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$5, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %eax
	addl	%eax, %r8d
	addl	%eax, %esi
.L9:
	movl	%r8d, M(%rip)
	movl	$8, j(%rip)
	movl	%esi, m(%rip)
.L6:
	testl	%esi, %esi
	movl	$1, %eax
	movl	%r8d, %edx
	cmove	%eax, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	m
	.bss
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 36
c:
	.zero	36
	.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 %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	c(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	leaq	12(%rsp), %rbp
	movl	%edi, 12(%rsp)
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L30
	movslq	12(%rsp), %rax
	movq	%rax, %rdx
	imulq	$1374389535, %rax, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	sarq	$39, %rax
	subl	%ecx, %eax
	movl	%eax, 12(%rsp)
	cmpl	$3199, %edx
	jg	.L3
	cltq
	movl	$1, (%r12,%rax,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, M(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	movl	j(%rip), %eax
	movl	M(%rip), %r8d
	movl	m(%rip), %esi
	cmpl	$8, %eax
	je	.L6
	movl	$7, %edx
	movl	$8, %ecx
	leaq	c(%rip), %rdi
	subl	%eax, %edx
	subl	%eax, %ecx
	cmpl	$3, %edx
	jbe	.L7
	movslq	%eax, %rdx
	leaq	c(%rip), %rdi
	movl	%ecx, %r9d
	leaq	(%rdi,%rdx,4), %rdx
	shrl	$2, %r9d
	movdqu	(%rdx), %xmm0
	cmpl	$1, %r9d
	je	.L8
	movdqu	16(%rdx), %xmm1
	paddd	%xmm1, %xmm0
.L8:
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	addl	%edx, %esi
	addl	%edx, %r8d
	movl	%ecx, %edx
	andl	$-4, %edx
	addl	%edx, %eax
	cmpl	%edx, %ecx
	je	.L9
.L7:
	movslq	%eax, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	1(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$7, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	2(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$6, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	3(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$5, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %eax
	addl	%eax, %r8d
	addl	%eax, %esi
.L9:
	movl	%r8d, M(%rip)
	movl	$8, j(%rip)
	movl	%esi, m(%rip)
.L6:
	testl	%esi, %esi
	movl	$1, %eax
	movl	%r8d, %edx
	cmove	%eax, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	m
	.bss
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 36
c:
	.zero	36
	.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 %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	c(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	leaq	12(%rsp), %rbp
	movl	%edi, 12(%rsp)
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L30
	movslq	12(%rsp), %rax
	movq	%rax, %rdx
	imulq	$1374389535, %rax, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	sarq	$39, %rax
	subl	%ecx, %eax
	movl	%eax, 12(%rsp)
	cmpl	$3199, %edx
	jg	.L3
	cltq
	movl	$1, (%r12,%rax,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, M(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	movl	j(%rip), %eax
	movl	M(%rip), %r8d
	movl	m(%rip), %esi
	cmpl	$8, %eax
	je	.L6
	movl	$7, %edx
	movl	$8, %ecx
	leaq	c(%rip), %rdi
	subl	%eax, %edx
	subl	%eax, %ecx
	cmpl	$3, %edx
	jbe	.L7
	movslq	%eax, %rdx
	leaq	c(%rip), %rdi
	movl	%ecx, %r9d
	leaq	(%rdi,%rdx,4), %rdx
	shrl	$2, %r9d
	movdqu	(%rdx), %xmm0
	cmpl	$1, %r9d
	je	.L8
	movdqu	16(%rdx), %xmm1
	paddd	%xmm1, %xmm0
.L8:
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	addl	%edx, %esi
	addl	%edx, %r8d
	movl	%ecx, %edx
	andl	$-4, %edx
	addl	%edx, %eax
	cmpl	%edx, %ecx
	je	.L9
.L7:
	movslq	%eax, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	1(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$7, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	2(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$6, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	3(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$5, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %eax
	addl	%eax, %r8d
	addl	%eax, %esi
.L9:
	movl	%r8d, M(%rip)
	movl	$8, j(%rip)
	movl	%esi, m(%rip)
.L6:
	testl	%esi, %esi
	movl	$1, %eax
	movl	%r8d, %edx
	cmove	%eax, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	m
	.bss
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 36
c:
	.zero	36
	.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
c[9];j;M;m;main(q){
for(scanf("%d",&q);~scanf("%d",&q);q<8?c[q]=1:M++)q/=400;
for(;8-j;m+=c[j++])M+=c[j];
printf("%d %d",m?:1,M);}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
c[9];j;M;m;main(q){
for(scanf("%d",&q);~scanf("%d",&q);q<8?c[q]=1:M++)q/=400;
for(;8-j;m+=c[j++])M+=c[j];
printf("%d %d",m?:1,M);}```

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:

4
2100 2500 4217 2700
 20
800 810 820 830 840 850 860 870 880 890 900 1771 920 930 940 950 960 970 980 990
 5
1100 3348 2800 3200 3200
 20
800 810 820 830 840 850 860 870 880 890 900 1771 920 930 120 950 960 970 980 990
 5
1101 3348 2955 3200 2889
 5
1101 3348 2302 3200 2889
 4
2100 4691 248 409
 20
800 1586 820 830 840 850 860 433 1213 259 900 1303 920 1028 92 950 960 970 980 990
 20
800 1586 820 830 840 850 860 433 1213 259 900 1303 920 1028 92 2243 960 970 980 990
 20
800 2108 443 830 840 1093 116 614 398 92 399 1139 1229 646 92 2243 960 970 1914 990

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

```c
c[9];j;M;m;main(q){
for(scanf("%d",&q);~scanf("%d",&q);q<8?c[q]=1:M++)q/=400;
for(;8-j;m+=c[j++])M+=c[j];
printf("%d %d",m?:1,M);}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	c(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	leaq	12(%rsp), %rbp
	movl	%edi, 12(%rsp)
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L30
	movslq	12(%rsp), %rax
	movq	%rax, %rdx
	imulq	$1374389535, %rax, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	sarq	$39, %rax
	subl	%ecx, %eax
	movl	%eax, 12(%rsp)
	cmpl	$3199, %edx
	jg	.L3
	cltq
	movl	$1, (%r12,%rax,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, M(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	movl	j(%rip), %eax
	movl	M(%rip), %r8d
	movl	m(%rip), %esi
	cmpl	$8, %eax
	je	.L6
	movl	$7, %edx
	movl	$8, %ecx
	leaq	c(%rip), %rdi
	subl	%eax, %edx
	subl	%eax, %ecx
	cmpl	$3, %edx
	jbe	.L7
	movslq	%eax, %rdx
	leaq	c(%rip), %rdi
	movl	%ecx, %r9d
	leaq	(%rdi,%rdx,4), %rdx
	shrl	$2, %r9d
	movdqu	(%rdx), %xmm0
	cmpl	$1, %r9d
	je	.L8
	movdqu	16(%rdx), %xmm1
	paddd	%xmm1, %xmm0
.L8:
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	addl	%edx, %esi
	addl	%edx, %r8d
	movl	%ecx, %edx
	andl	$-4, %edx
	addl	%edx, %eax
	cmpl	%edx, %ecx
	je	.L9
.L7:
	movslq	%eax, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	1(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$7, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	2(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$6, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	3(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$5, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %eax
	addl	%eax, %r8d
	addl	%eax, %esi
.L9:
	movl	%r8d, M(%rip)
	movl	$8, j(%rip)
	movl	%esi, m(%rip)
.L6:
	testl	%esi, %esi
	movl	$1, %eax
	movl	%r8d, %edx
	cmove	%eax, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	m
	.bss
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 36
c:
	.zero	36
	.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 %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	c(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	leaq	12(%rsp), %rbp
	movl	%edi, 12(%rsp)
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L30
	movslq	12(%rsp), %rax
	movq	%rax, %rdx
	imulq	$1374389535, %rax, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	sarq	$39, %rax
	subl	%ecx, %eax
	movl	%eax, 12(%rsp)
	cmpl	$3199, %edx
	jg	.L3
	cltq
	movl	$1, (%r12,%rax,4)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, M(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	movl	j(%rip), %eax
	movl	M(%rip), %r8d
	movl	m(%rip), %esi
	cmpl	$8, %eax
	je	.L6
	movl	$7, %edx
	movl	$8, %ecx
	leaq	c(%rip), %rdi
	subl	%eax, %edx
	subl	%eax, %ecx
	cmpl	$3, %edx
	jbe	.L7
	movslq	%eax, %rdx
	leaq	c(%rip), %rdi
	movl	%ecx, %r9d
	leaq	(%rdi,%rdx,4), %rdx
	shrl	$2, %r9d
	movdqu	(%rdx), %xmm0
	cmpl	$1, %r9d
	je	.L8
	movdqu	16(%rdx), %xmm1
	paddd	%xmm1, %xmm0
.L8:
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	addl	%edx, %esi
	addl	%edx, %r8d
	movl	%ecx, %edx
	andl	$-4, %edx
	addl	%edx, %eax
	cmpl	%edx, %ecx
	je	.L9
.L7:
	movslq	%eax, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	1(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$7, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	2(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$6, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %ecx
	leal	3(%rax), %edx
	addl	%ecx, %r8d
	addl	%ecx, %esi
	cmpl	$5, %eax
	je	.L9
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %eax
	addl	%eax, %r8d
	addl	%eax, %esi
.L9:
	movl	%r8d, M(%rip)
	movl	$8, j(%rip)
	movl	%esi, m(%rip)
.L6:
	testl	%esi, %esi
	movl	$1, %eax
	movl	%r8d, %edx
	cmove	%eax, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	m
	.bss
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 36
c:
	.zero	36
	.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:
```