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(void)
 {
     int n;
     int card[4][13];
     char suit[4] = "SHCD";
     scanf("%d", &n);
     int i,j,c;
     char s;
     for (i=0;i<4;i++)
     {
         for (j=0; j<13;j++)
         {
             card[i][j] = 0;
         }
     }
     for (i=0;i<2*n;i++)
     {
         scanf("%c %d",&s,&c);
         if (s == 'S') card[0][c-1] = 1;
         else if (s == 'H') card[1][c-1] = 1;
         else if (s == 'C') card[2][c-1] = 1;
         else if (s == 'D') card[3][c-1] = 1;
     }
     for (i=0;i<4;i++)
     {
         for (j=0;j<13;j++)
         {
             if (card[i][j] == 0)
             {
                 printf("%c %d\n", suit[i],j+1);
             }
         }
     }
     return 0;
 }
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c %d"
.LC2:
	.string	"%c %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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1145260115, -12(%rbp)
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -232(%rbp)
	jmp	.L2
.L5:
	movl	$0, -228(%rbp)
	jmp	.L3
.L4:
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -224(%rbp,%rax,4)
	addl	$1, -228(%rbp)
.L3:
	cmpl	$12, -228(%rbp)
	jle	.L4
	addl	$1, -232(%rbp)
.L2:
	cmpl	$3, -232(%rbp)
	jle	.L5
	movl	$0, -232(%rbp)
	jmp	.L6
