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 i;
	int tetra[16] = {0};
	int digit;
	
	while (scanf("%d", &n)){
		if (n == -1){
			break;
		}
		digit = 0;
		if (n == 0){
			printf("%d", n);
		}
		while (n > 0){
			tetra[digit] = n % 4;
			n /= 4;
			digit++;
		}
		for (i = digit - 1; i >= 0 ; i--){
			printf("%d", tetra[i]);
		}
		printf("\n");
	}
	
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	jmp	.L2
.L10:
	movl	-92(%rbp), %eax
	cmpl	$-1, %eax
	je	.L13
	movl	$0, -84(%rbp)
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.L6
	movl	-92(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L7:
	movl	-92(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-84(%rbp), %eax
	cltq
	movl	%edx, -80(%rbp,%rax,4)
	movl	-92(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, -92(%rbp)
	addl	$1, -84(%rbp)
.L6:
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jg	.L7
	movl	-84(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -88(%rbp)
	jmp	.L8
.L9:
	movl	-88(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -88(%rbp)
.L8:
	cmpl	$0, -88(%rbp)
	jns	.L9
	movl	$10, %edi
	call	putchar@PLT
.L2:
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jne	.L10
	jmp	.L4
.L13:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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"
	.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
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$96, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r12
	movaps	%xmm0, 16(%rsp)
	leaq	16(%rsp), %r13
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L3
	movl	12(%rsp), %eax
	cmpl	$-1, %eax
	je	.L3
	testl	%eax, %eax
	je	.L35
.L4:
	testl	%eax, %eax
	jle	.L8
	movl	%eax, %edx
	andl	$3, %edx
	movl	%edx, 16(%rsp)
	movl	%eax, %edx
	sarl	$2, %edx
	je	.L6
	andl	$3, %edx
	movl	%edx, 20(%rsp)
	movl	%eax, %edx
	sarl	$4, %edx
	je	.L11
	andl	$3, %edx
	movl	%edx, 24(%rsp)
	movl	%eax, %edx
	sarl	$6, %edx
	je	.L12
	andl	$3, %edx
	movl	%edx, 28(%rsp)
	movl	%eax, %edx
	sarl	$8, %edx
	je	.L13
	andl	$3, %edx
	movl	%edx, 32(%rsp)
	movl	%eax, %edx
	sarl	$10, %edx
	je	.L14
	andl	$3, %edx
	movl	%edx, 36(%rsp)
	movl	%eax, %edx
	sarl	$12, %edx
	je	.L15
	andl	$3, %edx
	movl	%edx, 40(%rsp)
	movl	%eax, %edx
	sarl	$14, %edx
	je	.L16
	andl	$3, %edx
	movl	%edx, 44(%rsp)
	movl	%eax, %edx
	sarl	$16, %edx
	je	.L17
	andl	$3, %edx
	movl	%edx, 48(%rsp)
	movl	%eax, %edx
	sarl	$18, %edx
	je	.L18
	andl	$3, %edx
	movl	%edx, 52(%rsp)
	movl	%eax, %edx
	sarl	$20, %edx
	je	.L19
	andl	$3, %edx
	movl	%edx, 56(%rsp)
	movl	%eax, %edx
	sarl	$22, %edx
	je	.L20
	andl	$3, %edx
	movl	%edx, 60(%rsp)
	movl	%eax, %edx
	sarl	$24, %edx
	je	.L21
	andl	$3, %edx
	movl	%edx, 64(%rsp)
	movl	%eax, %edx
	sarl	$26, %edx
	je	.L22
	andl	$3, %edx
	movl	%edx, 68(%rsp)
	movl	%eax, %edx
	sarl	$28, %edx
	je	.L23
	andl	$3, %edx
	sarl	$30, %eax
	movl	%edx, 72(%rsp)
	cmpl	$1, %eax
	jne	.L24
	movl	$1, 76(%rsp)
	movl	$15, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$0, 12(%rsp)
	movslq	%edx, %rdx
	movq	%r12, %r14
	leaq	0(%r13,%rdx,4), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r14, %rbx
	jne	.L7
.L8:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L35:
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$96, %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
.L11:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L6
.L12:
	movl	$2, %edx
	jmp	.L6
.L13:
	movl	$3, %edx
	jmp	.L6
.L14:
	movl	$4, %edx
	jmp	.L6
.L15:
	movl	$5, %edx
	jmp	.L6
.L16:
	movl	$6, %edx
	jmp	.L6
.L17:
	movl	$7, %edx
	jmp	.L6
.L18:
	movl	$8, %edx
	jmp	.L6
.L19:
	movl	$9, %edx
	jmp	.L6
.L20:
	movl	$10, %edx
	jmp	.L6
.L21:
	movl	$11, %edx
	jmp	.L6
.L22:
	movl	$12, %edx
	jmp	.L6
.L23:
	movl	$13, %edx
	jmp	.L6
.L24:
	movl	$14, %edx
	jmp	.L6
.L36:
	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"
	.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
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$96, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %r12
	movaps	%xmm0, 16(%rsp)
	leaq	16(%rsp), %r13
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L3
	movl	12(%rsp), %eax
	cmpl	$-1, %eax
	je	.L3
	testl	%eax, %eax
	je	.L35
.L4:
	testl	%eax, %eax
	jle	.L8
	movl	%eax, %edx
	andl	$3, %edx
	movl	%edx, 16(%rsp)
	movl	%eax, %edx
	sarl	$2, %edx
	je	.L6
	andl	$3, %edx
	movl	%edx, 20(%rsp)
	movl	%eax, %edx
	sarl	$4, %edx
	je	.L11
	andl	$3, %edx
	movl	%edx, 24(%rsp)
	movl	%eax, %edx
	sarl	$6, %edx
	je	.L12
	andl	$3, %edx
	movl	%edx, 28(%rsp)
	movl	%eax, %edx
	sarl	$8, %edx
	je	.L13
	andl	$3, %edx
	movl	%edx, 32(%rsp)
	movl	%eax, %edx
	sarl	$10, %edx
	je	.L14
	andl	$3, %edx
	movl	%edx, 36(%rsp)
	movl	%eax, %edx
	sarl	$12, %edx
	je	.L15
	andl	$3, %edx
	movl	%edx, 40(%rsp)
	movl	%eax, %edx
	sarl	$14, %edx
	je	.L16
	andl	$3, %edx
	movl	%edx, 44(%rsp)
	movl	%eax, %edx
	sarl	$16, %edx
	je	.L17
	andl	$3, %edx
	movl	%edx, 48(%rsp)
	movl	%eax, %edx
	sarl	$18, %edx
	je	.L18
	andl	$3, %edx
	movl	%edx, 52(%rsp)
	movl	%eax, %edx
	sarl	$20, %edx
	je	.L19
	andl	$3, %edx
	movl	%edx, 56(%rsp)
	movl	%eax, %edx
	sarl	$22, %edx
	je	.L20
	andl	$3, %edx
	movl	%edx, 60(%rsp)
	movl	%eax, %edx
	sarl	$24, %edx
	je	.L21
	andl	$3, %edx
	movl	%edx, 64(%rsp)
	movl	%eax, %edx
	sarl	$26, %edx
	je	.L22
	andl	$3, %edx
	movl	%edx, 68(%rsp)
	movl	%eax, %edx
	sarl	$28, %edx
	je	.L23
	andl	$3, %edx
	sarl	$30, %eax
	movl	%edx, 72(%rsp)
	cmpl	$1, %eax
	jne	.L24
	movl	$1, 76(%rsp)
	movl	$15, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$0, 12(%rsp)
	movslq	%edx, %rdx
	movq	%r12, %r14
	leaq	0(%r13,%rdx,4), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%r14, %rbx
	jne	.L7
.L8:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L35:
	xorl	%edx, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$96, %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
.L11:
	.cfi_restore_state
	movl	$1, %edx
	jmp	.L6
.L12:
	movl	$2, %edx
	jmp	.L6
.L13:
	movl	$3, %edx
	jmp	.L6
.L14:
	movl	$4, %edx
	jmp	.L6
.L15:
	movl	$5, %edx
	jmp	.L6
.L16:
	movl	$6, %edx
	jmp	.L6
.L17:
	movl	$7, %edx
	jmp	.L6
.L18:
	movl	$8, %edx
	jmp	.L6
.L19:
	movl	$9, %edx
	jmp	.L6
.L20:
	movl	$10, %edx
	jmp	.L6
.L21:
	movl	$11, %edx
	jmp	.L6
.L22:
	movl	$12, %edx
	jmp	.L6
.L23:
	movl	$13, %edx
	jmp	.L6
.L24:
	movl	$14, %edx
	jmp	.L6
.L36:
	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 i;
	int tetra[16] = {0};
	int digit;
	
	while (scanf("%d", &n)){
		if (n == -1){
			break;
		}
		digit = 0;
		if (n == 0){
			printf("%d", n);
		}
		while (n > 0){
			tetra[digit] = n % 4;
			n /= 4;
			digit++;
		}
		for (i = digit - 1; i >= 0 ; i--){
			printf("%d", tetra[i]);
		}
		printf("\n");
	}
	
	return (0);
}
7
4
0
12
10
10010
-1
 7
4
0
12
4
10000
-1
 7
4
0
13
10
10010
-1
 7
4
0
12
6
10000
-1
 7
4
0
24
10
10010
-1
 7
4
1
12
6
10000
-1
 7
4
1
24
10
10010
-1
 7
6
1
12
6
10000
-1
 7
1
1
24
10
10010
-1
 7
6
1
12
11
10000
-1

13
10
0
30
22
2130122
 13
10
0
30
10
2130100
 13
10
0
31
22
2130122
 13
10
0
30
12
2130100
 13
10
0
120
22
2130122
 13
10
1
30
12
2130100
 13
10
1
120
22
2130122
 13
12
1
30
12
2130100
 13
1
1
120
22
2130122
 13
12
1
30
23
2130100

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 i;
	int tetra[16] = {0};
	int digit;
	
	while (scanf("%d", &n)){
		if (n == -1){
			break;
		}
		digit = 0;
		if (n == 0){
			printf("%d", n);
		}
		while (n > 0){
			tetra[digit] = n % 4;
			n /= 4;
			digit++;
		}
		for (i = digit - 1; i >= 0 ; i--){
			printf("%d", tetra[i]);
		}
		printf("\n");
	}
	
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	jmp	.L2
.L10:
	movl	-92(%rbp), %eax
	cmpl	$-1, %eax
	je	.L13
	movl	$0, -84(%rbp)
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.L6
	movl	-92(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L7:
	movl	-92(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-84(%rbp), %eax
	cltq
	movl	%edx, -80(%rbp,%rax,4)
	movl	-92(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, -92(%rbp)
	addl	$1, -84(%rbp)
.L6:
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jg	.L7
	movl	-84(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -88(%rbp)
	jmp	.L8
.L9:
	movl	-88(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -88(%rbp)
.L8:
	cmpl	$0, -88(%rbp)
	jns	.L9
	movl	$10, %edi
	call	putchar@PLT
.L2:
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jne	.L10
	jmp	.L4
.L13:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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"
	.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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	jmp	.L2
.L10:
	movl	-92(%rbp), %eax
	cmpl	$-1, %eax
	je	.L13
	movl	$0, -84(%rbp)
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.L6
	movl	-92(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L6
.L7:
	movl	-92(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	movl	-84(%rbp), %eax
	cltq
	movl	%edx, -80(%rbp,%rax,4)
	movl	-92(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, -92(%rbp)
	addl	$1, -84(%rbp)
.L6:
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jg	.L7
	movl	-84(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -88(%rbp)
	jmp	.L8
.L9:
	movl	-88(%rbp), %eax
	cltq
	movl	-80(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -88(%rbp)
.L8:
	cmpl	$0, -88(%rbp)
	jns	.L9
	movl	$10, %edi
	call	putchar@PLT
.L2:
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jne	.L10
	jmp	.L4
.L13:
	nop
.L4:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
