Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
//#include<math.h>
#include<string.h>
//#include<time.h>
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
int main() {
	int n, i, s;
	int a[25] = {};
	while (~fscanf(stdin, "%d", &n), n) {
		for (i = 0; i < n; i++) fscanf(stdin, "%d", &a[i]);
		s = 32,i=0;
		while (s>0) {
			s = s - (s - 1) % 5;
			P(d, s);
			s -= a[i++];
			if (i == n) i = 0;
			P(d, s < 0 ? 0 : s);
		}
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$12, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$3435973837, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	movq	%rdi, 8(%rsp)
	rep stosq
	leaq	28(%rsp), %rax
	movq	%rax, (%rsp)
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	(%rsp), %rdx
	movq	stdin(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	movq	8(%rsp), %r14
	movl	$0, %ebx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	movq	stdin(%rip), %rdi
	movq	%r14, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	addl	$1, %ebx
	addq	$4, %r14
	call	__isoc99_fscanf@PLT
	cmpl	%ebx, 28(%rsp)
	jg	.L3
.L10:
	movl	$32, %ebx
	xorl	%r14d, %r14d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	call	__fprintf_chk@PLT
	testl	%ebx, %ebx
	jle	.L2
.L5:
	movl	%r15d, %r14d
.L7:
	leal	-1(%rbx), %eax
	movq	stdout(%rip), %rdi
	movl	$1, %esi
	leal	1(%r14), %r15d
	movq	%rax, %rdx
	imulq	%r13, %rax
	shrq	$34, %rax
	leal	(%rax,%rax,4), %ecx
	movl	%edx, %eax
	movq	%rbp, %rdx
	subl	%ecx, %eax
	subl	%eax, %ebx
	xorl	%eax, %eax
	movl	%ebx, %ecx
	call	__fprintf_chk@PLT
	movslq	%r14d, %r8
	xorl	%ecx, %ecx
	movq	%rbp, %rdx
	subl	32(%rsp,%r8,4), %ebx
	movq	stdout(%rip), %rdi
	movl	$1, %esi
	testl	%ebx, %ebx
	cmovns	%ebx, %ecx
	xorl	%eax, %eax
	cmpl	%r15d, 28(%rsp)
	jne	.L4
	call	__fprintf_chk@PLT
	testl	%ebx, %ebx
	jle	.L2
	xorl	%r15d, %r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$152, %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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$12, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$3435973837, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	movq	%rdi, 8(%rsp)
	rep stosq
	leaq	28(%rsp), %rax
	movq	%rax, (%rsp)
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	(%rsp), %rdx
	movq	stdin(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	movq	8(%rsp), %r14
	movl	$0, %ebx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	movq	stdin(%rip), %rdi
	movq	%r14, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	addl	$1, %ebx
	addq	$4, %r14
	call	__isoc99_fscanf@PLT
	cmpl	%ebx, 28(%rsp)
	jg	.L3
.L10:
	movl	$32, %ebx
	xorl	%r14d, %r14d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	call	__fprintf_chk@PLT
	testl	%ebx, %ebx
	jle	.L2
.L5:
	movl	%r15d, %r14d
.L7:
	leal	-1(%rbx), %eax
	movq	stdout(%rip), %rdi
	movl	$1, %esi
	leal	1(%r14), %r15d
	movq	%rax, %rdx
	imulq	%r13, %rax
	shrq	$34, %rax
	leal	(%rax,%rax,4), %ecx
	movl	%edx, %eax
	movq	%rbp, %rdx
	subl	%ecx, %eax
	subl	%eax, %ebx
	xorl	%eax, %eax
	movl	%ebx, %ecx
	call	__fprintf_chk@PLT
	movslq	%r14d, %r8
	xorl	%ecx, %ecx
	movq	%rbp, %rdx
	subl	32(%rsp,%r8,4), %ebx
	movq	stdout(%rip), %rdi
	movl	$1, %esi
	testl	%ebx, %ebx
	cmovns	%ebx, %ecx
	xorl	%eax, %eax
	cmpl	%r15d, 28(%rsp)
	jne	.L4
	call	__fprintf_chk@PLT
	testl	%ebx, %ebx
	jle	.L2
	xorl	%r15d, %r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$152, %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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$12, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$3435973837, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	movq	%rdi, 8(%rsp)
	rep stosq
	leaq	28(%rsp), %rax
	movq	%rax, (%rsp)
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	(%rsp), %rdx
	movq	stdin(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	movq	8(%rsp), %r14
	movl	$0, %ebx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	movq	stdin(%rip), %rdi
	movq	%r14, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	addl	$1, %ebx
	addq	$4, %r14
	call	__isoc99_fscanf@PLT
	cmpl	%ebx, 28(%rsp)
	jg	.L3
.L10:
	movl	$32, %ebx
	xorl	%r14d, %r14d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	call	__fprintf_chk@PLT
	testl	%ebx, %ebx
	jle	.L2
.L5:
	movl	%r15d, %r14d
.L7:
	leal	-1(%rbx), %eax
	movq	stdout(%rip), %rdi
	movl	$1, %esi
	leal	1(%r14), %r15d
	movq	%rax, %rdx
	imulq	%r13, %rax
	shrq	$34, %rax
	leal	(%rax,%rax,4), %ecx
	movl	%edx, %eax
	movq	%rbp, %rdx
	subl	%ecx, %eax
	subl	%eax, %ebx
	xorl	%eax, %eax
	movl	%ebx, %ecx
	call	__fprintf_chk@PLT
	movslq	%r14d, %r8
	xorl	%ecx, %ecx
	movq	%rbp, %rdx
	subl	32(%rsp,%r8,4), %ebx
	movq	stdout(%rip), %rdi
	movl	$1, %esi
	testl	%ebx, %ebx
	cmovns	%ebx, %ecx
	xorl	%eax, %eax
	cmpl	%r15d, 28(%rsp)
	jne	.L4
	call	__fprintf_chk@PLT
	testl	%ebx, %ebx
	jle	.L2
	xorl	%r15d, %r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$152, %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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
```c
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
//#include<math.h>
#include<string.h>
//#include<time.h>
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
int main() {
	int n, i, s;
	int a[25] = {};
	while (~fscanf(stdin, "%d", &n), n) {
		for (i = 0; i < n; i++) fscanf(stdin, "%d", &a[i]);
		s = 32,i=0;
		while (s>0) {
			s = s - (s - 1) % 5;
			P(d, s);
			s -= a[i++];
			if (i == n) i = 0;
			P(d, s < 0 ? 0 : s);
		}
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
//#include<math.h>
#include<string.h>
//#include<time.h>
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
int main() {
	int n, i, s;
	int a[25] = {};
	while (~fscanf(stdin, "%d", &n), n) {
		for (i = 0; i < n; i++) fscanf(stdin, "%d", &a[i]);
		s = 32,i=0;
		while (s>0) {
			s = s - (s - 1) % 5;
			P(d, s);
			s -= a[i++];
			if (i == n) i = 0;
			P(d, s < 0 ? 0 : s);
		}
	}
	return 0;
}```

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.
Optimized Assembly Code:

4
3 1 4 2
3
4 3 2
0

31
28
26
25
21
17
16
14
11
8
6
5
1
0
31
27
26
23
21
19
16
12
11
8
6
4
1
0

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
//#include<math.h>
#include<string.h>
//#include<time.h>
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
int main() {
	int n, i, s;
	int a[25] = {};
	while (~fscanf(stdin, "%d", &n), n) {
		for (i = 0; i < n; i++) fscanf(stdin, "%d", &a[i]);
		s = 32,i=0;
		while (s>0) {
			s = s - (s - 1) % 5;
			P(d, s);
			s -= a[i++];
			if (i == n) i = 0;
			P(d, s < 0 ? 0 : s);
		}
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$12, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$3435973837, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	movq	%rdi, 8(%rsp)
	rep stosq
	leaq	28(%rsp), %rax
	movq	%rax, (%rsp)
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	(%rsp), %rdx
	movq	stdin(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	movq	8(%rsp), %r14
	movl	$0, %ebx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	movq	stdin(%rip), %rdi
	movq	%r14, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	addl	$1, %ebx
	addq	$4, %r14
	call	__isoc99_fscanf@PLT
	cmpl	%ebx, 28(%rsp)
	jg	.L3
.L10:
	movl	$32, %ebx
	xorl	%r14d, %r14d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	call	__fprintf_chk@PLT
	testl	%ebx, %ebx
	jle	.L2
.L5:
	movl	%r15d, %r14d
.L7:
	leal	-1(%rbx), %eax
	movq	stdout(%rip), %rdi
	movl	$1, %esi
	leal	1(%r14), %r15d
	movq	%rax, %rdx
	imulq	%r13, %rax
	shrq	$34, %rax
	leal	(%rax,%rax,4), %ecx
	movl	%edx, %eax
	movq	%rbp, %rdx
	subl	%ecx, %eax
	subl	%eax, %ebx
	xorl	%eax, %eax
	movl	%ebx, %ecx
	call	__fprintf_chk@PLT
	movslq	%r14d, %r8
	xorl	%ecx, %ecx
	movq	%rbp, %rdx
	subl	32(%rsp,%r8,4), %ebx
	movq	stdout(%rip), %rdi
	movl	$1, %esi
	testl	%ebx, %ebx
	cmovns	%ebx, %ecx
	xorl	%eax, %eax
	cmpl	%r15d, 28(%rsp)
	jne	.L4
	call	__fprintf_chk@PLT
	testl	%ebx, %ebx
	jle	.L2
	xorl	%r15d, %r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$152, %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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$12, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$3435973837, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rdi
	movq	%rdi, 8(%rsp)
	rep stosq
	leaq	28(%rsp), %rax
	movq	%rax, (%rsp)
	movl	$0, (%rdi)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	(%rsp), %rdx
	movq	stdin(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_fscanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	movq	8(%rsp), %r14
	movl	$0, %ebx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	movq	stdin(%rip), %rdi
	movq	%r14, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	addl	$1, %ebx
	addq	$4, %r14
	call	__isoc99_fscanf@PLT
	cmpl	%ebx, 28(%rsp)
	jg	.L3
.L10:
	movl	$32, %ebx
	xorl	%r14d, %r14d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	call	__fprintf_chk@PLT
	testl	%ebx, %ebx
	jle	.L2
.L5:
	movl	%r15d, %r14d
.L7:
	leal	-1(%rbx), %eax
	movq	stdout(%rip), %rdi
	movl	$1, %esi
	leal	1(%r14), %r15d
	movq	%rax, %rdx
	imulq	%r13, %rax
	shrq	$34, %rax
	leal	(%rax,%rax,4), %ecx
	movl	%edx, %eax
	movq	%rbp, %rdx
	subl	%ecx, %eax
	subl	%eax, %ebx
	xorl	%eax, %eax
	movl	%ebx, %ecx
	call	__fprintf_chk@PLT
	movslq	%r14d, %r8
	xorl	%ecx, %ecx
	movq	%rbp, %rdx
	subl	32(%rsp,%r8,4), %ebx
	movq	stdout(%rip), %rdi
	movl	$1, %esi
	testl	%ebx, %ebx
	cmovns	%ebx, %ecx
	xorl	%eax, %eax
	cmpl	%r15d, 28(%rsp)
	jne	.L4
	call	__fprintf_chk@PLT
	testl	%ebx, %ebx
	jle	.L2
	xorl	%r15d, %r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$152, %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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```