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

```c
#include <stdio.h>
#include <string.h>
int max(int a,int b){
    if(a>b) return a;
    else return b;
}
int main(void){
    int n,m,i,j,ans=0;
    char s[100][11],t[100][11];
    scanf("%d",&n);
    for(i=0;i<n;i++) scanf("%s",s[i]);
    scanf("%d",&m);
    for(i=0;i<m;i++) scanf("%s",t[i]);
    for(i=0;i<n;i++){
        int cnt=0;
        for(j=0;j<n;j++){
            if(strcmp(s[i],s[j])==0) cnt++;
        }
        for(j=0;j<m;j++){
            if(strcmp(s[i],t[j])==0) cnt--;
        }
        ans = max(ans,cnt);
    }
    printf("%d",ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -2232(%rbp)
	leaq	-2248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2240(%rbp)
	jmp	.L5
.L6:
	leaq	-2224(%rbp), %rcx
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2240(%rbp)
.L5:
	movl	-2248(%rbp), %eax
	cmpl	%eax, -2240(%rbp)
	jl	.L6
	leaq	-2244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2240(%rbp)
	jmp	.L7
.L8:
	leaq	-1120(%rbp), %rcx
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2240(%rbp)
.L7:
	movl	-2244(%rbp), %eax
	cmpl	%eax, -2240(%rbp)
	jl	.L8
	movl	$0, -2240(%rbp)
	jmp	.L9
.L16:
	movl	$0, -2228(%rbp)
	movl	$0, -2236(%rbp)
	jmp	.L10
.L12:
	leaq	-2224(%rbp), %rcx
	movl	-2236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-2224(%rbp), %rsi
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	addl	$1, -2228(%rbp)
.L11:
	addl	$1, -2236(%rbp)
.L10:
	movl	-2248(%rbp), %eax
	cmpl	%eax, -2236(%rbp)
	jl	.L12
	movl	$0, -2236(%rbp)
	jmp	.L13
.L15:
	leaq	-1120(%rbp), %rcx
	movl	-2236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-2224(%rbp), %rsi
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L14
	subl	$1, -2228(%rbp)
.L14:
	addl	$1, -2236(%rbp)
.L13:
	movl	-2244(%rbp), %eax
	cmpl	%eax, -2236(%rbp)
	jl	.L15
	movl	-2228(%rbp), %edx
	movl	-2232(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, -2232(%rbp)
	addl	$1, -2240(%rbp)
.L9:
	movl	-2248(%rbp), %eax
	cmpl	%eax, -2240(%rbp)
	jl	.L16
	movl	-2232(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB35:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$2280, %rsp
	.cfi_def_cfa_offset 2336
	movq	%fs:40, %rax
	movq	%rax, 2264(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	48(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$11, %rbp
	cmpl	%ebx, 40(%rsp)
	jg	.L5
.L4:
	leaq	44(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r14d
	testl	%r14d, %r14d
	jle	.L6
	leaq	1152(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r14d
	addq	$11, %rbp
	cmpl	%ebx, %r14d
	jg	.L7
.L6:
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L16
	subl	$1, %eax
	leaq	48(%rsp), %rbp
	movl	$0, 12(%rsp)
	leaq	(%rax,%rax,4), %rdx
	movq	%rbp, 16(%rsp)
	leaq	(%rax,%rdx,2), %rax
	leaq	59(%rsp,%rax), %r12
	leaq	1152(%rsp), %rax
	movq	%rax, 24(%rsp)
	leal	-1(%r14), %eax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %rax
	leaq	1163(%rsp,%rax), %r13
	.p2align 4,,10
	.p2align 3
.L14:
	movq	16(%rsp), %r15
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %ebx
	addq	$11, %r15
	cmpq	%r12, %r15
	jne	.L10
	testl	%r14d, %r14d
	jle	.L11
	movq	24(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	sbbl	$0, %ebx
	addq	$11, %r15
	cmpq	%r15, %r13
	jne	.L13
.L11:
	movl	12(%rsp), %eax
	cmpl	%ebx, %eax
	cmovge	%eax, %ebx
	addq	$11, %rbp
	movl	%ebx, 12(%rsp)
	cmpq	%r12, %rbp
	jne	.L14
	movl	%ebx, %edx
.L8:
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	2264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$2280, %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
.L16:
	.cfi_restore_state
	movl	$0, 12(%rsp)
	movl	12(%rsp), %edx
	jmp	.L8
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB35:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$2280, %rsp
	.cfi_def_cfa_offset 2336
	movq	%fs:40, %rax
	movq	%rax, 2264(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	48(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$11, %rbp
	cmpl	%ebx, 40(%rsp)
	jg	.L5
.L4:
	leaq	44(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r14d
	testl	%r14d, %r14d
	jle	.L6
	leaq	1152(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r14d
	addq	$11, %rbp
	cmpl	%ebx, %r14d
	jg	.L7
.L6:
	movl	40(%rsp), %eax
	testl	%eax, %eax
	jle	.L16
	subl	$1, %eax
	leaq	48(%rsp), %rbp
	movl	$0, 12(%rsp)
	leaq	(%rax,%rax,4), %rdx
	movq	%rbp, 16(%rsp)
	leaq	(%rax,%rdx,2), %rax
	leaq	59(%rsp,%rax), %r12
	leaq	1152(%rsp), %rax
	movq	%rax, 24(%rsp)
	leal	-1(%r14), %eax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rax,%rdx,2), %rax
	leaq	1163(%rsp,%rax), %r13
	.p2align 4,,10
	.p2align 3
.L14:
	movq	16(%rsp), %r15
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	adcl	$0, %ebx
	addq	$11, %r15
	cmpq	%r12, %r15
	jne	.L10
	testl	%r14d, %r14d
	jle	.L11
	movq	24(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	cmpl	$1, %eax
	sbbl	$0, %ebx
	addq	$11, %r15
	cmpq	%r15, %r13
	jne	.L13
.L11:
	movl	12(%rsp), %eax
	cmpl	%ebx, %eax
	cmovge	%eax, %ebx
	addq	$11, %rbp
	movl	%ebx, 12(%rsp)
	cmpq	%r12, %rbp
	jne	.L14
	movl	%ebx, %edx
.L8:
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	2264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$2280, %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
.L16:
	.cfi_restore_state
	movl	$0, 12(%rsp)
	movl	12(%rsp), %edx
	jmp	.L8
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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:

#include <stdio.h>
#include <string.h>
int max(int a,int b){
    if(a>b) return a;
    else return b;
}
int main(void){
    int n,m,i,j,ans=0;
    char s[100][11],t[100][11];
    scanf("%d",&n);
    for(i=0;i<n;i++) scanf("%s",s[i]);
    scanf("%d",&m);
    for(i=0;i<m;i++) scanf("%s",t[i]);
    for(i=0;i<n;i++){
        int cnt=0;
        for(j=0;j<n;j++){
            if(strcmp(s[i],s[j])==0) cnt++;
        }
        for(j=0;j<m;j++){
            if(strcmp(s[i],t[j])==0) cnt--;
        }
        ans = max(ans,cnt);
    }
    printf("%d",ans);
}
3
apple
orange
apple
5
aeplp
apple
apple
apple
apple
 6
red
red
blue
yellow
yellow
red
5
red
ree
yellow
green
blue
 1
voldemort
10
voldemort
voldemort
voldemort
voldemort
uoldemort
voldemort
voldemort
voldemort
voldemort
voldemort
 6
red
red
blue
yellow
yellow
red
5
rde
erd
lelyow
green
blte
 3
appme
orange
apple
1
grape
 3
apple
orange
lppae
5
aeplp
apple
apple
apple
apple
 3
appme
orange
apple
0
grape
 6
red
red
blue
ylelow
yellow
red
5
red
ree
yellow
green
blue
 1
voldemort
10
voldemort
voldemort
voldemort
voldemort
uoldemort
voldemort
voldemort
voleemort
voldemort
voldemort
 3
apole
orange
lppae
5
aeplp
apple
apple
apple
apple

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

```c
#include <stdio.h>
#include <string.h>
int max(int a,int b){
    if(a>b) return a;
    else return b;
}
int main(void){
    int n,m,i,j,ans=0;
    char s[100][11],t[100][11];
    scanf("%d",&n);
    for(i=0;i<n;i++) scanf("%s",s[i]);
    scanf("%d",&m);
    for(i=0;i<m;i++) scanf("%s",t[i]);
    for(i=0;i<n;i++){
        int cnt=0;
        for(j=0;j<n;j++){
            if(strcmp(s[i],s[j])==0) cnt++;
        }
        for(j=0;j<m;j++){
            if(strcmp(s[i],t[j])==0) cnt--;
        }
        ans = max(ans,cnt);
    }
    printf("%d",ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -2232(%rbp)
	leaq	-2248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2240(%rbp)
	jmp	.L5
.L6:
	leaq	-2224(%rbp), %rcx
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2240(%rbp)
.L5:
	movl	-2248(%rbp), %eax
	cmpl	%eax, -2240(%rbp)
	jl	.L6
	leaq	-2244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2240(%rbp)
	jmp	.L7
.L8:
	leaq	-1120(%rbp), %rcx
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2240(%rbp)
.L7:
	movl	-2244(%rbp), %eax
	cmpl	%eax, -2240(%rbp)
	jl	.L8
	movl	$0, -2240(%rbp)
	jmp	.L9
.L16:
	movl	$0, -2228(%rbp)
	movl	$0, -2236(%rbp)
	jmp	.L10
.L12:
	leaq	-2224(%rbp), %rcx
	movl	-2236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-2224(%rbp), %rsi
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	addl	$1, -2228(%rbp)
.L11:
	addl	$1, -2236(%rbp)
.L10:
	movl	-2248(%rbp), %eax
	cmpl	%eax, -2236(%rbp)
	jl	.L12
	movl	$0, -2236(%rbp)
	jmp	.L13
.L15:
	leaq	-1120(%rbp), %rcx
	movl	-2236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-2224(%rbp), %rsi
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L14
	subl	$1, -2228(%rbp)
.L14:
	addl	$1, -2236(%rbp)
.L13:
	movl	-2244(%rbp), %eax
	cmpl	%eax, -2236(%rbp)
	jl	.L15
	movl	-2228(%rbp), %edx
	movl	-2232(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, -2232(%rbp)
	addl	$1, -2240(%rbp)
.L9:
	movl	-2248(%rbp), %eax
	cmpl	%eax, -2240(%rbp)
	jl	.L16
	movl	-2232(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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.
train
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -2232(%rbp)
	leaq	-2248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2240(%rbp)
	jmp	.L5
.L6:
	leaq	-2224(%rbp), %rcx
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2240(%rbp)
.L5:
	movl	-2248(%rbp), %eax
	cmpl	%eax, -2240(%rbp)
	jl	.L6
	leaq	-2244(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2240(%rbp)
	jmp	.L7
.L8:
	leaq	-1120(%rbp), %rcx
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2240(%rbp)
.L7:
	movl	-2244(%rbp), %eax
	cmpl	%eax, -2240(%rbp)
	jl	.L8
	movl	$0, -2240(%rbp)
	jmp	.L9
.L16:
	movl	$0, -2228(%rbp)
	movl	$0, -2236(%rbp)
	jmp	.L10
.L12:
	leaq	-2224(%rbp), %rcx
	movl	-2236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-2224(%rbp), %rsi
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	addl	$1, -2228(%rbp)
.L11:
	addl	$1, -2236(%rbp)
.L10:
	movl	-2248(%rbp), %eax
	cmpl	%eax, -2236(%rbp)
	jl	.L12
	movl	$0, -2236(%rbp)
	jmp	.L13
.L15:
	leaq	-1120(%rbp), %rcx
	movl	-2236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rcx
	leaq	-2224(%rbp), %rsi
	movl	-2240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L14
	subl	$1, -2228(%rbp)
.L14:
	addl	$1, -2236(%rbp)
.L13:
	movl	-2244(%rbp), %eax
	cmpl	%eax, -2236(%rbp)
	jl	.L15
	movl	-2228(%rbp), %edx
	movl	-2232(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, -2232(%rbp)
	addl	$1, -2240(%rbp)
.L9:
	movl	-2248(%rbp), %eax
	cmpl	%eax, -2240(%rbp)
	jl	.L16
	movl	-2232(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
