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

```c
// AOJ 2317 Class Representative Witch
// 2018.4.11 bal4u

#include <stdio.h>
#include <stdlib.h>

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

int N, M;
int s[100002], t[100002];
int p[100002], a[100002];
int even[100002], odd[100002];

// 見つからなければ、小さい要素のうちの最大を返す
int bisearch_LE(int x)
{
	int m, l = 0, r = M;

    while (l < r) {
        m = (l+r) >> 1;
//		if (p[m] == x) return m;
        if (p[m] < x) l = m + 1; else r = m;
    }
	return l-1;
}

// 見つからなければ、大きい要素のうちの最小を返す
int bisearch_GE(int x)
{
	int m, l = 0, r = M;

    while (l < r) {
        m = (l+r) >> 1;
        if (p[m] < x) l = m + 1; else r = m;
    }
	return l;
}

int cmp(int *a, int *b) { return *a - *b; }

int main()
{
	int i, j, k, mi, ma, f;
	long long ans;

	N = in(), M = in()+1;
	for (i = 0; i < N; i++) s[i] = in(), t[i] = in();
	p[0] = 0;
	for (i = 1; i < M; i++) p[i] = in();
	qsort(p, M, sizeof(int), cmp);
	p[M++] = 1000000002;
	for (i = 1; i < M; i++) a[i] = p[i]-p[i-1];

	even[0] = 0;
	for (i = 1; i < M; i++) {
		if (i & 1) odd [i] = odd [i-1]+a[i], even[i] = even[i-1];
		else       even[i] = even[i-1]+a[i], odd [i] = odd [i-1];
	}

	ans = 0;
	for (i = 0; i < N; i++) {
		if (s[i] < t[i]) f = 0, mi = s[i], ma = t[i];
		else             f = 1, ma = s[i], mi = t[i];
		if (f) {
			j = bisearch_LE(ma), k = bisearch_GE(mi);
			if (p[k] >= ma) ans += ma-mi;
			else {
				ans += ma-p[j];
				if ((k&1) ^ (j&1)) ans += p[k++]-mi;
				if (j&1) ans += even[j]-even[k];
				else     ans += odd [j]-odd [k];
			}
		} else {
			j = bisearch_GE(mi), k = bisearch_LE(ma);
			if (p[j] >= ma) ans += ma-mi;
			else {
				ans += p[j]-mi;
				if ((k&1) ^ (j&1)) ans += ma-p[k];
				if (j&1) ans += odd [k]-odd [j+1];
				else     ans += even[k]-even[j+1];
			}
		}
	}
	printf("%lld\n", ans);
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB6:
	.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)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 400008
s:
	.zero	400008
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 400008
t:
	.zero	400008
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 400008
p:
	.zero	400008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400008
a:
	.zero	400008
	.globl	even
	.align 32
	.type	even, @object
	.size	even, 400008
even:
	.zero	400008
	.globl	odd
	.align 32
	.type	odd, @object
	.size	odd, 400008
odd:
	.zero	400008
	.text
	.globl	bisearch_LE
	.type	bisearch_LE, @function
bisearch_LE:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	M(%rip), %eax
	movl	%eax, -8(%rbp)
	jmp	.L5
.L7:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L6
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L5
.L6:
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L5:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L7
	movl	-12(%rbp), %eax
	subl	$1, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bisearch_LE, .-bisearch_LE
	.globl	bisearch_GE
	.type	bisearch_GE, @function
bisearch_GE:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	M(%rip), %eax
	movl	%eax, -8(%rbp)
	jmp	.L10
.L12:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L11
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L12
	movl	-12(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bisearch_GE, .-bisearch_GE
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, N(%rip)
	movl	$0, %eax
	call	in
	addl	$1, %eax
	movl	%eax, M(%rip)
	movl	$0, -32(%rbp)
	jmp	.L17
.L18:
	movl	$0, %eax
	call	in
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L18
	movl	$0, p(%rip)
	movl	$1, -32(%rbp)
	jmp	.L19
.L20:
	movl	$0, %eax
	call	in
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L19:
	movl	M(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L20
	movl	M(%rip), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	M(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, M(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$1000000002, (%rdx,%rax)
	movl	$1, -32(%rbp)
	jmp	.L21
.L22:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L21:
	movl	M(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L22
	movl	$0, even(%rip)
	movl	$1, -32(%rbp)
	jmp	.L23
.L26:
	movl	-32(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L24
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	even(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	jmp	.L25
.L24:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	odd(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L25:
	addl	$1, -32(%rbp)
.L23:
	movl	M(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L26
	movq	$0, -8(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L27
.L38:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L28
	movl	$0, -16(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	jmp	.L29
.L28:
	movl	$1, -16(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
.L29:
	cmpl	$0, -16(%rbp)
	je	.L30
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_LE
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_GE
	movl	%eax, -28(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jg	.L31
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L31:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	movl	-28(%rbp), %eax
	xorl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L33
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -28(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
.L33:
	movl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L34
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	even(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L34:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	odd(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L30:
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_GE
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_LE
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jg	.L35
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L35:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
	movl	-28(%rbp), %eax
	xorl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L36
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
.L36:
	movl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L37
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	addl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	odd(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L37:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	addl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	even(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
.L32:
	addl	$1, -32(%rbp)
.L27:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L38
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB42:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE42:
	.size	cmp, .-cmp
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB39:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L12
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L5:
	xorl	%r12d, %r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L3
.L7:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L9:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L6
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L3
	movq	stdin(%rip), %rdi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L5
	.cfi_endproc
.LFE39:
	.size	in, .-in
	.p2align 4
	.globl	bisearch_LE
	.type	bisearch_LE, @function
bisearch_LE:
.LFB40:
	.cfi_startproc
	endbr64
	movl	M(%rip), %ecx
	xorl	%eax, %eax
	leaq	p(%rip), %r8
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	leal	(%rcx,%rax), %edx
	sarl	%edx
	movslq	%edx, %rsi
	cmpl	%edi, (%r8,%rsi,4)
	jl	.L18
	movl	%edx, %ecx
.L15:
	cmpl	%eax, %ecx
	jg	.L16
	subl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	leal	1(%rdx), %eax
	jmp	.L15
	.cfi_endproc
.LFE40:
	.size	bisearch_LE, .-bisearch_LE
	.p2align 4
	.globl	bisearch_GE
	.type	bisearch_GE, @function
bisearch_GE:
.LFB41:
	.cfi_startproc
	endbr64
	movl	M(%rip), %edx
	xorl	%r8d, %r8d
	leaq	p(%rip), %rsi
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L22:
	leal	(%rdx,%r8), %eax
	sarl	%eax
	movslq	%eax, %rcx
	cmpl	%edi, (%rsi,%rcx,4)
	jl	.L24
	movl	%eax, %edx
.L21:
	cmpl	%r8d, %edx
	jg	.L22
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	leal	1(%rax), %r8d
	jmp	.L21
	.cfi_endproc
.LFE41:
	.size	bisearch_GE, .-bisearch_GE
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB43:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	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
	leaq	s(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	in
	movl	%eax, N(%rip)
	xorl	%eax, %eax
	call	in
	addl	$1, %eax
	movl	%eax, M(%rip)
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L41
	.p2align 4,,10
	.p2align 3
.L26:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L112
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L30:
	xorl	%r13d, %r13d
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L31:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L33
.L32:
	movq	%rsi, %rdx
.L34:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rdx, %rcx
	ja	.L31
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L32
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%r13d, (%r12,%rbx,4)
	cmpq	%rcx, %rsi
	jnb	.L113
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L36:
	xorl	%r13d, %r13d
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L39
.L38:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L40:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rdx, %rcx
	ja	.L37
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L39
	movq	stdin(%rip), %rdi
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L39:
	movl	%r13d, 0(%rbp,%rbx,4)
	addq	$1, %rbx
	cmpl	%ebx, N(%rip)
	jg	.L26
.L41:
	movl	M(%rip), %eax
	movl	$1, %r12d
	movl	$0, p(%rip)
	leaq	p(%rip), %rbx
	cmpl	$1, %eax
	jle	.L28
	.p2align 4,,10
	.p2align 3
.L27:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L114
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L43:
	xorl	%ebp, %ebp
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L44:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L46
.L45:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L47:
	leal	0(%rbp,%rbp,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebp
	cmpq	%rdx, %rcx
	ja	.L44
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L46
	movq	stdin(%rip), %rdi
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L46:
	movl	M(%rip), %eax
	movl	%ebp, (%rbx,%r12,4)
	addq	$1, %r12
	cmpl	%r12d, %eax
	jg	.L27
.L28:
	movslq	%eax, %rsi
	leaq	cmp(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movslq	M(%rip), %rax
	leal	1(%rax), %r10d
	movl	$1000000002, (%rbx,%rax,4)
	movq	%rax, %rsi
	movl	%r10d, M(%rip)
	cmpl	$1, %r10d
	jle	.L48
	leal	-1(%rax), %ecx
	cmpl	$2, %ecx
	jbe	.L81
	movl	%esi, %edi
	leaq	4+a(%rip), %rdx
	leaq	p(%rip), %rax
	shrl	$2, %edi
	leaq	16(%rdx), %r8
	subl	$1, %edi
	salq	$4, %rdi
	addq	%r8, %rdi
	.p2align 4,,10
	.p2align 3
.L50:
	movdqu	4(%rax), %xmm0
	psubd	(%rax), %xmm0
	addq	$16, %rdx
	addq	$16, %rax
	movups	%xmm0, -16(%rdx)
	cmpq	%rdx, %rdi
	jne	.L50
	movl	%esi, %edx
	leaq	a(%rip), %rdi
	andl	$-4, %edx
	leal	1(%rdx), %eax
	cmpl	%edx, %esi
	je	.L51
.L49:
	subl	%edx, %esi
	leaq	a(%rip), %rdi
	cmpl	$1, %esi
	je	.L52
	addl	$1, %edx
	leaq	-4+p(%rip), %rdi
	movq	(%rdi,%rdx,4), %xmm1
	movq	(%rbx,%rdx,4), %xmm0
	leaq	a(%rip), %rdi
	psubd	%xmm1, %xmm0
	movq	%xmm0, (%rdi,%rdx,4)
	movl	%esi, %edx
	andl	$-2, %edx
	addl	%edx, %eax
	cmpl	%edx, %esi
	je	.L51
.L52:
	movslq	%eax, %rsi
	subl	$1, %eax
	cltq
	movl	(%rbx,%rsi,4), %edx
	subl	(%rbx,%rax,4), %edx
	movl	%edx, (%rdi,%rsi,4)
.L51:
	leaq	-4+odd(%rip), %r11
	leaq	even(%rip), %rdx
	movl	$1, %eax
	movl	$0, even(%rip)
	leaq	2(%rcx), %r8
	leaq	4(%r11), %r9
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L115:
	movl	(%rdx), %ebp
	addl	%esi, %ecx
	movl	%ebp, 4(%rdx)
.L111:
	movl	%ecx, (%r9,%rax,4)
	addq	$1, %rax
	addq	$4, %rdx
	cmpq	%r8, %rax
	je	.L56
.L78:
	movl	(%rdi,%rax,4), %esi
	movl	(%r11,%rax,4), %ecx
	testb	$1, %al
	jne	.L115
	addl	(%rdx), %esi
	movl	%esi, 4(%rdx)
	jmp	.L111
.L48:
	movl	$0, even(%rip)
	.p2align 4,,10
	.p2align 3
.L56:
	movslq	N(%rip), %r11
	testl	%r11d, %r11d
	jle	.L82
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	leaq	s(%rip), %r12
	leaq	t(%rip), %rbp
	leaq	even(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L77:
	movl	(%r12,%r9,4), %edx
	movl	0(%rbp,%r9,4), %ecx
	movl	%r10d, %edi
	xorl	%esi, %esi
	cmpl	%ecx, %edx
	jl	.L69
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L70:
	leal	(%rdi,%rsi), %eax
	sarl	%eax
	movslq	%eax, %r14
	cmpl	(%rbx,%r14,4), %edx
	jg	.L116
	movl	%eax, %edi
.L69:
	cmpl	%esi, %edi
	jg	.L70
	movl	%r10d, %edi
	xorl	%r14d, %r14d
	jmp	.L72
	.p2align 4,,10
	.p2align 3
.L73:
	leal	(%rdi,%r14), %eax
	sarl	%eax
	movslq	%eax, %r15
	cmpl	(%rbx,%r15,4), %ecx
	jg	.L117
	movl	%eax, %edi
.L72:
	cmpl	%r14d, %edi
	jg	.L73
	movslq	%esi, %rax
	movl	(%rbx,%rax,4), %eax
	cmpl	%eax, %ecx
	jg	.L74
	subl	%edx, %ecx
	addq	$1, %r9
	movslq	%ecx, %rcx
	addq	%rcx, %r8
	cmpq	%r11, %r9
	jne	.L77
.L57:
	movq	%r8, %rdx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %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
.L61:
	.cfi_restore_state
	leal	(%rdi,%rsi), %eax
	sarl	%eax
	movslq	%eax, %r14
	cmpl	(%rbx,%r14,4), %edx
	jg	.L118
	movl	%eax, %edi
.L60:
	cmpl	%esi, %edi
	jg	.L61
	movl	%r10d, %edi
	xorl	%r14d, %r14d
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L64:
	leal	(%rdi,%r14), %eax
	sarl	%eax
	movslq	%eax, %r15
	cmpl	(%rbx,%r15,4), %ecx
	jg	.L119
	movl	%eax, %edi
.L63:
	cmpl	%r14d, %edi
	jg	.L64
	movslq	%r14d, %rdi
	movl	(%rbx,%rdi,4), %eax
	cmpl	%eax, %edx
	jg	.L65
	subl	%ecx, %edx
	movslq	%edx, %rdx
	addq	%rdx, %r8
.L66:
	addq	$1, %r9
	cmpq	%r11, %r9
	jne	.L77
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L117:
	leal	1(%rax), %r14d
	jmp	.L72
	.p2align 4,,10
	.p2align 3
.L118:
	leal	1(%rax), %esi
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L119:
	leal	1(%rax), %r14d
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L116:
	leal	1(%rax), %esi
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L65:
	subl	$1, %esi
	movslq	%esi, %r15
	subl	(%rbx,%r15,4), %edx
	movslq	%edx, %rdx
	addq	%r8, %rdx
	movl	%r14d, %r8d
	xorl	%esi, %r8d
	andl	$1, %r8d
	je	.L67
	subl	%ecx, %eax
	addl	$1, %r14d
	cltq
	movslq	%r14d, %rdi
	addq	%rax, %rdx
.L67:
	andl	$1, %esi
	je	.L68
	movl	0(%r13,%r15,4), %r8d
	subl	0(%r13,%rdi,4), %r8d
	movslq	%r8d, %r8
	addq	%rdx, %r8
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L74:
	subl	$1, %r14d
	subl	%edx, %eax
	movslq	%eax, %rdx
	movl	%r14d, %eax
	movslq	%r14d, %r14
	xorl	%esi, %eax
	addq	%r8, %rdx
	testb	$1, %al
	je	.L75
	subl	(%rbx,%r14,4), %ecx
	movslq	%ecx, %rax
	addq	%rax, %rdx
.L75:
	leal	1(%rsi), %eax
	andl	$1, %esi
	cltq
	je	.L76
	leaq	odd(%rip), %rcx
	movl	(%rcx,%r14,4), %r8d
	subl	(%rcx,%rax,4), %r8d
	movslq	%r8d, %r8
	addq	%rdx, %r8
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L68:
	leaq	odd(%rip), %rax
	movl	(%rax,%r15,4), %r8d
	subl	(%rax,%rdi,4), %r8d
	movslq	%r8d, %r8
	addq	%rdx, %r8
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L76:
	movl	0(%r13,%r14,4), %r8d
	subl	0(%r13,%rax,4), %r8d
	movslq	%r8d, %r8
	addq	%rdx, %r8
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L114:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L113:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L112:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L30
.L82:
	xorl	%r8d, %r8d
	jmp	.L57
.L81:
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L49
	.cfi_endproc
.LFE43:
	.size	main, .-main
	.globl	odd
	.bss
	.align 32
	.type	odd, @object
	.size	odd, 400008
odd:
	.zero	400008
	.globl	even
	.align 32
	.type	even, @object
	.size	even, 400008
even:
	.zero	400008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400008
a:
	.zero	400008
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 400008
p:
	.zero	400008
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 400008
t:
	.zero	400008
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 400008
s:
	.zero	400008
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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	cmp
	.type	cmp, @function
cmp:
.LFB42:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE42:
	.size	cmp, .-cmp
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB39:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L12
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L5:
	xorl	%r12d, %r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L3
.L7:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L9:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L6
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L3
	movq	stdin(%rip), %rdi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L5
	.cfi_endproc
.LFE39:
	.size	in, .-in
	.p2align 4
	.globl	bisearch_LE
	.type	bisearch_LE, @function
bisearch_LE:
.LFB40:
	.cfi_startproc
	endbr64
	movl	M(%rip), %ecx
	xorl	%eax, %eax
	leaq	p(%rip), %r8
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	leal	(%rcx,%rax), %edx
	sarl	%edx
	movslq	%edx, %rsi
	cmpl	%edi, (%r8,%rsi,4)
	jl	.L18
	movl	%edx, %ecx
.L15:
	cmpl	%eax, %ecx
	jg	.L16
	subl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	leal	1(%rdx), %eax
	jmp	.L15
	.cfi_endproc
.LFE40:
	.size	bisearch_LE, .-bisearch_LE
	.p2align 4
	.globl	bisearch_GE
	.type	bisearch_GE, @function
bisearch_GE:
.LFB41:
	.cfi_startproc
	endbr64
	movl	M(%rip), %edx
	xorl	%r8d, %r8d
	leaq	p(%rip), %rsi
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L22:
	leal	(%rdx,%r8), %eax
	sarl	%eax
	movslq	%eax, %rcx
	cmpl	%edi, (%rsi,%rcx,4)
	jl	.L24
	movl	%eax, %edx
.L21:
	cmpl	%r8d, %edx
	jg	.L22
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	leal	1(%rax), %r8d
	jmp	.L21
	.cfi_endproc
.LFE41:
	.size	bisearch_GE, .-bisearch_GE
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB43:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	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
	leaq	s(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	t(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	in
	movl	%eax, N(%rip)
	xorl	%eax, %eax
	call	in
	addl	$1, %eax
	movl	%eax, M(%rip)
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L41
	.p2align 4,,10
	.p2align 3
.L26:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L112
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L30:
	xorl	%r13d, %r13d
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L31:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L33
.L32:
	movq	%rsi, %rdx
.L34:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rdx, %rcx
	ja	.L31
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L32
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%r13d, (%r12,%rbx,4)
	cmpq	%rcx, %rsi
	jnb	.L113
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L36:
	xorl	%r13d, %r13d
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L39
.L38:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L40:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rdx, %rcx
	ja	.L37
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L39
	movq	stdin(%rip), %rdi
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L39:
	movl	%r13d, 0(%rbp,%rbx,4)
	addq	$1, %rbx
	cmpl	%ebx, N(%rip)
	jg	.L26
.L41:
	movl	M(%rip), %eax
	movl	$1, %r12d
	movl	$0, p(%rip)
	leaq	p(%rip), %rbx
	cmpl	$1, %eax
	jle	.L28
	.p2align 4,,10
	.p2align 3
.L27:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L114
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L43:
	xorl	%ebp, %ebp
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L44:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L46
.L45:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L47:
	leal	0(%rbp,%rbp,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebp
	cmpq	%rdx, %rcx
	ja	.L44
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L46
	movq	stdin(%rip), %rdi
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L46:
	movl	M(%rip), %eax
	movl	%ebp, (%rbx,%r12,4)
	addq	$1, %r12
	cmpl	%r12d, %eax
	jg	.L27
.L28:
	movslq	%eax, %rsi
	leaq	cmp(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movslq	M(%rip), %rax
	leal	1(%rax), %r10d
	movl	$1000000002, (%rbx,%rax,4)
	movq	%rax, %rsi
	movl	%r10d, M(%rip)
	cmpl	$1, %r10d
	jle	.L48
	leal	-1(%rax), %ecx
	cmpl	$2, %ecx
	jbe	.L81
	movl	%esi, %edi
	leaq	4+a(%rip), %rdx
	leaq	p(%rip), %rax
	shrl	$2, %edi
	leaq	16(%rdx), %r8
	subl	$1, %edi
	salq	$4, %rdi
	addq	%r8, %rdi
	.p2align 4,,10
	.p2align 3
.L50:
	movdqu	4(%rax), %xmm0
	psubd	(%rax), %xmm0
	addq	$16, %rdx
	addq	$16, %rax
	movups	%xmm0, -16(%rdx)
	cmpq	%rdx, %rdi
	jne	.L50
	movl	%esi, %edx
	leaq	a(%rip), %rdi
	andl	$-4, %edx
	leal	1(%rdx), %eax
	cmpl	%edx, %esi
	je	.L51
.L49:
	subl	%edx, %esi
	leaq	a(%rip), %rdi
	cmpl	$1, %esi
	je	.L52
	addl	$1, %edx
	leaq	-4+p(%rip), %rdi
	movq	(%rdi,%rdx,4), %xmm1
	movq	(%rbx,%rdx,4), %xmm0
	leaq	a(%rip), %rdi
	psubd	%xmm1, %xmm0
	movq	%xmm0, (%rdi,%rdx,4)
	movl	%esi, %edx
	andl	$-2, %edx
	addl	%edx, %eax
	cmpl	%edx, %esi
	je	.L51
.L52:
	movslq	%eax, %rsi
	subl	$1, %eax
	cltq
	movl	(%rbx,%rsi,4), %edx
	subl	(%rbx,%rax,4), %edx
	movl	%edx, (%rdi,%rsi,4)
.L51:
	leaq	-4+odd(%rip), %r11
	leaq	even(%rip), %rdx
	movl	$1, %eax
	movl	$0, even(%rip)
	leaq	2(%rcx), %r8
	leaq	4(%r11), %r9
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L115:
	movl	(%rdx), %ebp
	addl	%esi, %ecx
	movl	%ebp, 4(%rdx)
.L111:
	movl	%ecx, (%r9,%rax,4)
	addq	$1, %rax
	addq	$4, %rdx
	cmpq	%r8, %rax
	je	.L56
.L78:
	movl	(%rdi,%rax,4), %esi
	movl	(%r11,%rax,4), %ecx
	testb	$1, %al
	jne	.L115
	addl	(%rdx), %esi
	movl	%esi, 4(%rdx)
	jmp	.L111
.L48:
	movl	$0, even(%rip)
	.p2align 4,,10
	.p2align 3
.L56:
	movslq	N(%rip), %r11
	testl	%r11d, %r11d
	jle	.L82
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	leaq	s(%rip), %r12
	leaq	t(%rip), %rbp
	leaq	even(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L77:
	movl	(%r12,%r9,4), %edx
	movl	0(%rbp,%r9,4), %ecx
	movl	%r10d, %edi
	xorl	%esi, %esi
	cmpl	%ecx, %edx
	jl	.L69
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L70:
	leal	(%rdi,%rsi), %eax
	sarl	%eax
	movslq	%eax, %r14
	cmpl	(%rbx,%r14,4), %edx
	jg	.L116
	movl	%eax, %edi
.L69:
	cmpl	%esi, %edi
	jg	.L70
	movl	%r10d, %edi
	xorl	%r14d, %r14d
	jmp	.L72
	.p2align 4,,10
	.p2align 3
.L73:
	leal	(%rdi,%r14), %eax
	sarl	%eax
	movslq	%eax, %r15
	cmpl	(%rbx,%r15,4), %ecx
	jg	.L117
	movl	%eax, %edi
.L72:
	cmpl	%r14d, %edi
	jg	.L73
	movslq	%esi, %rax
	movl	(%rbx,%rax,4), %eax
	cmpl	%eax, %ecx
	jg	.L74
	subl	%edx, %ecx
	addq	$1, %r9
	movslq	%ecx, %rcx
	addq	%rcx, %r8
	cmpq	%r11, %r9
	jne	.L77
.L57:
	movq	%r8, %rdx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %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
.L61:
	.cfi_restore_state
	leal	(%rdi,%rsi), %eax
	sarl	%eax
	movslq	%eax, %r14
	cmpl	(%rbx,%r14,4), %edx
	jg	.L118
	movl	%eax, %edi
.L60:
	cmpl	%esi, %edi
	jg	.L61
	movl	%r10d, %edi
	xorl	%r14d, %r14d
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L64:
	leal	(%rdi,%r14), %eax
	sarl	%eax
	movslq	%eax, %r15
	cmpl	(%rbx,%r15,4), %ecx
	jg	.L119
	movl	%eax, %edi
.L63:
	cmpl	%r14d, %edi
	jg	.L64
	movslq	%r14d, %rdi
	movl	(%rbx,%rdi,4), %eax
	cmpl	%eax, %edx
	jg	.L65
	subl	%ecx, %edx
	movslq	%edx, %rdx
	addq	%rdx, %r8
.L66:
	addq	$1, %r9
	cmpq	%r11, %r9
	jne	.L77
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L117:
	leal	1(%rax), %r14d
	jmp	.L72
	.p2align 4,,10
	.p2align 3
.L118:
	leal	1(%rax), %esi
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L119:
	leal	1(%rax), %r14d
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L116:
	leal	1(%rax), %esi
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L65:
	subl	$1, %esi
	movslq	%esi, %r15
	subl	(%rbx,%r15,4), %edx
	movslq	%edx, %rdx
	addq	%r8, %rdx
	movl	%r14d, %r8d
	xorl	%esi, %r8d
	andl	$1, %r8d
	je	.L67
	subl	%ecx, %eax
	addl	$1, %r14d
	cltq
	movslq	%r14d, %rdi
	addq	%rax, %rdx
.L67:
	andl	$1, %esi
	je	.L68
	movl	0(%r13,%r15,4), %r8d
	subl	0(%r13,%rdi,4), %r8d
	movslq	%r8d, %r8
	addq	%rdx, %r8
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L74:
	subl	$1, %r14d
	subl	%edx, %eax
	movslq	%eax, %rdx
	movl	%r14d, %eax
	movslq	%r14d, %r14
	xorl	%esi, %eax
	addq	%r8, %rdx
	testb	$1, %al
	je	.L75
	subl	(%rbx,%r14,4), %ecx
	movslq	%ecx, %rax
	addq	%rax, %rdx
.L75:
	leal	1(%rsi), %eax
	andl	$1, %esi
	cltq
	je	.L76
	leaq	odd(%rip), %rcx
	movl	(%rcx,%r14,4), %r8d
	subl	(%rcx,%rax,4), %r8d
	movslq	%r8d, %r8
	addq	%rdx, %r8
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L68:
	leaq	odd(%rip), %rax
	movl	(%rax,%r15,4), %r8d
	subl	(%rax,%rdi,4), %r8d
	movslq	%r8d, %r8
	addq	%rdx, %r8
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L76:
	movl	0(%r13,%r14,4), %r8d
	subl	0(%r13,%rax,4), %r8d
	movslq	%r8d, %r8
	addq	%rdx, %r8
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L114:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L113:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L112:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L30
.L82:
	xorl	%r8d, %r8d
	jmp	.L57
.L81:
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L49
	.cfi_endproc
.LFE43:
	.size	main, .-main
	.globl	odd
	.bss
	.align 32
	.type	odd, @object
	.size	odd, 400008
odd:
	.zero	400008
	.globl	even
	.align 32
	.type	even, @object
	.size	even, 400008
even:
	.zero	400008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400008
a:
	.zero	400008
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 400008
p:
	.zero	400008
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 400008
t:
	.zero	400008
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 400008
s:
	.zero	400008
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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:

// AOJ 2317 Class Representative Witch
// 2018.4.11 bal4u

#include <stdio.h>
#include <stdlib.h>

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

int N, M;
int s[100002], t[100002];
int p[100002], a[100002];
int even[100002], odd[100002];

// 見つからなければ、小さい要素のうちの最大を返す
int bisearch_LE(int x)
{
	int m, l = 0, r = M;

    while (l < r) {
        m = (l+r) >> 1;
//		if (p[m] == x) return m;
        if (p[m] < x) l = m + 1; else r = m;
    }
	return l-1;
}

// 見つからなければ、大きい要素のうちの最小を返す
int bisearch_GE(int x)
{
	int m, l = 0, r = M;

    while (l < r) {
        m = (l+r) >> 1;
        if (p[m] < x) l = m + 1; else r = m;
    }
	return l;
}

int cmp(int *a, int *b) { return *a - *b; }

int main()
{
	int i, j, k, mi, ma, f;
	long long ans;

	N = in(), M = in()+1;
	for (i = 0; i < N; i++) s[i] = in(), t[i] = in();
	p[0] = 0;
	for (i = 1; i < M; i++) p[i] = in();
	qsort(p, M, sizeof(int), cmp);
	p[M++] = 1000000002;
	for (i = 1; i < M; i++) a[i] = p[i]-p[i-1];

	even[0] = 0;
	for (i = 1; i < M; i++) {
		if (i & 1) odd [i] = odd [i-1]+a[i], even[i] = even[i-1];
		else       even[i] = even[i-1]+a[i], odd [i] = odd [i-1];
	}

	ans = 0;
	for (i = 0; i < N; i++) {
		if (s[i] < t[i]) f = 0, mi = s[i], ma = t[i];
		else             f = 1, ma = s[i], mi = t[i];
		if (f) {
			j = bisearch_LE(ma), k = bisearch_GE(mi);
			if (p[k] >= ma) ans += ma-mi;
			else {
				ans += ma-p[j];
				if ((k&1) ^ (j&1)) ans += p[k++]-mi;
				if (j&1) ans += even[j]-even[k];
				else     ans += odd [j]-odd [k];
			}
		} else {
			j = bisearch_GE(mi), k = bisearch_LE(ma);
			if (p[j] >= ma) ans += ma-mi;
			else {
				ans += p[j]-mi;
				if ((k&1) ^ (j&1)) ans += ma-p[k];
				if (j&1) ans += odd [k]-odd [j+1];
				else     ans += even[k]-even[j+1];
			}
		}
	}
	printf("%lld\n", ans);
	return 0;
}


2 3
1 8
20 5
3
7
15

10

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

```c
// AOJ 2317 Class Representative Witch
// 2018.4.11 bal4u

#include <stdio.h>
#include <stdlib.h>

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

int N, M;
int s[100002], t[100002];
int p[100002], a[100002];
int even[100002], odd[100002];

// 見つからなければ、小さい要素のうちの最大を返す
int bisearch_LE(int x)
{
	int m, l = 0, r = M;

    while (l < r) {
        m = (l+r) >> 1;
//		if (p[m] == x) return m;
        if (p[m] < x) l = m + 1; else r = m;
    }
	return l-1;
}

// 見つからなければ、大きい要素のうちの最小を返す
int bisearch_GE(int x)
{
	int m, l = 0, r = M;

    while (l < r) {
        m = (l+r) >> 1;
        if (p[m] < x) l = m + 1; else r = m;
    }
	return l;
}

int cmp(int *a, int *b) { return *a - *b; }

int main()
{
	int i, j, k, mi, ma, f;
	long long ans;

	N = in(), M = in()+1;
	for (i = 0; i < N; i++) s[i] = in(), t[i] = in();
	p[0] = 0;
	for (i = 1; i < M; i++) p[i] = in();
	qsort(p, M, sizeof(int), cmp);
	p[M++] = 1000000002;
	for (i = 1; i < M; i++) a[i] = p[i]-p[i-1];

	even[0] = 0;
	for (i = 1; i < M; i++) {
		if (i & 1) odd [i] = odd [i-1]+a[i], even[i] = even[i-1];
		else       even[i] = even[i-1]+a[i], odd [i] = odd [i-1];
	}

	ans = 0;
	for (i = 0; i < N; i++) {
		if (s[i] < t[i]) f = 0, mi = s[i], ma = t[i];
		else             f = 1, ma = s[i], mi = t[i];
		if (f) {
			j = bisearch_LE(ma), k = bisearch_GE(mi);
			if (p[k] >= ma) ans += ma-mi;
			else {
				ans += ma-p[j];
				if ((k&1) ^ (j&1)) ans += p[k++]-mi;
				if (j&1) ans += even[j]-even[k];
				else     ans += odd [j]-odd [k];
			}
		} else {
			j = bisearch_GE(mi), k = bisearch_LE(ma);
			if (p[j] >= ma) ans += ma-mi;
			else {
				ans += p[j]-mi;
				if ((k&1) ^ (j&1)) ans += ma-p[k];
				if (j&1) ans += odd [k]-odd [j+1];
				else     ans += even[k]-even[j+1];
			}
		}
	}
	printf("%lld\n", ans);
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB6:
	.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)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 400008
s:
	.zero	400008
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 400008
t:
	.zero	400008
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 400008
p:
	.zero	400008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400008
a:
	.zero	400008
	.globl	even
	.align 32
	.type	even, @object
	.size	even, 400008
even:
	.zero	400008
	.globl	odd
	.align 32
	.type	odd, @object
	.size	odd, 400008
odd:
	.zero	400008
	.text
	.globl	bisearch_LE
	.type	bisearch_LE, @function
bisearch_LE:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	M(%rip), %eax
	movl	%eax, -8(%rbp)
	jmp	.L5
.L7:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L6
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L5
.L6:
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L5:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L7
	movl	-12(%rbp), %eax
	subl	$1, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bisearch_LE, .-bisearch_LE
	.globl	bisearch_GE
	.type	bisearch_GE, @function
bisearch_GE:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	M(%rip), %eax
	movl	%eax, -8(%rbp)
	jmp	.L10
.L12:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L11
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L12
	movl	-12(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bisearch_GE, .-bisearch_GE
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, N(%rip)
	movl	$0, %eax
	call	in
	addl	$1, %eax
	movl	%eax, M(%rip)
	movl	$0, -32(%rbp)
	jmp	.L17
.L18:
	movl	$0, %eax
	call	in
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L18
	movl	$0, p(%rip)
	movl	$1, -32(%rbp)
	jmp	.L19
.L20:
	movl	$0, %eax
	call	in
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L19:
	movl	M(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L20
	movl	M(%rip), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	M(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, M(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$1000000002, (%rdx,%rax)
	movl	$1, -32(%rbp)
	jmp	.L21
.L22:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L21:
	movl	M(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L22
	movl	$0, even(%rip)
	movl	$1, -32(%rbp)
	jmp	.L23
.L26:
	movl	-32(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L24
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	even(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	jmp	.L25
.L24:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	odd(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L25:
	addl	$1, -32(%rbp)
.L23:
	movl	M(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L26
	movq	$0, -8(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L27
.L38:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L28
	movl	$0, -16(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	jmp	.L29
.L28:
	movl	$1, -16(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
.L29:
	cmpl	$0, -16(%rbp)
	je	.L30
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_LE
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_GE
	movl	%eax, -28(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jg	.L31
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L31:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	movl	-28(%rbp), %eax
	xorl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L33
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -28(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
.L33:
	movl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L34
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	even(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L34:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	odd(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L30:
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_GE
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_LE
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jg	.L35
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L35:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
	movl	-28(%rbp), %eax
	xorl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L36
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
.L36:
	movl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L37
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	addl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	odd(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L37:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	addl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	even(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
.L32:
	addl	$1, -32(%rbp)
.L27:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L38
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB6:
	.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)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 400008
s:
	.zero	400008
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 400008
t:
	.zero	400008
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 400008
p:
	.zero	400008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400008
a:
	.zero	400008
	.globl	even
	.align 32
	.type	even, @object
	.size	even, 400008
even:
	.zero	400008
	.globl	odd
	.align 32
	.type	odd, @object
	.size	odd, 400008
odd:
	.zero	400008
	.text
	.globl	bisearch_LE
	.type	bisearch_LE, @function
bisearch_LE:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	M(%rip), %eax
	movl	%eax, -8(%rbp)
	jmp	.L5
.L7:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L6
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L5
.L6:
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L5:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L7
	movl	-12(%rbp), %eax
	subl	$1, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bisearch_LE, .-bisearch_LE
	.globl	bisearch_GE
	.type	bisearch_GE, @function
bisearch_GE:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	M(%rip), %eax
	movl	%eax, -8(%rbp)
	jmp	.L10
.L12:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L11
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L12
	movl	-12(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bisearch_GE, .-bisearch_GE
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, N(%rip)
	movl	$0, %eax
	call	in
	addl	$1, %eax
	movl	%eax, M(%rip)
	movl	$0, -32(%rbp)
	jmp	.L17
.L18:
	movl	$0, %eax
	call	in
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L18
	movl	$0, p(%rip)
	movl	$1, -32(%rbp)
	jmp	.L19
.L20:
	movl	$0, %eax
	call	in
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L19:
	movl	M(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L20
	movl	M(%rip), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	M(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, M(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	$1000000002, (%rdx,%rax)
	movl	$1, -32(%rbp)
	jmp	.L21
.L22:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	p(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L21:
	movl	M(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L22
	movl	$0, even(%rip)
	movl	$1, -32(%rbp)
	jmp	.L23
.L26:
	movl	-32(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L24
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	even(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	jmp	.L25
.L24:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	odd(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L25:
	addl	$1, -32(%rbp)
.L23:
	movl	M(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L26
	movq	$0, -8(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L27
.L38:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L28
	movl	$0, -16(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	jmp	.L29
.L28:
	movl	$1, -16(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -24(%rbp)
.L29:
	cmpl	$0, -16(%rbp)
	je	.L30
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_LE
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_GE
	movl	%eax, -28(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jg	.L31
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L31:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	movl	-28(%rbp), %eax
	xorl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L33
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -28(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
.L33:
	movl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L34
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	even(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L34:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	odd(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L30:
	movl	-24(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_GE
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	bisearch_LE
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jg	.L35
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L35:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	-24(%rbp), %eax
	cltq
	addq	%rax, -8(%rbp)
	movl	-28(%rbp), %eax
	xorl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L36
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
.L36:
	movl	-12(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L37
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	odd(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	addl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	odd(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
	jmp	.L32
.L37:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	even(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	addl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	even(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cltq
	addq	%rax, -8(%rbp)
.L32:
	addl	$1, -32(%rbp)
.L27:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L38
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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:
