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()
{
    int N;
    long long A;

    long long sum;
    long long min;
    int i;
    int zero_count;
    int minus_count;

    scanf("%d", &N);

    zero_count = 0;
    minus_count = 0;
    sum = 0;
    min = 1000000000; /* 10^9 */
    for(i = 0; i < N; i++) {
        scanf("%lld", &A);
        if(A == 0) {
            zero_count += 1;
        } else if(A < 0) {
            minus_count += 1;
            A *= -1;
            sum += A;
            if(A < min) {
                min = A;
            }
        } else {
            sum += A;
            if(A < min) {
                min = A;
            }
        }
    }

    // 負の数が奇数 -> 一番絶対値が小さい数字を負の数にした場合の合計
    // 負の数が偶数 もしくは、 0が1個でもあれば -> 全て正の数にできる
    if(zero_count >= 1 || (minus_count%2) == 0) {
        printf("%lld\n", sum);
    } else {
        printf("%lld\n", sum - (min*2));
    }

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\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
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	movl	$0, 12(%rsp)
	xorl	%ebp, %ebp
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	$1000000000, %ebx
	leaq	32(%rsp), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, %ebp
.L4:
	addl	$1, %r15d
	cmpl	%r15d, 28(%rsp)
	jle	.L14
.L6:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rax
	testq	%rax, %rax
	je	.L15
	js	.L16
	addq	%rax, %r12
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r15d
	cmpl	%r15d, 28(%rsp)
	jg	.L6
.L14:
	testl	%ebp, %ebp
	jne	.L2
	testb	$1, 12(%rsp)
	jne	.L17
.L2:
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$56, %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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movq	%rax, %rcx
	addl	$1, 12(%rsp)
	subq	%rax, %r12
	negq	%rcx
	cmpq	%rcx, %rbx
	movq	%rcx, 32(%rsp)
	cmovg	%rcx, %rbx
	jmp	.L4
.L17:
	addq	%rbx, %rbx
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	subq	%rbx, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L10:
	xorl	%r12d, %r12d
	jmp	.L2
.L18:
	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	"%lld"
.LC2:
	.string	"%lld\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
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	movl	$0, 12(%rsp)
	xorl	%ebp, %ebp
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	$1000000000, %ebx
	leaq	32(%rsp), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, %ebp
.L4:
	addl	$1, %r15d
	cmpl	%r15d, 28(%rsp)
	jle	.L14
.L6:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rax
	testq	%rax, %rax
	je	.L15
	js	.L16
	addq	%rax, %r12
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r15d
	cmpl	%r15d, 28(%rsp)
	jg	.L6
.L14:
	testl	%ebp, %ebp
	jne	.L2
	testb	$1, 12(%rsp)
	jne	.L17
.L2:
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$56, %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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movq	%rax, %rcx
	addl	$1, 12(%rsp)
	subq	%rax, %r12
	negq	%rcx
	cmpq	%rcx, %rbx
	movq	%rcx, 32(%rsp)
	cmovg	%rcx, %rbx
	jmp	.L4
.L17:
	addq	%rbx, %rbx
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	subq	%rbx, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L10:
	xorl	%r12d, %r12d
	jmp	.L2
.L18:
	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	"%lld"
.LC2:
	.string	"%lld\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
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	movl	$0, 12(%rsp)
	xorl	%ebp, %ebp
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	$1000000000, %ebx
	leaq	32(%rsp), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, %ebp
.L4:
	addl	$1, %r15d
	cmpl	%r15d, 28(%rsp)
	jle	.L14
.L6:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rax
	testq	%rax, %rax
	je	.L15
	js	.L16
	addq	%rax, %r12
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r15d
	cmpl	%r15d, 28(%rsp)
	jg	.L6
.L14:
	testl	%ebp, %ebp
	jne	.L2
	testb	$1, 12(%rsp)
	jne	.L17
.L2:
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$56, %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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movq	%rax, %rcx
	addl	$1, 12(%rsp)
	subq	%rax, %r12
	negq	%rcx
	cmpq	%rcx, %rbx
	movq	%rcx, 32(%rsp)
	cmovg	%rcx, %rbx
	jmp	.L4
.L17:
	addq	%rbx, %rbx
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	subq	%rbx, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L10:
	xorl	%r12d, %r12d
	jmp	.L2
.L18:
	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()
{
    int N;
    long long A;

    long long sum;
    long long min;
    int i;
    int zero_count;
    int minus_count;

    scanf("%d", &N);

    zero_count = 0;
    minus_count = 0;
    sum = 0;
    min = 1000000000; /* 10^9 */
    for(i = 0; i < N; i++) {
        scanf("%lld", &A);
        if(A == 0) {
            zero_count += 1;
        } else if(A < 0) {
            minus_count += 1;
            A *= -1;
            sum += A;
            if(A < min) {
                min = A;
            }
        } else {
            sum += A;
            if(A < min) {
                min = A;
            }
        }
    }

    // 負の数が奇数 -> 一番絶対値が小さい数字を負の数にした場合の合計
    // 負の数が偶数 もしくは、 0が1個でもあれば -> 全て正の数にできる
    if(zero_count >= 1 || (minus_count%2) == 0) {
        printf("%lld\n", sum);
    } else {
        printf("%lld\n", sum - (min*2));
    }

    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()
{
    int N;
    long long A;

    long long sum;
    long long min;
    int i;
    int zero_count;
    int minus_count;

    scanf("%d", &N);

    zero_count = 0;
    minus_count = 0;
    sum = 0;
    min = 1000000000; /* 10^9 */
    for(i = 0; i < N; i++) {
        scanf("%lld", &A);
        if(A == 0) {
            zero_count += 1;
        } else if(A < 0) {
            minus_count += 1;
            A *= -1;
            sum += A;
            if(A < min) {
                min = A;
            }
        } else {
            sum += A;
            if(A < min) {
                min = A;
            }
        }
    }

    // 負の数が奇数 -> 一番絶対値が小さい数字を負の数にした場合の合計
    // 負の数が偶数 もしくは、 0が1個でもあれば -> 全て正の数にできる
    if(zero_count >= 1 || (minus_count%2) == 0) {
        printf("%lld\n", sum);
    } else {
        printf("%lld\n", sum - (min*2));
    }

    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:

11
-1000000000 1000000000 -364513171 1000000000 -1000000000 0 1000000000 -1000000000 1000000000 -1000000000 1000000000
 5
10 -4 -8 -11 5
 3
-10 5 0
 11
-1000000000 1000000000 -364513171 1000000000 -1000000000 0 1000000000 -1000000000 1000000000 -1000000000 1000000100
 5
10 -4 -4 -11 5
 3
-14 5 0
 11
-1000000000 1000000000 -364513171 1000000000 -1000000000 0 1000000000 -1000000000 1000000100 -1000000000 1000000100
 5
10 -4 -4 -14 5
 3
-14 5 1
 11
-1000000000 1000000000 -364513171 1000000000 -1382285407 0 1000000000 -1000000000 1000000000 -1000000000 1000000100

9364513171
 30
 15
 9364513271
 26
 19
 9364513371
 29
 18
 9746798678

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()
{
    int N;
    long long A;

    long long sum;
    long long min;
    int i;
    int zero_count;
    int minus_count;

    scanf("%d", &N);

    zero_count = 0;
    minus_count = 0;
    sum = 0;
    min = 1000000000; /* 10^9 */
    for(i = 0; i < N; i++) {
        scanf("%lld", &A);
        if(A == 0) {
            zero_count += 1;
        } else if(A < 0) {
            minus_count += 1;
            A *= -1;
            sum += A;
            if(A < min) {
                min = A;
            }
        } else {
            sum += A;
            if(A < min) {
                min = A;
            }
        }
    }

    // 負の数が奇数 -> 一番絶対値が小さい数字を負の数にした場合の合計
    // 負の数が偶数 もしくは、 0が1個でもあれば -> 全て正の数にできる
    if(zero_count >= 1 || (minus_count%2) == 0) {
        printf("%lld\n", sum);
    } else {
        printf("%lld\n", sum - (min*2));
    }

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\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
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	movl	$0, 12(%rsp)
	xorl	%ebp, %ebp
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	$1000000000, %ebx
	leaq	32(%rsp), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, %ebp
.L4:
	addl	$1, %r15d
	cmpl	%r15d, 28(%rsp)
	jle	.L14
.L6:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rax
	testq	%rax, %rax
	je	.L15
	js	.L16
	addq	%rax, %r12
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r15d
	cmpl	%r15d, 28(%rsp)
	jg	.L6
.L14:
	testl	%ebp, %ebp
	jne	.L2
	testb	$1, 12(%rsp)
	jne	.L17
.L2:
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$56, %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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movq	%rax, %rcx
	addl	$1, 12(%rsp)
	subq	%rax, %r12
	negq	%rcx
	cmpq	%rcx, %rbx
	movq	%rcx, 32(%rsp)
	cmovg	%rcx, %rbx
	jmp	.L4
.L17:
	addq	%rbx, %rbx
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	subq	%rbx, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L10:
	xorl	%r12d, %r12d
	jmp	.L2
.L18:
	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	"%lld"
.LC2:
	.string	"%lld\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
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	movl	$0, 12(%rsp)
	xorl	%ebp, %ebp
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	$1000000000, %ebx
	leaq	32(%rsp), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, %ebp
.L4:
	addl	$1, %r15d
	cmpl	%r15d, 28(%rsp)
	jle	.L14
.L6:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rax
	testq	%rax, %rax
	je	.L15
	js	.L16
	addq	%rax, %r12
	cmpq	%rax, %rbx
	cmovg	%rax, %rbx
	addl	$1, %r15d
	cmpl	%r15d, 28(%rsp)
	jg	.L6
.L14:
	testl	%ebp, %ebp
	jne	.L2
	testb	$1, 12(%rsp)
	jne	.L17
.L2:
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L8:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$56, %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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	movq	%rax, %rcx
	addl	$1, 12(%rsp)
	subq	%rax, %r12
	negq	%rcx
	cmpq	%rcx, %rbx
	movq	%rcx, 32(%rsp)
	cmovg	%rcx, %rbx
	jmp	.L4
.L17:
	addq	%rbx, %rbx
	movq	%r12, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	subq	%rbx, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L8
.L10:
	xorl	%r12d, %r12d
	jmp	.L2
.L18:
	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:
```