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

```c
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>

#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define ABS(a) ((a) < 0 ? -(a) : (a))
#define ABSS(a, b) ((a) > (b) ? (a) - (b) : (b) - (a))

int compare_sz_asc(const void* a, const void* b) {
    return *((size_t*)a) < *((size_t*)b) ? -1 : 1;
}

int compare_sz_desc(const void* a, const void* b) {
    return *((size_t*)a) > * ((size_t*)b) ? -1 : 1;
}

int compare_i64_asc(const void* a, const void* b) {
    return *((int64_t*)a) < *((int64_t*)b) ? -1 : 1;
}

int compare_i64_desc(const void* a, const void* b) {
    return *((int64_t*)a) > * ((int64_t*)b) ? -1 : 1;
}

int compare_c_asc(const void* a, const void* b) {
    return *((char*)a) < *((char*)b) ? -1 : 1;
}

int compare_c_desc(const void* a, const void* b) {
    return *((char*)a) > * ((char*)b) ? -1 : 1;
}

static size_t powSz(const size_t base, const size_t exp) {
    if (exp == 0) {
        return 1;
    }

    if (exp == 1) {
        return base;
    }

    if (exp % 2 == 0) {
        return powSz(base * base, exp / 2);
    }
    else {
        return base * powSz(base, exp - 1);
    }
}

static size_t comb(const size_t n, const size_t r) {
    size_t result = 1;

    for (size_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static uint64_t combU64(const uint64_t n, const uint64_t r) {
    uint64_t result = 1;

    for (uint64_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static size_t gcdZu(size_t m, size_t n) {
    size_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static uint64_t gcdU64(uint64_t m, uint64_t n)
{
    uint64_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static int64_t a[100000];

int main(void) {
    size_t n;

    scanf("%zu\n", &n);
    for (size_t i = 0; i < n; i++) {
        scanf("%"PRId64, &a[i]);
    }

    size_t cnt[2] = { 0,0 };
    int64_t base[2] = { 1,-1 };
    int64_t sum[2] = { 0,0 };

    for (size_t i = 0; i < n; i++) {
        sum[0] += a[i];
        sum[1] += a[i];

        int64_t additionalMove[2] = { 0,0 };

        if (!((base[0] < 0 && sum[0] < 0) || (0 < base[0] && 0 < sum[0]))) {
            additionalMove[0] = base[0] - sum[0];
        }
        if (!((base[1] < 0 && sum[1] < 0) || (0 < base[1] && 0 < sum[1]))) {
            additionalMove[1] = base[1] - sum[1];
        }

        sum[0] += additionalMove[0];
        sum[1] += additionalMove[1];

        cnt[0] += (size_t)ABS(additionalMove[0]);
        cnt[1] += (size_t)ABS(additionalMove[1]);

        base[0] = -base[0];
        base[1] = -base[1];
    }

    printf("%zu", MIN(cnt[0], cnt[1]));

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_sz_asc
	.type	compare_sz_asc, @function
compare_sz_asc:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jnb	.L2
	movl	$-1, %eax
	jmp	.L4
.L2:
	movl	$1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_sz_asc, .-compare_sz_asc
	.globl	compare_sz_desc
	.type	compare_sz_desc, @function
compare_sz_desc:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jbe	.L6
	movl	$-1, %eax
	jmp	.L8
.L6:
	movl	$1, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_sz_desc, .-compare_sz_desc
	.globl	compare_i64_asc
	.type	compare_i64_asc, @function
compare_i64_asc:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L10
	movl	$-1, %eax
	jmp	.L12
.L10:
	movl	$1, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare_i64_asc, .-compare_i64_asc
	.globl	compare_i64_desc
	.type	compare_i64_desc, @function
compare_i64_desc:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L14
	movl	$-1, %eax
	jmp	.L16
.L14:
	movl	$1, %eax
.L16:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	compare_i64_desc, .-compare_i64_desc
	.globl	compare_c_asc
	.type	compare_c_asc, @function
compare_c_asc:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jge	.L18
	movl	$-1, %eax
	jmp	.L20
.L18:
	movl	$1, %eax
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	compare_c_asc, .-compare_c_asc
	.globl	compare_c_desc
	.type	compare_c_desc, @function
compare_c_desc:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jle	.L22
	movl	$-1, %eax
	jmp	.L24
.L22:
	movl	$1, %eax
.L24:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	compare_c_desc, .-compare_c_desc
	.type	powSz, @function
powSz:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	cmpq	$0, -16(%rbp)
	jne	.L26
	movl	$1, %eax
	jmp	.L27
.L26:
	cmpq	$1, -16(%rbp)
	jne	.L28
	movq	-8(%rbp), %rax
	jmp	.L27
.L28:
	movq	-16(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L29
	movq	-16(%rbp), %rax
	shrq	%rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	powSz
	jmp	.L27
.L29:
	movq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	powSz
	imulq	-8(%rbp), %rax
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	powSz, .-powSz
	.type	comb, @function
comb:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L31
.L32:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L31:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L32
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	comb, .-comb
	.type	combU64, @function
combU64:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L35
.L36:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L35:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L36
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	combU64, .-combU64
	.type	gcdZu, @function
gcdZu:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	jmp	.L39
.L40:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L39:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L40
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	gcdZu, .-gcdZu
	.type	gcdU64, @function
gcdU64:
.LFB16:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	jmp	.L43
.L44:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L43:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L44
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	gcdU64, .-gcdU64
	.local	a
	.comm	a,800000,32
	.section	.rodata
.LC0:
	.string	"%zu\n"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%zu"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -96(%rbp)
	jmp	.L47
.L48:
	movq	-96(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -96(%rbp)
.L47:
	movq	-104(%rbp), %rax
	cmpq	%rax, -96(%rbp)
	jb	.L48
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$1, -64(%rbp)
	movq	$-1, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L49
.L56:
	movq	-48(%rbp), %rcx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	%rax, -48(%rbp)
	movq	-40(%rbp), %rcx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	%rax, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jns	.L50
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	js	.L51
.L50:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jle	.L52
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jg	.L51
.L52:
	movq	-64(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
.L51:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jns	.L53
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	js	.L54
.L53:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jle	.L55
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	jg	.L54
.L55:
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
.L54:
	movq	-48(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-80(%rbp), %rcx
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -80(%rbp)
	movq	-72(%rbp), %rcx
	movq	-24(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -72(%rbp)
	movq	-64(%rbp), %rax
	negq	%rax
	movq	%rax, -64(%rbp)
	movq	-56(%rbp), %rax
	negq	%rax
	movq	%rax, -56(%rbp)
	addq	$1, -88(%rbp)
.L49:
	movq	-104(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jb	.L56
	movq	-72(%rbp), %rdx
	movq	-80(%rbp), %rax
	cmpq	%rax, %rdx
	cmovbe	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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
	.p2align 4
	.globl	compare_sz_asc
	.type	compare_sz_asc, @function
compare_sz_asc:
.LFB77:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	sbbl	%eax, %eax
	orl	$1, %eax
	ret
	.cfi_endproc
.LFE77:
	.size	compare_sz_asc, .-compare_sz_asc
	.p2align 4
	.globl	compare_sz_desc
	.type	compare_sz_desc, @function
compare_sz_desc:
.LFB78:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	cmpq	%rax, (%rsi)
	sbbl	%eax, %eax
	orl	$1, %eax
	ret
	.cfi_endproc
.LFE78:
	.size	compare_sz_desc, .-compare_sz_desc
	.p2align 4
	.globl	compare_i64_asc
	.type	compare_i64_asc, @function
compare_i64_asc:
.LFB79:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE79:
	.size	compare_i64_asc, .-compare_i64_asc
	.p2align 4
	.globl	compare_i64_desc
	.type	compare_i64_desc, @function
compare_i64_desc:
.LFB80:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setle	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE80:
	.size	compare_i64_desc, .-compare_i64_desc
	.p2align 4
	.globl	compare_c_asc
	.type	compare_c_asc, @function
compare_c_asc:
.LFB81:
	.cfi_startproc
	endbr64
	movzbl	(%rsi), %eax
	cmpb	%al, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE81:
	.size	compare_c_asc, .-compare_c_asc
	.p2align 4
	.globl	compare_c_desc
	.type	compare_c_desc, @function
compare_c_desc:
.LFB82:
	.cfi_startproc
	endbr64
	movzbl	(%rsi), %eax
	cmpb	%al, (%rdi)
	setle	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE82:
	.size	compare_c_desc, .-compare_c_desc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%zu\n"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%zu"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB88:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	a(%rip), %rbx
	movq	%rbx, %r12
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	je	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	addq	$8, %r12
	cmpq	%rbp, %rax
	ja	.L23
	testq	%rax, %rax
	je	.L24
	leaq	(%rbx,%rax,8), %r10
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$1, %ecx
	movq	$-1, %rax
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L25:
	testq	%rsi, %rsi
	jle	.L26
	testb	$1, %cl
	je	.L26
.L27:
	cmpq	$-1, %rax
	je	.L49
.L29:
	testq	%rdi, %rdi
	jle	.L30
	testb	$1, %al
	je	.L30
.L31:
	addq	$8, %rbx
	negq	%rcx
	negq	%rax
	cmpq	%rbx, %r10
	je	.L22
.L33:
	addq	(%rbx), %rsi
	addq	(%rbx), %rdi
	cmpq	$-1, %rcx
	jne	.L25
	testq	%rsi, %rsi
	js	.L27
.L26:
	movq	%rcx, %r8
	subq	%rsi, %r8
	movq	%r8, %rsi
	negq	%rsi
	cmovs	%r8, %rsi
	addq	%rsi, %rdx
	movq	%rcx, %rsi
	cmpq	$-1, %rax
	jne	.L29
.L49:
	testq	%rdi, %rdi
	js	.L31
.L30:
	movq	%rax, %r8
	subq	%rdi, %r8
	movq	%r8, %rdi
	negq	%rdi
	cmovs	%r8, %rdi
	addq	$8, %rbx
	negq	%rcx
	addq	%rdi, %r9
	movq	%rax, %rdi
	negq	%rax
	cmpq	%rbx, %r10
	jne	.L33
.L22:
	cmpq	%r9, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cmova	%r9, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L22
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE88:
	.size	main, .-main
	.local	a
	.comm	a,800000,32
	.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
	.p2align 4
	.globl	compare_sz_asc
	.type	compare_sz_asc, @function
compare_sz_asc:
.LFB77:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	sbbl	%eax, %eax
	orl	$1, %eax
	ret
	.cfi_endproc
.LFE77:
	.size	compare_sz_asc, .-compare_sz_asc
	.p2align 4
	.globl	compare_sz_desc
	.type	compare_sz_desc, @function
compare_sz_desc:
.LFB78:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	cmpq	%rax, (%rsi)
	sbbl	%eax, %eax
	orl	$1, %eax
	ret
	.cfi_endproc
.LFE78:
	.size	compare_sz_desc, .-compare_sz_desc
	.p2align 4
	.globl	compare_i64_asc
	.type	compare_i64_asc, @function
compare_i64_asc:
.LFB79:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE79:
	.size	compare_i64_asc, .-compare_i64_asc
	.p2align 4
	.globl	compare_i64_desc
	.type	compare_i64_desc, @function
compare_i64_desc:
.LFB80:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setle	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE80:
	.size	compare_i64_desc, .-compare_i64_desc
	.p2align 4
	.globl	compare_c_asc
	.type	compare_c_asc, @function
compare_c_asc:
.LFB81:
	.cfi_startproc
	endbr64
	movzbl	(%rsi), %eax
	cmpb	%al, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE81:
	.size	compare_c_asc, .-compare_c_asc
	.p2align 4
	.globl	compare_c_desc
	.type	compare_c_desc, @function
compare_c_desc:
.LFB82:
	.cfi_startproc
	endbr64
	movzbl	(%rsi), %eax
	cmpb	%al, (%rdi)
	setle	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE82:
	.size	compare_c_desc, .-compare_c_desc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%zu\n"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%zu"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB88:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	a(%rip), %rbx
	movq	%rbx, %r12
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	je	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	addq	$8, %r12
	cmpq	%rbp, %rax
	ja	.L23
	testq	%rax, %rax
	je	.L24
	leaq	(%rbx,%rax,8), %r10
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$1, %ecx
	movq	$-1, %rax
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L25:
	testq	%rsi, %rsi
	jle	.L26
	testb	$1, %cl
	je	.L26
.L27:
	cmpq	$-1, %rax
	je	.L49
.L29:
	testq	%rdi, %rdi
	jle	.L30
	testb	$1, %al
	je	.L30
.L31:
	addq	$8, %rbx
	negq	%rcx
	negq	%rax
	cmpq	%rbx, %r10
	je	.L22
.L33:
	addq	(%rbx), %rsi
	addq	(%rbx), %rdi
	cmpq	$-1, %rcx
	jne	.L25
	testq	%rsi, %rsi
	js	.L27
.L26:
	movq	%rcx, %r8
	subq	%rsi, %r8
	movq	%r8, %rsi
	negq	%rsi
	cmovs	%r8, %rsi
	addq	%rsi, %rdx
	movq	%rcx, %rsi
	cmpq	$-1, %rax
	jne	.L29
.L49:
	testq	%rdi, %rdi
	js	.L31
.L30:
	movq	%rax, %r8
	subq	%rdi, %r8
	movq	%r8, %rdi
	negq	%rdi
	cmovs	%r8, %rdi
	addq	$8, %rbx
	negq	%rcx
	addq	%rdi, %r9
	movq	%rax, %rdi
	negq	%rax
	cmpq	%rbx, %r10
	jne	.L33
.L22:
	cmpq	%r9, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cmova	%r9, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L22
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE88:
	.size	main, .-main
	.local	a
	.comm	a,800000,32
	.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 <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>

#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define ABS(a) ((a) < 0 ? -(a) : (a))
#define ABSS(a, b) ((a) > (b) ? (a) - (b) : (b) - (a))

int compare_sz_asc(const void* a, const void* b) {
    return *((size_t*)a) < *((size_t*)b) ? -1 : 1;
}

int compare_sz_desc(const void* a, const void* b) {
    return *((size_t*)a) > * ((size_t*)b) ? -1 : 1;
}

int compare_i64_asc(const void* a, const void* b) {
    return *((int64_t*)a) < *((int64_t*)b) ? -1 : 1;
}

int compare_i64_desc(const void* a, const void* b) {
    return *((int64_t*)a) > * ((int64_t*)b) ? -1 : 1;
}

int compare_c_asc(const void* a, const void* b) {
    return *((char*)a) < *((char*)b) ? -1 : 1;
}

int compare_c_desc(const void* a, const void* b) {
    return *((char*)a) > * ((char*)b) ? -1 : 1;
}

static size_t powSz(const size_t base, const size_t exp) {
    if (exp == 0) {
        return 1;
    }

    if (exp == 1) {
        return base;
    }

    if (exp % 2 == 0) {
        return powSz(base * base, exp / 2);
    }
    else {
        return base * powSz(base, exp - 1);
    }
}

static size_t comb(const size_t n, const size_t r) {
    size_t result = 1;

    for (size_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static uint64_t combU64(const uint64_t n, const uint64_t r) {
    uint64_t result = 1;

    for (uint64_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static size_t gcdZu(size_t m, size_t n) {
    size_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static uint64_t gcdU64(uint64_t m, uint64_t n)
{
    uint64_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static int64_t a[100000];

int main(void) {
    size_t n;

    scanf("%zu\n", &n);
    for (size_t i = 0; i < n; i++) {
        scanf("%"PRId64, &a[i]);
    }

    size_t cnt[2] = { 0,0 };
    int64_t base[2] = { 1,-1 };
    int64_t sum[2] = { 0,0 };

    for (size_t i = 0; i < n; i++) {
        sum[0] += a[i];
        sum[1] += a[i];

        int64_t additionalMove[2] = { 0,0 };

        if (!((base[0] < 0 && sum[0] < 0) || (0 < base[0] && 0 < sum[0]))) {
            additionalMove[0] = base[0] - sum[0];
        }
        if (!((base[1] < 0 && sum[1] < 0) || (0 < base[1] && 0 < sum[1]))) {
            additionalMove[1] = base[1] - sum[1];
        }

        sum[0] += additionalMove[0];
        sum[1] += additionalMove[1];

        cnt[0] += (size_t)ABS(additionalMove[0]);
        cnt[1] += (size_t)ABS(additionalMove[1]);

        base[0] = -base[0];
        base[1] = -base[1];
    }

    printf("%zu", MIN(cnt[0], cnt[1]));

    return 0;
}

5
3 -6 4 -8 7
 4
1 -3 1 -1
 6
-1 4 3 2 -5 0
 4
1 -5 1 -1
 6
-1 4 2 2 -5 0
 5
3 -8 4 -12 7
 4
1 -5 0 -1
 6
-1 4 1 2 -5 0
 5
3 -5 4 -12 7
 6
-1 8 1 2 -5 0

1 3 12 5 11 7 6 10 4 14
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>

#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define ABS(a) ((a) < 0 ? -(a) : (a))
#define ABSS(a, b) ((a) > (b) ? (a) - (b) : (b) - (a))

int compare_sz_asc(const void* a, const void* b) {
    return *((size_t*)a) < *((size_t*)b) ? -1 : 1;
}

int compare_sz_desc(const void* a, const void* b) {
    return *((size_t*)a) > * ((size_t*)b) ? -1 : 1;
}

int compare_i64_asc(const void* a, const void* b) {
    return *((int64_t*)a) < *((int64_t*)b) ? -1 : 1;
}

int compare_i64_desc(const void* a, const void* b) {
    return *((int64_t*)a) > * ((int64_t*)b) ? -1 : 1;
}

int compare_c_asc(const void* a, const void* b) {
    return *((char*)a) < *((char*)b) ? -1 : 1;
}

int compare_c_desc(const void* a, const void* b) {
    return *((char*)a) > * ((char*)b) ? -1 : 1;
}

static size_t powSz(const size_t base, const size_t exp) {
    if (exp == 0) {
        return 1;
    }

    if (exp == 1) {
        return base;
    }

    if (exp % 2 == 0) {
        return powSz(base * base, exp / 2);
    }
    else {
        return base * powSz(base, exp - 1);
    }
}

static size_t comb(const size_t n, const size_t r) {
    size_t result = 1;

    for (size_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static uint64_t combU64(const uint64_t n, const uint64_t r) {
    uint64_t result = 1;

    for (uint64_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static size_t gcdZu(size_t m, size_t n) {
    size_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static uint64_t gcdU64(uint64_t m, uint64_t n)
{
    uint64_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static int64_t a[100000];

int main(void) {
    size_t n;

    scanf("%zu\n", &n);
    for (size_t i = 0; i < n; i++) {
        scanf("%"PRId64, &a[i]);
    }

    size_t cnt[2] = { 0,0 };
    int64_t base[2] = { 1,-1 };
    int64_t sum[2] = { 0,0 };

    for (size_t i = 0; i < n; i++) {
        sum[0] += a[i];
        sum[1] += a[i];

        int64_t additionalMove[2] = { 0,0 };

        if (!((base[0] < 0 && sum[0] < 0) || (0 < base[0] && 0 < sum[0]))) {
            additionalMove[0] = base[0] - sum[0];
        }
        if (!((base[1] < 0 && sum[1] < 0) || (0 < base[1] && 0 < sum[1]))) {
            additionalMove[1] = base[1] - sum[1];
        }

        sum[0] += additionalMove[0];
        sum[1] += additionalMove[1];

        cnt[0] += (size_t)ABS(additionalMove[0]);
        cnt[1] += (size_t)ABS(additionalMove[1]);

        base[0] = -base[0];
        base[1] = -base[1];
    }

    printf("%zu", MIN(cnt[0], cnt[1]));

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_sz_asc
	.type	compare_sz_asc, @function
compare_sz_asc:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jnb	.L2
	movl	$-1, %eax
	jmp	.L4
.L2:
	movl	$1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_sz_asc, .-compare_sz_asc
	.globl	compare_sz_desc
	.type	compare_sz_desc, @function
compare_sz_desc:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jbe	.L6
	movl	$-1, %eax
	jmp	.L8
.L6:
	movl	$1, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_sz_desc, .-compare_sz_desc
	.globl	compare_i64_asc
	.type	compare_i64_asc, @function
compare_i64_asc:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L10
	movl	$-1, %eax
	jmp	.L12
.L10:
	movl	$1, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare_i64_asc, .-compare_i64_asc
	.globl	compare_i64_desc
	.type	compare_i64_desc, @function
compare_i64_desc:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L14
	movl	$-1, %eax
	jmp	.L16
.L14:
	movl	$1, %eax
.L16:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	compare_i64_desc, .-compare_i64_desc
	.globl	compare_c_asc
	.type	compare_c_asc, @function
compare_c_asc:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jge	.L18
	movl	$-1, %eax
	jmp	.L20
.L18:
	movl	$1, %eax
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	compare_c_asc, .-compare_c_asc
	.globl	compare_c_desc
	.type	compare_c_desc, @function
compare_c_desc:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jle	.L22
	movl	$-1, %eax
	jmp	.L24
.L22:
	movl	$1, %eax
.L24:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	compare_c_desc, .-compare_c_desc
	.type	powSz, @function
powSz:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	cmpq	$0, -16(%rbp)
	jne	.L26
	movl	$1, %eax
	jmp	.L27
.L26:
	cmpq	$1, -16(%rbp)
	jne	.L28
	movq	-8(%rbp), %rax
	jmp	.L27
.L28:
	movq	-16(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L29
	movq	-16(%rbp), %rax
	shrq	%rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	powSz
	jmp	.L27
.L29:
	movq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	powSz
	imulq	-8(%rbp), %rax
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	powSz, .-powSz
	.type	comb, @function
comb:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L31
.L32:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L31:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L32
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	comb, .-comb
	.type	combU64, @function
combU64:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L35
.L36:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L35:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L36
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	combU64, .-combU64
	.type	gcdZu, @function
gcdZu:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	jmp	.L39
.L40:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L39:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L40
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	gcdZu, .-gcdZu
	.type	gcdU64, @function
gcdU64:
.LFB16:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	jmp	.L43
.L44:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L43:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L44
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	gcdU64, .-gcdU64
	.local	a
	.comm	a,800000,32
	.section	.rodata
.LC0:
	.string	"%zu\n"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%zu"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -96(%rbp)
	jmp	.L47
.L48:
	movq	-96(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -96(%rbp)
.L47:
	movq	-104(%rbp), %rax
	cmpq	%rax, -96(%rbp)
	jb	.L48
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$1, -64(%rbp)
	movq	$-1, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L49
.L56:
	movq	-48(%rbp), %rcx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	%rax, -48(%rbp)
	movq	-40(%rbp), %rcx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	%rax, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jns	.L50
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	js	.L51
.L50:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jle	.L52
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jg	.L51
.L52:
	movq	-64(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
.L51:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jns	.L53
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	js	.L54
.L53:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jle	.L55
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	jg	.L54
.L55:
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
.L54:
	movq	-48(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-80(%rbp), %rcx
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -80(%rbp)
	movq	-72(%rbp), %rcx
	movq	-24(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -72(%rbp)
	movq	-64(%rbp), %rax
	negq	%rax
	movq	%rax, -64(%rbp)
	movq	-56(%rbp), %rax
	negq	%rax
	movq	%rax, -56(%rbp)
	addq	$1, -88(%rbp)
.L49:
	movq	-104(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jb	.L56
	movq	-72(%rbp), %rdx
	movq	-80(%rbp), %rax
	cmpq	%rax, %rdx
	cmovbe	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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
	.globl	compare_sz_asc
	.type	compare_sz_asc, @function
compare_sz_asc:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jnb	.L2
	movl	$-1, %eax
	jmp	.L4
.L2:
	movl	$1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_sz_asc, .-compare_sz_asc
	.globl	compare_sz_desc
	.type	compare_sz_desc, @function
compare_sz_desc:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jbe	.L6
	movl	$-1, %eax
	jmp	.L8
.L6:
	movl	$1, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_sz_desc, .-compare_sz_desc
	.globl	compare_i64_asc
	.type	compare_i64_asc, @function
compare_i64_asc:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L10
	movl	$-1, %eax
	jmp	.L12
.L10:
	movl	$1, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare_i64_asc, .-compare_i64_asc
	.globl	compare_i64_desc
	.type	compare_i64_desc, @function
compare_i64_desc:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L14
	movl	$-1, %eax
	jmp	.L16
.L14:
	movl	$1, %eax
.L16:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	compare_i64_desc, .-compare_i64_desc
	.globl	compare_c_asc
	.type	compare_c_asc, @function
compare_c_asc:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jge	.L18
	movl	$-1, %eax
	jmp	.L20
.L18:
	movl	$1, %eax
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	compare_c_asc, .-compare_c_asc
	.globl	compare_c_desc
	.type	compare_c_desc, @function
compare_c_desc:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jle	.L22
	movl	$-1, %eax
	jmp	.L24
.L22:
	movl	$1, %eax
.L24:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	compare_c_desc, .-compare_c_desc
	.type	powSz, @function
powSz:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	cmpq	$0, -16(%rbp)
	jne	.L26
	movl	$1, %eax
	jmp	.L27
.L26:
	cmpq	$1, -16(%rbp)
	jne	.L28
	movq	-8(%rbp), %rax
	jmp	.L27
.L28:
	movq	-16(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	jne	.L29
	movq	-16(%rbp), %rax
	shrq	%rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	powSz
	jmp	.L27
.L29:
	movq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	powSz
	imulq	-8(%rbp), %rax
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	powSz, .-powSz
	.type	comb, @function
comb:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L31
.L32:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L31:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L32
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	comb, .-comb
	.type	combU64, @function
combU64:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L35
.L36:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L35:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L36
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	combU64, .-combU64
	.type	gcdZu, @function
gcdZu:
.LFB15:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	jmp	.L39
.L40:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L39:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L40
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	gcdZu, .-gcdZu
	.type	gcdU64, @function
gcdU64:
.LFB16:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	jmp	.L43
.L44:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L43:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L44
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	gcdU64, .-gcdU64
	.local	a
	.comm	a,800000,32
	.section	.rodata
.LC0:
	.string	"%zu\n"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%zu"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -96(%rbp)
	jmp	.L47
.L48:
	movq	-96(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -96(%rbp)
.L47:
	movq	-104(%rbp), %rax
	cmpq	%rax, -96(%rbp)
	jb	.L48
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$1, -64(%rbp)
	movq	$-1, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L49
.L56:
	movq	-48(%rbp), %rcx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	%rax, -48(%rbp)
	movq	-40(%rbp), %rcx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rcx, %rax
	movq	%rax, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jns	.L50
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	js	.L51
.L50:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jle	.L52
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jg	.L51
.L52:
	movq	-64(%rbp), %rax
	movq	-48(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
.L51:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jns	.L53
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	js	.L54
.L53:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jle	.L55
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	jg	.L54
.L55:
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -24(%rbp)
.L54:
	movq	-48(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-80(%rbp), %rcx
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -80(%rbp)
	movq	-72(%rbp), %rcx
	movq	-24(%rbp), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -72(%rbp)
	movq	-64(%rbp), %rax
	negq	%rax
	movq	%rax, -64(%rbp)
	movq	-56(%rbp), %rax
	negq	%rax
	movq	%rax, -56(%rbp)
	addq	$1, -88(%rbp)
.L49:
	movq	-104(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jb	.L56
	movq	-72(%rbp), %rdx
	movq	-80(%rbp), %rax
	cmpq	%rax, %rdx
	cmovbe	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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:
