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"
#include "stdbool.h"

void array_reset( int*, int );
int main(){
    int n;
    char mark;
	char enter;
    int rank;
    int spade[13], hert[13], crab[13], dia[13];
    int i;
    
    array_reset( spade, 13 );
    array_reset( hert, 13 );
    array_reset( crab, 13 );
    array_reset( dia, 13 );

    scanf( "%d", &n );
    
    for( i = 0; i < n; i++ ){
        scanf( "%c%c%d", &enter, &mark, &rank );
        switch( mark ){
        case 'S':
            spade[ rank - 1 ] = 1;
            break;
        case 'H':
            hert[ rank - 1 ] = 1;
            break;
        case 'C':
            crab[ rank - 1 ] = 1;
            break;
        case 'D':
            dia[ rank - 1 ] = 1;
            break;
        default:;
        }
    }
    
    for( i = 0;i < 13;i++ ){
        if( spade[i] == 0 ){
            printf( "S %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( hert[i] == 0 ){
            printf( "H %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( crab[i] == 0 ){
            printf( "C %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( dia[i] == 0 ){
            printf( "D %d\n", i + 1 );
        }
    }
    return 0;
}

void array_reset( int* array, int size )
{
    int i;
    for( i = 0; i < size; i++ ){
        *( array + i ) = 0;
    }
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c%c%d"
.LC2:
	.string	"S %d\n"
.LC3:
	.string	"H %d\n"
.LC4:
	.string	"C %d\n"
.LC5:
	.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
	leaq	-256(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-192(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-128(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-64(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-268(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -260(%rbp)
	jmp	.L2
.L8:
	leaq	-264(%rbp), %rcx
	leaq	-270(%rbp), %rdx
	leaq	-269(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-270(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$83, %eax
	je	.L3
	cmpl	$83, %eax
	jg	.L4
	cmpl	$72, %eax
	je	.L5
	cmpl	$72, %eax
	jg	.L4
	cmpl	$67, %eax
	je	.L6
	cmpl	$68, %eax
	je	.L7
	jmp	.L4
.L3:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -256(%rbp,%rax,4)
	jmp	.L4
.L5:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -192(%rbp,%rax,4)
	jmp	.L4
.L6:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -128(%rbp,%rax,4)
	jmp	.L4
.L7:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -64(%rbp,%rax,4)
	nop
.L4:
	addl	$1, -260(%rbp)
.L2:
	movl	-268(%rbp), %eax
	cmpl	%eax, -260(%rbp)
	jl	.L8
	movl	$0, -260(%rbp)
	jmp	.L9
.L11:
	movl	-260(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	addl	$1, -260(%rbp)
.L9:
	cmpl	$12, -260(%rbp)
	jle	.L11
	movl	$0, -260(%rbp)
	jmp	.L12
.L14:
	movl	-260(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L13
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -260(%rbp)
.L12:
	cmpl	$12, -260(%rbp)
	jle	.L14
	movl	$0, -260(%rbp)
	jmp	.L15
.L17:
	movl	-260(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L16
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L16:
	addl	$1, -260(%rbp)
.L15:
	cmpl	$12, -260(%rbp)
	jle	.L17
	movl	$0, -260(%rbp)
	jmp	.L18
.L20:
	movl	-260(%rbp), %eax
	cltq
	movl	-64(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L19
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	addl	$1, -260(%rbp)
.L18:
	cmpl	$12, -260(%rbp)
	jle	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	array_reset
	.type	array_reset, @function
array_reset:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L24
.L25:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	addl	$1, -4(%rbp)
.L24:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L25
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	array_reset, .-array_reset
	.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	"S %d\n"
.LC2:
	.string	"%c%c%d"
.LC3:
	.string	"H %d\n"
.LC4:
	.string	"C %d\n"
.LC5:
	.string	"D %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$272, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	movl	$0, 64(%rsp)
	movl	$0, 128(%rsp)
	movl	$0, 192(%rsp)
	movl	$0, 256(%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 208(%rsp)
	movaps	%xmm0, 224(%rsp)
	movaps	%xmm0, 240(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L22
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r14
	leaq	6(%rsp), %r13
	leaq	7(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L67:
	cmpb	$68, %al
	jne	.L21
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 208(%rsp,%rax,4)
.L21:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jle	.L22
.L2:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	6(%rsp), %eax
	cmpb	$72, %al
	je	.L17
	jg	.L18
	cmpb	$67, %al
	jne	.L67
	movl	12(%rsp), %eax
	addl	$1, %ebx
	subl	$1, %eax
	cltq
	movl	$1, 144(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L68
.L3:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L69
.L4:
	movl	24(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L70
.L5:
	movl	28(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L71
.L6:
	movl	32(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L72
.L7:
	movl	36(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L73
.L8:
	movl	40(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L74
.L9:
	movl	44(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L75
.L10:
	movl	48(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L76
.L11:
	movl	52(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L77
.L12:
	movl	56(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L78
.L13:
	movl	60(%rsp), %edi
	testl	%edi, %edi
	je	.L79
.L14:
	movl	64(%rsp), %esi
	testl	%esi, %esi
	je	.L80
.L16:
	movl	80(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L81
.L23:
	movl	84(%rsp), %edx
	testl	%edx, %edx
	je	.L82
.L24:
	movl	88(%rsp), %eax
	testl	%eax, %eax
	je	.L83
.L25:
	movl	92(%rsp), %eax
	testl	%eax, %eax
	je	.L84
.L26:
	movl	96(%rsp), %eax
	testl	%eax, %eax
	je	.L85
.L27:
	movl	100(%rsp), %eax
	testl	%eax, %eax
	je	.L86
.L28:
	movl	104(%rsp), %eax
	testl	%eax, %eax
	je	.L87
.L29:
	movl	108(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L88
.L30:
	movl	112(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L89
.L31:
	movl	116(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L90
.L32:
	movl	120(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L91
.L33:
	movl	124(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L92
.L34:
	movl	128(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L93
.L35:
	movl	144(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L94
.L36:
	movl	148(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L95
.L37:
	movl	152(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L96
.L38:
	movl	156(%rsp), %edi
	testl	%edi, %edi
	je	.L97
.L39:
	movl	160(%rsp), %esi
	testl	%esi, %esi
	je	.L98
.L40:
	movl	164(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L99
.L41:
	movl	168(%rsp), %edx
	testl	%edx, %edx
	je	.L100
.L42:
	movl	172(%rsp), %eax
	testl	%eax, %eax
	je	.L101
.L43:
	movl	176(%rsp), %eax
	testl	%eax, %eax
	je	.L102
.L44:
	movl	180(%rsp), %eax
	testl	%eax, %eax
	je	.L103
.L45:
	movl	184(%rsp), %eax
	testl	%eax, %eax
	je	.L104
.L46:
	movl	188(%rsp), %eax
	testl	%eax, %eax
	je	.L105
.L47:
	movl	192(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L106
.L48:
	movl	208(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L107
.L49:
	movl	212(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L108
.L50:
	movl	216(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L109
.L51:
	movl	220(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L110
.L52:
	movl	224(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L111
.L53:
	movl	228(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L112
.L54:
	movl	232(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L113
.L55:
	movl	236(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L114
.L56:
	movl	240(%rsp), %edi
	testl	%edi, %edi
	je	.L115
.L57:
	movl	244(%rsp), %esi
	testl	%esi, %esi
	je	.L116
.L58:
	movl	248(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L117
.L59:
	movl	252(%rsp), %edx
	testl	%edx, %edx
	je	.L118
.L60:
	movl	256(%rsp), %eax
	testl	%eax, %eax
	je	.L119
.L61:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L120
	addq	$272, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	cmpb	$83, %al
	jne	.L21
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 16(%rsp,%rax,4)
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L17:
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 80(%rsp,%rax,4)
	jmp	.L21
.L68:
	movl	$1, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L119:
	movl	$13, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L61
.L118:
	movl	$12, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L60
.L117:
	movl	$11, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L59
.L116:
	movl	$10, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L58
.L115:
	movl	$9, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L57
.L114:
	movl	$8, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L56
.L113:
	movl	$7, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L55
.L112:
	movl	$6, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L54
.L111:
	movl	$5, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L53
.L110:
	movl	$4, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L52
.L109:
	movl	$3, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L51
.L108:
	movl	$2, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L50
.L107:
	movl	$1, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L49
.L106:
	movl	$13, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L48
.L105:
	movl	$12, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L47
.L104:
	movl	$11, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L46
.L103:
	movl	$10, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L45
.L102:
	movl	$9, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L44
.L101:
	movl	$8, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L43
.L100:
	movl	$7, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L42
.L99:
	movl	$6, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L41
.L98:
	movl	$5, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L40
.L97:
	movl	$4, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L39
.L96:
	movl	$3, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L38
.L95:
	movl	$2, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L37
.L94:
	movl	$1, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L36
.L93:
	movl	$13, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L35
.L92:
	movl	$12, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L34
.L91:
	movl	$11, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L90:
	movl	$10, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L32
.L89:
	movl	$9, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L31
.L88:
	movl	$8, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L30
.L87:
	movl	$7, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L29
.L86:
	movl	$6, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L28
.L85:
	movl	$5, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L27
.L84:
	movl	$4, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L26
.L83:
	movl	$3, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L25
.L82:
	movl	$2, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L24
.L81:
	movl	$1, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L23
.L80:
	movl	$13, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
.L79:
	movl	$12, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L78:
	movl	$11, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L77:
	movl	$10, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
.L76:
	movl	$9, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L75:
	movl	$8, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L74:
	movl	$7, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L73:
	movl	$6, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L8
.L72:
	movl	$5, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L71:
	movl	$4, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L70:
	movl	$3, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L69:
	movl	$2, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L120:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	array_reset
	.type	array_reset, @function
array_reset:
.LFB24:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L121
	movslq	%esi, %rsi
	leaq	0(,%rsi,4), %rdx
	xorl	%esi, %esi
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L121:
	ret
	.cfi_endproc
.LFE24:
	.size	array_reset, .-array_reset
	.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	"S %d\n"
.LC2:
	.string	"%c%c%d"
.LC3:
	.string	"H %d\n"
.LC4:
	.string	"C %d\n"
.LC5:
	.string	"D %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$272, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	movl	$0, 64(%rsp)
	movl	$0, 128(%rsp)
	movl	$0, 192(%rsp)
	movl	$0, 256(%rsp)
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 208(%rsp)
	movaps	%xmm0, 224(%rsp)
	movaps	%xmm0, 240(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L22
	xorl	%ebx, %ebx
	leaq	12(%rsp), %r14
	leaq	6(%rsp), %r13
	leaq	7(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L67:
	cmpb	$68, %al
	jne	.L21
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 208(%rsp,%rax,4)
.L21:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jle	.L22
.L2:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	6(%rsp), %eax
	cmpb	$72, %al
	je	.L17
	jg	.L18
	cmpb	$67, %al
	jne	.L67
	movl	12(%rsp), %eax
	addl	$1, %ebx
	subl	$1, %eax
	cltq
	movl	$1, 144(%rsp,%rax,4)
	cmpl	%ebx, 8(%rsp)
	jg	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	movl	16(%rsp), %eax
	testl	%eax, %eax
	je	.L68
.L3:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L69
.L4:
	movl	24(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L70
.L5:
	movl	28(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L71
.L6:
	movl	32(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L72
.L7:
	movl	36(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L73
.L8:
	movl	40(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L74
.L9:
	movl	44(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L75
.L10:
	movl	48(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L76
.L11:
	movl	52(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L77
.L12:
	movl	56(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L78
.L13:
	movl	60(%rsp), %edi
	testl	%edi, %edi
	je	.L79
.L14:
	movl	64(%rsp), %esi
	testl	%esi, %esi
	je	.L80
.L16:
	movl	80(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L81
.L23:
	movl	84(%rsp), %edx
	testl	%edx, %edx
	je	.L82
.L24:
	movl	88(%rsp), %eax
	testl	%eax, %eax
	je	.L83
.L25:
	movl	92(%rsp), %eax
	testl	%eax, %eax
	je	.L84
.L26:
	movl	96(%rsp), %eax
	testl	%eax, %eax
	je	.L85
.L27:
	movl	100(%rsp), %eax
	testl	%eax, %eax
	je	.L86
.L28:
	movl	104(%rsp), %eax
	testl	%eax, %eax
	je	.L87
.L29:
	movl	108(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L88
.L30:
	movl	112(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L89
.L31:
	movl	116(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L90
.L32:
	movl	120(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L91
.L33:
	movl	124(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L92
.L34:
	movl	128(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L93
.L35:
	movl	144(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L94
.L36:
	movl	148(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L95
.L37:
	movl	152(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L96
.L38:
	movl	156(%rsp), %edi
	testl	%edi, %edi
	je	.L97
.L39:
	movl	160(%rsp), %esi
	testl	%esi, %esi
	je	.L98
.L40:
	movl	164(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L99
.L41:
	movl	168(%rsp), %edx
	testl	%edx, %edx
	je	.L100
.L42:
	movl	172(%rsp), %eax
	testl	%eax, %eax
	je	.L101
.L43:
	movl	176(%rsp), %eax
	testl	%eax, %eax
	je	.L102
.L44:
	movl	180(%rsp), %eax
	testl	%eax, %eax
	je	.L103
.L45:
	movl	184(%rsp), %eax
	testl	%eax, %eax
	je	.L104
.L46:
	movl	188(%rsp), %eax
	testl	%eax, %eax
	je	.L105
.L47:
	movl	192(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L106
.L48:
	movl	208(%rsp), %r13d
	testl	%r13d, %r13d
	je	.L107
.L49:
	movl	212(%rsp), %r12d
	testl	%r12d, %r12d
	je	.L108
.L50:
	movl	216(%rsp), %ebp
	testl	%ebp, %ebp
	je	.L109
.L51:
	movl	220(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L110
.L52:
	movl	224(%rsp), %r11d
	testl	%r11d, %r11d
	je	.L111
.L53:
	movl	228(%rsp), %r10d
	testl	%r10d, %r10d
	je	.L112
.L54:
	movl	232(%rsp), %r9d
	testl	%r9d, %r9d
	je	.L113
.L55:
	movl	236(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L114
.L56:
	movl	240(%rsp), %edi
	testl	%edi, %edi
	je	.L115
.L57:
	movl	244(%rsp), %esi
	testl	%esi, %esi
	je	.L116
.L58:
	movl	248(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L117
.L59:
	movl	252(%rsp), %edx
	testl	%edx, %edx
	je	.L118
.L60:
	movl	256(%rsp), %eax
	testl	%eax, %eax
	je	.L119
.L61:
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L120
	addq	$272, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	cmpb	$83, %al
	jne	.L21
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 16(%rsp,%rax,4)
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L17:
	movl	12(%rsp), %eax
	subl	$1, %eax
	cltq
	movl	$1, 80(%rsp,%rax,4)
	jmp	.L21
.L68:
	movl	$1, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L119:
	movl	$13, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L61
.L118:
	movl	$12, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L60
.L117:
	movl	$11, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L59
.L116:
	movl	$10, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L58
.L115:
	movl	$9, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L57
.L114:
	movl	$8, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L56
.L113:
	movl	$7, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L55
.L112:
	movl	$6, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L54
.L111:
	movl	$5, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L53
.L110:
	movl	$4, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L52
.L109:
	movl	$3, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L51
.L108:
	movl	$2, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L50
.L107:
	movl	$1, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L49
.L106:
	movl	$13, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L48
.L105:
	movl	$12, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L47
.L104:
	movl	$11, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L46
.L103:
	movl	$10, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L45
.L102:
	movl	$9, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L44
.L101:
	movl	$8, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L43
.L100:
	movl	$7, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L42
.L99:
	movl	$6, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L41
.L98:
	movl	$5, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L40
.L97:
	movl	$4, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L39
.L96:
	movl	$3, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L38
.L95:
	movl	$2, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L37
.L94:
	movl	$1, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L36
.L93:
	movl	$13, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L35
.L92:
	movl	$12, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L34
.L91:
	movl	$11, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L33
.L90:
	movl	$10, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L32
.L89:
	movl	$9, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L31
.L88:
	movl	$8, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L30
.L87:
	movl	$7, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L29
.L86:
	movl	$6, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L28
.L85:
	movl	$5, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L27
.L84:
	movl	$4, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L26
.L83:
	movl	$3, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L25
.L82:
	movl	$2, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L24
.L81:
	movl	$1, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L23
.L80:
	movl	$13, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
.L79:
	movl	$12, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
.L78:
	movl	$11, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L77:
	movl	$10, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
.L76:
	movl	$9, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L75:
	movl	$8, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L74:
	movl	$7, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L73:
	movl	$6, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L8
.L72:
	movl	$5, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L71:
	movl	$4, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L6
.L70:
	movl	$3, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L69:
	movl	$2, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L4
.L120:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	array_reset
	.type	array_reset, @function
array_reset:
.LFB24:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L121
	movslq	%esi, %rsi
	leaq	0(,%rsi,4), %rdx
	xorl	%esi, %esi
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L121:
	ret
	.cfi_endproc
.LFE24:
	.size	array_reset, .-array_reset
	.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"
#include "stdbool.h"

void array_reset( int*, int );
int main(){
    int n;
    char mark;
	char enter;
    int rank;
    int spade[13], hert[13], crab[13], dia[13];
    int i;
    
    array_reset( spade, 13 );
    array_reset( hert, 13 );
    array_reset( crab, 13 );
    array_reset( dia, 13 );

    scanf( "%d", &n );
    
    for( i = 0; i < n; i++ ){
        scanf( "%c%c%d", &enter, &mark, &rank );
        switch( mark ){
        case 'S':
            spade[ rank - 1 ] = 1;
            break;
        case 'H':
            hert[ rank - 1 ] = 1;
            break;
        case 'C':
            crab[ rank - 1 ] = 1;
            break;
        case 'D':
            dia[ rank - 1 ] = 1;
            break;
        default:;
        }
    }
    
    for( i = 0;i < 13;i++ ){
        if( spade[i] == 0 ){
            printf( "S %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( hert[i] == 0 ){
            printf( "H %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( crab[i] == 0 ){
            printf( "C %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( dia[i] == 0 ){
            printf( "D %d\n", i + 1 );
        }
    }
    return 0;
}

void array_reset( int* array, int size )
{
    int i;
    for( i = 0; i < size; i++ ){
        *( array + i ) = 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"
#include "stdbool.h"

void array_reset( int*, int );
int main(){
    int n;
    char mark;
	char enter;
    int rank;
    int spade[13], hert[13], crab[13], dia[13];
    int i;
    
    array_reset( spade, 13 );
    array_reset( hert, 13 );
    array_reset( crab, 13 );
    array_reset( dia, 13 );

    scanf( "%d", &n );
    
    for( i = 0; i < n; i++ ){
        scanf( "%c%c%d", &enter, &mark, &rank );
        switch( mark ){
        case 'S':
            spade[ rank - 1 ] = 1;
            break;
        case 'H':
            hert[ rank - 1 ] = 1;
            break;
        case 'C':
            crab[ rank - 1 ] = 1;
            break;
        case 'D':
            dia[ rank - 1 ] = 1;
            break;
        default:;
        }
    }
    
    for( i = 0;i < 13;i++ ){
        if( spade[i] == 0 ){
            printf( "S %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( hert[i] == 0 ){
            printf( "H %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( crab[i] == 0 ){
            printf( "C %d\n", i + 1 );
        }
    }
    for( i = 0;i < 13;i++ ){
        if( dia[i] == 0 ){
            printf( "D %d\n", i + 1 );
        }
    }
    return 0;
}

void array_reset( int* array, int size )
{
    int i;
    for( i = 0; i < size; i++ ){
        *( array + i ) = 0;
    }
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c%c%d"
.LC2:
	.string	"S %d\n"
.LC3:
	.string	"H %d\n"
.LC4:
	.string	"C %d\n"
.LC5:
	.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
	leaq	-256(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-192(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-128(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-64(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-268(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -260(%rbp)
	jmp	.L2
.L8:
	leaq	-264(%rbp), %rcx
	leaq	-270(%rbp), %rdx
	leaq	-269(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-270(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$83, %eax
	je	.L3
	cmpl	$83, %eax
	jg	.L4
	cmpl	$72, %eax
	je	.L5
	cmpl	$72, %eax
	jg	.L4
	cmpl	$67, %eax
	je	.L6
	cmpl	$68, %eax
	je	.L7
	jmp	.L4
.L3:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -256(%rbp,%rax,4)
	jmp	.L4
.L5:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -192(%rbp,%rax,4)
	jmp	.L4
.L6:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -128(%rbp,%rax,4)
	jmp	.L4
.L7:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -64(%rbp,%rax,4)
	nop
.L4:
	addl	$1, -260(%rbp)
.L2:
	movl	-268(%rbp), %eax
	cmpl	%eax, -260(%rbp)
	jl	.L8
	movl	$0, -260(%rbp)
	jmp	.L9
.L11:
	movl	-260(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	addl	$1, -260(%rbp)
.L9:
	cmpl	$12, -260(%rbp)
	jle	.L11
	movl	$0, -260(%rbp)
	jmp	.L12
.L14:
	movl	-260(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L13
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -260(%rbp)
.L12:
	cmpl	$12, -260(%rbp)
	jle	.L14
	movl	$0, -260(%rbp)
	jmp	.L15
.L17:
	movl	-260(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L16
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L16:
	addl	$1, -260(%rbp)
.L15:
	cmpl	$12, -260(%rbp)
	jle	.L17
	movl	$0, -260(%rbp)
	jmp	.L18
.L20:
	movl	-260(%rbp), %eax
	cltq
	movl	-64(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L19
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	addl	$1, -260(%rbp)
.L18:
	cmpl	$12, -260(%rbp)
	jle	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	array_reset
	.type	array_reset, @function
array_reset:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L24
.L25:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	addl	$1, -4(%rbp)
.L24:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L25
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	array_reset, .-array_reset
	.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%c%d"
.LC2:
	.string	"S %d\n"
.LC3:
	.string	"H %d\n"
.LC4:
	.string	"C %d\n"
.LC5:
	.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
	leaq	-256(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-192(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-128(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-64(%rbp), %rax
	movl	$13, %esi
	movq	%rax, %rdi
	call	array_reset
	leaq	-268(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -260(%rbp)
	jmp	.L2
.L8:
	leaq	-264(%rbp), %rcx
	leaq	-270(%rbp), %rdx
	leaq	-269(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-270(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$83, %eax
	je	.L3
	cmpl	$83, %eax
	jg	.L4
	cmpl	$72, %eax
	je	.L5
	cmpl	$72, %eax
	jg	.L4
	cmpl	$67, %eax
	je	.L6
	cmpl	$68, %eax
	je	.L7
	jmp	.L4
.L3:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -256(%rbp,%rax,4)
	jmp	.L4
.L5:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -192(%rbp,%rax,4)
	jmp	.L4
.L6:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -128(%rbp,%rax,4)
	jmp	.L4
.L7:
	movl	-264(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	$1, -64(%rbp,%rax,4)
	nop
.L4:
	addl	$1, -260(%rbp)
.L2:
	movl	-268(%rbp), %eax
	cmpl	%eax, -260(%rbp)
	jl	.L8
	movl	$0, -260(%rbp)
	jmp	.L9
.L11:
	movl	-260(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	addl	$1, -260(%rbp)
.L9:
	cmpl	$12, -260(%rbp)
	jle	.L11
	movl	$0, -260(%rbp)
	jmp	.L12
.L14:
	movl	-260(%rbp), %eax
	cltq
	movl	-192(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L13
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L13:
	addl	$1, -260(%rbp)
.L12:
	cmpl	$12, -260(%rbp)
	jle	.L14
	movl	$0, -260(%rbp)
	jmp	.L15
.L17:
	movl	-260(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L16
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L16:
	addl	$1, -260(%rbp)
.L15:
	cmpl	$12, -260(%rbp)
	jle	.L17
	movl	$0, -260(%rbp)
	jmp	.L18
.L20:
	movl	-260(%rbp), %eax
	cltq
	movl	-64(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L19
	movl	-260(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L19:
	addl	$1, -260(%rbp)
.L18:
	cmpl	$12, -260(%rbp)
	jle	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	array_reset
	.type	array_reset, @function
array_reset:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L24
.L25:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
	addl	$1, -4(%rbp)
.L24:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L25
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	array_reset, .-array_reset
	.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:
