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(){
  int i, len, h0, h1, h2, h3, in;
  char str[20];
  
  h0 = h1 = h2 = h3 = 0;

  scanf("%s", str);

  len = strlen(str);

  if(len >= 6) h0 = 1;

  for(i=0; i<len; i++){
    in = str[i];
    if(in >= 48 && in <=57) h1 = 1;
    else if(in <= 90 && in >=65) h2 = 1;
    else if(in >= 97 && in <=122) h3 = 1;
  }
  
  if(h0==1 && h1==1 && h2==1 && h3==1) printf("VALID\n");
  else printf("INVALID\n");

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"VALID"
.LC2:
	.string	"INVALID"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	$5, %rax
	seta	%r11b
	testq	%rax, %rax
	je	.L2
	subl	$1, %eax
	movzbl	%r11b, %r11d
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	leaq	1(%rsp,%rax), %rsi
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	movl	$1, %r10d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	leal	-65(%rax), %ecx
	cmpl	$25, %ecx
	jbe	.L8
	subl	$97, %eax
	cmpl	$25, %eax
	cmovbe	%r10d, %r8d
.L3:
	addq	$1, %rdx
	cmpq	%rdx, %rsi
	je	.L21
.L4:
	movsbl	(%rdx), %eax
	leal	-48(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L22
	addq	$1, %rdx
	movl	$1, %edi
	cmpq	%rdx, %rsi
	jne	.L4
.L21:
	testl	%edi, %r11d
	je	.L2
	testl	%r8d, %r9d
	jne	.L23
.L2:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	$1, %r9d
	jmp	.L3
.L23:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L24:
	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	"%s"
.LC1:
	.string	"VALID"
.LC2:
	.string	"INVALID"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	$5, %rax
	seta	%r11b
	testq	%rax, %rax
	je	.L2
	subl	$1, %eax
	movzbl	%r11b, %r11d
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	leaq	1(%rsp,%rax), %rsi
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	movl	$1, %r10d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	leal	-65(%rax), %ecx
	cmpl	$25, %ecx
	jbe	.L8
	subl	$97, %eax
	cmpl	$25, %eax
	cmovbe	%r10d, %r8d
.L3:
	addq	$1, %rdx
	cmpq	%rdx, %rsi
	je	.L21
.L4:
	movsbl	(%rdx), %eax
	leal	-48(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L22
	addq	$1, %rdx
	movl	$1, %edi
	cmpq	%rdx, %rsi
	jne	.L4
.L21:
	testl	%edi, %r11d
	je	.L2
	testl	%r8d, %r9d
	jne	.L23
.L2:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	$1, %r9d
	jmp	.L3
.L23:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L24:
	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	"%s"
.LC1:
	.string	"VALID"
.LC2:
	.string	"INVALID"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	$5, %rax
	seta	%r11b
	testq	%rax, %rax
	je	.L2
	subl	$1, %eax
	movzbl	%r11b, %r11d
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	leaq	1(%rsp,%rax), %rsi
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	movl	$1, %r10d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	leal	-65(%rax), %ecx
	cmpl	$25, %ecx
	jbe	.L8
	subl	$97, %eax
	cmpl	$25, %eax
	cmovbe	%r10d, %r8d
.L3:
	addq	$1, %rdx
	cmpq	%rdx, %rsi
	je	.L21
.L4:
	movsbl	(%rdx), %eax
	leal	-48(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L22
	addq	$1, %rdx
	movl	$1, %edi
	cmpq	%rdx, %rsi
	jne	.L4
.L21:
	testl	%edi, %r11d
	je	.L2
	testl	%r8d, %r9d
	jne	.L23
.L2:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	$1, %r9d
	jmp	.L3
.L23:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L24:
	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(){
  int i, len, h0, h1, h2, h3, in;
  char str[20];
  
  h0 = h1 = h2 = h3 = 0;

  scanf("%s", str);

  len = strlen(str);

  if(len >= 6) h0 = 1;

  for(i=0; i<len; i++){
    in = str[i];
    if(in >= 48 && in <=57) h1 = 1;
    else if(in <= 90 && in >=65) h2 = 1;
    else if(in >= 97 && in <=122) h3 = 1;
  }
  
  if(h0==1 && h1==1 && h2==1 && h3==1) printf("VALID\n");
  else printf("INVALID\n");

  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(){
  int i, len, h0, h1, h2, h3, in;
  char str[20];
  
  h0 = h1 = h2 = h3 = 0;

  scanf("%s", str);

  len = strlen(str);

  if(len >= 6) h0 = 1;

  for(i=0; i<len; i++){
    in = str[i];
    if(in >= 48 && in <=57) h1 = 1;
    else if(in <= 90 && in >=65) h2 = 1;
    else if(in >= 97 && in <=122) h3 = 1;
  }
  
  if(h0==1 && h1==1 && h2==1 && h3==1) printf("VALID\n");
  else printf("INVALID\n");

  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:

passxord
 parsxosd
 parsxpsd
 qarsxpsd
 qarxspsd
 dspsxraq
 qarxspsc
 cspsxraq
 capsxrsq
 capsxqsr

INVALID
 INVALID
 INVALID
 INVALID
 INVALID
 INVALID
 INVALID
 INVALID
 INVALID
 INVALID

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(){
  int i, len, h0, h1, h2, h3, in;
  char str[20];
  
  h0 = h1 = h2 = h3 = 0;

  scanf("%s", str);

  len = strlen(str);

  if(len >= 6) h0 = 1;

  for(i=0; i<len; i++){
    in = str[i];
    if(in >= 48 && in <=57) h1 = 1;
    else if(in <= 90 && in >=65) h2 = 1;
    else if(in >= 97 && in <=122) h3 = 1;
  }
  
  if(h0==1 && h1==1 && h2==1 && h3==1) printf("VALID\n");
  else printf("INVALID\n");

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"VALID"
.LC2:
	.string	"INVALID"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	$5, %rax
	seta	%r11b
	testq	%rax, %rax
	je	.L2
	subl	$1, %eax
	movzbl	%r11b, %r11d
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	leaq	1(%rsp,%rax), %rsi
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	movl	$1, %r10d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	leal	-65(%rax), %ecx
	cmpl	$25, %ecx
	jbe	.L8
	subl	$97, %eax
	cmpl	$25, %eax
	cmovbe	%r10d, %r8d
.L3:
	addq	$1, %rdx
	cmpq	%rdx, %rsi
	je	.L21
.L4:
	movsbl	(%rdx), %eax
	leal	-48(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L22
	addq	$1, %rdx
	movl	$1, %edi
	cmpq	%rdx, %rsi
	jne	.L4
.L21:
	testl	%edi, %r11d
	je	.L2
	testl	%r8d, %r9d
	jne	.L23
.L2:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	$1, %r9d
	jmp	.L3
.L23:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L24:
	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	"%s"
.LC1:
	.string	"VALID"
.LC2:
	.string	"INVALID"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	cmpq	$5, %rax
	seta	%r11b
	testq	%rax, %rax
	je	.L2
	subl	$1, %eax
	movzbl	%r11b, %r11d
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	leaq	1(%rsp,%rax), %rsi
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	movl	$1, %r10d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	leal	-65(%rax), %ecx
	cmpl	$25, %ecx
	jbe	.L8
	subl	$97, %eax
	cmpl	$25, %eax
	cmovbe	%r10d, %r8d
.L3:
	addq	$1, %rdx
	cmpq	%rdx, %rsi
	je	.L21
.L4:
	movsbl	(%rdx), %eax
	leal	-48(%rax), %ecx
	cmpl	$9, %ecx
	ja	.L22
	addq	$1, %rdx
	movl	$1, %edi
	cmpq	%rdx, %rsi
	jne	.L4
.L21:
	testl	%edi, %r11d
	je	.L2
	testl	%r8d, %r9d
	jne	.L23
.L2:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	$1, %r9d
	jmp	.L3
.L23:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L24:
	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:
```