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<string.h>


int main(){
    int n,i,j;
    char mozia[100],mozib[100];
    int numa[100],numb[100];
    int flag=0;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf(" %c%d",&mozia[i],&numa[i]);
        strcpy(&mozib[i],&mozia[i]);
        numb[i]=numa[i];
    }
    //Bubble
    char tempa;
    int tempb;
    for(i=0;i<n;i++){
        for(j=0;j<n;j++){
            if(numa[j-1]>numa[j]){
                tempa=mozia[j];
                mozia[j]=mozia[j-1];
                mozia[j-1]=tempa;
                tempb=numa[j];
                numa[j]=numa[j-1];
                numa[j-1]=tempb;
            }
        }
    }
    for(i=0;i<n;i++){
        if(i!=0)printf(" ");
        printf("%c%d",mozia[i],numa[i]);
    }
    printf("\nStable\n");
    
    //Select
    int minj;
    for(i=0;i<n;i++){
        minj=i;
        for(j=i;j<n;j++){
            if(numb[j]<numb[minj])minj=j;
        }
        tempa=mozib[i];
        mozib[i]=mozib[minj];
        mozib[minj]=tempa;
        tempb=numb[i];
        numb[i]=numb[minj];
        numb[minj]=tempb;
    }
    for(i=0;i<n;i++){
        if(i!=0)printf(" ");
        printf("%c%d",mozib[i],numb[i]);
    }
    printf("\n");
    for(i=0;i<n;i++){
        if(mozia[i]!=mozib[i])flag=1;
    }
    if(flag==1)printf("Not stable\n");
    else printf("Stable\n");
    
    return 0;
}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %c%d"
.LC2:
	.string	"%c%d"
.LC3:
	.string	"\nStable"
.LC4:
	.string	"Not stable"
.LC5:
	.string	"Stable"
	.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	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1036(%rbp)
	leaq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1044(%rbp)
	jmp	.L2