.L11:
	leaq	-236(%rbp), %rdx
	leaq	-241(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-241(%rbp), %eax
	cmpb	$83, %al
	jne	.L7
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L8
.L7:
	movzbl	-241(%rbp), %eax
	cmpb	$72, %al
	jne	.L9
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$13, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L8
.L9:
	movzbl	-241(%rbp), %eax
	cmpb	$67, %al
	jne	.L10
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$26, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L8
.L10:
	movzbl	-241(%rbp), %eax
	cmpb	$68, %al
	jne	.L8
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$39, %rax
	movl	$1, -224(%rbp,%rax,4)
.L8:
	addl	$1, -232(%rbp)
.L6:
	movl	-240(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -232(%rbp)
	jl	.L11
	movl	$0, -232(%rbp)
	jmp	.L12
.L16:
	movl	$0, -228(%rbp)
	jmp	.L13
.L15:
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-228(%rbp), %eax
	leal	1(%rax), %edx
	movl	-232(%rbp), %eax
	cltq
	movzbl	-12(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	addl	$1, -228(%rbp)
.L13:
	cmpl	$12, -228(%rbp)
	jle	.L15
	addl	$1, -232(%rbp)
.L12:
	cmpl	$3, -232(%rbp)
	jle	.L16
	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
.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 %d"
.LC2:
	.string	"%c %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$248, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	movl	$1145260115, 228(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	pxor	%xmm0, %xmm0
	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)
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r13
	leaq	7(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$72, %al
	je	.L27
	cmpb	$67, %al
	je	.L28
	cmpb	$68, %al
	jne	.L4
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 172(%rsp,%rax,4)
	.p2align 4,,10
	.p2align 3
.L4:
	movl	8(%rsp), %eax
	addl	$1, %ebx
	addl	%eax, %eax
	cmpl	%ebx, %eax
	jle	.L2
.L7:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	7(%rsp), %eax
	cmpb	$83, %al
	jne	.L3
	movl	12(%rsp), %eax
	addl	$1, %ebx
	subl	$1, %eax
	cltq
	movl	$1, 16(%rsp,%rax,4)
	movl	8(%rsp), %eax
	addl	%eax, %eax
	cmpl	%ebx, %eax
	jg	.L7
.L2:
	leaq	16(%rsp), %rbx
	leaq	228(%rsp), %rbp
	leaq	224(%rsp), %r13
	leaq	.LC2(%rip), %r12
.L21:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	.L29
.L8:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	je	.L30
.L9:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	.L31
.L10:
	movl	12(%rbx), %eax
	testl	%eax, %eax
	je	.L32
.L11:
	movl	16(%rbx), %r11d
	testl	%r11d, %r11d
	je	.L33
.L12:
	movl	20(%rbx), %r10d
	testl	%r10d, %r10d
	je	.L34
.L13:
	movl	24(%rbx), %r9d
	testl	%r9d, %r9d
	je	.L35
.L14:
	movl	28(%rbx), %r8d
	testl	%r8d, %r8d
	je	.L36
.L15:
	movl	32(%rbx), %edi
	testl	%edi, %edi
	je	.L37
.L16:
	movl	36(%rbx), %esi
	testl	%esi, %esi
	je	.L38
.L17:
	movl	40(%rbx), %ecx
	testl	%ecx, %ecx
	je	.L39
.L18:
	movl	44(%rbx), %edx
	testl	%edx, %edx
	je	.L40
.L19:
	movl	48(%rbx), %eax
	testl	%eax, %eax
	je	.L41
.L20:
	addq	$52, %rbx
	addq	$1, %rbp
	cmpq	%r13, %rbx
	jne	.L21
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 68(%rsp,%rax,4)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L28:
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 120(%rsp,%rax,4)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L41:
	movsbl	0(%rbp), %edx
	movl	$13, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L40:
	movsbl	0(%rbp), %edx
	movl	$12, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L39:
	movsbl	0(%rbp), %edx
	movl	$11, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L38:
	movsbl	0(%rbp), %edx
	movl	$10, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L37:
	movsbl	0(%rbp), %edx
	movl	$9, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L36:
	movsbl	0(%rbp), %edx
	movl	$8, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	movsbl	0(%rbp), %edx
	movl	$7, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L34:
	movsbl	0(%rbp), %edx
	movl	$6, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L33:
	movsbl	0(%rbp), %edx
	movl	$5, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L32:
	movsbl	0(%rbp), %edx
	movl	$4, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	movsbl	0(%rbp), %edx
	movl	$3, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L30:
	movsbl	0(%rbp), %edx
	movl	$2, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	movsbl	0(%rbp), %edx
	movl	$1, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L42:
	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 %d"
.LC2:
	.string	"%c %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$248, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	movl	$1145260115, 228(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	pxor	%xmm0, %xmm0
	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)
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r13
	leaq	7(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$72, %al
	je	.L27
	cmpb	$67, %al
	je	.L28
	cmpb	$68, %al
	jne	.L4
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 172(%rsp,%rax,4)
	.p2align 4,,10
	.p2align 3
.L4:
	movl	8(%rsp), %eax
	addl	$1, %ebx
	addl	%eax, %eax
	cmpl	%ebx, %eax
	jle	.L2
.L7:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	7(%rsp), %eax
	cmpb	$83, %al
	jne	.L3
	movl	12(%rsp), %eax
	addl	$1, %ebx
	subl	$1, %eax
	cltq
	movl	$1, 16(%rsp,%rax,4)
	movl	8(%rsp), %eax
	addl	%eax, %eax
	cmpl	%ebx, %eax
	jg	.L7
.L2:
	leaq	16(%rsp), %rbx
	leaq	228(%rsp), %rbp
	leaq	224(%rsp), %r13
	leaq	.LC2(%rip), %r12
.L21:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	.L29
.L8:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	je	.L30
.L9:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	.L31
.L10:
	movl	12(%rbx), %eax
	testl	%eax, %eax
	je	.L32
.L11:
	movl	16(%rbx), %r11d
	testl	%r11d, %r11d
	je	.L33
.L12:
	movl	20(%rbx), %r10d
	testl	%r10d, %r10d
	je	.L34
.L13:
	movl	24(%rbx), %r9d
	testl	%r9d, %r9d
	je	.L35
.L14:
	movl	28(%rbx), %r8d
	testl	%r8d, %r8d
	je	.L36
.L15:
	movl	32(%rbx), %edi
	testl	%edi, %edi
	je	.L37
.L16:
	movl	36(%rbx), %esi
	testl	%esi, %esi
	je	.L38
.L17:
	movl	40(%rbx), %ecx
	testl	%ecx, %ecx
	je	.L39
.L18:
	movl	44(%rbx), %edx
	testl	%edx, %edx
	je	.L40
.L19:
	movl	48(%rbx), %eax
	testl	%eax, %eax
	je	.L41
.L20:
	addq	$52, %rbx
	addq	$1, %rbp
	cmpq	%r13, %rbx
	jne	.L21
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 68(%rsp,%rax,4)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L28:
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 120(%rsp,%rax,4)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L41:
	movsbl	0(%rbp), %edx
	movl	$13, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L40:
	movsbl	0(%rbp), %edx
	movl	$12, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L39:
	movsbl	0(%rbp), %edx
	movl	$11, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L38:
	movsbl	0(%rbp), %edx
	movl	$10, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L37:
	movsbl	0(%rbp), %edx
	movl	$9, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L36:
	movsbl	0(%rbp), %edx
	movl	$8, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	movsbl	0(%rbp), %edx
	movl	$7, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L34:
	movsbl	0(%rbp), %edx
	movl	$6, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L33:
	movsbl	0(%rbp), %edx
	movl	$5, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L32:
	movsbl	0(%rbp), %edx
	movl	$4, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	movsbl	0(%rbp), %edx
	movl	$3, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L30:
	movsbl	0(%rbp), %edx
	movl	$2, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	movsbl	0(%rbp), %edx
	movl	$1, %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L42:
	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(void)
 {
     int n;
     int card[4][13];
     char suit[4] = "SHCD";
     scanf("%d", &n);
     int i,j,c;
     char s;
     for (i=0;i<4;i++)
     {
         for (j=0; j<13;j++)
         {
             card[i][j] = 0;
         }
     }
     for (i=0;i<2*n;i++)
     {
         scanf("%c %d",&s,&c);
         if (s == 'S') card[0][c-1] = 1;
         else if (s == 'H') card[1][c-1] = 1;
         else if (s == 'C') card[2][c-1] = 1;
         else if (s == 'D') card[3][c-1] = 1;
     }
     for (i=0;i<4;i++)
     {
         for (j=0;j<13;j++)
         {
             if (card[i][j] == 0)
             {
                 printf("%c %d\n", suit[i],j+1);
             }
         }
     }
     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(void)
 {
     int n;
     int card[4][13];
     char suit[4] = "SHCD";
     scanf("%d", &n);
     int i,j,c;
     char s;
     for (i=0;i<4;i++)
     {
         for (j=0; j<13;j++)
         {
             card[i][j] = 0;
         }
     }
     for (i=0;i<2*n;i++)
     {
         scanf("%c %d",&s,&c);
         if (s == 'S') card[0][c-1] = 1;
         else if (s == 'H') card[1][c-1] = 1;
         else if (s == 'C') card[2][c-1] = 1;
         else if (s == 'D') card[3][c-1] = 1;
     }
     for (i=0;i<4;i++)
     {
         for (j=0;j<13;j++)
         {
             if (card[i][j] == 0)
             {
                 printf("%c %d\n", suit[i],j+1);
             }
         }
     }
     return 0;
 }
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c %d"
.LC2:
	.string	"%c %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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1145260115, -12(%rbp)
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -232(%rbp)
	jmp	.L2
.L5:
	movl	$0, -228(%rbp)
	jmp	.L3
.L4:
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -224(%rbp,%rax,4)
	addl	$1, -228(%rbp)
.L3:
	cmpl	$12, -228(%rbp)
	jle	.L4
	addl	$1, -232(%rbp)
.L2:
	cmpl	$3, -232(%rbp)
	jle	.L5
	movl	$0, -232(%rbp)
	jmp	.L6
.L11:
	leaq	-236(%rbp), %rdx
	leaq	-241(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-241(%rbp), %eax
	cmpb	$83, %al
	jne	.L7
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L8
.L7:
	movzbl	-241(%rbp), %eax
	cmpb	$72, %al
	jne	.L9
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$13, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L8
.L9:
	movzbl	-241(%rbp), %eax
	cmpb	$67, %al
	jne	.L10
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$26, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L8
.L10:
	movzbl	-241(%rbp), %eax
	cmpb	$68, %al
	jne	.L8
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$39, %rax
	movl	$1, -224(%rbp,%rax,4)
.L8:
	addl	$1, -232(%rbp)
.L6:
	movl	-240(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -232(%rbp)
	jl	.L11
	movl	$0, -232(%rbp)
	jmp	.L12
.L16:
	movl	$0, -228(%rbp)
	jmp	.L13
.L15:
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-228(%rbp), %eax
	leal	1(%rax), %edx
	movl	-232(%rbp), %eax
	cltq
	movzbl	-12(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	addl	$1, -228(%rbp)
.L13:
	cmpl	$12, -228(%rbp)
	jle	.L15
	addl	$1, -232(%rbp)
.L12:
	cmpl	$3, -232(%rbp)
	jle	.L16
	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
.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 %d"
.LC2:
	.string	"%c %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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1145260115, -12(%rbp)
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -232(%rbp)
	jmp	.L2
.L5:
	movl	$0, -228(%rbp)
	jmp	.L3
.L4:
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -224(%rbp,%rax,4)
	addl	$1, -228(%rbp)
.L3:
	cmpl	$12, -228(%rbp)
	jle	.L4
	addl	$1, -232(%rbp)
.L2:
	cmpl	$3, -232(%rbp)
	jle	.L5
	movl	$0, -232(%rbp)
	jmp	.L6
.L11:
	leaq	-236(%rbp), %rdx
	leaq	-241(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-241(%rbp), %eax
	cmpb	$83, %al
	jne	.L7
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L8
.L7:
	movzbl	-241(%rbp), %eax
	cmpb	$72, %al
	jne	.L9
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$13, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L8
.L9:
	movzbl	-241(%rbp), %eax
	cmpb	$67, %al
	jne	.L10
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$26, %rax
	movl	$1, -224(%rbp,%rax,4)
	jmp	.L8
.L10:
	movzbl	-241(%rbp), %eax
	cmpb	$68, %al
	jne	.L8
	movl	-236(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$39, %rax
	movl	$1, -224(%rbp,%rax,4)
.L8:
	addl	$1, -232(%rbp)
.L6:
	movl	-240(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -232(%rbp)
	jl	.L11
	movl	$0, -232(%rbp)
	jmp	.L12
.L16:
	movl	$0, -228(%rbp)
	jmp	.L13
.L15:
	movl	-228(%rbp), %eax
	movslq	%eax, %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-224(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-228(%rbp), %eax
	leal	1(%rax), %edx
	movl	-232(%rbp), %eax
	cltq
	movzbl	-12(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	addl	$1, -228(%rbp)
.L13:
	cmpl	$12, -228(%rbp)
	jle	.L15
	addl	$1, -232(%rbp)
.L12:
	cmpl	$3, -232(%rbp)
	jle	.L16
	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
.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:
