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

```c
/*
AizuOnline A0130
Train
*/
#include <stdio.h>
#include <string.h>

char cars[54];
char records[1025];

void analys(char * rec,int pos)
{
  if(rec[0] == '\0')
    return;
  cars[pos] = rec[0];
  if(rec[1]=='-' && rec[2]=='>')
      analys(rec+3,pos+1);
  else if(rec[1]=='<' && rec[2]=='-')
      analys(rec+3,pos-1);
}

void display_car(char * cars)
{
  int i;
  
  i= 0;
  while(i++,cars[i]=='\0')
    {}
  printf("%s\n",cars+i);
    
}
main()
{
  int cnt;
  int i;

  scanf("%d",&cnt);
  while(cnt--)
    {

      for(i=0;i<54;i++)
        cars[i]='\0';

      scanf(" %s",records);

      analys(records,26);

      display_car(cars);

    }


return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cars
	.bss
	.align 32
	.type	cars, @object
	.size	cars, 54
cars:
	.zero	54
	.globl	records
	.align 32
	.type	records, @object
	.size	records, 1025
records:
	.zero	1025
	.text
	.globl	analys
	.type	analys, @function
analys:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L5
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	cars(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L4
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	$62, %al
	jne	.L4
	movl	-12(%rbp), %eax
	leal	1(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	analys
	jmp	.L1
.L4:
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	$60, %al
	jne	.L1
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L1
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	analys
	jmp	.L1
.L5:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	analys, .-analys
	.globl	display_car
	.type	display_car, @function
display_car:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	nop
.L7:
	addl	$1, -4(%rbp)
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L7
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	display_car, .-display_car
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L9
.L12:
	movl	$0, -12(%rbp)
	jmp	.L10
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	cars(%rip), %rdx
	movb	$0, (%rax,%rdx)
	addl	$1, -12(%rbp)
.L10:
	cmpl	$53, -12(%rbp)
	jle	.L11
	leaq	records(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$26, %esi
	leaq	records(%rip), %rax
	movq	%rax, %rdi
	call	analys
	leaq	cars(%rip), %rax
	movq	%rax, %rdi
	call	display_car
.L9:
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -16(%rbp)
	testl	%eax, %eax
	jne	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	analys
	.type	analys, @function
analys:
.LFB35:
	.cfi_startproc
	endbr64
	movzbl	(%rdi), %eax
	testb	%al, %al
	je	.L1
	addq	$3, %rdi
	leaq	cars(%rip), %rcx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$60, %al
	jne	.L1
	cmpb	$45, -1(%rdi)
	jne	.L1
	subl	$1, %esi
.L5:
	movzbl	(%rdi), %eax
	addq	$3, %rdi
	testb	%al, %al
	je	.L1
.L3:
	movslq	%esi, %rdx
	movb	%al, (%rcx,%rdx)
	movzbl	-2(%rdi), %eax
	cmpb	$45, %al
	jne	.L4
	cmpb	$62, -1(%rdi)
	je	.L13
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %esi
	jmp	.L5
	.cfi_endproc
.LFE35:
	.size	analys, .-analys
	.p2align 4
	.globl	display_car
	.type	display_car, @function
display_car:
.LFB36:
	.cfi_startproc
	endbr64
	addq	$1, %rdi
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rdi, %r8
	addq	$1, %rdi
	cmpb	$0, -1(%rdi)
	je	.L15
	movq	%r8, %rdi
	jmp	puts@PLT
	.cfi_endproc
.LFE36:
	.size	display_car, .-display_car
	.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:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 4(%rsp)
	testl	%eax, %eax
	je	.L18
	leaq	records(%rip), %rbx
	leaq	.LC1(%rip), %rbp
	leaq	cars(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L24:
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movw	%ax, 52+cars(%rip)
	xorl	%eax, %eax
	movl	$0, 48+cars(%rip)
	movaps	%xmm0, cars(%rip)
	movaps	%xmm0, 16+cars(%rip)
	movaps	%xmm0, 32+cars(%rip)
	call	__isoc99_scanf@PLT
	movzbl	(%rbx), %edx
	testb	%dl, %dl
	je	.L19
	leaq	3+records(%rip), %rax
	movl	$26, %ecx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	$60, %dl
	jne	.L19
	cmpb	$45, -1(%rax)
	jne	.L19
	subl	$1, %ecx
.L22:
	movzbl	(%rax), %edx
	addq	$3, %rax
	testb	%dl, %dl
	je	.L19
.L20:
	movslq	%ecx, %rsi
	movb	%dl, (%r12,%rsi)
	movzbl	-2(%rax), %edx
	cmpb	$45, %dl
	jne	.L21
	cmpb	$62, -1(%rax)
	je	.L38
.L19:
	leaq	1+cars(%rip), %rax
.L23:
	movq	%rax, %rdi
	addq	$1, %rax
	cmpb	$0, -1(%rax)
	je	.L23
	call	puts@PLT
	movl	4(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 4(%rsp)
	testl	%eax, %eax
	jne	.L24
.L18:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$16, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	addl	$1, %ecx
	jmp	.L22
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	records
	.bss
	.align 32
	.type	records, @object
	.size	records, 1025
records:
	.zero	1025
	.globl	cars
	.align 32
	.type	cars, @object
	.size	cars, 54
cars:
	.zero	54
	.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	analys
	.type	analys, @function
analys:
.LFB35:
	.cfi_startproc
	endbr64
	movzbl	(%rdi), %eax
	testb	%al, %al
	je	.L1
	addq	$3, %rdi
	leaq	cars(%rip), %rcx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$60, %al
	jne	.L1
	cmpb	$45, -1(%rdi)
	jne	.L1
	subl	$1, %esi
.L5:
	movzbl	(%rdi), %eax
	addq	$3, %rdi
	testb	%al, %al
	je	.L1
.L3:
	movslq	%esi, %rdx
	movb	%al, (%rcx,%rdx)
	movzbl	-2(%rdi), %eax
	cmpb	$45, %al
	jne	.L4
	cmpb	$62, -1(%rdi)
	je	.L13
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %esi
	jmp	.L5
	.cfi_endproc
.LFE35:
	.size	analys, .-analys
	.p2align 4
	.globl	display_car
	.type	display_car, @function
display_car:
.LFB36:
	.cfi_startproc
	endbr64
	addq	$1, %rdi
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rdi, %r8
	addq	$1, %rdi
	cmpb	$0, -1(%rdi)
	je	.L15
	movq	%r8, %rdi
	jmp	puts@PLT
	.cfi_endproc
.LFE36:
	.size	display_car, .-display_car
	.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:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 4(%rsp)
	testl	%eax, %eax
	je	.L18
	leaq	records(%rip), %rbx
	leaq	.LC1(%rip), %rbp
	leaq	cars(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L24:
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	movw	%ax, 52+cars(%rip)
	xorl	%eax, %eax
	movl	$0, 48+cars(%rip)
	movaps	%xmm0, cars(%rip)
	movaps	%xmm0, 16+cars(%rip)
	movaps	%xmm0, 32+cars(%rip)
	call	__isoc99_scanf@PLT
	movzbl	(%rbx), %edx
	testb	%dl, %dl
	je	.L19
	leaq	3+records(%rip), %rax
	movl	$26, %ecx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	$60, %dl
	jne	.L19
	cmpb	$45, -1(%rax)
	jne	.L19
	subl	$1, %ecx
.L22:
	movzbl	(%rax), %edx
	addq	$3, %rax
	testb	%dl, %dl
	je	.L19
.L20:
	movslq	%ecx, %rsi
	movb	%dl, (%r12,%rsi)
	movzbl	-2(%rax), %edx
	cmpb	$45, %dl
	jne	.L21
	cmpb	$62, -1(%rax)
	je	.L38
.L19:
	leaq	1+cars(%rip), %rax
.L23:
	movq	%rax, %rdi
	addq	$1, %rax
	cmpb	$0, -1(%rax)
	je	.L23
	call	puts@PLT
	movl	4(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 4(%rsp)
	testl	%eax, %eax
	jne	.L24
.L18:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$16, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	addl	$1, %ecx
	jmp	.L22
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	records
	.bss
	.align 32
	.type	records, @object
	.size	records, 1025
records:
	.zero	1025
	.globl	cars
	.align 32
	.type	cars, @object
	.size	cars, 54
cars:
	.zero	54
	.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:

/*
AizuOnline A0130
Train
*/
#include <stdio.h>
#include <string.h>

char cars[54];
char records[1025];

void analys(char * rec,int pos)
{
  if(rec[0] == '\0')
    return;
  cars[pos] = rec[0];
  if(rec[1]=='-' && rec[2]=='>')
      analys(rec+3,pos+1);
  else if(rec[1]=='<' && rec[2]=='-')
      analys(rec+3,pos-1);
}

void display_car(char * cars)
{
  int i;
  
  i= 0;
  while(i++,cars[i]=='\0')
    {}
  printf("%s\n",cars+i);
    
}
main()
{
  int cnt;
  int i;

  scanf("%d",&cnt);
  while(cnt--)
    {

      for(i=0;i<54;i++)
        cars[i]='\0';

      scanf(" %s",records);

      analys(records,26);

      display_car(cars);

    }


return(0);
}
4
a->f->c->b->d
b
 4
a->e->c->b->d
a
 4
a->f->c->b->d
a
 4
a->f->c->b->d
`
 4
