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

```c
#include <stdio.h>
#include <limits.h>
long long llmax(long long a, long long b){return a>b?a:b;}

int main(void){
    long long n,k;
    scanf("%lld%lld",&n,&k);
    long long a[n],ans=LLONG_MAX;
    for (int i=0; i<n; i++){
        scanf("%lld",&a[i]);
    }
    for (int i=0; i<(1<<n); i++){
        long long score=0,count=1,tmp=a[0];

        for (int j=1; j<n; j++){
            tmp=llmax(tmp,a[j-1]);
            if ((1&i>>j)==1){
                count++;
                if (a[j]<=tmp){
                    score+=tmp-a[j]+1;
                    tmp=tmp+1;
                } else {
                    tmp=a[j];
                }
            }
        }
        if (ans>=score && count>=k){
            ans=score;
        }
    }
    printf("%lld\n",ans);
	return 0 ;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	llmax
	.type	llmax, @function
llmax:
.LFB0:
	.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	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	llmax, .-llmax
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-112(%rbp), %rdx
	leaq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-120(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -72(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movabsq	$9223372036854775807, %rax
	movq	%rax, -104(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L7
.L8:
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -132(%rbp)
.L7:
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	movq	-120(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L8
	movl	$0, -128(%rbp)
	jmp	.L9
.L15:
	movq	$0, -96(%rbp)
	movq	$1, -88(%rbp)
	movq	-64(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	$1, -124(%rbp)
	jmp	.L10
.L13:
	movl	-124(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-80(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	llmax
	movq	%rax, -80(%rbp)
	movl	-124(%rbp), %eax
	movl	-128(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L11
	addq	$1, -88(%rbp)
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -80(%rbp)
	jl	.L12
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-80(%rbp), %rax
	subq	%rdx, %rax
	addq	$1, %rax
	addq	%rax, -96(%rbp)
	addq	$1, -80(%rbp)
	jmp	.L11
.L12:
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -80(%rbp)
.L11:
	addl	$1, -124(%rbp)
.L10:
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	-120(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L13
	movq	-104(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jl	.L14
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L14
	movq	-96(%rbp), %rax
	movq	%rax, -104(%rbp)
.L14:
	addl	$1, -128(%rbp)
.L9:
	movq	-120(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -128(%rbp)
	jl	.L15
	movq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	llmax
	.type	llmax, @function
llmax:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovge	%rsi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	llmax, .-llmax
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	movq	%rsp, %rsi
	leaq	15(,%rcx,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L5
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L29
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L30
.L6:
	leaq	7(%rsp), %rbx
	movq	%rbx, %r14
	andq	$-8, %rbx
	shrq	$3, %r14
	testq	%rcx, %rcx
	jle	.L7
	movq	%rbx, %r15
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	addq	$8, %r15
	cmpq	%r12, %rcx
	jg	.L8
.L7:
	movabsq	$9223372036854775807, %r11
	movl	$1, %r12d
	sall	%cl, %r12d
	testl	%r12d, %r12d
	jle	.L9
	movq	0(,%r14,8), %r13
	movq	-64(%rbp), %r14
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L14:
	cmpq	$1, %rcx
	jle	.L17
	movq	%r13, %rdx
	movl	$1, %eax
	movl	$1, %r8d
	xorl	%r9d, %r9d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L32:
	movq	%rdx, %r10
	addq	$1, %rdx
	subq	%rsi, %r10
	leaq	1(%r9,%r10), %r9
.L11:
	addq	$1, %rax
	cmpq	%rcx, %rax
	je	.L31
.L12:
	movq	-8(%rbx,%rax,8), %rsi
	cmpq	%rsi, %rdx
	cmovl	%rsi, %rdx
	btl	%eax, %edi
	jnc	.L11
	movq	(%rbx,%rax,8), %rsi
	addq	$1, %r8
	cmpq	%rdx, %rsi
	jle	.L32
	addq	$1, %rax
	movq	%rsi, %rdx
	cmpq	%rcx, %rax
	jne	.L12
.L31:
	cmpq	%r11, %r9
	jle	.L10
.L13:
	addl	$1, %edi
	cmpl	%r12d, %edi
	jne	.L14
.L9:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movl	$1, %r8d
	xorl	%r9d, %r9d
.L10:
	cmpq	%r8, %r14
	cmovle	%r9, %r11
	jmp	.L13
.L30:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	llmax
	.type	llmax, @function
llmax:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovge	%rsi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	llmax, .-llmax
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	movq	%rsp, %rsi
	leaq	15(,%rcx,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L5
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L29
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L30
.L6:
	leaq	7(%rsp), %rbx
	movq	%rbx, %r14
	andq	$-8, %rbx
	shrq	$3, %r14
	testq	%rcx, %rcx
	jle	.L7
	movq	%rbx, %r15
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	addq	$8, %r15
	cmpq	%r12, %rcx
	jg	.L8
.L7:
	movabsq	$9223372036854775807, %r11
	movl	$1, %r12d
	sall	%cl, %r12d
	testl	%r12d, %r12d
	jle	.L9
	movq	0(,%r14,8), %r13
	movq	-64(%rbp), %r14
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L14:
	cmpq	$1, %rcx
	jle	.L17
	movq	%r13, %rdx
	movl	$1, %eax
	movl	$1, %r8d
	xorl	%r9d, %r9d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L32:
	movq	%rdx, %r10
	addq	$1, %rdx
	subq	%rsi, %r10
	leaq	1(%r9,%r10), %r9
.L11:
	addq	$1, %rax
	cmpq	%rcx, %rax
	je	.L31
.L12:
	movq	-8(%rbx,%rax,8), %rsi
	cmpq	%rsi, %rdx
	cmovl	%rsi, %rdx
	btl	%eax, %edi
	jnc	.L11
	movq	(%rbx,%rax,8), %rsi
	addq	$1, %r8
	cmpq	%rdx, %rsi
	jle	.L32
	addq	$1, %rax
	movq	%rsi, %rdx
	cmpq	%rcx, %rax
	jne	.L12
.L31:
	cmpq	%r11, %r9
	jle	.L10
.L13:
	addl	$1, %edi
	cmpl	%r12d, %edi
	jne	.L14
.L9:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movl	$1, %r8d
	xorl	%r9d, %r9d
.L10:
	cmpq	%r8, %r14
	cmovle	%r9, %r11
	jmp	.L13
.L30:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <limits.h>
long long llmax(long long a, long long b){return a>b?a:b;}

int main(void){
    long long n,k;
    scanf("%lld%lld",&n,&k);
    long long a[n],ans=LLONG_MAX;
    for (int i=0; i<n; i++){
        scanf("%lld",&a[i]);
    }
    for (int i=0; i<(1<<n); i++){
        long long score=0,count=1,tmp=a[0];

        for (int j=1; j<n; j++){
            tmp=llmax(tmp,a[j-1]);
            if ((1&i>>j)==1){
                count++;
                if (a[j]<=tmp){
                    score+=tmp-a[j]+1;
                    tmp=tmp+1;
                } else {
                    tmp=a[j];
                }
            }
        }
        if (ans>=score && count>=k){
            ans=score;
        }
    }
    printf("%lld\n",ans);
	return 0 ;
}

5 5
5960 3774 3598 3469 3424
 5 5
3949 3774 4045 3469 3424
 5 5
5960 3774 3598 2384 3424
 5 5
5960 3774 3598 610 3424
 5 5
5960 3170 3598 610 3424
 5 1
5960 3170 3598 610 3424
 5 5
3949 359 3598 3469 3424
 5 5
5960 3774 3598 4173 3424
 5 5
3949 3208 4045 3469 3424
 5 5
5960 3774 6822 2384 3424

9585
 1376
 10670
 12444
 13048
 0
 4956
 8881
 1942
 10026

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

```c
#include <stdio.h>
#include <limits.h>
long long llmax(long long a, long long b){return a>b?a:b;}

