Given the following C code and 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);
}```

Assembly Code:

```assembly
	.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:
```

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
	.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
```assembly
	.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:
```
```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);
}```
Given the following C 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);
}```

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
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 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);
}```

Assembly Code:

```assembly
	.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:
```

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
	.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:
```