a->e->c->b->d
c
 4
a->f->c->b->d
c
 4
`->f->c->b->d
c
 4
`->f->c->b->d
d
 4
a->e->c->b->d
d
 4
a->e->c->b->d
`

afcbd
b
b
b
 aecbd
a
a
a
 afcbd
a
a
a
 afcbd
`
`
`
 aecbd
c
c
c
 afcbd
c
c
c
 `fcbd
c
c
c
 `fcbd
d
d
d
 aecbd
d
d
d
 aecbd
`
`
`

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

```c
/*
AizuOnline A0130
Train
*/
#include <stdio.h>
#include <string.h>

char cars[54];
char records[1025];

void analys(char * rec,int pos)
{
  if(rec[0] == '\0')
    return;
  cars[pos] = rec[0];
  if(rec[1]=='-' && rec[2]=='>')
      analys(rec+3,pos+1);
  else if(rec[1]=='<' && rec[2]=='-')
      analys(rec+3,pos-1);
}

void display_car(char * cars)
{
  int i;
  
  i= 0;
  while(i++,cars[i]=='\0')
    {}
  printf("%s\n",cars+i);
    
}
main()
{
  int cnt;
  int i;

  scanf("%d",&cnt);
  while(cnt--)
    {

      for(i=0;i<54;i++)
        cars[i]='\0';

      scanf(" %s",records);

      analys(records,26);

      display_car(cars);

    }


return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cars
	.bss
	.align 32
	.type	cars, @object
	.size	cars, 54
cars:
	.zero	54
	.globl	records
	.align 32
	.type	records, @object
	.size	records, 1025
records:
	.zero	1025
	.text
	.globl	analys
	.type	analys, @function
analys:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L5
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	cars(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L4
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	$62, %al
	jne	.L4
	movl	-12(%rbp), %eax
	leal	1(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	analys
	jmp	.L1
.L4:
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	$60, %al
	jne	.L1
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L1
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	analys
	jmp	.L1
.L5:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	analys, .-analys
	.globl	display_car
	.type	display_car, @function
display_car:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	nop
.L7:
	addl	$1, -4(%rbp)
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L7
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	display_car, .-display_car
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L9
.L12:
	movl	$0, -12(%rbp)
	jmp	.L10
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	cars(%rip), %rdx
	movb	$0, (%rax,%rdx)
	addl	$1, -12(%rbp)
.L10:
	cmpl	$53, -12(%rbp)
	jle	.L11
	leaq	records(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$26, %esi
	leaq	records(%rip), %rax
	movq	%rax, %rdi
	call	analys
	leaq	cars(%rip), %rax
	movq	%rax, %rdi
	call	display_car
.L9:
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -16(%rbp)
	testl	%eax, %eax
	jne	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	cars
	.bss
	.align 32
	.type	cars, @object
	.size	cars, 54
cars:
	.zero	54
	.globl	records
	.align 32
	.type	records, @object
	.size	records, 1025
records:
	.zero	1025
	.text
	.globl	analys
	.type	analys, @function
analys:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L5
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	cars(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L4
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	$62, %al
	jne	.L4
	movl	-12(%rbp), %eax
	leal	1(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	analys
	jmp	.L1
.L4:
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	$60, %al
	jne	.L1
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L1
	movl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	analys
	jmp	.L1
.L5:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	analys, .-analys
	.globl	display_car
	.type	display_car, @function
display_car:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	nop
.L7:
	addl	$1, -4(%rbp)
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L7
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	display_car, .-display_car
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L9
.L12:
	movl	$0, -12(%rbp)
	jmp	.L10
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	cars(%rip), %rdx
	movb	$0, (%rax,%rdx)
	addl	$1, -12(%rbp)
.L10:
	cmpl	$53, -12(%rbp)
	jle	.L11
	leaq	records(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$26, %esi
	leaq	records(%rip), %rax
	movq	%rax, %rdi
	call	analys
	leaq	cars(%rip), %rax
	movq	%rax, %rdi
	call	display_car
.L9:
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -16(%rbp)
	testl	%eax, %eax
	jne	.L12
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
