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>

int main(void){
  long long int N,A,B;
  long long int i;
  long long int h[100000];
  long long int K;
  long long int left,right;
  long long int sum;

  scanf("%lld %lld %lld",&N,&A,&B);
  //printf("%d\n", N);

  for(i=0;i<N;++i){
    scanf("%lld",&h[i]);
  }

  left=0;
  right=1000000000;

  while(left!=right-1){
    K=(right+left)/2;
    sum=0;
    for(i=0;i<N;i++){
      if(h[i]-K*B > 0){
        // sum += (h[i]-K*B)%(A-B) ? (h[i]-B*K)/(A-B)+1 : (h[i]-B*K)/(A-B);
        if((h[i]-K*B)%(A-B)==0){
          sum += (h[i]-B*K)/(A-B);
        }else{
          sum += (h[i]-B*K)/(A-B)+1;
        }
      }
    }
    if(sum <= K){
      right=K;
    }else{
      left=K;
    }
  }

  printf("%lld\n", right);

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1360, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800064(%rbp), %rcx
	leaq	-800072(%rbp), %rdx
	leaq	-800080(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -800056(%rbp)
	jmp	.L2
.L3:
	leaq	-800016(%rbp), %rdx
	movq	-800056(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -800056(%rbp)
.L2:
	movq	-800080(%rbp), %rax
	cmpq	%rax, -800056(%rbp)
	jl	.L3
	movq	$0, -800048(%rbp)
	movq	$1000000000, -800040(%rbp)
	jmp	.L4
.L10:
	movq	-800040(%rbp), %rdx
	movq	-800048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -800024(%rbp)
	movq	$0, -800032(%rbp)
	movq	$0, -800056(%rbp)
	jmp	.L5
.L8:
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L6
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-800072(%rbp), %rdx
	movq	-800064(%rbp), %rsi
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L7
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-800072(%rbp), %rdx
	movq	-800064(%rbp), %rcx
	movq	%rdx, %rdi
	subq	%rcx, %rdi
	cqto
	idivq	%rdi
	addq	%rax, -800032(%rbp)
	jmp	.L6
.L7:
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-800072(%rbp), %rdx
	movq	-800064(%rbp), %rcx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	cqto
	idivq	%rsi
	addq	$1, %rax
	addq	%rax, -800032(%rbp)
.L6:
	addq	$1, -800056(%rbp)
.L5:
	movq	-800080(%rbp), %rax
	cmpq	%rax, -800056(%rbp)
	jl	.L8
	movq	-800032(%rbp), %rax
	cmpq	-800024(%rbp), %rax
	jg	.L9
	movq	-800024(%rbp), %rax
	movq	%rax, -800040(%rbp)
	jmp	.L4
.L9:
	movq	-800024(%rbp), %rax
	movq	%rax, -800048(%rbp)
.L4:
	movq	-800040(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -800048(%rbp)
	jne	.L10
	movq	-800040(%rbp), %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	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.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
	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
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1336, %rsp
	.cfi_def_cfa_offset 800112
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 800040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	32(%rsp), %rbx
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rbp
	testq	%rbp, %rbp
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rbp
	addq	$8, %r13
	cmpq	%r12, %rbp
	jg	.L3
.L2:
	movq	24(%rsp), %r14
	movq	16(%rsp), %rdi
	leaq	(%rbx,%rbp,8), %r9
	xorl	%r11d, %r11d
	movl	$1000000000, %r12d
	subq	%r14, %rdi
.L4:
	leaq	-1(%r12), %r13
	cmpq	%r13, %r11
	je	.L20
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	(%r12,%r11), %rax
	movq	%rax, %r10
	shrq	$63, %r10
	addq	%rax, %r10
	sarq	%r10
	testq	%rbp, %rbp
	jle	.L12
	movq	%r14, %r8
	movq	%rbx, %rcx
	xorl	%esi, %esi
	imulq	%r10, %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rcx), %rax
	subq	%r8, %rax
	testq	%rax, %rax
	jle	.L6
	cqto
	idivq	%rdi
	leaq	(%rsi,%rax), %r15
	testq	%rdx, %rdx
	leaq	1(%rsi,%rax), %rsi
	cmove	%r15, %rsi
.L6:
	addq	$8, %rcx
	cmpq	%rcx, %r9
	jne	.L8
	cmpq	%rsi, %r10
	jge	.L21
.L13:
	movq	%r10, %r11
	cmpq	%r13, %r11
	jne	.L10
.L20:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	800040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$800056, %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
.L12:
	.cfi_restore_state
	xorl	%esi, %esi
	cmpq	%rsi, %r10
	jl	.L13
.L21:
	movq	%r10, %r12
	jmp	.L4
.L22:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.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
	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
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1336, %rsp
	.cfi_def_cfa_offset 800112
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 800040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	32(%rsp), %rbx
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rbp
	testq	%rbp, %rbp
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rbp
	addq	$8, %r13
	cmpq	%r12, %rbp
	jg	.L3
.L2:
	movq	24(%rsp), %r14
	movq	16(%rsp), %rdi
	leaq	(%rbx,%rbp,8), %r9
	xorl	%r11d, %r11d
	movl	$1000000000, %r12d
	subq	%r14, %rdi
.L4:
	leaq	-1(%r12), %r13
	cmpq	%r13, %r11
	je	.L20
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	(%r12,%r11), %rax
	movq	%rax, %r10
	shrq	$63, %r10
	addq	%rax, %r10
	sarq	%r10
	testq	%rbp, %rbp
	jle	.L12
	movq	%r14, %r8
	movq	%rbx, %rcx
	xorl	%esi, %esi
	imulq	%r10, %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movq	(%rcx), %rax
	subq	%r8, %rax
	testq	%rax, %rax
	jle	.L6
	cqto
	idivq	%rdi
	leaq	(%rsi,%rax), %r15
	testq	%rdx, %rdx
	leaq	1(%rsi,%rax), %rsi
	cmove	%r15, %rsi
.L6:
	addq	$8, %rcx
	cmpq	%rcx, %r9
	jne	.L8
	cmpq	%rsi, %r10
	jge	.L21
.L13:
	movq	%r10, %r11
	cmpq	%r13, %r11
	jne	.L10
.L20:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	800040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$800056, %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
.L12:
	.cfi_restore_state
	xorl	%esi, %esi
	cmpq	%rsi, %r10
	jl	.L13
.L21:
	movq	%r10, %r12
	jmp	.L4
.L22:
	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:

#include<stdio.h>

int main(void){
  long long int N,A,B;
  long long int i;
  long long int h[100000];
  long long int K;
  long long int left,right;
  long long int sum;

  scanf("%lld %lld %lld",&N,&A,&B);
  //printf("%d\n", N);

  for(i=0;i<N;++i){
    scanf("%lld",&h[i]);
  }

  left=0;
  right=1000000000;

  while(left!=right-1){
    K=(right+left)/2;
    sum=0;
    for(i=0;i<N;i++){
      if(h[i]-K*B > 0){
        // sum += (h[i]-K*B)%(A-B) ? (h[i]-B*K)/(A-B)+1 : (h[i]-B*K)/(A-B);
        if((h[i]-K*B)%(A-B)==0){
          sum += (h[i]-B*K)/(A-B);
        }else{
          sum += (h[i]-B*K)/(A-B)+1;
        }
      }
    }
    if(sum <= K){
      right=K;
    }else{
      left=K;
    }
  }

  printf("%lld\n", right);

  return 0;
}

5 2 1
187174154
900000000
1000000000
1000000000
1000000000
 4 5 3
8
7
6
2
 2 10 4
20
37
 5 2 1
187174154
900000000
1000000000
1000000000
1100000000
 2 17 4
20
37
 5 2 1
187174154
900000000
1000000000
1000000001
1100000000
 5 2 1
187174154
900000000
1000000000
1000000101
1100000000
 2 11 7
20
37
 5 2 1
105611412
900000000
1010000000
1000000101
1100000000
 5 3 1
105611412
900000000
1010000000
1000000101
1100000000

780000000
 2
 5
 800000000
 3
 800000001
 800000021
 4
 802000021
 668333351

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>

int main(void){
  long long int N,A,B;
  long long int i;
  long long int h[100000];
  long long int K;
  long long int left,right;
  long long int sum;

  scanf("%lld %lld %lld",&N,&A,&B);
  //printf("%d\n", N);

  for(i=0;i<N;++i){
    scanf("%lld",&h[i]);
  }

  left=0;
  right=1000000000;

  while(left!=right-1){
    K=(right+left)/2;
    sum=0;
    for(i=0;i<N;i++){
      if(h[i]-K*B > 0){
        // sum += (h[i]-K*B)%(A-B) ? (h[i]-B*K)/(A-B)+1 : (h[i]-B*K)/(A-B);
        if((h[i]-K*B)%(A-B)==0){
          sum += (h[i]-B*K)/(A-B);
        }else{
          sum += (h[i]-B*K)/(A-B)+1;
        }
      }
    }
    if(sum <= K){
      right=K;
    }else{
      left=K;
    }
  }

  printf("%lld\n", right);

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1360, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800064(%rbp), %rcx
	leaq	-800072(%rbp), %rdx
	leaq	-800080(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -800056(%rbp)
	jmp	.L2
.L3:
	leaq	-800016(%rbp), %rdx
	movq	-800056(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -800056(%rbp)
.L2:
	movq	-800080(%rbp), %rax
	cmpq	%rax, -800056(%rbp)
	jl	.L3
	movq	$0, -800048(%rbp)
	movq	$1000000000, -800040(%rbp)
	jmp	.L4
.L10:
	movq	-800040(%rbp), %rdx
	movq	-800048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -800024(%rbp)
	movq	$0, -800032(%rbp)
	movq	$0, -800056(%rbp)
	jmp	.L5
.L8:
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L6
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-800072(%rbp), %rdx
	movq	-800064(%rbp), %rsi
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L7
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-800072(%rbp), %rdx
	movq	-800064(%rbp), %rcx
	movq	%rdx, %rdi
	subq	%rcx, %rdi
	cqto
	idivq	%rdi
	addq	%rax, -800032(%rbp)
	jmp	.L6
.L7:
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-800072(%rbp), %rdx
	movq	-800064(%rbp), %rcx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	cqto
	idivq	%rsi
	addq	$1, %rax
	addq	%rax, -800032(%rbp)
.L6:
	addq	$1, -800056(%rbp)
.L5:
	movq	-800080(%rbp), %rax
	cmpq	%rax, -800056(%rbp)
	jl	.L8
	movq	-800032(%rbp), %rax
	cmpq	-800024(%rbp), %rax
	jg	.L9
	movq	-800024(%rbp), %rax
	movq	%rax, -800040(%rbp)
	jmp	.L4
.L9:
	movq	-800024(%rbp), %rax
	movq	%rax, -800048(%rbp)
.L4:
	movq	-800040(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -800048(%rbp)
	jne	.L10
	movq	-800040(%rbp), %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	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1360, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-800064(%rbp), %rcx
	leaq	-800072(%rbp), %rdx
	leaq	-800080(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -800056(%rbp)
	jmp	.L2
.L3:
	leaq	-800016(%rbp), %rdx
	movq	-800056(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -800056(%rbp)
.L2:
	movq	-800080(%rbp), %rax
	cmpq	%rax, -800056(%rbp)
	jl	.L3
	movq	$0, -800048(%rbp)
	movq	$1000000000, -800040(%rbp)
	jmp	.L4
.L10:
	movq	-800040(%rbp), %rdx
	movq	-800048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -800024(%rbp)
	movq	$0, -800032(%rbp)
	movq	$0, -800056(%rbp)
	jmp	.L5
.L8:
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L6
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-800072(%rbp), %rdx
	movq	-800064(%rbp), %rsi
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L7
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-800072(%rbp), %rdx
	movq	-800064(%rbp), %rcx
	movq	%rdx, %rdi
	subq	%rcx, %rdi
	cqto
	idivq	%rdi
	addq	%rax, -800032(%rbp)
	jmp	.L6
.L7:
	movq	-800056(%rbp), %rax
	movq	-800016(%rbp,%rax,8), %rdx
	movq	-800064(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-800072(%rbp), %rdx
	movq	-800064(%rbp), %rcx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	cqto
	idivq	%rsi
	addq	$1, %rax
	addq	%rax, -800032(%rbp)
.L6:
	addq	$1, -800056(%rbp)
.L5:
	movq	-800080(%rbp), %rax
	cmpq	%rax, -800056(%rbp)
	jl	.L8
	movq	-800032(%rbp), %rax
	cmpq	-800024(%rbp), %rax
	jg	.L9
	movq	-800024(%rbp), %rax
	movq	%rax, -800040(%rbp)
	jmp	.L4
.L9:
	movq	-800024(%rbp), %rax
	movq	%rax, -800048(%rbp)
.L4:
	movq	-800040(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -800048(%rbp)
	jne	.L10
	movq	-800040(%rbp), %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	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
