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>
  
int main()
{
  int t[4][14];
  int n, i,j,c;
  char m, d;
  for(i=0; i < 4; i++){
    for(j=0; j < 14; j++){
      t[i][j]=0;
    }
  }
 scanf("%d", &c);
  for(i = 0; i < c; i++){
    scanf("%c", &d);
    scanf("%c %d", &m, &n);
    if(m == 'S'){
      t[0][n] = 1;
    }
    else if(m == 'H'){
      t[1][n] = 1;
    }
    else if(m == 'C'){
      t[2][n] = 1;
    }
    else if(m == 'D'){
      t[3][n] = 1;
    }
  }
  for(j=1; j < 14; j++){
    if(t[0][j] != 1){
      printf("S %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[1][j] != 1){
      printf("H %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[2][j] != 1){
      printf("C %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[3][j] != 1){
      printf("D %d\n", j);
    }
  }
 return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"S %d\n"
.LC4:
	.string	"H %d\n"
.LC5:
	.string	"C %d\n"
.LC6:
	.string	"D %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -248(%rbp)
	jmp	.L2
.L5:
	movl	$0, -244(%rbp)
	jmp	.L3
.L4:
	movl	-244(%rbp), %eax
	movslq	%eax, %rcx
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	$0, -240(%rbp,%rax,4)
	addl	$1, -244(%rbp)
.L3:
	cmpl	$13, -244(%rbp)
	jle	.L4
	addl	$1, -248(%rbp)
.L2:
	cmpl	$3, -248(%rbp)
	jle	.L5
	leaq	-252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -248(%rbp)
	jmp	.L6
.L11:
	leaq	-257(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-256(%rbp), %rdx
	leaq	-258(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-258(%rbp), %eax
	cmpb	$83, %al
	jne	.L7
	movl	-256(%rbp), %eax
	cltq
	movl	$1, -240(%rbp,%rax,4)
	jmp	.L8
.L7:
	movzbl	-258(%rbp), %eax
	cmpb	$72, %al
	jne	.L9
	movl	-256(%rbp), %eax
	cltq
	addq	$14, %rax
	movl	$1, -240(%rbp,%rax,4)
	jmp	.L8
.L9:
	movzbl	-258(%rbp), %eax
	cmpb	$67, %al
	jne	.L10
	movl	-256(%rbp), %eax
	cltq
	addq	$28, %rax
	movl	$1, -240(%rbp,%rax,4)
	jmp	.L8
.L10:
	movzbl	-258(%rbp), %eax
	cmpb	$68, %al
	jne	.L8
	movl	-256(%rbp), %eax
	cltq
	addq	$42, %rax
	movl	$1, -240(%rbp,%rax,4)
.L8:
	addl	$1, -248(%rbp)
.L6:
	movl	-252(%rbp), %eax
	cmpl	%eax, -248(%rbp)
	jl	.L11
	movl	$1, -244(%rbp)
	jmp	.L12
.L14:
	movl	-244(%rbp), %eax
	cltq
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L13
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -244(%rbp)
.L12:
	cmpl	$13, -244(%rbp)
	jle	.L14
	movl	$1, -244(%rbp)
	jmp	.L15
.L17:
	movl	-244(%rbp), %eax
	cltq
	addq	$14, %rax
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L16
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L16:
	addl	$1, -244(%rbp)
.L15:
	cmpl	$13, -244(%rbp)
	jle	.L17
	movl	$1, -244(%rbp)
	jmp	.L18
.L20:
	movl	-244(%rbp), %eax
	cltq
	addq	$28, %rax
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L19
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	addl	$1, -244(%rbp)
.L18:
	cmpl	$13, -244(%rbp)
	jle	.L20
	movl	$1, -244(%rbp)
	jmp	.L21
.L23:
	movl	-244(%rbp), %eax
	cltq
	addq	$42, %rax
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L22
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	addl	$1, -244(%rbp)
.L21:
	cmpl	$13, -244(%rbp)
	jle	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"S %d\n"
.LC4:
	.string	"H %d\n"
.LC5:
	.string	"C %d\n"
.LC6:
	.string	"D %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	%xmm0, %xmm0
	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	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	movaps	%xmm0, 208(%rsp)
	movaps	%xmm0, 224(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r15d, %r15d
	leaq	7(%rsp), %r14
	leaq	8(%rsp), %r12
	leaq	.LC1(%rip), %r13
	leaq	6(%rsp), %rbp
	leaq	.LC2(%rip), %rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$72, %al
	je	.L64
	cmpb	$67, %al
	je	.L65
	cmpb	$68, %al
	jne	.L4
	movslq	8(%rsp), %rax
	movl	$1, 184(%rsp,%rax,4)
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %r15d
	cmpl	%r15d, 12(%rsp)
	jle	.L2
.L7:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	6(%rsp), %eax
	cmpb	$83, %al
	jne	.L3
	movslq	8(%rsp), %rax
	addl	$1, %r15d
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r15d, 12(%rsp)
	jg	.L7
.L2:
	cmpl	$1, 20(%rsp)
	je	.L8
	movl	$1, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	cmpl	$1, 24(%rsp)
	je	.L9
	movl	$2, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	cmpl	$1, 28(%rsp)
	je	.L10
	movl	$3, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	cmpl	$1, 32(%rsp)
	je	.L11
	movl	$4, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	cmpl	$1, 36(%rsp)
	je	.L12
	movl	$5, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L12:
	cmpl	$1, 40(%rsp)
	je	.L13
	movl	$6, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L13:
	cmpl	$1, 44(%rsp)
	je	.L14
	movl	$7, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	cmpl	$1, 48(%rsp)
	je	.L15
	movl	$8, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	cmpl	$1, 52(%rsp)
	je	.L16
	movl	$9, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L16:
	cmpl	$1, 56(%rsp)
	je	.L17
	movl	$10, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L17:
	cmpl	$1, 60(%rsp)
	je	.L18
	movl	$11, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	cmpl	$1, 64(%rsp)
	je	.L19
	movl	$12, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L19:
	cmpl	$1, 68(%rsp)
	je	.L20
	movl	$13, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L20:
	cmpl	$1, 76(%rsp)
	je	.L21
	movl	$1, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L21:
	cmpl	$1, 80(%rsp)
	je	.L22
	movl	$2, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L22:
	cmpl	$1, 84(%rsp)
	je	.L23
	movl	$3, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L23:
	cmpl	$1, 88(%rsp)
	je	.L24
	movl	$4, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L24:
	cmpl	$1, 92(%rsp)
	je	.L25
	movl	$5, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L25:
	cmpl	$1, 96(%rsp)
	je	.L26
	movl	$6, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L26:
	cmpl	$1, 100(%rsp)
	je	.L27
	movl	$7, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L27:
	cmpl	$1, 104(%rsp)
	je	.L28
	movl	$8, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L28:
	cmpl	$1, 108(%rsp)
	je	.L29
	movl	$9, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L29:
	cmpl	$1, 112(%rsp)
	je	.L30
	movl	$10, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L30:
	cmpl	$1, 116(%rsp)
	je	.L31
	movl	$11, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L31:
	cmpl	$1, 120(%rsp)
	je	.L32
	movl	$12, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L32:
	cmpl	$1, 124(%rsp)
	je	.L33
	movl	$13, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L33:
	cmpl	$1, 132(%rsp)
	je	.L34
	movl	$1, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L34:
	cmpl	$1, 136(%rsp)
	je	.L35
	movl	$2, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L35:
	cmpl	$1, 140(%rsp)
	je	.L36
	movl	$3, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L36:
	cmpl	$1, 144(%rsp)
	je	.L37
	movl	$4, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L37:
	cmpl	$1, 148(%rsp)
	je	.L38
	movl	$5, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L38:
	cmpl	$1, 152(%rsp)
	je	.L39
	movl	$6, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L39:
	cmpl	$1, 156(%rsp)
	je	.L40
	movl	$7, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L40:
	cmpl	$1, 160(%rsp)
	je	.L41
	movl	$8, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L41:
	cmpl	$1, 164(%rsp)
	je	.L42
	movl	$9, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L42:
	cmpl	$1, 168(%rsp)
	je	.L43
	movl	$10, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L43:
	cmpl	$1, 172(%rsp)
	je	.L44
	movl	$11, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L44:
	cmpl	$1, 176(%rsp)
	je	.L45
	movl	$12, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L45:
	cmpl	$1, 180(%rsp)
	je	.L46
	movl	$13, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L46:
	cmpl	$1, 188(%rsp)
	je	.L47
	movl	$1, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L47:
	cmpl	$1, 192(%rsp)
	je	.L48
	movl	$2, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L48:
	cmpl	$1, 196(%rsp)
	je	.L49
	movl	$3, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L49:
	cmpl	$1, 200(%rsp)
	je	.L50
	movl	$4, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L50:
	cmpl	$1, 204(%rsp)
	je	.L51
	movl	$5, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L51:
	cmpl	$1, 208(%rsp)
	je	.L52
	movl	$6, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L52:
	cmpl	$1, 212(%rsp)
	je	.L53
	movl	$7, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L53:
	cmpl	$1, 216(%rsp)
	je	.L54
	movl	$8, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L54:
	cmpl	$1, 220(%rsp)
	je	.L55
	movl	$9, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L55:
	cmpl	$1, 224(%rsp)
	je	.L56
	movl	$10, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L56:
	cmpl	$1, 228(%rsp)
	je	.L57
	movl	$11, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L57:
	cmpl	$1, 232(%rsp)
	je	.L58
	movl	$12, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L58:
	cmpl	$1, 236(%rsp)
	je	.L59
	movl	$13, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L59:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L66
	addq	$264, %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
	.p2align 4,,10
	.p2align 3
.L64:
	.cfi_restore_state
	movslq	8(%rsp), %rax
	movl	$1, 72(%rsp,%rax,4)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L65:
	movslq	8(%rsp), %rax
	movl	$1, 128(%rsp,%rax,4)
	jmp	.L4
.L66:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"S %d\n"
.LC4:
	.string	"H %d\n"
.LC5:
	.string	"C %d\n"
.LC6:
	.string	"D %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	%xmm0, %xmm0
	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	$264, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	movaps	%xmm0, 208(%rsp)
	movaps	%xmm0, 224(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r15d, %r15d
	leaq	7(%rsp), %r14
	leaq	8(%rsp), %r12
	leaq	.LC1(%rip), %r13
	leaq	6(%rsp), %rbp
	leaq	.LC2(%rip), %rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$72, %al
	je	.L64
	cmpb	$67, %al
	je	.L65
	cmpb	$68, %al
	jne	.L4
	movslq	8(%rsp), %rax
	movl	$1, 184(%rsp,%rax,4)
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %r15d
	cmpl	%r15d, 12(%rsp)
	jle	.L2
.L7:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	6(%rsp), %eax
	cmpb	$83, %al
	jne	.L3
	movslq	8(%rsp), %rax
	addl	$1, %r15d
	movl	$1, 16(%rsp,%rax,4)
	cmpl	%r15d, 12(%rsp)
	jg	.L7
.L2:
	cmpl	$1, 20(%rsp)
	je	.L8
	movl	$1, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	cmpl	$1, 24(%rsp)
	je	.L9
	movl	$2, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	cmpl	$1, 28(%rsp)
	je	.L10
	movl	$3, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L10:
	cmpl	$1, 32(%rsp)
	je	.L11
	movl	$4, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	cmpl	$1, 36(%rsp)
	je	.L12
	movl	$5, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L12:
	cmpl	$1, 40(%rsp)
	je	.L13
	movl	$6, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L13:
	cmpl	$1, 44(%rsp)
	je	.L14
	movl	$7, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L14:
	cmpl	$1, 48(%rsp)
	je	.L15
	movl	$8, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	cmpl	$1, 52(%rsp)
	je	.L16
	movl	$9, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L16:
	cmpl	$1, 56(%rsp)
	je	.L17
	movl	$10, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L17:
	cmpl	$1, 60(%rsp)
	je	.L18
	movl	$11, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	cmpl	$1, 64(%rsp)
	je	.L19
	movl	$12, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L19:
	cmpl	$1, 68(%rsp)
	je	.L20
	movl	$13, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L20:
	cmpl	$1, 76(%rsp)
	je	.L21
	movl	$1, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L21:
	cmpl	$1, 80(%rsp)
	je	.L22
	movl	$2, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L22:
	cmpl	$1, 84(%rsp)
	je	.L23
	movl	$3, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L23:
	cmpl	$1, 88(%rsp)
	je	.L24
	movl	$4, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L24:
	cmpl	$1, 92(%rsp)
	je	.L25
	movl	$5, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L25:
	cmpl	$1, 96(%rsp)
	je	.L26
	movl	$6, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L26:
	cmpl	$1, 100(%rsp)
	je	.L27
	movl	$7, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L27:
	cmpl	$1, 104(%rsp)
	je	.L28
	movl	$8, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L28:
	cmpl	$1, 108(%rsp)
	je	.L29
	movl	$9, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L29:
	cmpl	$1, 112(%rsp)
	je	.L30
	movl	$10, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L30:
	cmpl	$1, 116(%rsp)
	je	.L31
	movl	$11, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L31:
	cmpl	$1, 120(%rsp)
	je	.L32
	movl	$12, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L32:
	cmpl	$1, 124(%rsp)
	je	.L33
	movl	$13, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L33:
	cmpl	$1, 132(%rsp)
	je	.L34
	movl	$1, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L34:
	cmpl	$1, 136(%rsp)
	je	.L35
	movl	$2, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L35:
	cmpl	$1, 140(%rsp)
	je	.L36
	movl	$3, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L36:
	cmpl	$1, 144(%rsp)
	je	.L37
	movl	$4, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L37:
	cmpl	$1, 148(%rsp)
	je	.L38
	movl	$5, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L38:
	cmpl	$1, 152(%rsp)
	je	.L39
	movl	$6, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L39:
	cmpl	$1, 156(%rsp)
	je	.L40
	movl	$7, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L40:
	cmpl	$1, 160(%rsp)
	je	.L41
	movl	$8, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L41:
	cmpl	$1, 164(%rsp)
	je	.L42
	movl	$9, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L42:
	cmpl	$1, 168(%rsp)
	je	.L43
	movl	$10, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L43:
	cmpl	$1, 172(%rsp)
	je	.L44
	movl	$11, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L44:
	cmpl	$1, 176(%rsp)
	je	.L45
	movl	$12, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L45:
	cmpl	$1, 180(%rsp)
	je	.L46
	movl	$13, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L46:
	cmpl	$1, 188(%rsp)
	je	.L47
	movl	$1, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L47:
	cmpl	$1, 192(%rsp)
	je	.L48
	movl	$2, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L48:
	cmpl	$1, 196(%rsp)
	je	.L49
	movl	$3, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L49:
	cmpl	$1, 200(%rsp)
	je	.L50
	movl	$4, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L50:
	cmpl	$1, 204(%rsp)
	je	.L51
	movl	$5, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L51:
	cmpl	$1, 208(%rsp)
	je	.L52
	movl	$6, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L52:
	cmpl	$1, 212(%rsp)
	je	.L53
	movl	$7, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L53:
	cmpl	$1, 216(%rsp)
	je	.L54
	movl	$8, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L54:
	cmpl	$1, 220(%rsp)
	je	.L55
	movl	$9, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L55:
	cmpl	$1, 224(%rsp)
	je	.L56
	movl	$10, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L56:
	cmpl	$1, 228(%rsp)
	je	.L57
	movl	$11, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L57:
	cmpl	$1, 232(%rsp)
	je	.L58
	movl	$12, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L58:
	cmpl	$1, 236(%rsp)
	je	.L59
	movl	$13, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L59:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L66
	addq	$264, %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
	.p2align 4,,10
	.p2align 3
.L64:
	.cfi_restore_state
	movslq	8(%rsp), %rax
	movl	$1, 72(%rsp,%rax,4)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L65:
	movslq	8(%rsp), %rax
	movl	$1, 128(%rsp,%rax,4)
	jmp	.L4
.L66:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>
  
int main()
{
  int t[4][14];
  int n, i,j,c;
  char m, d;
  for(i=0; i < 4; i++){
    for(j=0; j < 14; j++){
      t[i][j]=0;
    }
  }
 scanf("%d", &c);
  for(i = 0; i < c; i++){
    scanf("%c", &d);
    scanf("%c %d", &m, &n);
    if(m == 'S'){
      t[0][n] = 1;
    }
    else if(m == 'H'){
      t[1][n] = 1;
    }
    else if(m == 'C'){
      t[2][n] = 1;
    }
    else if(m == 'D'){
      t[3][n] = 1;
    }
  }
  for(j=1; j < 14; j++){
    if(t[0][j] != 1){
      printf("S %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[1][j] != 1){
      printf("H %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[2][j] != 1){
      printf("C %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[3][j] != 1){
      printf("D %d\n", j);
    }
  }
 return 0;
}

47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 7
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 3
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 5
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 7
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 8
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 3
H 7
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 3
H 7
S 2
S 3
S 1
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 1
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 7
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 5
H 8
H 9
H 10
H 11
H 3
H 7
S 2
S 3
S 1
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 2
H 3
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 5
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 3
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13
 47
S 1
S 11
S 12
S 13
H 1
H 3
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 5
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13

S 1
H 3
H 5
C 12
D 8
 S 1
H 2
H 7
C 12
D 8
 S 1
H 3
H 5
C 12
D 6
 S 1
H 4
H 5
C 12
D 8
 S 4
H 4
H 5
C 12
D 8
 S 12
H 3
H 5
C 12
D 8
 S 4
H 4
H 6
C 12
D 8
 S 1
H 1
H 7
C 12
D 8
 S 1
H 5
H 7
C 12
D 8
 S 10
H 2
H 7
C 12
D 8

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>
  
int main()
{
  int t[4][14];
  int n, i,j,c;
  char m, d;
  for(i=0; i < 4; i++){
    for(j=0; j < 14; j++){
      t[i][j]=0;
    }
  }
 scanf("%d", &c);
  for(i = 0; i < c; i++){
    scanf("%c", &d);
    scanf("%c %d", &m, &n);
    if(m == 'S'){
      t[0][n] = 1;
    }
    else if(m == 'H'){
      t[1][n] = 1;
    }
    else if(m == 'C'){
      t[2][n] = 1;
    }
    else if(m == 'D'){
      t[3][n] = 1;
    }
  }
  for(j=1; j < 14; j++){
    if(t[0][j] != 1){
      printf("S %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[1][j] != 1){
      printf("H %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[2][j] != 1){
      printf("C %d\n", j);
    }
  }
  
 for(j=1; j < 14; j++){
    if(t[3][j] != 1){
      printf("D %d\n", j);
    }
  }
 return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"S %d\n"
.LC4:
	.string	"H %d\n"
.LC5:
	.string	"C %d\n"
.LC6:
	.string	"D %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -248(%rbp)
	jmp	.L2
.L5:
	movl	$0, -244(%rbp)
	jmp	.L3
.L4:
	movl	-244(%rbp), %eax
	movslq	%eax, %rcx
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	$0, -240(%rbp,%rax,4)
	addl	$1, -244(%rbp)
.L3:
	cmpl	$13, -244(%rbp)
	jle	.L4
	addl	$1, -248(%rbp)
.L2:
	cmpl	$3, -248(%rbp)
	jle	.L5
	leaq	-252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -248(%rbp)
	jmp	.L6
.L11:
	leaq	-257(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-256(%rbp), %rdx
	leaq	-258(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-258(%rbp), %eax
	cmpb	$83, %al
	jne	.L7
	movl	-256(%rbp), %eax
	cltq
	movl	$1, -240(%rbp,%rax,4)
	jmp	.L8
.L7:
	movzbl	-258(%rbp), %eax
	cmpb	$72, %al
	jne	.L9
	movl	-256(%rbp), %eax
	cltq
	addq	$14, %rax
	movl	$1, -240(%rbp,%rax,4)
	jmp	.L8
.L9:
	movzbl	-258(%rbp), %eax
	cmpb	$67, %al
	jne	.L10
	movl	-256(%rbp), %eax
	cltq
	addq	$28, %rax
	movl	$1, -240(%rbp,%rax,4)
	jmp	.L8
.L10:
	movzbl	-258(%rbp), %eax
	cmpb	$68, %al
	jne	.L8
	movl	-256(%rbp), %eax
	cltq
	addq	$42, %rax
	movl	$1, -240(%rbp,%rax,4)
.L8:
	addl	$1, -248(%rbp)
.L6:
	movl	-252(%rbp), %eax
	cmpl	%eax, -248(%rbp)
	jl	.L11
	movl	$1, -244(%rbp)
	jmp	.L12
.L14:
	movl	-244(%rbp), %eax
	cltq
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L13
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -244(%rbp)
.L12:
	cmpl	$13, -244(%rbp)
	jle	.L14
	movl	$1, -244(%rbp)
	jmp	.L15
.L17:
	movl	-244(%rbp), %eax
	cltq
	addq	$14, %rax
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L16
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L16:
	addl	$1, -244(%rbp)
.L15:
	cmpl	$13, -244(%rbp)
	jle	.L17
	movl	$1, -244(%rbp)
	jmp	.L18
.L20:
	movl	-244(%rbp), %eax
	cltq
	addq	$28, %rax
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L19
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	addl	$1, -244(%rbp)
.L18:
	cmpl	$13, -244(%rbp)
	jle	.L20
	movl	$1, -244(%rbp)
	jmp	.L21
.L23:
	movl	-244(%rbp), %eax
	cltq
	addq	$42, %rax
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L22
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	addl	$1, -244(%rbp)
.L21:
	cmpl	$13, -244(%rbp)
	jle	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%c %d"
.LC3:
	.string	"S %d\n"
.LC4:
	.string	"H %d\n"
.LC5:
	.string	"C %d\n"
.LC6:
	.string	"D %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -248(%rbp)
	jmp	.L2
.L5:
	movl	$0, -244(%rbp)
	jmp	.L3
.L4:
	movl	-244(%rbp), %eax
	movslq	%eax, %rcx
	movl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	$0, -240(%rbp,%rax,4)
	addl	$1, -244(%rbp)
.L3:
	cmpl	$13, -244(%rbp)
	jle	.L4
	addl	$1, -248(%rbp)
.L2:
	cmpl	$3, -248(%rbp)
	jle	.L5
	leaq	-252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -248(%rbp)
	jmp	.L6
.L11:
	leaq	-257(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-256(%rbp), %rdx
	leaq	-258(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-258(%rbp), %eax
	cmpb	$83, %al
	jne	.L7
	movl	-256(%rbp), %eax
	cltq
	movl	$1, -240(%rbp,%rax,4)
	jmp	.L8
.L7:
	movzbl	-258(%rbp), %eax
	cmpb	$72, %al
	jne	.L9
	movl	-256(%rbp), %eax
	cltq
	addq	$14, %rax
	movl	$1, -240(%rbp,%rax,4)
	jmp	.L8
.L9:
	movzbl	-258(%rbp), %eax
	cmpb	$67, %al
	jne	.L10
	movl	-256(%rbp), %eax
	cltq
	addq	$28, %rax
	movl	$1, -240(%rbp,%rax,4)
	jmp	.L8
.L10:
	movzbl	-258(%rbp), %eax
	cmpb	$68, %al
	jne	.L8
	movl	-256(%rbp), %eax
	cltq
	addq	$42, %rax
	movl	$1, -240(%rbp,%rax,4)
.L8:
	addl	$1, -248(%rbp)
.L6:
	movl	-252(%rbp), %eax
	cmpl	%eax, -248(%rbp)
	jl	.L11
	movl	$1, -244(%rbp)
	jmp	.L12
.L14:
	movl	-244(%rbp), %eax
	cltq
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L13
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -244(%rbp)
.L12:
	cmpl	$13, -244(%rbp)
	jle	.L14
	movl	$1, -244(%rbp)
	jmp	.L15
.L17:
	movl	-244(%rbp), %eax
	cltq
	addq	$14, %rax
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L16
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L16:
	addl	$1, -244(%rbp)
.L15:
	cmpl	$13, -244(%rbp)
	jle	.L17
	movl	$1, -244(%rbp)
	jmp	.L18
.L20:
	movl	-244(%rbp), %eax
	cltq
	addq	$28, %rax
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L19
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	addl	$1, -244(%rbp)
.L18:
	cmpl	$13, -244(%rbp)
	jle	.L20
	movl	$1, -244(%rbp)
	jmp	.L21
.L23:
	movl	-244(%rbp), %eax
	cltq
	addq	$42, %rax
	movl	-240(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L22
	movl	-244(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	addl	$1, -244(%rbp)
.L21:
	cmpl	$13, -244(%rbp)
	jle	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
