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<stdlib.h>
#define MAX 200000
long long int a[40], sum1[41][MAX], sum2[41][MAX], w1[41], w2[41];
int w;
int Input(void);
long long int Inputll(void);
long long int Combi(int w, int k);
int Compare(const void *a, const void *b);
long long int Binary_search(long long int *sum, long long int x, long long int r);
int main(void)
{
  int n, k, m1, m2;
  long long int i, j, l, r, x, y, limit;
  n = Input(), k = Input(), l = Inputll(), r = Inputll();
  y = Inputll();
  if (y + k - 1 <= r) a[w++] = y;
  for (i = 1; i < n; i++) {
    x = Inputll();
    if (x != y) y = 0;
    if (x + k - 1 <= r) a[w++] = x;
  }
  if (x == y) {
    if (w >= k && (y = x * k) >= l && y <= r) printf("%lld\n", Combi(w, k));
    else printf("0\n");
    return 0;
  }
  m1 = w / 2, limit = 1 << m1;
  for (i = 0; i < limit; i++) {
    x = 0, n = 0, j = 0;
    while (1) {
      if (j == m1) {
        sum1[n][w1[n]++] = x;
        break;
      }
      if ((i >> j) & 1) {
        x += a[j];
        if (++n > k) break;
      }
      j++;
    }
  }
  m2 = w - m1, limit = 1 << m2;
  for (i = 0; i < limit; i++) {
    x = 0, n = 0, j = 0;
    while (1) {
      if (j == m2) {
        sum2[n][w2[n]++] = x;
        break;
      }
      if ((i >> j) & 1) {
        x += a[j+m1];
        if (++n > k) break;
      }
      j++;
    }
  }
  for (i = 0; i <= k; i++) qsort(sum2[i], w2[i], sizeof(long long int), Compare);
  limit = 0;
  for (i = 0; i <= k; i++) {
    int kk = k - i;
    for (j = 0; j < w1[i]; j++) {
      x = l - sum1[i][j], y = r - sum1[i][j];
      if (y < 0) continue;
      limit += Binary_search(sum2[kk], y + 1, w2[kk]);
      if (x > 0) limit -= Binary_search(sum2[kk], x, w2[kk]);
    }
  }
  printf("%lld\n", limit);
  return 0;
}
int Input(void)
{
  int n = 0, c;
  while ((c = getchar_unlocked()) >= '0' && c <= '9') n = 10 * n + c - '0';
  return n;
}
long long int Inputll(void)
{
  long long int n = 0;
  int c;
  while ((c = getchar_unlocked()) >= '0' && c <= '9') n = 10 * n + c - '0';
  return n;
}
long long int Combi(int w, int k)
{
  if (sum1[w][k]) return sum1[w][k];
  if (k == 0 || k == w) return 1;
  else if (k == 1) return w;
  else {
    if (k * 2 > w) k = w - k;
    return sum1[w][k] = Combi(w - 1, k) + Combi(w - 1, k - 1);
  }
}
int Compare(const void *a, const void *b)
{
  long long int *ta = (long long int*)a, *tb = (long long int*)b;
  if (*ta > *tb) return 1;
  else if (*ta < *tb) return -1;
  return 0;
}
long long int Binary_search(long long int *sum, long long int x, long long int r)
{
  int m, l = 0;
  while (l < r) {
    m = (l + r) / 2;
    if (sum[m] < x) l = m + 1;
    else r = m;
  }
  return l;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 320
a:
	.zero	320
	.globl	sum1
	.align 32
	.type	sum1, @object
	.size	sum1, 65600000
sum1:
	.zero	65600000
	.globl	sum2
	.align 32
	.type	sum2, @object
	.size	sum2, 65600000
sum2:
	.zero	65600000
	.globl	w1
	.align 32
	.type	w1, @object
	.size	w1, 328
w1:
	.zero	328
	.globl	w2
	.align 32
	.type	w2, @object
	.size	w2, 328
w2:
	.zero	328
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	call	Input
	movl	%eax, -76(%rbp)
	call	Input
	movl	%eax, -72(%rbp)
	call	Inputll
	movq	%rax, -16(%rbp)
	call	Inputll
	movq	%rax, -8(%rbp)
	call	Inputll
	movq	%rax, -32(%rbp)
	movl	-72(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	subq	$1, %rax
	cmpq	%rax, -8(%rbp)
	jl	.L2
	movl	w(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, w(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	a(%rip), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L2:
	movq	$1, -56(%rbp)
	jmp	.L3
.L6:
	call	Inputll
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	cmpq	-32(%rbp), %rax
	je	.L4
	movq	$0, -32(%rbp)
.L4:
	movl	-72(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	subq	$1, %rax
	cmpq	%rax, -8(%rbp)
	jl	.L5
	movl	w(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, w(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	a(%rip), %rdx
	movq	-40(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L5:
	addq	$1, -56(%rbp)
.L3:
	movl	-76(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jl	.L6
	movq	-40(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jne	.L7
	movl	w(%rip), %eax
	cmpl	%eax, -72(%rbp)
	jg	.L8
	movl	-72(%rbp), %eax
	cltq
	movq	-40(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jl	.L8
	movq	-32(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jg	.L8
	movl	w(%rip), %eax
	movl	-72(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	Combi
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L9
.L8:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	jmp	.L10
.L7:
	movl	w(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -68(%rbp)
	movl	-68(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -24(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L11
.L16:
	movq	$0, -40(%rbp)
	movl	$0, -76(%rbp)
	movq	$0, -48(%rbp)
.L15:
	movl	-68(%rbp), %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jne	.L12
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w1(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rdx
	movl	-76(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,8), %rsi
	leaq	w1(%rip), %rcx
	movq	%rdx, (%rsi,%rcx)
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$200000, %rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	sum1(%rip), %rdx
	movq	-40(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L13
.L12:
	movq	-48(%rbp), %rax
	movl	%eax, %edx
	movq	-56(%rbp), %rax
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L14
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -40(%rbp)
	addl	$1, -76(%rbp)
	movl	-76(%rbp), %eax
	cmpl	-72(%rbp), %eax
	jg	.L31
.L14:
	addq	$1, -48(%rbp)
	jmp	.L15
.L31:
	nop
.L13:
	addq	$1, -56(%rbp)
.L11:
	movq	-56(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L16
	movl	w(%rip), %eax
	subl	-68(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -24(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L17
.L22:
	movq	$0, -40(%rbp)
	movl	$0, -76(%rbp)
	movq	$0, -48(%rbp)
.L21:
	movl	-64(%rbp), %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jne	.L18
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rdx
	movl	-76(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,8), %rsi
	leaq	w2(%rip), %rcx
	movq	%rdx, (%rsi,%rcx)
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$200000, %rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	sum2(%rip), %rdx
	movq	-40(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L19
.L18:
	movq	-48(%rbp), %rax
	movl	%eax, %edx
	movq	-56(%rbp), %rax
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L20
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -40(%rbp)
	addl	$1, -76(%rbp)
	movl	-76(%rbp), %eax
	cmpl	-72(%rbp), %eax
	jg	.L32
.L20:
	addq	$1, -48(%rbp)
	jmp	.L21
.L32:
	nop
.L19:
	addq	$1, -56(%rbp)
.L17:
	movq	-56(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L22
	movq	$0, -56(%rbp)
	jmp	.L23
.L24:
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	movq	-56(%rbp), %rax
	imulq	$1600000, %rax, %rax
	leaq	sum2(%rip), %rdx
	addq	%rdx, %rax
	leaq	Compare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	addq	$1, -56(%rbp)
.L23:
	movl	-72(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jle	.L24
	movq	$0, -24(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L25
.L30:
	movl	-72(%rbp), %eax
	movq	-56(%rbp), %rdx
	subl	%edx, %eax
	movl	%eax, -60(%rbp)
	movq	$0, -48(%rbp)
	jmp	.L26
.L29:
	movq	-56(%rbp), %rax
	imulq	$200000, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-16(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-56(%rbp), %rax
	imulq	$200000, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-8(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	js	.L33
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-32(%rbp), %rdx
	leaq	1(%rdx), %rsi
	movl	-60(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$1600000, %rdx, %rdx
	leaq	sum2(%rip), %rcx
	addq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	Binary_search
	addq	%rax, -24(%rbp)
	cmpq	$0, -40(%rbp)
	jle	.L28
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-60(%rbp), %eax
	cltq
	imulq	$1600000, %rax, %rax
	leaq	sum2(%rip), %rcx
	addq	%rax, %rcx
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	Binary_search
	subq	%rax, -24(%rbp)
	jmp	.L28
.L33:
	nop
.L28:
	addq	$1, -48(%rbp)
.L26:
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	w1(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -48(%rbp)
	jl	.L29
	addq	$1, -56(%rbp)
.L25:
	movl	-72(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jle	.L30
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	Input
	.type	Input, @function
Input:
.LFB7:
	.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
	movl	$0, -8(%rbp)
	jmp	.L35
.L37:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -8(%rbp)
.L35:
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jle	.L36
	cmpl	$57, -4(%rbp)
	jle	.L37
.L36:
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Input, .-Input
	.globl	Inputll
	.type	Inputll, @function
Inputll:
.LFB8:
	.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	$0, -8(%rbp)
	jmp	.L40
.L42:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
.L40:
	call	getchar_unlocked@PLT
	movl	%eax, -12(%rbp)
	cmpl	$47, -12(%rbp)
	jle	.L41
	cmpl	$57, -12(%rbp)
	jle	.L42
.L41:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Inputll, .-Inputll
	.globl	Combi
	.type	Combi, @function
Combi:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L45
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L46
.L45:
	cmpl	$0, -24(%rbp)
	je	.L47
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L48
.L47:
	movl	$1, %eax
	jmp	.L46
.L48:
	cmpl	$1, -24(%rbp)
	jne	.L49
	movl	-20(%rbp), %eax
	cltq
	jmp	.L46
.L49:
	movl	-24(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -20(%rbp)
	jge	.L50
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	movl	%eax, -24(%rbp)
.L50:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	Combi
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Combi
	leaq	(%rbx,%rax), %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rax
.L46:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Combi, .-Combi
	.globl	Compare
	.type	Compare, @function
Compare:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L52
	movl	$1, %eax
	jmp	.L53
.L52:
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L54
	movl	$-1, %eax
	jmp	.L53
.L54:
	movl	$0, %eax
.L53:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Compare, .-Compare
	.globl	Binary_search
	.type	Binary_search, @function
Binary_search:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L56
.L58:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L57
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L56
.L57:
	movl	-4(%rbp), %eax
	cltq
	movq	%rax, -40(%rbp)
.L56:
	movl	-8(%rbp), %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jg	.L58
	movl	-8(%rbp), %eax
	cltq
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Binary_search, .-Binary_search
	.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
	.type	Compare, @function
Compare:
.LFB43:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rdx
	movl	$1, %eax
	cmpq	%rdx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE43:
	.size	Compare, .-Compare
	.p2align 4
	.type	Combi.part.0, @function
Combi.part.0:
.LFB45:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leal	(%rsi,%rsi), %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	sum1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	movl	%ebx, %eax
	leal	-1(%rbx), %edi
	subl	%esi, %eax
	movslq	%edi, %r15
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	cmpl	%ebx, %edx
	cmovg	%eax, %ebp
	imulq	$200000, %r15, %rax
	movslq	%ebp, %r14
	addq	%r14, %rax
	movq	0(%r13,%rax,8), %rdx
	testq	%rdx, %rdx
	jne	.L7
	movl	$1, %edx
	cmpl	%ebp, %edi
	je	.L7
	movq	%r15, %rdx
	cmpl	$1, %ebp
	je	.L7
	movl	%ebp, %esi
	movl	%edi, (%rsp)
	call	Combi.part.0
	movl	(%rsp), %edi
	movq	%rax, %rdx
.L7:
	imulq	$200000, %r15, %rax
	leal	-1(%rbp), %r12d
	movslq	%r12d, %rcx
	addq	%rcx, %rax
	movq	0(%r13,%rax,8), %rax
	testq	%rax, %rax
	jne	.L9
	testl	%r12d, %r12d
	je	.L17
	cmpl	%ebp, %ebx
	je	.L17
	movq	%r15, %rax
	cmpl	$1, %r12d
	je	.L9
	leal	(%r12,%r12), %eax
	cmpl	%eax, %edi
	jge	.L11
	movl	%ebx, %r12d
	subl	%ebp, %r12d
	movslq	%r12d, %rcx
.L11:
	leal	-2(%rbx), %edi
	movslq	%edi, %r8
	imulq	$200000, %r8, %rax
	addq	%rcx, %rax
	movq	0(%r13,%rax,8), %rbp
	testq	%rbp, %rbp
	jne	.L12
	movl	$1, %ebp
	cmpl	%r12d, %edi
	je	.L12
	movq	%r8, %rbp
	cmpl	$1, %r12d
	je	.L12
	movl	%r12d, %esi
	movq	%r8, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movq	%rdx, 8(%rsp)
	movl	%edi, (%rsp)
	call	Combi.part.0
	movq	24(%rsp), %r8
	movq	16(%rsp), %rcx
	movq	8(%rsp), %rdx
	movl	(%rsp), %edi
	movq	%rax, %rbp
.L12:
	imulq	$200000, %r8, %rax
	leal	-1(%r12), %esi
	movslq	%esi, %r9
	addq	%r9, %rax
	movq	0(%r13,%rax,8), %rax
	testq	%rax, %rax
	jne	.L14
	testl	%esi, %esi
	je	.L19
	cmpl	%esi, %edi
	je	.L19
	movq	%r8, %rax
	cmpl	$1, %esi
	je	.L14
	movq	%rcx, 8(%rsp)
	movq	%rdx, (%rsp)
	call	Combi.part.0
	movq	(%rsp), %rdx
	movq	8(%rsp), %rcx
.L14:
	imulq	$200000, %r15, %r15
	addq	%rbp, %rax
	addq	%rcx, %r15
	movq	%rax, 0(%r13,%r15,8)
.L9:
	imulq	$200000, %rbx, %rbx
	addq	%rdx, %rax
	addq	%r14, %rbx
	movq	%rax, 0(%r13,%rbx,8)
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L17:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L19:
	movl	$1, %eax
	jmp	.L14
	.cfi_endproc
.LFE45:
	.size	Combi.part.0, .-Combi.part.0
	.p2align 4
	.globl	Input
	.type	Input, @function
Input:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	stdin(%rip), %rdi
	xorl	%r12d, %r12d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L21
.L24:
	leal	(%r12,%r12,4), %edx
	leal	-48(%rax,%rdx,2), %r12d
.L22:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L23
	call	__uflow@PLT
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L21
	movq	stdin(%rip), %rdi
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	Input, .-Input
	.p2align 4
	.globl	Inputll
	.type	Inputll, @function
Inputll:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	stdin(%rip), %rdi
	xorl	%r12d, %r12d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L28
.L31:
	leaq	(%r12,%r12,4), %rdx
	cltq
	leaq	-48(%rax,%rdx,2), %r12
.L29:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L30
	call	__uflow@PLT
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L28
	movq	stdin(%rip), %rdi
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%r12, %rax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE41:
	.size	Inputll, .-Inputll
	.p2align 4
	.globl	Combi
	.type	Combi, @function
Combi:
.LFB42:
	.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
	movslq	%esi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	sum1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	imulq	$200000, %rbx, %rax
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	addq	%r12, %rax
	movq	0(%rbp,%rax,8), %rax
	testq	%rax, %rax
	jne	.L35
	testl	%esi, %esi
	je	.L48
	movq	%rbx, %r11
	cmpl	%esi, %ebx
	je	.L48
	movq	%rbx, %rax
	cmpl	$1, %esi
	je	.L35
	leal	(%rsi,%rsi), %eax
	cmpl	%eax, %ebx
	jge	.L38
	movl	%ebx, %eax
	subl	%esi, %eax
	movslq	%eax, %r12
	movq	%r12, %rsi
.L38:
	leal	-1(%r11), %r10d
	movslq	%r10d, %r14
	imulq	$200000, %r14, %rax
	addq	%r12, %rax
	movq	0(%rbp,%rax,8), %r15
	testq	%r15, %r15
	jne	.L39
	movl	$1, %r15d
	cmpl	%esi, %r10d
	je	.L39
	movq	%r14, %r15
	cmpl	$1, %esi
	je	.L39
	movl	%r10d, %edi
	movl	%esi, (%rsp)
	call	Combi.part.0
	movl	(%rsp), %esi
	movq	%rax, %r15
.L39:
	imulq	$200000, %r14, %rax
	leal	-1(%rsi), %r13d
	movslq	%r13d, %rdx
	addq	%rdx, %rax
	movq	0(%rbp,%rax,8), %rax
	testq	%rax, %rax
	jne	.L41
	testl	%r13d, %r13d
	je	.L50
	cmpl	%esi, %r11d
	je	.L50
	movq	%r14, %rax
	cmpl	$1, %r13d
	je	.L41
	leal	(%r13,%r13), %eax
	cmpl	%eax, %r10d
	jl	.L54
.L43:
	leal	-2(%r11), %edi
	movslq	%edi, %r11
	imulq	$200000, %r11, %rax
	addq	%rdx, %rax
	movq	0(%rbp,%rax,8), %r10
	testq	%r10, %r10
	jne	.L44
	movl	$1, %r10d
	cmpl	%r13d, %edi
	je	.L44
	movq	%r11, %r10
	cmpl	$1, %r13d
	je	.L44
	movl	%r13d, %esi
	movq	%rdx, 8(%rsp)
	movl	%edi, (%rsp)
	call	Combi.part.0
	movq	8(%rsp), %rdx
	movl	(%rsp), %edi
	movq	%rax, %r10
.L44:
	imulq	$200000, %r11, %rax
	leal	-1(%r13), %esi
	movslq	%esi, %rcx
	addq	%rcx, %rax
	movq	0(%rbp,%rax,8), %rax
	testq	%rax, %rax
	jne	.L46
	testl	%esi, %esi
	je	.L52
	cmpl	%esi, %edi
	je	.L52
	movq	%r11, %rax
	cmpl	$1, %esi
	je	.L46
	movq	%rdx, (%rsp)
	call	Combi.part.0
	movq	(%rsp), %rdx
.L46:
	imulq	$200000, %r14, %r14
	addq	%r10, %rax
	addq	%rdx, %r14
	movq	%rax, 0(%rbp,%r14,8)
.L41:
	imulq	$200000, %rbx, %rdx
	addq	%r15, %rax
	addq	%r12, %rdx
	movq	%rax, 0(%rbp,%rdx,8)
.L35:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L48:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$1, %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
.L50:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L54:
	movl	%r11d, %r13d
	subl	%esi, %r13d
	movslq	%r13d, %rdx
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L52:
	movl	$1, %eax
	jmp	.L46
	.cfi_endproc
.LFE42:
	.size	Combi, .-Combi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	call	Input
	movl	%eax, 16(%rsp)
	call	Input
	movslq	%eax, %r12
	call	Inputll
	movq	%r12, %rbp
	movq	%rax, 8(%rsp)
	call	Inputll
	movq	%rax, %rbx
	call	Inputll
	movl	16(%rsp), %edi
	movq	%rax, %r13
	leaq	-1(%rax,%r12), %rax
	cmpq	%rbx, %rax
	jg	.L56
	movslq	w(%rip), %rax
	leal	1(%rax), %esi
	movl	%esi, w(%rip)
	leaq	a(%rip), %rsi
	movq	%r13, (%rsi,%rax,8)
.L56:
	movslq	%edi, %rax
	movl	$1, %r14d
	cmpl	$1, %edi
	jle	.L58
	movl	%ebp, 16(%rsp)
	movq	%r14, %rbp
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L57:
	movq	stdin(%rip), %rdi
	xorl	%r15d, %r15d
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L59:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L61
.L60:
	leaq	(%r15,%r15,4), %rdx
	cltq
	leaq	-48(%rax,%rdx,2), %r15
.L64:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L59
	call	__uflow@PLT
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L61
	movq	stdin(%rip), %rdi
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L61:
	xorl	%eax, %eax
	cmpq	%r13, %r15
	cmovne	%rax, %r13
	leaq	-1(%r15,%r12), %rax
	cmpq	%rbx, %rax
	jg	.L63
	movslq	w(%rip), %rax
	leaq	a(%rip), %rsi
	leal	1(%rax), %edx
	movq	%r15, (%rsi,%rax,8)
	movl	%edx, w(%rip)
.L63:
	addq	$1, %rbp
	cmpq	%r14, %rbp
	jne	.L57
	movl	16(%rsp), %ebp
.L58:
	movl	w(%rip), %edi
	cmpq	%r13, %r15
	je	.L125
	movl	%edi, %r9d
	movl	$1, %r11d
	shrl	$31, %r9d
	addl	%edi, %r9d
	sarl	%r9d
	movl	%r9d, %ecx
	sall	%cl, %r11d
	movslq	%r11d, %r11
	testq	%r11, %r11
	jle	.L68
	movslq	%r9d, %rsi
	xorl	%edx, %edx
	leaq	a(%rip), %r8
	leaq	w1(%rip), %r13
	leaq	sum1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L69:
	testl	%r9d, %r9d
	je	.L97
	xorl	%r10d, %r10d
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L73:
	btq	%rax, %rdx
	jnc	.L71
	addl	$1, %ecx
	addq	(%r8,%rax,8), %r10
	cmpl	%ecx, %ebp
	jl	.L70
.L71:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L73
.L72:
	movslq	%ecx, %rcx
	movq	0(%r13,%rcx,8), %rax
	leaq	1(%rax), %r14
	movq	%r14, 0(%r13,%rcx,8)
	imulq	$200000, %rcx, %rcx
	addq	%rax, %rcx
	movq	%r10, (%r15,%rcx,8)
.L70:
	addq	$1, %rdx
	cmpq	%rdx, %r11
	jne	.L69
.L68:
	subl	%r9d, %edi
	movl	$1, %r10d
	movl	%edi, %ecx
	sall	%cl, %r10d
	movslq	%r10d, %r10
	testq	%r10, %r10
	jle	.L74
	movslq	%r9d, %r9
	leaq	a(%rip), %rax
	movslq	%edi, %rsi
	xorl	%ecx, %ecx
	leaq	(%rax,%r9,8), %r8
	leaq	sum2(%rip), %r11
	leaq	w2(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L75:
	xorl	%edi, %edi
	testq	%rsi, %rsi
	je	.L98
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L79:
	btq	%rax, %rcx
	jnc	.L77
	addl	$1, %edx
	addq	(%r8,%rax,8), %rdi
	cmpl	%edx, %ebp
	jl	.L76
.L77:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L79
.L78:
	movslq	%edx, %rdx
	movq	(%r9,%rdx,8), %rax
	leaq	1(%rax), %r13
	movq	%r13, (%r9,%rdx,8)
	imulq	$200000, %rdx, %rdx
	addq	%rax, %rdx
	movq	%rdi, (%r11,%rdx,8)
.L76:
	addq	$1, %rcx
	cmpq	%rcx, %r10
	jne	.L75
.L74:
	testq	%r12, %r12
	js	.L99
	leaq	1(%r12), %rax
	leaq	sum2(%rip), %r15
	movq	%rbx, 16(%rsp)
	xorl	%r14d, %r14d
	movq	%rax, 32(%rsp)
	movq	%r15, %rbx
	leaq	w2(%rip), %r12
	leaq	Compare(%rip), %r13
	movq	%rax, %r15
	.p2align 4,,10
	.p2align 3
.L81:
	movq	(%r12,%r14,8), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rcx
	movl	$8, %edx
	addq	$1, %r14
	addq	$1600000, %rbx
	call	qsort@PLT
	cmpq	%r15, %r14
	jne	.L81
	movq	16(%rsp), %rbx
	movl	%ebp, 44(%rsp)
	xorl	%r11d, %r11d
	xorl	%r14d, %r14d
	movq	$0, 24(%rsp)
	leaq	sum1(%rip), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L94:
	leaq	w1(%rip), %rax
	movl	44(%rsp), %r13d
	movq	(%rax,%r14,8), %rax
	subl	%r14d, %r13d
	testq	%rax, %rax
	jle	.L82
	movslq	%r13d, %r13
	addq	24(%rsp), %rax
	movq	16(%rsp), %r9
	leaq	sum2(%rip), %rdi
	imulq	$1600000, %r13, %rsi
	addq	%rdi, %rsi
	leaq	sum1(%rip), %rdi
	leaq	(%rdi,%rax,8), %rbp
	.p2align 4,,10
	.p2align 3
.L93:
	movq	(%r9), %rax
	movq	%rbx, %rdi
	subq	%rax, %rdi
	js	.L83
	movq	8(%rsp), %r10
	movq	(%r12,%r13,8), %r8
	subq	%rax, %r10
	testq	%r8, %r8
	jle	.L83
	movq	%r8, %rdx
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L88:
	leaq	(%rdx,%r15), %rax
	movq	%rax, %r15
	shrq	$63, %r15
	addq	%rax, %r15
	sarq	%r15
	movslq	%r15d, %rax
	cmpq	(%rsi,%rax,8), %rdi
	jl	.L85
	leal	1(%r15), %ecx
	movslq	%ecx, %r15
	cmpq	%rdx, %r15
	jl	.L88
	addq	%r15, %r11
	testq	%r10, %r10
	jg	.L126
	.p2align 4,,10
	.p2align 3
.L83:
	addq	$8, %r9
	cmpq	%r9, %rbp
	jne	.L93
.L82:
	addq	$1600000, 16(%rsp)
	addq	$1, %r14
	addq	$200000, 24(%rsp)
	cmpq	32(%rsp), %r14
	jne	.L94
.L80:
	movq	%r11, %rdx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L118:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L85:
	.cfi_restore_state
	movslq	%ecx, %r15
	movq	%rax, %rdx
	cmpq	%rax, %r15
	jl	.L88
	addq	%r15, %r11
	testq	%r10, %r10
	jle	.L83
.L126:
	xorl	%edx, %edx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L92:
	leaq	(%r8,%rax), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	movslq	%eax, %rcx
	cmpq	(%rsi,%rcx,8), %r10
	jle	.L89
	leal	1(%rax), %edx
	movslq	%edx, %rax
	cmpq	%r8, %rax
	jl	.L92
	subq	%rax, %r11
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L89:
	movslq	%edx, %rax
	movq	%rcx, %r8
	cmpq	%rax, %rcx
	jg	.L92
	subq	%rax, %r11
	jmp	.L83
.L97:
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
	jmp	.L72
.L98:
	xorl	%edx, %edx
	jmp	.L78
.L125:
	cmpl	%edi, %ebp
	jg	.L66
	movq	%r12, %rdx
	imulq	%r15, %rdx
	cmpq	%rdx, %rbx
	jl	.L66
	cmpq	%rdx, 8(%rsp)
	jle	.L127
.L66:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L118
.L99:
	xorl	%r11d, %r11d
	jmp	.L80
.L127:
	movl	%ebp, %esi
	call	Combi
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L118
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.text
	.p2align 4
	.globl	Binary_search
	.type	Binary_search, @function
Binary_search:
.LFB44:
	.cfi_startproc
	endbr64
	testq	%rdx, %rdx
	jle	.L133
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L132:
	leaq	(%rdx,%rax), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	movslq	%eax, %rcx
	cmpq	(%rdi,%rcx,8), %rsi
	jle	.L130
	leal	1(%rax), %r8d
	movslq	%r8d, %rax
	cmpq	%rdx, %rax
	jl	.L132
	ret
	.p2align 4,,10
	.p2align 3
.L130:
	movslq	%r8d, %rax
	movq	%rcx, %rdx
	cmpq	%rcx, %rax
	jl	.L132
	ret
	.p2align 4,,10
	.p2align 3
.L133:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE44:
	.size	Binary_search, .-Binary_search
	.globl	w
	.bss
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	w2
	.align 32
	.type	w2, @object
	.size	w2, 328
w2:
	.zero	328
	.globl	w1
	.align 32
	.type	w1, @object
	.size	w1, 328
w1:
	.zero	328
	.globl	sum2
	.align 32
	.type	sum2, @object
	.size	sum2, 65600000
sum2:
	.zero	65600000
	.globl	sum1
	.align 32
	.type	sum1, @object
	.size	sum1, 65600000
sum1:
	.zero	65600000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 320
a:
	.zero	320
	.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
	.type	Compare, @function
Compare:
.LFB43:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rdx
	movl	$1, %eax
	cmpq	%rdx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE43:
	.size	Compare, .-Compare
	.p2align 4
	.type	Combi.part.0, @function
Combi.part.0:
.LFB45:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leal	(%rsi,%rsi), %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	sum1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	movl	%ebx, %eax
	leal	-1(%rbx), %edi
	subl	%esi, %eax
	movslq	%edi, %r15
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	cmpl	%ebx, %edx
	cmovg	%eax, %ebp
	imulq	$200000, %r15, %rax
	movslq	%ebp, %r14
	addq	%r14, %rax
	movq	0(%r13,%rax,8), %rdx
	testq	%rdx, %rdx
	jne	.L7
	movl	$1, %edx
	cmpl	%ebp, %edi
	je	.L7
	movq	%r15, %rdx
	cmpl	$1, %ebp
	je	.L7
	movl	%ebp, %esi
	movl	%edi, (%rsp)
	call	Combi.part.0
	movl	(%rsp), %edi
	movq	%rax, %rdx
.L7:
	imulq	$200000, %r15, %rax
	leal	-1(%rbp), %r12d
	movslq	%r12d, %rcx
	addq	%rcx, %rax
	movq	0(%r13,%rax,8), %rax
	testq	%rax, %rax
	jne	.L9
	testl	%r12d, %r12d
	je	.L17
	cmpl	%ebp, %ebx
	je	.L17
	movq	%r15, %rax
	cmpl	$1, %r12d
	je	.L9
	leal	(%r12,%r12), %eax
	cmpl	%eax, %edi
	jge	.L11
	movl	%ebx, %r12d
	subl	%ebp, %r12d
	movslq	%r12d, %rcx
.L11:
	leal	-2(%rbx), %edi
	movslq	%edi, %r8
	imulq	$200000, %r8, %rax
	addq	%rcx, %rax
	movq	0(%r13,%rax,8), %rbp
	testq	%rbp, %rbp
	jne	.L12
	movl	$1, %ebp
	cmpl	%r12d, %edi
	je	.L12
	movq	%r8, %rbp
	cmpl	$1, %r12d
	je	.L12
	movl	%r12d, %esi
	movq	%r8, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movq	%rdx, 8(%rsp)
	movl	%edi, (%rsp)
	call	Combi.part.0
	movq	24(%rsp), %r8
	movq	16(%rsp), %rcx
	movq	8(%rsp), %rdx
	movl	(%rsp), %edi
	movq	%rax, %rbp
.L12:
	imulq	$200000, %r8, %rax
	leal	-1(%r12), %esi
	movslq	%esi, %r9
	addq	%r9, %rax
	movq	0(%r13,%rax,8), %rax
	testq	%rax, %rax
	jne	.L14
	testl	%esi, %esi
	je	.L19
	cmpl	%esi, %edi
	je	.L19
	movq	%r8, %rax
	cmpl	$1, %esi
	je	.L14
	movq	%rcx, 8(%rsp)
	movq	%rdx, (%rsp)
	call	Combi.part.0
	movq	(%rsp), %rdx
	movq	8(%rsp), %rcx
.L14:
	imulq	$200000, %r15, %r15
	addq	%rbp, %rax
	addq	%rcx, %r15
	movq	%rax, 0(%r13,%r15,8)
.L9:
	imulq	$200000, %rbx, %rbx
	addq	%rdx, %rax
	addq	%r14, %rbx
	movq	%rax, 0(%r13,%rbx,8)
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L17:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L19:
	movl	$1, %eax
	jmp	.L14
	.cfi_endproc
.LFE45:
	.size	Combi.part.0, .-Combi.part.0
	.p2align 4
	.globl	Input
	.type	Input, @function
Input:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	stdin(%rip), %rdi
	xorl	%r12d, %r12d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L21
.L24:
	leal	(%r12,%r12,4), %edx
	leal	-48(%rax,%rdx,2), %r12d
.L22:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L23
	call	__uflow@PLT
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L21
	movq	stdin(%rip), %rdi
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	Input, .-Input
	.p2align 4
	.globl	Inputll
	.type	Inputll, @function
Inputll:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	stdin(%rip), %rdi
	xorl	%r12d, %r12d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L30:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L28
.L31:
	leaq	(%r12,%r12,4), %rdx
	cltq
	leaq	-48(%rax,%rdx,2), %r12
.L29:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L30
	call	__uflow@PLT
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L28
	movq	stdin(%rip), %rdi
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%r12, %rax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE41:
	.size	Inputll, .-Inputll
	.p2align 4
	.globl	Combi
	.type	Combi, @function
Combi:
.LFB42:
	.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
	movslq	%esi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	sum1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movslq	%edi, %rbx
	imulq	$200000, %rbx, %rax
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	addq	%r12, %rax
	movq	0(%rbp,%rax,8), %rax
	testq	%rax, %rax
	jne	.L35
	testl	%esi, %esi
	je	.L48
	movq	%rbx, %r11
	cmpl	%esi, %ebx
	je	.L48
	movq	%rbx, %rax
	cmpl	$1, %esi
	je	.L35
	leal	(%rsi,%rsi), %eax
	cmpl	%eax, %ebx
	jge	.L38
	movl	%ebx, %eax
	subl	%esi, %eax
	movslq	%eax, %r12
	movq	%r12, %rsi
.L38:
	leal	-1(%r11), %r10d
	movslq	%r10d, %r14
	imulq	$200000, %r14, %rax
	addq	%r12, %rax
	movq	0(%rbp,%rax,8), %r15
	testq	%r15, %r15
	jne	.L39
	movl	$1, %r15d
	cmpl	%esi, %r10d
	je	.L39
	movq	%r14, %r15
	cmpl	$1, %esi
	je	.L39
	movl	%r10d, %edi
	movl	%esi, (%rsp)
	call	Combi.part.0
	movl	(%rsp), %esi
	movq	%rax, %r15
.L39:
	imulq	$200000, %r14, %rax
	leal	-1(%rsi), %r13d
	movslq	%r13d, %rdx
	addq	%rdx, %rax
	movq	0(%rbp,%rax,8), %rax
	testq	%rax, %rax
	jne	.L41
	testl	%r13d, %r13d
	je	.L50
	cmpl	%esi, %r11d
	je	.L50
	movq	%r14, %rax
	cmpl	$1, %r13d
	je	.L41
	leal	(%r13,%r13), %eax
	cmpl	%eax, %r10d
	jl	.L54
.L43:
	leal	-2(%r11), %edi
	movslq	%edi, %r11
	imulq	$200000, %r11, %rax
	addq	%rdx, %rax
	movq	0(%rbp,%rax,8), %r10
	testq	%r10, %r10
	jne	.L44
	movl	$1, %r10d
	cmpl	%r13d, %edi
	je	.L44
	movq	%r11, %r10
	cmpl	$1, %r13d
	je	.L44
	movl	%r13d, %esi
	movq	%rdx, 8(%rsp)
	movl	%edi, (%rsp)
	call	Combi.part.0
	movq	8(%rsp), %rdx
	movl	(%rsp), %edi
	movq	%rax, %r10
.L44:
	imulq	$200000, %r11, %rax
	leal	-1(%r13), %esi
	movslq	%esi, %rcx
	addq	%rcx, %rax
	movq	0(%rbp,%rax,8), %rax
	testq	%rax, %rax
	jne	.L46
	testl	%esi, %esi
	je	.L52
	cmpl	%esi, %edi
	je	.L52
	movq	%r11, %rax
	cmpl	$1, %esi
	je	.L46
	movq	%rdx, (%rsp)
	call	Combi.part.0
	movq	(%rsp), %rdx
.L46:
	imulq	$200000, %r14, %r14
	addq	%r10, %rax
	addq	%rdx, %r14
	movq	%rax, 0(%rbp,%r14,8)
.L41:
	imulq	$200000, %rbx, %rdx
	addq	%r15, %rax
	addq	%r12, %rdx
	movq	%rax, 0(%rbp,%rdx,8)
.L35:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L48:
	.cfi_restore_state
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$1, %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
.L50:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L54:
	movl	%r11d, %r13d
	subl	%esi, %r13d
	movslq	%r13d, %rdx
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L52:
	movl	$1, %eax
	jmp	.L46
	.cfi_endproc
.LFE42:
	.size	Combi, .-Combi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	call	Input
	movl	%eax, 16(%rsp)
	call	Input
	movslq	%eax, %r12
	call	Inputll
	movq	%r12, %rbp
	movq	%rax, 8(%rsp)
	call	Inputll
	movq	%rax, %rbx
	call	Inputll
	movl	16(%rsp), %edi
	movq	%rax, %r13
	leaq	-1(%rax,%r12), %rax
	cmpq	%rbx, %rax
	jg	.L56
	movslq	w(%rip), %rax
	leal	1(%rax), %esi
	movl	%esi, w(%rip)
	leaq	a(%rip), %rsi
	movq	%r13, (%rsi,%rax,8)
.L56:
	movslq	%edi, %rax
	movl	$1, %r14d
	cmpl	$1, %edi
	jle	.L58
	movl	%ebp, 16(%rsp)
	movq	%r14, %rbp
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L57:
	movq	stdin(%rip), %rdi
	xorl	%r15d, %r15d
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L59:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L61
.L60:
	leaq	(%r15,%r15,4), %rdx
	cltq
	leaq	-48(%rax,%rdx,2), %r15
.L64:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L59
	call	__uflow@PLT
	leal	-48(%rax), %edx
	cmpl	$9, %edx
	ja	.L61
	movq	stdin(%rip), %rdi
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L61:
	xorl	%eax, %eax
	cmpq	%r13, %r15
	cmovne	%rax, %r13
	leaq	-1(%r15,%r12), %rax
	cmpq	%rbx, %rax
	jg	.L63
	movslq	w(%rip), %rax
	leaq	a(%rip), %rsi
	leal	1(%rax), %edx
	movq	%r15, (%rsi,%rax,8)
	movl	%edx, w(%rip)
.L63:
	addq	$1, %rbp
	cmpq	%r14, %rbp
	jne	.L57
	movl	16(%rsp), %ebp
.L58:
	movl	w(%rip), %edi
	cmpq	%r13, %r15
	je	.L125
	movl	%edi, %r9d
	movl	$1, %r11d
	shrl	$31, %r9d
	addl	%edi, %r9d
	sarl	%r9d
	movl	%r9d, %ecx
	sall	%cl, %r11d
	movslq	%r11d, %r11
	testq	%r11, %r11
	jle	.L68
	movslq	%r9d, %rsi
	xorl	%edx, %edx
	leaq	a(%rip), %r8
	leaq	w1(%rip), %r13
	leaq	sum1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L69:
	testl	%r9d, %r9d
	je	.L97
	xorl	%r10d, %r10d
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L73:
	btq	%rax, %rdx
	jnc	.L71
	addl	$1, %ecx
	addq	(%r8,%rax,8), %r10
	cmpl	%ecx, %ebp
	jl	.L70
.L71:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L73
.L72:
	movslq	%ecx, %rcx
	movq	0(%r13,%rcx,8), %rax
	leaq	1(%rax), %r14
	movq	%r14, 0(%r13,%rcx,8)
	imulq	$200000, %rcx, %rcx
	addq	%rax, %rcx
	movq	%r10, (%r15,%rcx,8)
.L70:
	addq	$1, %rdx
	cmpq	%rdx, %r11
	jne	.L69
.L68:
	subl	%r9d, %edi
	movl	$1, %r10d
	movl	%edi, %ecx
	sall	%cl, %r10d
	movslq	%r10d, %r10
	testq	%r10, %r10
	jle	.L74
	movslq	%r9d, %r9
	leaq	a(%rip), %rax
	movslq	%edi, %rsi
	xorl	%ecx, %ecx
	leaq	(%rax,%r9,8), %r8
	leaq	sum2(%rip), %r11
	leaq	w2(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L75:
	xorl	%edi, %edi
	testq	%rsi, %rsi
	je	.L98
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L79:
	btq	%rax, %rcx
	jnc	.L77
	addl	$1, %edx
	addq	(%r8,%rax,8), %rdi
	cmpl	%edx, %ebp
	jl	.L76
.L77:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L79
.L78:
	movslq	%edx, %rdx
	movq	(%r9,%rdx,8), %rax
	leaq	1(%rax), %r13
	movq	%r13, (%r9,%rdx,8)
	imulq	$200000, %rdx, %rdx
	addq	%rax, %rdx
	movq	%rdi, (%r11,%rdx,8)
.L76:
	addq	$1, %rcx
	cmpq	%rcx, %r10
	jne	.L75
.L74:
	testq	%r12, %r12
	js	.L99
	leaq	1(%r12), %rax
	leaq	sum2(%rip), %r15
	movq	%rbx, 16(%rsp)
	xorl	%r14d, %r14d
	movq	%rax, 32(%rsp)
	movq	%r15, %rbx
	leaq	w2(%rip), %r12
	leaq	Compare(%rip), %r13
	movq	%rax, %r15
	.p2align 4,,10
	.p2align 3
.L81:
	movq	(%r12,%r14,8), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rcx
	movl	$8, %edx
	addq	$1, %r14
	addq	$1600000, %rbx
	call	qsort@PLT
	cmpq	%r15, %r14
	jne	.L81
	movq	16(%rsp), %rbx
	movl	%ebp, 44(%rsp)
	xorl	%r11d, %r11d
	xorl	%r14d, %r14d
	movq	$0, 24(%rsp)
	leaq	sum1(%rip), %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L94:
	leaq	w1(%rip), %rax
	movl	44(%rsp), %r13d
	movq	(%rax,%r14,8), %rax
	subl	%r14d, %r13d
	testq	%rax, %rax
	jle	.L82
	movslq	%r13d, %r13
	addq	24(%rsp), %rax
	movq	16(%rsp), %r9
	leaq	sum2(%rip), %rdi
	imulq	$1600000, %r13, %rsi
	addq	%rdi, %rsi
	leaq	sum1(%rip), %rdi
	leaq	(%rdi,%rax,8), %rbp
	.p2align 4,,10
	.p2align 3
.L93:
	movq	(%r9), %rax
	movq	%rbx, %rdi
	subq	%rax, %rdi
	js	.L83
	movq	8(%rsp), %r10
	movq	(%r12,%r13,8), %r8
	subq	%rax, %r10
	testq	%r8, %r8
	jle	.L83
	movq	%r8, %rdx
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L88:
	leaq	(%rdx,%r15), %rax
	movq	%rax, %r15
	shrq	$63, %r15
	addq	%rax, %r15
	sarq	%r15
	movslq	%r15d, %rax
	cmpq	(%rsi,%rax,8), %rdi
	jl	.L85
	leal	1(%r15), %ecx
	movslq	%ecx, %r15
	cmpq	%rdx, %r15
	jl	.L88
	addq	%r15, %r11
	testq	%r10, %r10
	jg	.L126
	.p2align 4,,10
	.p2align 3
.L83:
	addq	$8, %r9
	cmpq	%r9, %rbp
	jne	.L93
.L82:
	addq	$1600000, 16(%rsp)
	addq	$1, %r14
	addq	$200000, 24(%rsp)
	cmpq	32(%rsp), %r14
	jne	.L94
.L80:
	movq	%r11, %rdx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L118:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L85:
	.cfi_restore_state
	movslq	%ecx, %r15
	movq	%rax, %rdx
	cmpq	%rax, %r15
	jl	.L88
	addq	%r15, %r11
	testq	%r10, %r10
	jle	.L83
.L126:
	xorl	%edx, %edx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L92:
	leaq	(%r8,%rax), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	movslq	%eax, %rcx
	cmpq	(%rsi,%rcx,8), %r10
	jle	.L89
	leal	1(%rax), %edx
	movslq	%edx, %rax
	cmpq	%r8, %rax
	jl	.L92
	subq	%rax, %r11
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L89:
	movslq	%edx, %rax
	movq	%rcx, %r8
	cmpq	%rax, %rcx
	jg	.L92
	subq	%rax, %r11
	jmp	.L83
.L97:
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
	jmp	.L72
.L98:
	xorl	%edx, %edx
	jmp	.L78
.L125:
	cmpl	%edi, %ebp
	jg	.L66
	movq	%r12, %rdx
	imulq	%r15, %rdx
	cmpq	%rdx, %rbx
	jl	.L66
	cmpq	%rdx, 8(%rsp)
	jle	.L127
.L66:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L118
.L99:
	xorl	%r11d, %r11d
	jmp	.L80
.L127:
	movl	%ebp, %esi
	call	Combi
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L118
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.text
	.p2align 4
	.globl	Binary_search
	.type	Binary_search, @function
Binary_search:
.LFB44:
	.cfi_startproc
	endbr64
	testq	%rdx, %rdx
	jle	.L133
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L132:
	leaq	(%rdx,%rax), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	movslq	%eax, %rcx
	cmpq	(%rdi,%rcx,8), %rsi
	jle	.L130
	leal	1(%rax), %r8d
	movslq	%r8d, %rax
	cmpq	%rdx, %rax
	jl	.L132
	ret
	.p2align 4,,10
	.p2align 3
.L130:
	movslq	%r8d, %rax
	movq	%rcx, %rdx
	cmpq	%rcx, %rax
	jl	.L132
	ret
	.p2align 4,,10
	.p2align 3
.L133:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE44:
	.size	Binary_search, .-Binary_search
	.globl	w
	.bss
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	w2
	.align 32
	.type	w2, @object
	.size	w2, 328
w2:
	.zero	328
	.globl	w1
	.align 32
	.type	w1, @object
	.size	w1, 328
w1:
	.zero	328
	.globl	sum2
	.align 32
	.type	sum2, @object
	.size	sum2, 65600000
sum2:
	.zero	65600000
	.globl	sum1
	.align 32
	.type	sum1, @object
	.size	sum1, 65600000
sum1:
	.zero	65600000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 320
a:
	.zero	320
	.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<stdlib.h>
#define MAX 200000
long long int a[40], sum1[41][MAX], sum2[41][MAX], w1[41], w2[41];
int w;
int Input(void);
long long int Inputll(void);
long long int Combi(int w, int k);
int Compare(const void *a, const void *b);
long long int Binary_search(long long int *sum, long long int x, long long int r);
int main(void)
{
  int n, k, m1, m2;
  long long int i, j, l, r, x, y, limit;
  n = Input(), k = Input(), l = Inputll(), r = Inputll();
  y = Inputll();
  if (y + k - 1 <= r) a[w++] = y;
  for (i = 1; i < n; i++) {
    x = Inputll();
    if (x != y) y = 0;
    if (x + k - 1 <= r) a[w++] = x;
  }
  if (x == y) {
    if (w >= k && (y = x * k) >= l && y <= r) printf("%lld\n", Combi(w, k));
    else printf("0\n");
    return 0;
  }
  m1 = w / 2, limit = 1 << m1;
  for (i = 0; i < limit; i++) {
    x = 0, n = 0, j = 0;
    while (1) {
      if (j == m1) {
        sum1[n][w1[n]++] = x;
        break;
      }
      if ((i >> j) & 1) {
        x += a[j];
        if (++n > k) break;
      }
      j++;
    }
  }
  m2 = w - m1, limit = 1 << m2;
  for (i = 0; i < limit; i++) {
    x = 0, n = 0, j = 0;
    while (1) {
      if (j == m2) {
        sum2[n][w2[n]++] = x;
        break;
      }
      if ((i >> j) & 1) {
        x += a[j+m1];
        if (++n > k) break;
      }
      j++;
    }
  }
  for (i = 0; i <= k; i++) qsort(sum2[i], w2[i], sizeof(long long int), Compare);
  limit = 0;
  for (i = 0; i <= k; i++) {
    int kk = k - i;
    for (j = 0; j < w1[i]; j++) {
      x = l - sum1[i][j], y = r - sum1[i][j];
      if (y < 0) continue;
      limit += Binary_search(sum2[kk], y + 1, w2[kk]);
      if (x > 0) limit -= Binary_search(sum2[kk], x, w2[kk]);
    }
  }
  printf("%lld\n", limit);
  return 0;
}
int Input(void)
{
  int n = 0, c;
  while ((c = getchar_unlocked()) >= '0' && c <= '9') n = 10 * n + c - '0';
  return n;
}
long long int Inputll(void)
{
  long long int n = 0;
  int c;
  while ((c = getchar_unlocked()) >= '0' && c <= '9') n = 10 * n + c - '0';
  return n;
}
long long int Combi(int w, int k)
{
  if (sum1[w][k]) return sum1[w][k];
  if (k == 0 || k == w) return 1;
  else if (k == 1) return w;
  else {
    if (k * 2 > w) k = w - k;
    return sum1[w][k] = Combi(w - 1, k) + Combi(w - 1, k - 1);
  }
}
int Compare(const void *a, const void *b)
{
  long long int *ta = (long long int*)a, *tb = (long long int*)b;
  if (*ta > *tb) return 1;
  else if (*ta < *tb) return -1;
  return 0;
}
long long int Binary_search(long long int *sum, long long int x, long long int r)
{
  int m, l = 0;
  while (l < r) {
    m = (l + r) / 2;
    if (sum[m] < x) l = m + 1;
    else r = m;
  }
  return l;
}

5 2 7 19
6 5 4 2 2
 2 2 2 9
5 1
 5 2 7 19
2 5 4 2 2
 2 2 2 9
9 1
 5 4 7 19
2 5 4 2 2
 5 2 7 19
3 5 4 2 3
 5 3 7 19
6 5 1 2 2
 5 4 7 19
1 5 1 2 -1
 5 3 7 17
0 5 4 2 3
 2 1 1 9
6 1

7
 1
 4
 0
 5
 6
 9
 0
 8
 2

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<stdlib.h>
#define MAX 200000
long long int a[40], sum1[41][MAX], sum2[41][MAX], w1[41], w2[41];
int w;
int Input(void);
long long int Inputll(void);
long long int Combi(int w, int k);
int Compare(const void *a, const void *b);
long long int Binary_search(long long int *sum, long long int x, long long int r);
int main(void)
{
  int n, k, m1, m2;
  long long int i, j, l, r, x, y, limit;
  n = Input(), k = Input(), l = Inputll(), r = Inputll();
  y = Inputll();
  if (y + k - 1 <= r) a[w++] = y;
  for (i = 1; i < n; i++) {
    x = Inputll();
    if (x != y) y = 0;
    if (x + k - 1 <= r) a[w++] = x;
  }
  if (x == y) {
    if (w >= k && (y = x * k) >= l && y <= r) printf("%lld\n", Combi(w, k));
    else printf("0\n");
    return 0;
  }
  m1 = w / 2, limit = 1 << m1;
  for (i = 0; i < limit; i++) {
    x = 0, n = 0, j = 0;
    while (1) {
      if (j == m1) {
        sum1[n][w1[n]++] = x;
        break;
      }
      if ((i >> j) & 1) {
        x += a[j];
        if (++n > k) break;
      }
      j++;
    }
  }
  m2 = w - m1, limit = 1 << m2;
  for (i = 0; i < limit; i++) {
    x = 0, n = 0, j = 0;
    while (1) {
      if (j == m2) {
        sum2[n][w2[n]++] = x;
        break;
      }
      if ((i >> j) & 1) {
        x += a[j+m1];
        if (++n > k) break;
      }
      j++;
    }
  }
  for (i = 0; i <= k; i++) qsort(sum2[i], w2[i], sizeof(long long int), Compare);
  limit = 0;
  for (i = 0; i <= k; i++) {
    int kk = k - i;
    for (j = 0; j < w1[i]; j++) {
      x = l - sum1[i][j], y = r - sum1[i][j];
      if (y < 0) continue;
      limit += Binary_search(sum2[kk], y + 1, w2[kk]);
      if (x > 0) limit -= Binary_search(sum2[kk], x, w2[kk]);
    }
  }
  printf("%lld\n", limit);
  return 0;
}
int Input(void)
{
  int n = 0, c;
  while ((c = getchar_unlocked()) >= '0' && c <= '9') n = 10 * n + c - '0';
  return n;
}
long long int Inputll(void)
{
  long long int n = 0;
  int c;
  while ((c = getchar_unlocked()) >= '0' && c <= '9') n = 10 * n + c - '0';
  return n;
}
long long int Combi(int w, int k)
{
  if (sum1[w][k]) return sum1[w][k];
  if (k == 0 || k == w) return 1;
  else if (k == 1) return w;
  else {
    if (k * 2 > w) k = w - k;
    return sum1[w][k] = Combi(w - 1, k) + Combi(w - 1, k - 1);
  }
}
int Compare(const void *a, const void *b)
{
  long long int *ta = (long long int*)a, *tb = (long long int*)b;
  if (*ta > *tb) return 1;
  else if (*ta < *tb) return -1;
  return 0;
}
long long int Binary_search(long long int *sum, long long int x, long long int r)
{
  int m, l = 0;
  while (l < r) {
    m = (l + r) / 2;
    if (sum[m] < x) l = m + 1;
    else r = m;
  }
  return l;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 320
a:
	.zero	320
	.globl	sum1
	.align 32
	.type	sum1, @object
	.size	sum1, 65600000
sum1:
	.zero	65600000
	.globl	sum2
	.align 32
	.type	sum2, @object
	.size	sum2, 65600000
sum2:
	.zero	65600000
	.globl	w1
	.align 32
	.type	w1, @object
	.size	w1, 328
w1:
	.zero	328
	.globl	w2
	.align 32
	.type	w2, @object
	.size	w2, 328
w2:
	.zero	328
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	call	Input
	movl	%eax, -76(%rbp)
	call	Input
	movl	%eax, -72(%rbp)
	call	Inputll
	movq	%rax, -16(%rbp)
	call	Inputll
	movq	%rax, -8(%rbp)
	call	Inputll
	movq	%rax, -32(%rbp)
	movl	-72(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	subq	$1, %rax
	cmpq	%rax, -8(%rbp)
	jl	.L2
	movl	w(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, w(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	a(%rip), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L2:
	movq	$1, -56(%rbp)
	jmp	.L3
.L6:
	call	Inputll
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	cmpq	-32(%rbp), %rax
	je	.L4
	movq	$0, -32(%rbp)
.L4:
	movl	-72(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	subq	$1, %rax
	cmpq	%rax, -8(%rbp)
	jl	.L5
	movl	w(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, w(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	a(%rip), %rdx
	movq	-40(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L5:
	addq	$1, -56(%rbp)
.L3:
	movl	-76(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jl	.L6
	movq	-40(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jne	.L7
	movl	w(%rip), %eax
	cmpl	%eax, -72(%rbp)
	jg	.L8
	movl	-72(%rbp), %eax
	cltq
	movq	-40(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jl	.L8
	movq	-32(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jg	.L8
	movl	w(%rip), %eax
	movl	-72(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	Combi
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L9
.L8:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	jmp	.L10
.L7:
	movl	w(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -68(%rbp)
	movl	-68(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -24(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L11
.L16:
	movq	$0, -40(%rbp)
	movl	$0, -76(%rbp)
	movq	$0, -48(%rbp)
.L15:
	movl	-68(%rbp), %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jne	.L12
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w1(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rdx
	movl	-76(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,8), %rsi
	leaq	w1(%rip), %rcx
	movq	%rdx, (%rsi,%rcx)
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$200000, %rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	sum1(%rip), %rdx
	movq	-40(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L13
.L12:
	movq	-48(%rbp), %rax
	movl	%eax, %edx
	movq	-56(%rbp), %rax
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L14
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -40(%rbp)
	addl	$1, -76(%rbp)
	movl	-76(%rbp), %eax
	cmpl	-72(%rbp), %eax
	jg	.L31
.L14:
	addq	$1, -48(%rbp)
	jmp	.L15
.L31:
	nop
.L13:
	addq	$1, -56(%rbp)
.L11:
	movq	-56(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L16
	movl	w(%rip), %eax
	subl	-68(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -24(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L17
.L22:
	movq	$0, -40(%rbp)
	movl	$0, -76(%rbp)
	movq	$0, -48(%rbp)
.L21:
	movl	-64(%rbp), %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jne	.L18
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rdx
	movl	-76(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,8), %rsi
	leaq	w2(%rip), %rcx
	movq	%rdx, (%rsi,%rcx)
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$200000, %rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	sum2(%rip), %rdx
	movq	-40(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L19
.L18:
	movq	-48(%rbp), %rax
	movl	%eax, %edx
	movq	-56(%rbp), %rax
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L20
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -40(%rbp)
	addl	$1, -76(%rbp)
	movl	-76(%rbp), %eax
	cmpl	-72(%rbp), %eax
	jg	.L32
.L20:
	addq	$1, -48(%rbp)
	jmp	.L21
.L32:
	nop
.L19:
	addq	$1, -56(%rbp)
.L17:
	movq	-56(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L22
	movq	$0, -56(%rbp)
	jmp	.L23
.L24:
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	movq	-56(%rbp), %rax
	imulq	$1600000, %rax, %rax
	leaq	sum2(%rip), %rdx
	addq	%rdx, %rax
	leaq	Compare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	addq	$1, -56(%rbp)
.L23:
	movl	-72(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jle	.L24
	movq	$0, -24(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L25
.L30:
	movl	-72(%rbp), %eax
	movq	-56(%rbp), %rdx
	subl	%edx, %eax
	movl	%eax, -60(%rbp)
	movq	$0, -48(%rbp)
	jmp	.L26
.L29:
	movq	-56(%rbp), %rax
	imulq	$200000, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-16(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-56(%rbp), %rax
	imulq	$200000, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-8(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	js	.L33
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-32(%rbp), %rdx
	leaq	1(%rdx), %rsi
	movl	-60(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$1600000, %rdx, %rdx
	leaq	sum2(%rip), %rcx
	addq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	Binary_search
	addq	%rax, -24(%rbp)
	cmpq	$0, -40(%rbp)
	jle	.L28
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-60(%rbp), %eax
	cltq
	imulq	$1600000, %rax, %rax
	leaq	sum2(%rip), %rcx
	addq	%rax, %rcx
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	Binary_search
	subq	%rax, -24(%rbp)
	jmp	.L28
.L33:
	nop
.L28:
	addq	$1, -48(%rbp)
.L26:
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	w1(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -48(%rbp)
	jl	.L29
	addq	$1, -56(%rbp)
.L25:
	movl	-72(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jle	.L30
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	Input
	.type	Input, @function
Input:
.LFB7:
	.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
	movl	$0, -8(%rbp)
	jmp	.L35
.L37:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -8(%rbp)
.L35:
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jle	.L36
	cmpl	$57, -4(%rbp)
	jle	.L37
.L36:
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Input, .-Input
	.globl	Inputll
	.type	Inputll, @function
Inputll:
.LFB8:
	.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	$0, -8(%rbp)
	jmp	.L40
.L42:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
.L40:
	call	getchar_unlocked@PLT
	movl	%eax, -12(%rbp)
	cmpl	$47, -12(%rbp)
	jle	.L41
	cmpl	$57, -12(%rbp)
	jle	.L42
.L41:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Inputll, .-Inputll
	.globl	Combi
	.type	Combi, @function
Combi:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L45
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L46
.L45:
	cmpl	$0, -24(%rbp)
	je	.L47
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L48
.L47:
	movl	$1, %eax
	jmp	.L46
.L48:
	cmpl	$1, -24(%rbp)
	jne	.L49
	movl	-20(%rbp), %eax
	cltq
	jmp	.L46
.L49:
	movl	-24(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -20(%rbp)
	jge	.L50
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	movl	%eax, -24(%rbp)
.L50:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	Combi
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Combi
	leaq	(%rbx,%rax), %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rax
.L46:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Combi, .-Combi
	.globl	Compare
	.type	Compare, @function
Compare:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L52
	movl	$1, %eax
	jmp	.L53
.L52:
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L54
	movl	$-1, %eax
	jmp	.L53
.L54:
	movl	$0, %eax
.L53:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Compare, .-Compare
	.globl	Binary_search
	.type	Binary_search, @function
Binary_search:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L56
.L58:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L57
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L56
.L57:
	movl	-4(%rbp), %eax
	cltq
	movq	%rax, -40(%rbp)
.L56:
	movl	-8(%rbp), %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jg	.L58
	movl	-8(%rbp), %eax
	cltq
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Binary_search, .-Binary_search
	.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	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 320
a:
	.zero	320
	.globl	sum1
	.align 32
	.type	sum1, @object
	.size	sum1, 65600000
sum1:
	.zero	65600000
	.globl	sum2
	.align 32
	.type	sum2, @object
	.size	sum2, 65600000
sum2:
	.zero	65600000
	.globl	w1
	.align 32
	.type	w1, @object
	.size	w1, 328
w1:
	.zero	328
	.globl	w2
	.align 32
	.type	w2, @object
	.size	w2, 328
w2:
	.zero	328
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	call	Input
	movl	%eax, -76(%rbp)
	call	Input
	movl	%eax, -72(%rbp)
	call	Inputll
	movq	%rax, -16(%rbp)
	call	Inputll
	movq	%rax, -8(%rbp)
	call	Inputll
	movq	%rax, -32(%rbp)
	movl	-72(%rbp), %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	subq	$1, %rax
	cmpq	%rax, -8(%rbp)
	jl	.L2
	movl	w(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, w(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	a(%rip), %rdx
	movq	-32(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L2:
	movq	$1, -56(%rbp)
	jmp	.L3
.L6:
	call	Inputll
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	cmpq	-32(%rbp), %rax
	je	.L4
	movq	$0, -32(%rbp)
.L4:
	movl	-72(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	subq	$1, %rax
	cmpq	%rax, -8(%rbp)
	jl	.L5
	movl	w(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, w(%rip)
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	a(%rip), %rdx
	movq	-40(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L5:
	addq	$1, -56(%rbp)
.L3:
	movl	-76(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jl	.L6
	movq	-40(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jne	.L7
	movl	w(%rip), %eax
	cmpl	%eax, -72(%rbp)
	jg	.L8
	movl	-72(%rbp), %eax
	cltq
	movq	-40(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jl	.L8
	movq	-32(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jg	.L8
	movl	w(%rip), %eax
	movl	-72(%rbp), %edx
	movl	%edx, %esi
	movl	%eax, %edi
	call	Combi
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L9
.L8:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	jmp	.L10
.L7:
	movl	w(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -68(%rbp)
	movl	-68(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -24(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L11
.L16:
	movq	$0, -40(%rbp)
	movl	$0, -76(%rbp)
	movq	$0, -48(%rbp)
.L15:
	movl	-68(%rbp), %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jne	.L12
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w1(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rdx
	movl	-76(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,8), %rsi
	leaq	w1(%rip), %rcx
	movq	%rdx, (%rsi,%rcx)
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$200000, %rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	sum1(%rip), %rdx
	movq	-40(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L13
.L12:
	movq	-48(%rbp), %rax
	movl	%eax, %edx
	movq	-56(%rbp), %rax
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L14
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -40(%rbp)
	addl	$1, -76(%rbp)
	movl	-76(%rbp), %eax
	cmpl	-72(%rbp), %eax
	jg	.L31
.L14:
	addq	$1, -48(%rbp)
	jmp	.L15
.L31:
	nop
.L13:
	addq	$1, -56(%rbp)
.L11:
	movq	-56(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L16
	movl	w(%rip), %eax
	subl	-68(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -24(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L17
.L22:
	movq	$0, -40(%rbp)
	movl	$0, -76(%rbp)
	movq	$0, -48(%rbp)
.L21:
	movl	-64(%rbp), %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jne	.L18
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rax
	leaq	1(%rax), %rdx
	movl	-76(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,8), %rsi
	leaq	w2(%rip), %rcx
	movq	%rdx, (%rsi,%rcx)
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$200000, %rdx, %rdx
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rcx
	leaq	sum2(%rip), %rdx
	movq	-40(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L19
.L18:
	movq	-48(%rbp), %rax
	movl	%eax, %edx
	movq	-56(%rbp), %rax
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L20
	movl	-68(%rbp), %eax
	movslq	%eax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -40(%rbp)
	addl	$1, -76(%rbp)
	movl	-76(%rbp), %eax
	cmpl	-72(%rbp), %eax
	jg	.L32
.L20:
	addq	$1, -48(%rbp)
	jmp	.L21
.L32:
	nop
.L19:
	addq	$1, -56(%rbp)
.L17:
	movq	-56(%rbp), %rax
	cmpq	-24(%rbp), %rax
	jl	.L22
	movq	$0, -56(%rbp)
	jmp	.L23
.L24:
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	movq	-56(%rbp), %rax
	imulq	$1600000, %rax, %rax
	leaq	sum2(%rip), %rdx
	addq	%rdx, %rax
	leaq	Compare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	addq	$1, -56(%rbp)
.L23:
	movl	-72(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jle	.L24
	movq	$0, -24(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L25
.L30:
	movl	-72(%rbp), %eax
	movq	-56(%rbp), %rdx
	subl	%edx, %eax
	movl	%eax, -60(%rbp)
	movq	$0, -48(%rbp)
	jmp	.L26
.L29:
	movq	-56(%rbp), %rax
	imulq	$200000, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-16(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movq	-56(%rbp), %rax
	imulq	$200000, %rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-8(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	js	.L33
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-32(%rbp), %rdx
	leaq	1(%rdx), %rsi
	movl	-60(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$1600000, %rdx, %rdx
	leaq	sum2(%rip), %rcx
	addq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	Binary_search
	addq	%rax, -24(%rbp)
	cmpq	$0, -40(%rbp)
	jle	.L28
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	w2(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-60(%rbp), %eax
	cltq
	imulq	$1600000, %rax, %rax
	leaq	sum2(%rip), %rcx
	addq	%rax, %rcx
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	Binary_search
	subq	%rax, -24(%rbp)
	jmp	.L28
.L33:
	nop
.L28:
	addq	$1, -48(%rbp)
.L26:
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	w1(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -48(%rbp)
	jl	.L29
	addq	$1, -56(%rbp)
.L25:
	movl	-72(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jle	.L30
	movq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	Input
	.type	Input, @function
Input:
.LFB7:
	.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
	movl	$0, -8(%rbp)
	jmp	.L35
.L37:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -8(%rbp)
.L35:
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jle	.L36
	cmpl	$57, -4(%rbp)
	jle	.L37
.L36:
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Input, .-Input
	.globl	Inputll
	.type	Inputll, @function
Inputll:
.LFB8:
	.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	$0, -8(%rbp)
	jmp	.L40
.L42:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
.L40:
	call	getchar_unlocked@PLT
	movl	%eax, -12(%rbp)
	cmpl	$47, -12(%rbp)
	jle	.L41
	cmpl	$57, -12(%rbp)
	jle	.L42
.L41:
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Inputll, .-Inputll
	.globl	Combi
	.type	Combi, @function
Combi:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L45
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L46
.L45:
	cmpl	$0, -24(%rbp)
	je	.L47
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L48
.L47:
	movl	$1, %eax
	jmp	.L46
.L48:
	cmpl	$1, -24(%rbp)
	jne	.L49
	movl	-20(%rbp), %eax
	cltq
	jmp	.L46
.L49:
	movl	-24(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -20(%rbp)
	jge	.L50
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	movl	%eax, -24(%rbp)
.L50:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	Combi
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	Combi
	leaq	(%rbx,%rax), %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movl	-20(%rbp), %eax
	cltq
	imulq	$200000, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	sum1(%rip), %rax
	movq	(%rdx,%rax), %rax
.L46:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Combi, .-Combi
	.globl	Compare
	.type	Compare, @function
Compare:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L52
	movl	$1, %eax
	jmp	.L53
.L52:
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L54
	movl	$-1, %eax
	jmp	.L53
.L54:
	movl	$0, %eax
.L53:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Compare, .-Compare
	.globl	Binary_search
	.type	Binary_search, @function
Binary_search:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L56
.L58:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -32(%rbp)
	jle	.L57
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L56
.L57:
	movl	-4(%rbp), %eax
	cltq
	movq	%rax, -40(%rbp)
.L56:
	movl	-8(%rbp), %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jg	.L58
	movl	-8(%rbp), %eax
	cltq
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Binary_search, .-Binary_search
	.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:
