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;
  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("%d",&h[i]);
    //printf("h[%lld]=%lld\n", i,h[i]);
  }

  left=0;
  right=1000000000;
  //K=(right+left)/2;

  //printf("%d\n", K);

  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(sum <= K){
      right=(right+left)/2;
    }else{
      left=(right+left)/2;
    }
    //printf("%lld,%lld\n", left,right);

    /*if(left==right-1){
      break;
    }*/
  }

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

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%d"
.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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400064(%rbp), %rcx
	leaq	-400072(%rbp), %rdx
	leaq	-400080(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -400056(%rbp)
	jmp	.L2
.L3:
	leaq	-400016(%rbp), %rdx
	movq	-400056(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -400056(%rbp)
.L2:
	movq	-400080(%rbp), %rax
	cmpq	%rax, -400056(%rbp)
	jl	.L3
	movq	$0, -400048(%rbp)
	movq	$1000000000, -400040(%rbp)
	jmp	.L4
.L11:
	movq	-400040(%rbp), %rdx
	movq	-400048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -400024(%rbp)
	movq	$0, -400032(%rbp)
	movq	$0, -400056(%rbp)
	jmp	.L5
.L9:
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L6
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-400072(%rbp), %rdx
	movq	-400064(%rbp), %rsi
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L7
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-400072(%rbp), %rdx
	movq	-400064(%rbp), %rcx
	movq	%rdx, %rdi
	subq	%rcx, %rdi
	cqto
	idivq	%rdi
	addq	$1, %rax
	jmp	.L8
.L7:
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-400072(%rbp), %rdx
	movq	-400064(%rbp), %rcx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	cqto
	idivq	%rsi
.L8:
	addq	%rax, -400032(%rbp)
.L6:
	addq	$1, -400056(%rbp)
.L5:
	movq	-400080(%rbp), %rax
	cmpq	%rax, -400056(%rbp)
	jl	.L9
	movq	-400032(%rbp), %rax
	cmpq	-400024(%rbp), %rax
	jg	.L10
	movq	-400040(%rbp), %rdx
	movq	-400048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -400040(%rbp)
	jmp	.L4
.L10:
	movq	-400040(%rbp), %rdx
	movq	-400048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -400048(%rbp)
.L4:
	movq	-400040(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -400048(%rbp)
	jne	.L11
	movq	-400040(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2736, %rsp
	.cfi_def_cfa_offset 400096
	leaq	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 400040(%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), %r12
	testq	%r12, %r12
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r12
	addq	$4, %r13
	cmpq	%rbp, %r12
	jg	.L3
.L2:
	movq	24(%rsp), %r14
	movq	16(%rsp), %rdi
	leaq	(%rbx,%r12,4), %r9
	xorl	%ebp, %ebp
	movl	$1000000000, %r11d
	movl	$999999999, %r13d
	subq	%r14, %rdi
.L9:
	cmpq	%r13, %rbp
	je	.L22
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	0(%rbp,%r11), %rax
	movq	%rax, %r10
	shrq	$63, %r10
	addq	%rax, %r10
	sarq	%r10
	testq	%r12, %r12
	jle	.L12
	movq	%r14, %r8
	movq	%rbx, %rcx
	xorl	%esi, %esi
	imulq	%r10, %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rcx), %rax
	subq	%r8, %rax
	testq	%rax, %rax
	jle	.L6
	cqto
	idivq	%rdi
	cmpq	$1, %rdx
	sbbq	$-1, %rax
	addq	%rax, %rsi
.L6:
	addq	$4, %rcx
	cmpq	%rcx, %r9
	jne	.L8
	cmpq	%rsi, %r10
	jl	.L23
.L13:
	leaq	-1(%r10), %r13
	movq	%r10, %r11
	cmpq	%r13, %rbp
	jne	.L10
.L22:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$400048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	xorl	%esi, %esi
	cmpq	%rsi, %r10
	jge	.L13
.L23:
	movq	%r10, %rbp
	jmp	.L9
.L24:
	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	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2736, %rsp
	.cfi_def_cfa_offset 400096
	leaq	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 400040(%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), %r12
	testq	%r12, %r12
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r12
	addq	$4, %r13
	cmpq	%rbp, %r12
	jg	.L3
.L2:
	movq	24(%rsp), %r14
	movq	16(%rsp), %rdi
	leaq	(%rbx,%r12,4), %r9
	xorl	%ebp, %ebp
	movl	$1000000000, %r11d
	movl	$999999999, %r13d
	subq	%r14, %rdi
.L9:
	cmpq	%r13, %rbp
	je	.L22
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	0(%rbp,%r11), %rax
	movq	%rax, %r10
	shrq	$63, %r10
	addq	%rax, %r10
	sarq	%r10
	testq	%r12, %r12
	jle	.L12
	movq	%r14, %r8
	movq	%rbx, %rcx
	xorl	%esi, %esi
	imulq	%r10, %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	(%rcx), %rax
	subq	%r8, %rax
	testq	%rax, %rax
	jle	.L6
	cqto
	idivq	%rdi
	cmpq	$1, %rdx
	sbbq	$-1, %rax
	addq	%rax, %rsi
.L6:
	addq	$4, %rcx
	cmpq	%rcx, %r9
	jne	.L8
	cmpq	%rsi, %r10
	jl	.L23
.L13:
	leaq	-1(%r10), %r13
	movq	%r10, %r11
	cmpq	%r13, %rbp
	jne	.L10
.L22:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$400048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	xorl	%esi, %esi
	cmpq	%rsi, %r10
	jge	.L13
.L23:
	movq	%r10, %rbp
	jmp	.L9
.L24:
	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;
  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("%d",&h[i]);
    //printf("h[%lld]=%lld\n", i,h[i]);
  }

  left=0;
  right=1000000000;
  //K=(right+left)/2;

  //printf("%d\n", K);

  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(sum <= K){
      right=(right+left)/2;
    }else{
      left=(right+left)/2;
    }
    //printf("%lld,%lld\n", left,right);

    /*if(left==right-1){
      break;
    }*/
  }

  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;
  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("%d",&h[i]);
    //printf("h[%lld]=%lld\n", i,h[i]);
  }

  left=0;
  right=1000000000;
  //K=(right+left)/2;

  //printf("%d\n", K);

  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(sum <= K){
      right=(right+left)/2;
    }else{
      left=(right+left)/2;
    }
    //printf("%lld,%lld\n", left,right);

    /*if(left==right-1){
      break;
    }*/
  }

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

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%d"
.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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400064(%rbp), %rcx
	leaq	-400072(%rbp), %rdx
	leaq	-400080(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -400056(%rbp)
	jmp	.L2
.L3:
	leaq	-400016(%rbp), %rdx
	movq	-400056(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -400056(%rbp)
.L2:
	movq	-400080(%rbp), %rax
	cmpq	%rax, -400056(%rbp)
	jl	.L3
	movq	$0, -400048(%rbp)
	movq	$1000000000, -400040(%rbp)
	jmp	.L4
.L11:
	movq	-400040(%rbp), %rdx
	movq	-400048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -400024(%rbp)
	movq	$0, -400032(%rbp)
	movq	$0, -400056(%rbp)
	jmp	.L5
.L9:
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L6
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-400072(%rbp), %rdx
	movq	-400064(%rbp), %rsi
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L7
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-400072(%rbp), %rdx
	movq	-400064(%rbp), %rcx
	movq	%rdx, %rdi
	subq	%rcx, %rdi
	cqto
	idivq	%rdi
	addq	$1, %rax
	jmp	.L8
.L7:
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-400072(%rbp), %rdx
	movq	-400064(%rbp), %rcx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	cqto
	idivq	%rsi
.L8:
	addq	%rax, -400032(%rbp)
.L6:
	addq	$1, -400056(%rbp)
.L5:
	movq	-400080(%rbp), %rax
	cmpq	%rax, -400056(%rbp)
	jl	.L9
	movq	-400032(%rbp), %rax
	cmpq	-400024(%rbp), %rax
	jg	.L10
	movq	-400040(%rbp), %rdx
	movq	-400048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -400040(%rbp)
	jmp	.L4
.L10:
	movq	-400040(%rbp), %rdx
	movq	-400048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -400048(%rbp)
.L4:
	movq	-400040(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -400048(%rbp)
	jne	.L11
	movq	-400040(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"%d"
.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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400064(%rbp), %rcx
	leaq	-400072(%rbp), %rdx
	leaq	-400080(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -400056(%rbp)
	jmp	.L2
.L3:
	leaq	-400016(%rbp), %rdx
	movq	-400056(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -400056(%rbp)
.L2:
	movq	-400080(%rbp), %rax
	cmpq	%rax, -400056(%rbp)
	jl	.L3
	movq	$0, -400048(%rbp)
	movq	$1000000000, -400040(%rbp)
	jmp	.L4
.L11:
	movq	-400040(%rbp), %rdx
	movq	-400048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -400024(%rbp)
	movq	$0, -400032(%rbp)
	movq	$0, -400056(%rbp)
	jmp	.L5
.L9:
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jle	.L6
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-400072(%rbp), %rdx
	movq	-400064(%rbp), %rsi
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	testq	%rax, %rax
	je	.L7
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-400072(%rbp), %rdx
	movq	-400064(%rbp), %rcx
	movq	%rdx, %rdi
	subq	%rcx, %rdi
	cqto
	idivq	%rdi
	addq	$1, %rax
	jmp	.L8
.L7:
	movq	-400056(%rbp), %rax
	movl	-400016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-400064(%rbp), %rax
	imulq	-400024(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-400072(%rbp), %rdx
	movq	-400064(%rbp), %rcx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	cqto
	idivq	%rsi
.L8:
	addq	%rax, -400032(%rbp)
.L6:
	addq	$1, -400056(%rbp)
.L5:
	movq	-400080(%rbp), %rax
	cmpq	%rax, -400056(%rbp)
	jl	.L9
	movq	-400032(%rbp), %rax
	cmpq	-400024(%rbp), %rax
	jg	.L10
	movq	-400040(%rbp), %rdx
	movq	-400048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -400040(%rbp)
	jmp	.L4
.L10:
	movq	-400040(%rbp), %rdx
	movq	-400048(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -400048(%rbp)
.L4:
	movq	-400040(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -400048(%rbp)
	jne	.L11
	movq	-400040(%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	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
