Given the following C code and 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 a[20];
	int ave;
	int loop;
	int sum, total, max;
	int i, j;

	while(1){
		scanf("%d", &n);
		if (n == 0){
			break;
		}
		
		total = 0;
		for (i = 0; i < n; i++){
			scanf("%d", &a[i]);
			total += a[i];
		}
		ave = (total) / 2;
// printf("ave=%d\n", ave);
		loop = (1 << n) - 1;
//printf("%x\n", loop);
		
		
		max = 0;
		for (i = 0; i <= loop; i++){
			sum = 0;
			for (j = 0; j < 20; j++){
//			printf("<%x>", (1 << j) & i);
				if (((1 << j) & i) != 0){
					sum += a[j];
				}
			}
//			printf("[%d]", sum);
			if (sum <= ave){
				if (max < sum){
//printf("max=%d\n", max);
					max = sum;
				}
			}
		}
		
		printf("%d\n", total - max - max);
	}
	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:
.LFB23:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	leaq	16(%rsp), %r13
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	jle	.L12
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	0(%r13,%r14,4), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addl	0(%r13,%r14,4), %r15d
	addq	$1, %r14
	cmpl	%r14d, %ecx
	jg	.L4
	movl	%r15d, %edi
	shrl	$31, %edi
	addl	%r15d, %edi
	sarl	%edi
.L3:
	movl	$1, %r8d
	xorl	%esi, %esi
	sall	%cl, %r8d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	btl	%eax, %ecx
	jnc	.L6
	addl	0(%r13,%rax,4), %edx
.L6:
	addq	$1, %rax
	cmpq	$20, %rax
	jne	.L7
	cmpl	%edx, %esi
	movl	%edx, %eax
	cmovge	%esi, %eax
	cmpl	%edx, %edi
	cmovge	%eax, %esi
	addl	$1, %ecx
	cmpl	%ecx, %r8d
	jne	.L5
	movl	%r15d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%esi, %edx
	subl	%esi, %edx
	movq	%r12, %rsi
	call	__printf_chk@PLT
	jmp	.L10
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$120, %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
.L12:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	jmp	.L3
.L20:
	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:
```

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:
.LFB23:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	leaq	16(%rsp), %r13
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	jle	.L12
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	0(%r13,%r14,4), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addl	0(%r13,%r14,4), %r15d
	addq	$1, %r14
	cmpl	%r14d, %ecx
	jg	.L4
	movl	%r15d, %edi
	shrl	$31, %edi
	addl	%r15d, %edi
	sarl	%edi
.L3:
	movl	$1, %r8d
	xorl	%esi, %esi
	sall	%cl, %r8d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	btl	%eax, %ecx
	jnc	.L6
	addl	0(%r13,%rax,4), %edx
.L6:
	addq	$1, %rax
	cmpq	$20, %rax
	jne	.L7
	cmpl	%edx, %esi
	movl	%edx, %eax
	cmovge	%esi, %eax
	cmpl	%edx, %edi
	cmovge	%eax, %esi
	addl	$1, %ecx
	cmpl	%ecx, %r8d
	jne	.L5
	movl	%r15d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%esi, %edx
	subl	%esi, %edx
	movq	%r12, %rsi
	call	__printf_chk@PLT
	jmp	.L10
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$120, %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
.L12:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	jmp	.L3
.L20:
	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
```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:
.LFB23:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	leaq	16(%rsp), %r13
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	jle	.L12
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	0(%r13,%r14,4), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addl	0(%r13,%r14,4), %r15d
	addq	$1, %r14
	cmpl	%r14d, %ecx
	jg	.L4
	movl	%r15d, %edi
	shrl	$31, %edi
	addl	%r15d, %edi
	sarl	%edi
.L3:
	movl	$1, %r8d
	xorl	%esi, %esi
	sall	%cl, %r8d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	btl	%eax, %ecx
	jnc	.L6
	addl	0(%r13,%rax,4), %edx
.L6:
	addq	$1, %rax
	cmpq	$20, %rax
	jne	.L7
	cmpl	%edx, %esi
	movl	%edx, %eax
	cmovge	%esi, %eax
	cmpl	%edx, %edi
	cmovge	%eax, %esi
	addl	$1, %ecx
	cmpl	%ecx, %r8d
	jne	.L5
	movl	%r15d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%esi, %edx
	subl	%esi, %edx
	movq	%r12, %rsi
	call	__printf_chk@PLT
	jmp	.L10
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$120, %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
.L12:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	jmp	.L3
.L20:
	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:
```
```c
#include <stdio.h>

int main(void)
{
	int n;
	int a[20];
	int ave;
	int loop;
	int sum, total, max;
	int i, j;

	while(1){
		scanf("%d", &n);
		if (n == 0){
			break;
		}
		
		total = 0;
		for (i = 0; i < n; i++){
			scanf("%d", &a[i]);
			total += a[i];
		}
		ave = (total) / 2;
// printf("ave=%d\n", ave);
		loop = (1 << n) - 1;
//printf("%x\n", loop);
		
		
		max = 0;
		for (i = 0; i <= loop; i++){
			sum = 0;
			for (j = 0; j < 20; j++){
//			printf("<%x>", (1 << j) & i);
				if (((1 << j) & i) != 0){
					sum += a[j];
				}
			}
//			printf("[%d]", sum);
			if (sum <= ave){
				if (max < sum){
//printf("max=%d\n", max);
					max = sum;
				}
			}
		}
		
		printf("%d\n", total - max - max);
	}
	return (0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void)
{
	int n;
	int a[20];
	int ave;
	int loop;
	int sum, total, max;
	int i, j;

	while(1){
		scanf("%d", &n);
		if (n == 0){
			break;
		}
		
		total = 0;
		for (i = 0; i < n; i++){
			scanf("%d", &a[i]);
			total += a[i];
		}
		ave = (total) / 2;
// printf("ave=%d\n", ave);
		loop = (1 << n) - 1;
//printf("%x\n", loop);
		
		
		max = 0;
		for (i = 0; i <= loop; i++){
			sum = 0;
			for (j = 0; j < 20; j++){
//			printf("<%x>", (1 << j) & i);
				if (((1 << j) & i) != 0){
					sum += a[j];
				}
			}
//			printf("[%d]", sum);
			if (sum <= ave){
				if (max < sum){
//printf("max=%d\n", max);
					max = sum;
				}
			}
		}
		
		printf("%d\n", total - max - max);
	}
	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:

5
1 2 3 4 5
4
2 3 5 10
0
 5
1 2 3 4 5
4
1 3 5 10
0
 5
1 2 3 4 5
4
1 3 4 10
0
 5
1 3 3 4 5
4
2 3 5 7
0
 5
1 2 3 4 4
4
1 3 4 10
0
 5
1 3 3 4 5
4
2 3 5 10
0
 5
1 2 3 4 5
4
0 3 5 11
0

1
0
 1
1
 1
2
 0
1
 0
2
 0
0
 1
3

Given the following C code and 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 a[20];
	int ave;
	int loop;
	int sum, total, max;
	int i, j;

	while(1){
		scanf("%d", &n);
		if (n == 0){
			break;
		}
		
		total = 0;
		for (i = 0; i < n; i++){
			scanf("%d", &a[i]);
			total += a[i];
		}
		ave = (total) / 2;
// printf("ave=%d\n", ave);
		loop = (1 << n) - 1;
//printf("%x\n", loop);
		
		
		max = 0;
		for (i = 0; i <= loop; i++){
			sum = 0;
			for (j = 0; j < 20; j++){
//			printf("<%x>", (1 << j) & i);
				if (((1 << j) & i) != 0){
					sum += a[j];
				}
			}
//			printf("[%d]", sum);
			if (sum <= ave){
				if (max < sum){
//printf("max=%d\n", max);
					max = sum;
				}
			}
		}
		
		printf("%d\n", total - max - max);
	}
	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:
.LFB23:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	leaq	16(%rsp), %r13
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	jle	.L12
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	0(%r13,%r14,4), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addl	0(%r13,%r14,4), %r15d
	addq	$1, %r14
	cmpl	%r14d, %ecx
	jg	.L4
	movl	%r15d, %edi
	shrl	$31, %edi
	addl	%r15d, %edi
	sarl	%edi
.L3:
	movl	$1, %r8d
	xorl	%esi, %esi
	sall	%cl, %r8d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	btl	%eax, %ecx
	jnc	.L6
	addl	0(%r13,%rax,4), %edx
.L6:
	addq	$1, %rax
	cmpq	$20, %rax
	jne	.L7
	cmpl	%edx, %esi
	movl	%edx, %eax
	cmovge	%esi, %eax
	cmpl	%edx, %edi
	cmovge	%eax, %esi
	addl	$1, %ecx
	cmpl	%ecx, %r8d
	jne	.L5
	movl	%r15d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%esi, %edx
	subl	%esi, %edx
	movq	%r12, %rsi
	call	__printf_chk@PLT
	jmp	.L10
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$120, %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
.L12:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	jmp	.L3
.L20:
	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:
```

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:
.LFB23:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	leaq	16(%rsp), %r13
.L10:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	jle	.L12
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	0(%r13,%r14,4), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addl	0(%r13,%r14,4), %r15d
	addq	$1, %r14
	cmpl	%r14d, %ecx
	jg	.L4
	movl	%r15d, %edi
	shrl	$31, %edi
	addl	%r15d, %edi
	sarl	%edi
.L3:
	movl	$1, %r8d
	xorl	%esi, %esi
	sall	%cl, %r8d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	btl	%eax, %ecx
	jnc	.L6
	addl	0(%r13,%rax,4), %edx
.L6:
	addq	$1, %rax
	cmpq	$20, %rax
	jne	.L7
	cmpl	%edx, %esi
	movl	%edx, %eax
	cmovge	%esi, %eax
	cmpl	%edx, %edi
	cmovge	%eax, %esi
	addl	$1, %ecx
	cmpl	%ecx, %r8d
	jne	.L5
	movl	%r15d, %edx
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%esi, %edx
	subl	%esi, %edx
	movq	%r12, %rsi
	call	__printf_chk@PLT
	jmp	.L10
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$120, %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
.L12:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	jmp	.L3
.L20:
	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:
```