.L3:
	leaq	-1024(%rbp), %rdx
	movl	-1044(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-224(%rbp), %rcx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-224(%rbp), %rdx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rax, %rdx
	leaq	-112(%rbp), %rcx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-1044(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movl	%edx, -624(%rbp,%rax,4)
	addl	$1, -1044(%rbp)
.L2:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L3
	movl	$0, -1044(%rbp)
	jmp	.L4
.L8:
	movl	$0, -1040(%rbp)
	jmp	.L5
.L7:
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1040(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	-1040(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	movb	%al, -1049(%rbp)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-1040(%rbp), %eax
	cltq
	movb	%dl, -224(%rbp,%rax)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-1049(%rbp), %edx
	movb	%dl, -224(%rbp,%rax)
	movl	-1040(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %eax
	movl	%eax, -1028(%rbp)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1040(%rbp), %eax
	cltq
	movl	%edx, -1024(%rbp,%rax,4)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1028(%rbp), %edx
	movl	%edx, -1024(%rbp,%rax,4)
.L6:
	addl	$1, -1040(%rbp)
.L5:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1040(%rbp)
	jl	.L7
	addl	$1, -1044(%rbp)
.L4:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L8
	movl	$0, -1044(%rbp)
	jmp	.L9
.L11:
	cmpl	$0, -1044(%rbp)
	je	.L10
	movl	$32, %edi
	call	putchar@PLT
.L10:
	movl	-1044(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1044(%rbp)
.L9:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L11
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -1044(%rbp)
	jmp	.L12
.L16:
	movl	-1044(%rbp), %eax
	movl	%eax, -1032(%rbp)
	movl	-1044(%rbp), %eax
	movl	%eax, -1040(%rbp)
	jmp	.L13
.L15:
	movl	-1040(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %edx
	movl	-1032(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L14
	movl	-1040(%rbp), %eax
	movl	%eax, -1032(%rbp)
.L14:
	addl	$1, -1040(%rbp)
.L13:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1040(%rbp)
	jl	.L15
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -1049(%rbp)
	movl	-1032(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-1044(%rbp), %eax
	cltq
	movb	%dl, -112(%rbp,%rax)
	movl	-1032(%rbp), %eax
	cltq
	movzbl	-1049(%rbp), %edx
	movb	%dl, -112(%rbp,%rax)
	movl	-1044(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %eax
	movl	%eax, -1028(%rbp)
	movl	-1032(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movl	%edx, -624(%rbp,%rax,4)
	movl	-1032(%rbp), %eax
	cltq
	movl	-1028(%rbp), %edx
	movl	%edx, -624(%rbp,%rax,4)
	addl	$1, -1044(%rbp)
.L12:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L16
	movl	$0, -1044(%rbp)
	jmp	.L17
.L19:
	cmpl	$0, -1044(%rbp)
	je	.L18
	movl	$32, %edi
	call	putchar@PLT
.L18:
	movl	-1044(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1044(%rbp)
.L17:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L19
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, -1044(%rbp)
	jmp	.L20
.L22:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L21
	movl	$1, -1036(%rbp)
.L21:
	addl	$1, -1044(%rbp)
.L20:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L22
	cmpl	$1, -1036(%rbp)
	jne	.L23
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L23:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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	"\nStable"
.LC3:
	.string	"%c%d"
.LC4:
	.string	"Not stable"
.LC5:
	.string	"Stable"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	leaq	32(%rsp), %rbp
	xorl	%r12d, %r12d
	leaq	832(%rsp), %rbx
	movq	%rbp, %r15
	leaq	944(%rsp), %r13
	leaq	432(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%rbx,%r12), %rsi
	movq	%r15, %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsi, (%rsp)
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	leaq	0(%r13,%r12), %rdi
	call	strcpy@PLT
	movl	-4(%r15), %eax
	movl	28(%rsp), %r8d
	movl	%eax, (%r14,%r12,4)
	addq	$1, %r12
	cmpl	%r12d, %r8d
	jg	.L3
	testl	%r8d, %r8d
	jle	.L11
	leal	-1(%r8), %eax
	xorl	%r9d, %r9d
	leaq	0(%rbp,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rdx
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rdx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %eax
	movd	%xmm2, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %esi
	jge	.L4
	movzbl	(%rcx), %eax
	movzbl	-1(%rcx), %esi
	movb	%al, -1(%rcx)
	movb	%sil, (%rcx)
	movq	%xmm1, (%rdx)
.L4:
	addq	$4, %rdx
	addq	$1, %rcx
	cmpq	%rdi, %rdx
	jne	.L5
	addl	$1, %r9d
	cmpl	%r9d, %r8d
	jne	.L6
	xorl	%r12d, %r12d
	leaq	.LC3(%rip), %r15
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$32, %edi
	call	putchar@PLT
.L7:
	movl	0(%rbp,%r12,4), %ecx
	movsbl	(%rbx,%r12), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	addq	$1, %r12
	call	__printf_chk@PLT
	cmpl	%r12d, 28(%rsp)
	jg	.L10
.L11:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	movl	28(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L9
	movslq	%r8d, %r10
	xorl	%edi, %edi
	leaq	944(%rsp), %r13
	leaq	432(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%r14,%rdi,4), %r9d
	movslq	%edi, %rsi
	movq	%rdi, %rax
	movl	%r9d, %ecx
	.p2align 4,,10
	.p2align 3
.L15:
	movl	(%r14,%rax,4), %edx
	cmpl	%edx, %ecx
	jle	.L14
	movl	%edx, %ecx
	movslq	%eax, %rsi
.L14:
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L15
	movzbl	944(%rsp,%rsi), %edx
	movzbl	0(%r13,%rdi), %eax
	movl	%ecx, (%r14,%rdi,4)
	movl	%r9d, 432(%rsp,%rsi,4)
	movb	%dl, 0(%r13,%rdi)
	addq	$1, %rdi
	movb	%al, 944(%rsp,%rsi)
	cmpq	%r10, %rdi
	jne	.L16
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r15
.L19:
	testq	%rbx, %rbx
	jne	.L32
	movl	(%r14,%rbx,4), %ecx
	movsbl	0(%r13,%rbx), %edx
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	$1, %edi
	movl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	$1, 28(%rsp)
	jle	.L9
.L32:
	movl	$32, %edi
	call	putchar@PLT
	movl	(%r14,%rbx,4), %ecx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movsbl	0(%r13,%rbx), %edx
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 28(%rsp)
	jg	.L19
.L9:
	movl	$10, %edi
	call	putchar@PLT
	movslq	28(%rsp), %rcx
	testl	%ecx, %ecx
	jle	.L13
	xorl	%eax, %eax
	xorl	%edx, %edx
	leaq	832(%rsp), %rbx
	movl	$1, %esi
	leaq	944(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L21:
	movzbl	(%rbx,%rax), %edi
	cmpb	%dil, 0(%r13,%rax)
	cmovne	%esi, %edx
	addq	$1, %rax
	cmpq	%rax, %rcx
	jne	.L21
	cmpl	$1, %edx
	je	.L35
.L13:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
.L22:
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$1064, %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
.L35:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L22
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %c%d"
.LC2:
	.string	"\nStable"
.LC3:
	.string	"%c%d"
.LC4:
	.string	"Not stable"
.LC5:
	.string	"Stable"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$1064, %rsp
	.cfi_def_cfa_offset 1120
	movq	%fs:40, %rax
	movq	%rax, 1048(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	leaq	32(%rsp), %rbp
	xorl	%r12d, %r12d
	leaq	832(%rsp), %rbx
	movq	%rbp, %r15
	leaq	944(%rsp), %r13
	leaq	432(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%rbx,%r12), %rsi
	movq	%r15, %rdx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsi, (%rsp)
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	leaq	0(%r13,%r12), %rdi
	call	strcpy@PLT
	movl	-4(%r15), %eax
	movl	28(%rsp), %r8d
	movl	%eax, (%r14,%r12,4)
	addq	$1, %r12
	cmpl	%r12d, %r8d
	jg	.L3
	testl	%r8d, %r8d
	jle	.L11
	leal	-1(%r8), %eax
	xorl	%r9d, %r9d
	leaq	0(%rbp,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movq	8(%rsp), %rdx
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rdx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %eax
	movd	%xmm2, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %esi
	jge	.L4
	movzbl	(%rcx), %eax
	movzbl	-1(%rcx), %esi
	movb	%al, -1(%rcx)
	movb	%sil, (%rcx)
	movq	%xmm1, (%rdx)
.L4:
	addq	$4, %rdx
	addq	$1, %rcx
	cmpq	%rdi, %rdx
	jne	.L5
	addl	$1, %r9d
	cmpl	%r9d, %r8d
	jne	.L6
	xorl	%r12d, %r12d
	leaq	.LC3(%rip), %r15
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$32, %edi
	call	putchar@PLT
.L7:
	movl	0(%rbp,%r12,4), %ecx
	movsbl	(%rbx,%r12), %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	addq	$1, %r12
	call	__printf_chk@PLT
	cmpl	%r12d, 28(%rsp)
	jg	.L10
.L11:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	movl	28(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L9
	movslq	%r8d, %r10
	xorl	%edi, %edi
	leaq	944(%rsp), %r13
	leaq	432(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%r14,%rdi,4), %r9d
	movslq	%edi, %rsi
	movq	%rdi, %rax
	movl	%r9d, %ecx
	.p2align 4,,10
	.p2align 3
.L15:
	movl	(%r14,%rax,4), %edx
	cmpl	%edx, %ecx
	jle	.L14
	movl	%edx, %ecx
	movslq	%eax, %rsi
.L14:
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L15
	movzbl	944(%rsp,%rsi), %edx
	movzbl	0(%r13,%rdi), %eax
	movl	%ecx, (%r14,%rdi,4)
	movl	%r9d, 432(%rsp,%rsi,4)
	movb	%dl, 0(%r13,%rdi)
	addq	$1, %rdi
	movb	%al, 944(%rsp,%rsi)
	cmpq	%r10, %rdi
	jne	.L16
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r15
.L19:
	testq	%rbx, %rbx
	jne	.L32
	movl	(%r14,%rbx,4), %ecx
	movsbl	0(%r13,%rbx), %edx
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	$1, %edi
	movl	$1, %ebx
	call	__printf_chk@PLT
	cmpl	$1, 28(%rsp)
	jle	.L9
.L32:
	movl	$32, %edi
	call	putchar@PLT
	movl	(%r14,%rbx,4), %ecx
	movq	%r15, %rsi
	xorl	%eax, %eax
	movsbl	0(%r13,%rbx), %edx
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 28(%rsp)
	jg	.L19
.L9:
	movl	$10, %edi
	call	putchar@PLT
	movslq	28(%rsp), %rcx
	testl	%ecx, %ecx
	jle	.L13
	xorl	%eax, %eax
	xorl	%edx, %edx
	leaq	832(%rsp), %rbx
	movl	$1, %esi
	leaq	944(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L21:
	movzbl	(%rbx,%rax), %edi
	cmpb	%dil, 0(%r13,%rax)
	cmovne	%esi, %edx
	addq	$1, %rax
	cmpq	%rax, %rcx
	jne	.L21
	cmpl	$1, %edx
	je	.L35
.L13:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
.L22:
	movq	1048(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$1064, %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
.L35:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L22
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#include<string.h>


int main(){
    int n,i,j;
    char mozia[100],mozib[100];
    int numa[100],numb[100];
    int flag=0;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf(" %c%d",&mozia[i],&numa[i]);
        strcpy(&mozib[i],&mozia[i]);
        numb[i]=numa[i];
    }
    //Bubble
    char tempa;
    int tempb;
    for(i=0;i<n;i++){
        for(j=0;j<n;j++){
            if(numa[j-1]>numa[j]){
                tempa=mozia[j];
                mozia[j]=mozia[j-1];
                mozia[j-1]=tempa;
                tempb=numa[j];
                numa[j]=numa[j-1];
                numa[j-1]=tempb;
            }
        }
    }
    for(i=0;i<n;i++){
        if(i!=0)printf(" ");
        printf("%c%d",mozia[i],numa[i]);
    }
    printf("\nStable\n");
    
    //Select
    int minj;
    for(i=0;i<n;i++){
        minj=i;
        for(j=i;j<n;j++){
            if(numb[j]<numb[minj])minj=j;
        }
        tempa=mozib[i];
        mozib[i]=mozib[minj];
        mozib[minj]=tempa;
        tempb=numb[i];
        numb[i]=numb[minj];
        numb[minj]=tempb;
    }
    for(i=0;i<n;i++){
        if(i!=0)printf(" ");
        printf("%c%d",mozib[i],numb[i]);
    }
    printf("\n");
    for(i=0;i<n;i++){
        if(mozia[i]!=mozib[i])flag=1;
    }
    if(flag==1)printf("Not stable\n");
    else printf("Stable\n");
    
    return 0;
}



5
H4 B9 S4 D2 C3
 5
H4 C9 S4 D2 C2
 5
H4 B9 S4 E2 C3
 5
I4 C9 S4 D2 C2
 5
H3 B9 S4 E2 C3
 5
H3 B9 S4 E2 B3
 5
H3 B9 S4 E3 B3
 5
H3 A9 S4 E3 B3
 5
H4 C9 S4 C2 C3
 5
H4 B9 T4 D2 C3

H2 C3 4 S4 B9
Stable
D2 C3 S4 H4 B9
Not stable
 D2 C2 4 S4 C9
Stable
D2 C2 S4 H4 C9
Not stable
 H2 C3 4 S4 B9
Stable
E2 C3 S4 H4 B9
Not stable
 D2 C2 4 S4 C9
Stable
D2 C2 S4 I4 C9
Not stable
 E2 3 C3 S4 B9
Stable
E2 H3 C3 S4 B9
Not stable
 E2 3 B3 S4 B9
Stable
E2 H3 B3 S4 B9
Not stable
 3 E3 B3 S4 B9
Stable
H3 E3 B3 S4 B9
Not stable
 3 E3 B3 S4 A9
Stable
H3 E3 B3 S4 A9
Not stable
 H2 C3 4 S4 C9
Stable
C2 C3 S4 H4 C9
Not stable
 H2 C3 4 T4 B9
Stable
D2 C3 T4 H4 B9
Not stable

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<string.h>


int main(){
    int n,i,j;
    char mozia[100],mozib[100];
    int numa[100],numb[100];
    int flag=0;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf(" %c%d",&mozia[i],&numa[i]);
        strcpy(&mozib[i],&mozia[i]);
        numb[i]=numa[i];
    }
    //Bubble
    char tempa;
    int tempb;
    for(i=0;i<n;i++){
        for(j=0;j<n;j++){
            if(numa[j-1]>numa[j]){
                tempa=mozia[j];
                mozia[j]=mozia[j-1];
                mozia[j-1]=tempa;
                tempb=numa[j];
                numa[j]=numa[j-1];
                numa[j-1]=tempb;
            }
        }
    }
    for(i=0;i<n;i++){
        if(i!=0)printf(" ");
        printf("%c%d",mozia[i],numa[i]);
    }
    printf("\nStable\n");
    
    //Select
    int minj;
    for(i=0;i<n;i++){
        minj=i;
        for(j=i;j<n;j++){
            if(numb[j]<numb[minj])minj=j;
        }
        tempa=mozib[i];
        mozib[i]=mozib[minj];
        mozib[minj]=tempa;
        tempb=numb[i];
        numb[i]=numb[minj];
        numb[minj]=tempb;
    }
    for(i=0;i<n;i++){
        if(i!=0)printf(" ");
        printf("%c%d",mozib[i],numb[i]);
    }
    printf("\n");
    for(i=0;i<n;i++){
        if(mozia[i]!=mozib[i])flag=1;
    }
    if(flag==1)printf("Not stable\n");
    else printf("Stable\n");
    
    return 0;
}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %c%d"
.LC2:
	.string	"%c%d"
.LC3:
	.string	"\nStable"
.LC4:
	.string	"Not stable"
.LC5:
	.string	"Stable"
	.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	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1036(%rbp)
	leaq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1044(%rbp)
	jmp	.L2
.L3:
	leaq	-1024(%rbp), %rdx
	movl	-1044(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-224(%rbp), %rcx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-224(%rbp), %rdx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rax, %rdx
	leaq	-112(%rbp), %rcx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-1044(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movl	%edx, -624(%rbp,%rax,4)
	addl	$1, -1044(%rbp)
.L2:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L3
	movl	$0, -1044(%rbp)
	jmp	.L4
.L8:
	movl	$0, -1040(%rbp)
	jmp	.L5
.L7:
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1040(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	-1040(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	movb	%al, -1049(%rbp)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-1040(%rbp), %eax
	cltq
	movb	%dl, -224(%rbp,%rax)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-1049(%rbp), %edx
	movb	%dl, -224(%rbp,%rax)
	movl	-1040(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %eax
	movl	%eax, -1028(%rbp)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1040(%rbp), %eax
	cltq
	movl	%edx, -1024(%rbp,%rax,4)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1028(%rbp), %edx
	movl	%edx, -1024(%rbp,%rax,4)
.L6:
	addl	$1, -1040(%rbp)
.L5:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1040(%rbp)
	jl	.L7
	addl	$1, -1044(%rbp)
.L4:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L8
	movl	$0, -1044(%rbp)
	jmp	.L9
.L11:
	cmpl	$0, -1044(%rbp)
	je	.L10
	movl	$32, %edi
	call	putchar@PLT
.L10:
	movl	-1044(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1044(%rbp)
.L9:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L11
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -1044(%rbp)
	jmp	.L12
.L16:
	movl	-1044(%rbp), %eax
	movl	%eax, -1032(%rbp)
	movl	-1044(%rbp), %eax
	movl	%eax, -1040(%rbp)
	jmp	.L13
.L15:
	movl	-1040(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %edx
	movl	-1032(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L14
	movl	-1040(%rbp), %eax
	movl	%eax, -1032(%rbp)
.L14:
	addl	$1, -1040(%rbp)
.L13:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1040(%rbp)
	jl	.L15
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -1049(%rbp)
	movl	-1032(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-1044(%rbp), %eax
	cltq
	movb	%dl, -112(%rbp,%rax)
	movl	-1032(%rbp), %eax
	cltq
	movzbl	-1049(%rbp), %edx
	movb	%dl, -112(%rbp,%rax)
	movl	-1044(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %eax
	movl	%eax, -1028(%rbp)
	movl	-1032(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movl	%edx, -624(%rbp,%rax,4)
	movl	-1032(%rbp), %eax
	cltq
	movl	-1028(%rbp), %edx
	movl	%edx, -624(%rbp,%rax,4)
	addl	$1, -1044(%rbp)
.L12:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L16
	movl	$0, -1044(%rbp)
	jmp	.L17
.L19:
	cmpl	$0, -1044(%rbp)
	je	.L18
	movl	$32, %edi
	call	putchar@PLT
.L18:
	movl	-1044(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1044(%rbp)
.L17:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L19
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, -1044(%rbp)
	jmp	.L20
.L22:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L21
	movl	$1, -1036(%rbp)
.L21:
	addl	$1, -1044(%rbp)
.L20:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L22
	cmpl	$1, -1036(%rbp)
	jne	.L23
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L23:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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"
.LC3:
	.string	"\nStable"
.LC4:
	.string	"Not stable"
.LC5:
	.string	"Stable"
	.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	$1056, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1036(%rbp)
	leaq	-1048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1044(%rbp)
	jmp	.L2
.L3:
	leaq	-1024(%rbp), %rdx
	movl	-1044(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-224(%rbp), %rcx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-224(%rbp), %rdx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rax, %rdx
	leaq	-112(%rbp), %rcx
	movl	-1044(%rbp), %eax
	cltq
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movl	-1044(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movl	%edx, -624(%rbp,%rax,4)
	addl	$1, -1044(%rbp)
.L2:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L3
	movl	$0, -1044(%rbp)
	jmp	.L4
.L8:
	movl	$0, -1040(%rbp)
	jmp	.L5
.L7:
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1040(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	-1040(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	movb	%al, -1049(%rbp)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-1040(%rbp), %eax
	cltq
	movb	%dl, -224(%rbp,%rax)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-1049(%rbp), %edx
	movb	%dl, -224(%rbp,%rax)
	movl	-1040(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %eax
	movl	%eax, -1028(%rbp)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1040(%rbp), %eax
	cltq
	movl	%edx, -1024(%rbp,%rax,4)
	movl	-1040(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-1028(%rbp), %edx
	movl	%edx, -1024(%rbp,%rax,4)
.L6:
	addl	$1, -1040(%rbp)
.L5:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1040(%rbp)
	jl	.L7
	addl	$1, -1044(%rbp)
.L4:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L8
	movl	$0, -1044(%rbp)
	jmp	.L9
.L11:
	cmpl	$0, -1044(%rbp)
	je	.L10
	movl	$32, %edi
	call	putchar@PLT
.L10:
	movl	-1044(%rbp), %eax
	cltq
	movl	-1024(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1044(%rbp)
.L9:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L11
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -1044(%rbp)
	jmp	.L12
.L16:
	movl	-1044(%rbp), %eax
	movl	%eax, -1032(%rbp)
	movl	-1044(%rbp), %eax
	movl	%eax, -1040(%rbp)
	jmp	.L13
.L15:
	movl	-1040(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %edx
	movl	-1032(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L14
	movl	-1040(%rbp), %eax
	movl	%eax, -1032(%rbp)
.L14:
	addl	$1, -1040(%rbp)
.L13:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1040(%rbp)
	jl	.L15
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -1049(%rbp)
	movl	-1032(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-1044(%rbp), %eax
	cltq
	movb	%dl, -112(%rbp,%rax)
	movl	-1032(%rbp), %eax
	cltq
	movzbl	-1049(%rbp), %edx
	movb	%dl, -112(%rbp,%rax)
	movl	-1044(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %eax
	movl	%eax, -1028(%rbp)
	movl	-1032(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movl	%edx, -624(%rbp,%rax,4)
	movl	-1032(%rbp), %eax
	cltq
	movl	-1028(%rbp), %edx
	movl	%edx, -624(%rbp,%rax,4)
	addl	$1, -1044(%rbp)
.L12:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L16
	movl	$0, -1044(%rbp)
	jmp	.L17
.L19:
	cmpl	$0, -1044(%rbp)
	je	.L18
	movl	$32, %edi
	call	putchar@PLT
.L18:
	movl	-1044(%rbp), %eax
	cltq
	movl	-624(%rbp,%rax,4), %edx
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -1044(%rbp)
.L17:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L19
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, -1044(%rbp)
	jmp	.L20
.L22:
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-1044(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L21
	movl	$1, -1036(%rbp)
.L21:
	addl	$1, -1044(%rbp)
.L20:
	movl	-1048(%rbp), %eax
	cmpl	%eax, -1044(%rbp)
	jl	.L22
	cmpl	$1, -1036(%rbp)
	jne	.L23
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L23:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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:
