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

```c
#include <stdio.h>
#include <string.h>

int main(void)
{
    int n, m, p, score[1000];
    int max;
    int i, j;
    
    
    while (1){
        memset(score, 0, sizeof(score));
        scanf("%d%d", &n, &m);
        if (n == 0 && m == 0){
            break;
        }
        
        for (i = 0; i < m; i++){
            for (j = 0; j < n; j++){
                scanf("%d", &p);
                score[j] += p;
            }
        }
        max = 0;
        for (j = 0; j < n; j++){
            if (max < score[j]){
                max = score[j];
            }
        }
        printf("%d\n", max);
    }
    return (0);
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4056, %rsp
	.cfi_def_cfa_offset 4112
	movq	%fs:40, %rax
	movq	%rax, 4040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	32(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rbx
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movl	$500, %ecx
	movq	%r13, %rdi
	movq	8(%rsp), %rdx
	rep stosq
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	movl	24(%rsp), %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	je	.L2
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%eax, %eax
	jle	.L15
	movq	%r13, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	%eax, (%r15)
	addq	$4, %r15
	movl	20(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L5
	addl	$1, %r12d
	cmpl	%r12d, 24(%rsp)
	jg	.L3
.L4:
	testl	%eax, %eax
	jle	.L15
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L16
	movl	%eax, %ecx
	movq	%r13, %rdx
	pxor	%xmm0, %xmm0
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	48(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm0, %xmm1
	addq	$16, %rdx
	pcmpgtd	-16(%rdx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rdx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rcx, %rdx
	jne	.L9
	movdqa	%xmm0, %xmm2
	movl	%eax, %ecx
	psrldq	$8, %xmm2
	andl	$-4, %ecx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	testb	$3, %al
	je	.L7
.L8:
	movslq	%ecx, %rsi
	movl	32(%rsp,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L7
	movslq	%esi, %rsi
	movl	32(%rsp,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L7
	movslq	%ecx, %rcx
	movl	32(%rsp,%rcx,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L7:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%edx, %edx
	jmp	.L7
.L16:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	.L8
.L2:
	movq	4040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$4056, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4056, %rsp
	.cfi_def_cfa_offset 4112
	movq	%fs:40, %rax
	movq	%rax, 4040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	32(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rbx
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movl	$500, %ecx
	movq	%r13, %rdi
	movq	8(%rsp), %rdx
	rep stosq
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	movl	24(%rsp), %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	je	.L2
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%eax, %eax
	jle	.L15
	movq	%r13, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	%eax, (%r15)
	addq	$4, %r15
	movl	20(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L5
	addl	$1, %r12d
	cmpl	%r12d, 24(%rsp)
	jg	.L3
.L4:
	testl	%eax, %eax
	jle	.L15
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L16
	movl	%eax, %ecx
	movq	%r13, %rdx
	pxor	%xmm0, %xmm0
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	48(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm0, %xmm1
	addq	$16, %rdx
	pcmpgtd	-16(%rdx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rdx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rcx, %rdx
	jne	.L9
	movdqa	%xmm0, %xmm2
	movl	%eax, %ecx
	psrldq	$8, %xmm2
	andl	$-4, %ecx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	testb	$3, %al
	je	.L7
.L8:
	movslq	%ecx, %rsi
	movl	32(%rsp,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L7
	movslq	%esi, %rsi
	movl	32(%rsp,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L7
	movslq	%ecx, %rcx
	movl	32(%rsp,%rcx,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L7:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%edx, %edx
	jmp	.L7
.L16:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	.L8
.L2:
	movq	4040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$4056, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4056, %rsp
	.cfi_def_cfa_offset 4112
	movq	%fs:40, %rax
	movq	%rax, 4040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	32(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rbx
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movl	$500, %ecx
	movq	%r13, %rdi
	movq	8(%rsp), %rdx
	rep stosq
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	movl	24(%rsp), %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	je	.L2
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%eax, %eax
	jle	.L15
	movq	%r13, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	%eax, (%r15)
	addq	$4, %r15
	movl	20(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L5
	addl	$1, %r12d
	cmpl	%r12d, 24(%rsp)
	jg	.L3
.L4:
	testl	%eax, %eax
	jle	.L15
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L16
	movl	%eax, %ecx
	movq	%r13, %rdx
	pxor	%xmm0, %xmm0
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	48(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm0, %xmm1
	addq	$16, %rdx
	pcmpgtd	-16(%rdx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rdx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rcx, %rdx
	jne	.L9
	movdqa	%xmm0, %xmm2
	movl	%eax, %ecx
	psrldq	$8, %xmm2
	andl	$-4, %ecx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	testb	$3, %al
	je	.L7
.L8:
	movslq	%ecx, %rsi
	movl	32(%rsp,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L7
	movslq	%esi, %rsi
	movl	32(%rsp,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L7
	movslq	%ecx, %rcx
	movl	32(%rsp,%rcx,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L7:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%edx, %edx
	jmp	.L7
.L16:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	.L8
.L2:
	movq	4040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$4056, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.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
#include <stdio.h>
#include <string.h>

int main(void)
{
    int n, m, p, score[1000];
    int max;
    int i, j;
    
    
    while (1){
        memset(score, 0, sizeof(score));
        scanf("%d%d", &n, &m);
        if (n == 0 && m == 0){
            break;
        }
        
        for (i = 0; i < m; i++){
            for (j = 0; j < n; j++){
                scanf("%d", &p);
                score[j] += p;
            }
        }
        max = 0;
        for (j = 0; j < n; j++){
            if (max < score[j]){
                max = score[j];
            }
        }
        printf("%d\n", max);
    }
    return (0);
}

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

```c
#include <stdio.h>
#include <string.h>

int main(void)
{
    int n, m, p, score[1000];
    int max;
    int i, j;
    
    
    while (1){
        memset(score, 0, sizeof(score));
        scanf("%d%d", &n, &m);
        if (n == 0 && m == 0){
            break;
        }
        
        for (i = 0; i < m; i++){
            for (j = 0; j < n; j++){
                scanf("%d", &p);
                score[j] += p;
            }
        }
        max = 0;
        for (j = 0; j < n; j++){
            if (max < score[j]){
                max = score[j];
            }
        }
        printf("%d\n", max);
    }
    return (0);
}

```

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:

5 2
10 20 30 40 50
15 25 35 45 55
6 3
10 20 30 15 25 35
21 34 11 52 20 0
31 15 42 10 21 19
4 2
0 0 0 0
0 0 0 0
0 0
 5 2
10 20 30 40 50
15 25 35 85 55
6 3
10 20 30 15 25 35
21 34 11 52 20 0
31 15 42 10 21 10
4 2
0 0 0 0
0 0 0 0
0 0
 5 2
10 20 30 40 50
15 25 35 85 55
6 3
10 20 30 15 25 35
21 34 11 52 20 0
27 15 2 10 21 10
4 2
0 0 0 0
0 0 0 0
0 0
 5 2
10 20 30 40 50
15 25 35 85 55
6 3
10 20 30 15 25 35
21 34 11 28 20 0
27 15 2 10 21 10
4 2
0 0 0 0
0 0 0 0
0 0
 5 2
8 20 30 74 50
15 25 35 85 55
6 3
10 20 30 15 25 35
21 34 11 52 20 0
27 15 42 10 21 10
4 2
0 0 0 0
0 0 0 0
0 0
 5 2
10 22 30 40 50
15 25 35 45 55
6 3
10 20 16 13 25 35
21 34 11 52 20 18
31 15 42 10 21 19
4 2
0 0 0 0
0 0 0 0
0 0
 5 2
10 20 30 40 50
15 25 35 45 55
6 3
10 20 30 15 25 35
21 34 8 52 20 0
31 15 42 10 28 19
4 2
0 0 0 0
0 0 -1 0
0 0
 5 2
10 20 30 40 50
15 25 35 45 55
6 3
10 20 30 15 25 35
21 34 8 52 20 0
31 15 34 10 28 19
4 2
0 0 0 0
0 0 -1 0
0 0
 5 2
8 20 30 74 50
15 25 35 85 55
6 3
10 20 30 15 25 35
21 34 11 52 20 0
27 15 42 10 21 10
4 2
-1 0 0 0
0 1 0 0
0 0
 5 2
10 20 59 40 50
15 32 35 85 55
6 3
10 20 30 15 21 35
21 29 11 28 20 0
27 15 2 10 21 10
4 2
0 0 0 0
0 0 0 0
0 0

105
83
0
 125
83
0
 125
77
0
 125
69
0
 159
83
0
 105
75
0
 105
80
0
 105
77
0
 159
83
1
 125
64
0

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

```c
#include <stdio.h>
#include <string.h>

int main(void)
{
    int n, m, p, score[1000];
    int max;
    int i, j;
    
    
    while (1){
        memset(score, 0, sizeof(score));
        scanf("%d%d", &n, &m);
        if (n == 0 && m == 0){
            break;
        }
        
        for (i = 0; i < m; i++){
            for (j = 0; j < n; j++){
                scanf("%d", &p);
                score[j] += p;
            }
        }
        max = 0;
        for (j = 0; j < n; j++){
            if (max < score[j]){
                max = score[j];
            }
        }
        printf("%d\n", max);
    }
    return (0);
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4056, %rsp
	.cfi_def_cfa_offset 4112
	movq	%fs:40, %rax
	movq	%rax, 4040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	32(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rbx
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movl	$500, %ecx
	movq	%r13, %rdi
	movq	8(%rsp), %rdx
	rep stosq
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	movl	24(%rsp), %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	je	.L2
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%eax, %eax
	jle	.L15
	movq	%r13, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	%eax, (%r15)
	addq	$4, %r15
	movl	20(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L5
	addl	$1, %r12d
	cmpl	%r12d, 24(%rsp)
	jg	.L3
.L4:
	testl	%eax, %eax
	jle	.L15
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L16
	movl	%eax, %ecx
	movq	%r13, %rdx
	pxor	%xmm0, %xmm0
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	48(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm0, %xmm1
	addq	$16, %rdx
	pcmpgtd	-16(%rdx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rdx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rcx, %rdx
	jne	.L9
	movdqa	%xmm0, %xmm2
	movl	%eax, %ecx
	psrldq	$8, %xmm2
	andl	$-4, %ecx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	testb	$3, %al
	je	.L7
.L8:
	movslq	%ecx, %rsi
	movl	32(%rsp,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L7
	movslq	%esi, %rsi
	movl	32(%rsp,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L7
	movslq	%ecx, %rcx
	movl	32(%rsp,%rcx,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L7:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%edx, %edx
	jmp	.L7
.L16:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	.L8
.L2:
	movq	4040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$4056, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4056, %rsp
	.cfi_def_cfa_offset 4112
	movq	%fs:40, %rax
	movq	%rax, 4040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	32(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	leaq	28(%rsp), %rbx
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%eax, %eax
	movl	$500, %ecx
	movq	%r13, %rdi
	movq	8(%rsp), %rdx
	rep stosq
	movq	(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	movl	24(%rsp), %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	je	.L2
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	testl	%eax, %eax
	jle	.L15
	movq	%r13, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	%eax, (%r15)
	addq	$4, %r15
	movl	20(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L5
	addl	$1, %r12d
	cmpl	%r12d, 24(%rsp)
	jg	.L3
.L4:
	testl	%eax, %eax
	jle	.L15
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L16
	movl	%eax, %ecx
	movq	%r13, %rdx
	pxor	%xmm0, %xmm0
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	48(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm0, %xmm1
	addq	$16, %rdx
	pcmpgtd	-16(%rdx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rdx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rcx, %rdx
	jne	.L9
	movdqa	%xmm0, %xmm2
	movl	%eax, %ecx
	psrldq	$8, %xmm2
	andl	$-4, %ecx
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %edx
	testb	$3, %al
	je	.L7
.L8:
	movslq	%ecx, %rsi
	movl	32(%rsp,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L7
	movslq	%esi, %rsi
	movl	32(%rsp,%rsi,4), %esi
	cmpl	%esi, %edx
	cmovl	%esi, %edx
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L7
	movslq	%ecx, %rcx
	movl	32(%rsp,%rcx,4), %eax
	cmpl	%eax, %edx
	cmovl	%eax, %edx
.L7:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%edx, %edx
	jmp	.L7
.L16:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	.L8
.L2:
	movq	4040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$4056, %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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.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:
```