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,x,i,j,k;
	char s[10];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&x);
		printf("Case %d:\n",i+1);
		for(j=0;j<10;j++){
			x=x*x;
			for(k=0;k<8;k++){
				s[k]=x%10+'0';
				x=x/10;
			}
			x=0;
			for(k=5;k>=2;k--){
				x*=10;
				x+=s[k]-'0';
			}
			printf("%d\n",x);
		}
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"Case %d:\n"
.LC2:
	.string	"%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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	jmp	.L2
.L9:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -28(%rbp)
	jmp	.L3
.L8:
	movl	-36(%rbp), %edx
	movl	-36(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -36(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L4
.L5:
	movl	-36(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -36(%rbp)
	addl	$1, -24(%rbp)
.L4:
	cmpl	$7, -24(%rbp)
	jle	.L5
	movl	$0, -36(%rbp)
	movl	$5, -24(%rbp)
	jmp	.L6
.L7:
	movl	-36(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -36(%rbp)
	movl	-24(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -36(%rbp)
	subl	$1, -24(%rbp)
.L6:
	cmpl	$1, -24(%rbp)
	jg	.L7
	movl	-36(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -28(%rbp)
.L3:
	cmpl	$9, -28(%rbp)
	jle	.L8
	addl	$1, -32(%rbp)
.L2:
	movl	-40(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"Case %d:\n"
.LC2:
	.string	"%d\n"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	4(%rsp), %r15
	leaq	.LC2(%rip), %rbp
	movl	$3435973837, %r14d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	%r12d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$10, %ebx
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	movl	4(%rsp), %eax
	imull	%eax, %eax
	imulq	$1374389535, %rax, %rax
	shrq	$37, %rax
	movl	%eax, %edx
	imulq	%r14, %rdx
	shrq	$35, %rdx
	movl	%edx, %ecx
	imulq	%r14, %rcx
	shrq	$35, %rcx
	movl	%ecx, %esi
	imulq	%r14, %rsi
	shrq	$35, %rsi
	movl	%esi, %edi
	movl	%esi, %r9d
	leal	(%rsi,%rsi,4), %esi
	imulq	%r14, %rdi
	addl	%esi, %esi
	shrq	$35, %rdi
	leal	(%rdi,%rdi,4), %edi
	addl	%edi, %edi
	subl	%edi, %r9d
	movl	%ecx, %edi
	leal	(%rcx,%rcx,4), %ecx
	subl	%esi, %edi
	leal	(%r9,%r9,4), %r9d
	addl	%ecx, %ecx
	leal	(%rdi,%r9,2), %esi
	leal	(%rsi,%rsi,4), %edi
	movl	%edx, %esi
	leal	(%rdx,%rdx,4), %edx
	subl	%ecx, %esi
	addl	%edx, %edx
	leal	(%rsi,%rdi,2), %ecx
	subl	%edx, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx,2), %edx
	xorl	%eax, %eax
	movl	%edx, 4(%rsp)
	call	__printf_chk@PLT
	subl	$1, %ebx
	jne	.L3
	cmpl	(%rsp), %r12d
	jl	.L4
.L2:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$24, %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
.L10:
	.cfi_restore_state
	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	"Case %d:\n"
.LC2:
	.string	"%d\n"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	4(%rsp), %r15
	leaq	.LC2(%rip), %rbp
	movl	$3435973837, %r14d
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	%r12d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$10, %ebx
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	movl	4(%rsp), %eax
	imull	%eax, %eax
	imulq	$1374389535, %rax, %rax
	shrq	$37, %rax
	movl	%eax, %edx
	imulq	%r14, %rdx
	shrq	$35, %rdx
	movl	%edx, %ecx
	imulq	%r14, %rcx
	shrq	$35, %rcx
	movl	%ecx, %esi
	imulq	%r14, %rsi
	shrq	$35, %rsi
	movl	%esi, %edi
	movl	%esi, %r9d
	leal	(%rsi,%rsi,4), %esi
	imulq	%r14, %rdi
	addl	%esi, %esi
	shrq	$35, %rdi
	leal	(%rdi,%rdi,4), %edi
	addl	%edi, %edi
	subl	%edi, %r9d
	movl	%ecx, %edi
	leal	(%rcx,%rcx,4), %ecx
	subl	%esi, %edi
	leal	(%r9,%r9,4), %r9d
	addl	%ecx, %ecx
	leal	(%rdi,%r9,2), %esi
	leal	(%rsi,%rsi,4), %edi
	movl	%edx, %esi
	leal	(%rdx,%rdx,4), %edx
	subl	%ecx, %esi
	addl	%edx, %edx
	leal	(%rsi,%rdi,2), %ecx
	subl	%edx, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx,2), %edx
	xorl	%eax, %eax
	movl	%edx, 4(%rsp)
	call	__printf_chk@PLT
	subl	$1, %ebx
	jne	.L3
	cmpl	(%rsp), %r12d
	jl	.L4
.L2:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$24, %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
.L10:
	.cfi_restore_state
	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,x,i,j,k;
	char s[10];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&x);
		printf("Case %d:\n",i+1);
		for(j=0;j<10;j++){
			x=x*x;
			for(k=0;k<8;k++){
				s[k]=x%10+'0';
				x=x/10;
			}
			x=0;
			for(k=5;k>=2;k--){
				x*=10;
				x+=s[k]-'0';
			}
			printf("%d\n",x);
		}
	}
	return 0;
}
2
210
567
 2
210
225
 2
272
225
 2
272
153
 2
499
153
 2
711
153
 2
390
153
 2
390
297
 2
191
297
 2
191
461

Case 1:
441
1944
7791
6996
9440
1136
2904
4332
7662
7062
Case 2:
3214
3297
8702
7248
5335
4622
3628
1623
6341
2082
 Case 1:
441
1944
7791
6996
9440
1136
2904
4332
7662
7062
Case 2:
506
2560
5536
6472
8867
6236
8876
7833
3558
6593
 Case 1:
739
5461
8225
6506
3280
7584
5170
7289
1295
6770
Case 2:
506
2560
5536
6472
8867
6236
8876
7833
3558
6593
 Case 1:
739
5461
8225
6506
3280
7584
5170
7289
1295
6770
Case 2:
234
547
2992
9520
6304
7404
8192
1088
1837
3745
 Case 1:
2490
2001
40
16
2
0
0
0
0
0
Case 2:
234
547
2992
9520
6304
7404
8192
1088
1837
3745
 Case 1:
5055
5530
5809
7444
4131
651
4238
9606
2752
5735
Case 2:
234
547
2992
9520
6304
7404
8192
1088
1837
3745
 Case 1:
1521
3134
8219
5519
4593
956
9139
5213
1753
730
Case 2:
234
547
2992
9520
6304
7404
8192
1088
1837
3745
 Case 1:
1521
3134
8219
5519
4593
956
9139
5213
1753
730
Case 2:
882
7779
5128
2963
7793
7308
4068
5486
961
9235
 Case 1:
364
1324
7529
6858
321
1030
609
3708
7492
1300
Case 2:
882
7779
5128
2963
7793
7308
4068
5486
961
9235
 Case 1:
364
1324
7529
6858
321
1030
609
3708
7492
1300
Case 2:
2125
5156
5843
1406
9768
4138
1230
5129
3066
4003

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,x,i,j,k;
	char s[10];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&x);
		printf("Case %d:\n",i+1);
		for(j=0;j<10;j++){
			x=x*x;
			for(k=0;k<8;k++){
				s[k]=x%10+'0';
				x=x/10;
			}
			x=0;
			for(k=5;k>=2;k--){
				x*=10;
				x+=s[k]-'0';
			}
			printf("%d\n",x);
		}
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"Case %d:\n"
.LC2:
	.string	"%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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	jmp	.L2
.L9:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -28(%rbp)
	jmp	.L3
.L8:
	movl	-36(%rbp), %edx
	movl	-36(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -36(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L4
.L5:
	movl	-36(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -36(%rbp)
	addl	$1, -24(%rbp)
.L4:
	cmpl	$7, -24(%rbp)
	jle	.L5
	movl	$0, -36(%rbp)
	movl	$5, -24(%rbp)
	jmp	.L6
.L7:
	movl	-36(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -36(%rbp)
	movl	-24(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -36(%rbp)
	subl	$1, -24(%rbp)
.L6:
	cmpl	$1, -24(%rbp)
	jg	.L7
	movl	-36(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -28(%rbp)
.L3:
	cmpl	$9, -28(%rbp)
	jle	.L8
	addl	$1, -32(%rbp)
.L2:
	movl	-40(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"Case %d:\n"
.LC2:
	.string	"%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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	jmp	.L2
.L9:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -28(%rbp)
	jmp	.L3
.L8:
	movl	-36(%rbp), %edx
	movl	-36(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -36(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L4
.L5:
	movl	-36(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	cltq
	movb	%dl, -18(%rbp,%rax)
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -36(%rbp)
	addl	$1, -24(%rbp)
.L4:
	cmpl	$7, -24(%rbp)
	jle	.L5
	movl	$0, -36(%rbp)
	movl	$5, -24(%rbp)
	jmp	.L6
.L7:
	movl	-36(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -36(%rbp)
	movl	-24(%rbp), %eax
	cltq
	movzbl	-18(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-48(%rax), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -36(%rbp)
	subl	$1, -24(%rbp)
.L6:
	cmpl	$1, -24(%rbp)
	jg	.L7
	movl	-36(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -28(%rbp)
.L3:
	cmpl	$9, -28(%rbp)
	jle	.L8
	addl	$1, -32(%rbp)
.L2:
	movl	-40(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