int main(void){
    long long n,k;
    scanf("%lld%lld",&n,&k);
    long long a[n],ans=LLONG_MAX;
    for (int i=0; i<n; i++){
        scanf("%lld",&a[i]);
    }
    for (int i=0; i<(1<<n); i++){
        long long score=0,count=1,tmp=a[0];

        for (int j=1; j<n; j++){
            tmp=llmax(tmp,a[j-1]);
            if ((1&i>>j)==1){
                count++;
                if (a[j]<=tmp){
                    score+=tmp-a[j]+1;
                    tmp=tmp+1;
                } else {
                    tmp=a[j];
                }
            }
        }
        if (ans>=score && count>=k){
            ans=score;
        }
    }
    printf("%lld\n",ans);
	return 0 ;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	llmax
	.type	llmax, @function
llmax:
.LFB0:
	.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	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	llmax, .-llmax
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-112(%rbp), %rdx
	leaq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-120(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -72(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movabsq	$9223372036854775807, %rax
	movq	%rax, -104(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L7
.L8:
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -132(%rbp)
.L7:
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	movq	-120(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L8
	movl	$0, -128(%rbp)
	jmp	.L9
.L15:
	movq	$0, -96(%rbp)
	movq	$1, -88(%rbp)
	movq	-64(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	$1, -124(%rbp)
	jmp	.L10
.L13:
	movl	-124(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-80(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	llmax
	movq	%rax, -80(%rbp)
	movl	-124(%rbp), %eax
	movl	-128(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L11
	addq	$1, -88(%rbp)
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -80(%rbp)
	jl	.L12
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-80(%rbp), %rax
	subq	%rdx, %rax
	addq	$1, %rax
	addq	%rax, -96(%rbp)
	addq	$1, -80(%rbp)
	jmp	.L11
.L12:
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -80(%rbp)
.L11:
	addl	$1, -124(%rbp)
.L10:
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	-120(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L13
	movq	-104(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jl	.L14
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L14
	movq	-96(%rbp), %rax
	movq	%rax, -104(%rbp)
.L14:
	addl	$1, -128(%rbp)
.L9:
	movq	-120(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -128(%rbp)
	jl	.L15
	movq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	llmax
	.type	llmax, @function
llmax:
.LFB0:
	.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	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	llmax, .-llmax
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-112(%rbp), %rdx
	leaq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-120(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -72(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movabsq	$9223372036854775807, %rax
	movq	%rax, -104(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L7
.L8:
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -132(%rbp)
.L7:
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	movq	-120(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L8
	movl	$0, -128(%rbp)
	jmp	.L9
.L15:
	movq	$0, -96(%rbp)
	movq	$1, -88(%rbp)
	movq	-64(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	$1, -124(%rbp)
	jmp	.L10
.L13:
	movl	-124(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-80(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	llmax
	movq	%rax, -80(%rbp)
	movl	-124(%rbp), %eax
	movl	-128(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L11
	addq	$1, -88(%rbp)
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -80(%rbp)
	jl	.L12
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-80(%rbp), %rax
	subq	%rdx, %rax
	addq	$1, %rax
	addq	%rax, -96(%rbp)
	addq	$1, -80(%rbp)
	jmp	.L11
.L12:
	movq	-64(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -80(%rbp)
.L11:
	addl	$1, -124(%rbp)
.L10:
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	-120(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L13
	movq	-104(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jl	.L14
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L14
	movq	-96(%rbp), %rax
	movq	%rax, -104(%rbp)
.L14:
	addl	$1, -128(%rbp)
.L9:
	movq	-120(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -128(%rbp)
	jl	.L15
	movq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
