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

```c
// AOJ 1067 Cutting a Chocolate
// 2018.3.17 bal4u

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

//#define getchar_unlocked()  getchar()
int in()        // get a non-negative integer from stdin
{
	int n = 0, c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

double dbl()    // get a non-negative real number from stdin  
{
	double x, y;
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	x = n;
	if (c == '.') {
		y = 1, c = getchar_unlocked();
		do y *= 0.1, x += y * (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	}
	return x;
}

#define EQ(a,b)   (fabs(a-b)<1e-7)

typedef struct { double x, y; } P;
P p[30002];

int hl[30002], hr[30002], s[30002], a[30002];

int binary_search(int *tbl, int hi, int k, int key)
{
	int lo = 0, mi, r;

    while (lo < hi) {
        mi = (lo + hi) >> 1;
		r = tbl[mi]*k - key;
		if (!r) return mi;
        if (r < 0) lo = mi + 1; else hi = mi;
    }
	return lo-1;
}

int cmp(P *a, P *b)
{
	if (!EQ(a->y, b->y)) { if (a->y <= b->y) return -1;	return 1; }
	if ( EQ(a->x, b->x)) return 0; if (a->x <= b->x) return -1; return 1;
}

int main()
{
	int n, m, w, h, S, i, j, ans;
	double x, y, y1, y2;

	while (n = in()) {
		m = in(), w = in(), h = in(), S = (w*h-in()) << 1;
		for (i = 0; i < m; i++) {
			hl[i] = in(), hr[i] = in(), a[i] = 0;
			s[i] = hl[i] + hr[i];
		}
		for (i = 0; i < n; i++) p[i].x = dbl(), p[i].y = dbl();
		qsort(p, n, sizeof(P), cmp);

		j = 0; for (i = 0; i < n; i++) {
			x = p[i].x, y = p[i].y;
			while (1) {
				if (j == 0) y1 = 0;
				else y1 = (hr[j-1] - hl[j-1]) * x / w + hl[j-1];
				y2 = (hr[j] - hl[j]) * x / w + hl[j];
				if (y1 < y && y < y2) break;
				if (y2 < y) j++;
				else        j--;
			}
			a[j]++;
		}
		for (i = 1; i < m; i++) a[i] += a[i-1];

		if      (S == 0    ) { printf("%d\n", n); continue; }
		else if (S == 2*w*h) { puts("0");         continue; }

		j = binary_search(s, m, w, S); ans = a[j++];
		for (i = 0; j < m; j++) {
			while ((s[j] - s[i])*w > S) i++;
			if (a[j] - a[i] > ans) ans = a[j] - a[i];
		}
		printf("%d\n", 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), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%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	dbl
	.type	dbl, @function
dbl:
.LFB7:
	.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, -24(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
.L5:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
	cmpl	$47, -20(%rbp)
	jg	.L5
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-24(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	cmpl	$46, -20(%rbp)
	jne	.L6
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
.L7:
	movsd	-8(%rbp), %xmm1
	movsd	.LC1(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-20(%rbp), %eax
	andl	$15, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-8(%rbp), %xmm0
	movsd	-16(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
	cmpl	$47, -20(%rbp)
	jg	.L7
.L6:
	movsd	-16(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dbl, .-dbl
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 480032
p:
	.zero	480032
	.globl	hl
	.align 32
	.type	hl, @object
	.size	hl, 120008
hl:
	.zero	120008
	.globl	hr
	.align 32
	.type	hr, @object
	.size	hr, 120008
hr:
	.zero	120008
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 120008
s:
	.zero	120008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 120008
a:
	.zero	120008
	.text
	.globl	binary_search
	.type	binary_search, @function
binary_search:
.LFB8:
	.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)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L10
.L14:
	movl	-12(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -8(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	imull	-32(%rbp), %eax
	subl	-36(%rbp), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L11
	movl	-8(%rbp), %eax
	jmp	.L12
.L11:
	cmpl	$0, -4(%rbp)
	jns	.L13
	movl	-8(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L13:
	movl	-8(%rbp), %eax
	movl	%eax, -28(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L14
	movl	-12(%rbp), %eax
	subl	$1, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	binary_search, .-binary_search
	.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
	movsd	8(%rax), %xmm0
	movq	-16(%rbp), %rax
	movsd	8(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC3(%rip), %xmm0
	comisd	%xmm1, %xmm0
	seta	%al
	xorl	$1, %eax
	testb	%al, %al
	je	.L16
	movq	-8(%rbp), %rax
	movsd	8(%rax), %xmm1
	movq	-16(%rbp), %rax
	movsd	8(%rax), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L27
	movl	$-1, %eax
	jmp	.L19
.L27:
	movl	$1, %eax
	jmp	.L19
.L16:
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC3(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L28
	movl	$0, %eax
	jmp	.L19
.L28:
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L29
	movl	$-1, %eax
	jmp	.L19
.L29:
	movl	$1, %eax
.L19:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmp, .-cmp
	.section	.rodata
.LC5:
	.string	"%d\n"
.LC6:
	.string	"0"
	.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
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	jmp	.L31
.L57:
	movl	$0, %eax
	call	in
	movl	%eax, -64(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -60(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -56(%rbp)
	movl	-60(%rbp), %eax
	imull	-56(%rbp), %eax
	movl	%eax, %ebx
	movl	$0, %eax
	call	in
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -52(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L32
.L33:
	movl	$0, %eax
	call	in
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hl(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hr(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hl(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hr(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -80(%rbp)
.L32:
	movl	-80(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L33
	movl	$0, -80(%rbp)
	jmp	.L34
.L35:
	movl	$0, %eax
	call	dbl
	movq	%xmm0, %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	p(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	$0, %eax
	call	dbl
	movq	%xmm0, %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+p(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -80(%rbp)
.L34:
	movl	-80(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L35
	movl	-68(%rbp), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rsi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -76(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L36
.L47:
	movl	-80(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-80(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -32(%rbp)
.L46:
	cmpl	$0, -76(%rbp)
	jne	.L37
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)
	jmp	.L38
.L37:
	movl	-76(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hr(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-76(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hl(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-60(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movl	-76(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
.L38:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hr(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hl(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-60(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-32(%rbp), %xmm0
	comisd	-48(%rbp), %xmm0
	jbe	.L39
	movsd	-24(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	ja	.L62
.L39:
	movsd	-32(%rbp), %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L61
	addl	$1, -76(%rbp)
	jmp	.L46
.L61:
	subl	$1, -76(%rbp)
	jmp	.L46
.L62:
	nop
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -80(%rbp)
.L36:
	movl	-80(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L47
	movl	$1, -80(%rbp)
	jmp	.L48
.L49:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-80(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -80(%rbp)
.L48:
	movl	-80(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L49
	cmpl	$0, -52(%rbp)
	jne	.L50
	movl	-68(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L50:
	movl	-60(%rbp), %eax
	imull	-56(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -52(%rbp)
	jne	.L51
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L31
.L51:
	movl	-52(%rbp), %ecx
	movl	-60(%rbp), %edx
	movl	-64(%rbp), %eax
	movl	%eax, %esi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	binary_search
	movl	%eax, -76(%rbp)
	movl	-76(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -76(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L52
.L54:
	addl	$1, -80(%rbp)
.L53:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	imull	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L54
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cmpl	%eax, -72(%rbp)
	jge	.L55
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -72(%rbp)
.L55:
	addl	$1, -76(%rbp)
.L52:
	movl	-76(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L53
	movl	-68(%rbp), %eax
	subl	-72(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L31:
	movl	$0, %eax
	call	in
	movl	%eax, -68(%rbp)
	cmpl	$0, -68(%rbp)
	jne	.L57
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	-1717986918
	.long	1069128089
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC3:
	.long	-1698910392
	.long	1048238066
	.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
	movsd	8(%rdi), %xmm3
	movsd	8(%rsi), %xmm4
	movq	.LC0(%rip), %xmm2
	movsd	.LC1(%rip), %xmm1
	movapd	%xmm3, %xmm0
	subsd	%xmm4, %xmm0
	andpd	%xmm2, %xmm0
	comisd	%xmm0, %xmm1
	jbe	.L11
	movsd	(%rdi), %xmm3
	movsd	(%rsi), %xmm4
	xorl	%eax, %eax
	movapd	%xmm3, %xmm0
	subsd	%xmm4, %xmm0
	andpd	%xmm2, %xmm0
	comisd	%xmm0, %xmm1
	ja	.L1
.L11:
	comisd	%xmm3, %xmm4
	sbbl	%eax, %eax
	andl	$2, %eax
	subl	$1, %eax
.L1:
	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	.L22
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L15:
	xorl	%r12d, %r12d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L13
.L17:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L19:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L16
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L13
	movq	stdin(%rip), %rdi
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L15
	.cfi_endproc
.LFE39:
	.size	in, .-in
	.p2align 4
	.globl	dbl
	.type	dbl, @function
dbl:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L39
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L25:
	xorl	%ebx, %ebx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L26:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L28
.L27:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L29:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebx
	cmpq	%rcx, %rdx
	jb	.L26
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L28
	movq	stdin(%rip), %rdi
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L28:
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%ebx, %xmm2
	cmpl	$46, %eax
	je	.L40
.L23:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	movapd	%xmm2, %xmm0
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L41
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L32:
	movsd	.LC2(%rip), %xmm1
	movsd	.LC3(%rip), %xmm3
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L33:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L23
.L34:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L35:
	mulsd	%xmm3, %xmm1
	andl	$15, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm0
	addsd	%xmm0, %xmm2
	cmpq	%rcx, %rdx
	jb	.L33
	movsd	%xmm2, (%rsp)
	movsd	%xmm1, 8(%rsp)
	call	__uflow@PLT
	movsd	(%rsp), %xmm2
	cmpl	$47, %eax
	jle	.L23
	movq	.LC3(%rip), %rsi
	movq	stdin(%rip), %rdi
	movsd	8(%rsp), %xmm1
	movq	%rsi, %xmm3
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L39:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L25
.L41:
	movsd	%xmm2, (%rsp)
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movsd	(%rsp), %xmm2
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L32
	.cfi_endproc
.LFE40:
	.size	dbl, .-dbl
	.p2align 4
	.globl	binary_search
	.type	binary_search, @function
binary_search:
.LFB41:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L46:
	leal	(%rsi,%r8), %eax
	sarl	%eax
	movslq	%eax, %r9
	movl	(%rdi,%r9,4), %r10d
	imull	%edx, %r10d
	cmpl	%ecx, %r10d
	je	.L42
	js	.L51
	movl	%eax, %esi
.L45:
	cmpl	%r8d, %esi
	jg	.L46
	leal	-1(%r8), %eax
.L42:
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	leal	1(%rax), %r8d
	jmp	.L45
	.cfi_endproc
.LFE41:
	.size	binary_search, .-binary_search
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"%d\n"
.LC6:
	.string	"0"
	.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
	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	hl(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
.L53:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L159
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L123:
	xorl	%ebx, %ebx
	jmp	.L127
	.p2align 4,,10
	.p2align 3
.L124:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L126
.L125:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L127:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebx
	cmpq	%rcx, %rdx
	jb	.L124
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L126
	movq	stdin(%rip), %rdi
	jmp	.L125
.L126:
	movl	%ebx, 16(%rsp)
	testl	%ebx, %ebx
	je	.L160
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rax
	cmpq	%rax, %rdx
	jnb	.L161
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rdx), %edx
.L55:
	xorl	%ebx, %ebx
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L56:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L151
.L57:
	movq	%rsi, %rcx
.L59:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %ebx
	cmpq	%rax, %rcx
	jb	.L56
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L57
.L151:
	movl	%ebx, 12(%rsp)
	cmpq	%rsi, %rax
	jbe	.L162
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L61:
	xorl	%ebp, %ebp
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L62:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L64
.L63:
	movq	%rsi, %rcx
.L65:
	leal	0(%rbp,%rbp,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %ebp
	cmpq	%rax, %rcx
	jb	.L62
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L63
.L64:
	cmpq	%rsi, %rax
	jbe	.L163
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L67:
	xorl	%ebx, %ebx
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L68:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L70
.L69:
	movq	%rsi, %rcx
.L71:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %ebx
	cmpq	%rax, %rcx
	jb	.L68
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L69
.L70:
	imull	%ebp, %ebx
	movl	%ebx, 20(%rsp)
	cmpq	%rsi, %rax
	jbe	.L164
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L73:
	xorl	%r13d, %r13d
	jmp	.L77
	.p2align 4,,10
	.p2align 3
.L74:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L76
.L75:
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
.L77:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %r13d
	cmpq	%rax, %rcx
	jb	.L74
	call	__uflow@PLT
	movl	%eax, %edx
	cmpl	$47, %eax
	jle	.L76
	movq	stdin(%rip), %rdi
	jmp	.L75
.L76:
	movslq	12(%rsp), %rsi
	movl	20(%rsp), %ebx
	xorl	%r15d, %r15d
	leaq	hr(%rip), %r14
	leaq	a(%rip), %rcx
	subl	%r13d, %ebx
	movq	%rsi, %rax
	movq	%rsi, (%rsp)
	leaq	s(%rip), %rsi
	addl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L94
	movl	%ebx, 24(%rsp)
	movq	%rcx, %r13
	movl	%ebp, 28(%rsp)
	movq	%r15, %rbp
	movq	%rsi, %r15
	.p2align 4,,10
	.p2align 3
.L93:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jnb	.L165
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rax), %eax
.L82:
	xorl	%ebx, %ebx
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L83:
	leaq	1(%rcx), %r9
	movq	%r9, 8(%rdi)
	movzbl	(%rcx), %eax
	cmpl	$47, %eax
	jle	.L85
.L84:
	movq	%r9, %rcx
.L86:
	leal	(%rbx,%rbx,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %ebx
	cmpq	%rsi, %rcx
	jb	.L83
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r9
	movq	16(%rdi), %rsi
	cmpl	$47, %eax
	jg	.L84
	.p2align 4,,10
	.p2align 3
.L85:
	movl	%ebx, (%r12,%rbp,4)
	cmpq	%r9, %rsi
	jbe	.L166
	leaq	1(%r9), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%r9), %eax
.L88:
	xorl	%ebx, %ebx
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L89:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %eax
	cmpl	$47, %eax
	jle	.L91
.L90:
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
.L92:
	leal	(%rbx,%rbx,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %ebx
	cmpq	%rsi, %rcx
	jb	.L89
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L91
	movq	stdin(%rip), %rdi
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L91:
	movl	%ebx, (%r14,%rbp,4)
	addl	(%r12,%rbp,4), %ebx
	movl	$0, 0(%r13,%rbp,4)
	movl	%ebx, (%r15,%rbp,4)
	addq	$1, %rbp
	cmpq	%rbp, (%rsp)
	jne	.L93
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
.L94:
	movslq	16(%rsp), %rsi
	movq	%rsi, (%rsp)
	testl	%esi, %esi
	jle	.L167
	leaq	p(%rip), %r15
	leal	-1(%rsi), %r13d
	salq	$4, %r13
	leaq	16(%r15), %rax
	movq	%r15, %r14
	addq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L95:
	xorl	%eax, %eax
	addq	$16, %r14
	call	dbl
	xorl	%eax, %eax
	movsd	%xmm0, -16(%r14)
	call	dbl
	movsd	%xmm0, -8(%r14)
	cmpq	%r14, %r13
	jne	.L95
	movq	(%rsp), %rsi
	leaq	cmp(%rip), %rcx
	movl	$16, %edx
	leaq	p(%rip), %rdi
	leaq	hr(%rip), %r14
	call	qsort@PLT
	movl	(%r12), %edx
	pxor	%xmm5, %xmm5
	xorl	%eax, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%ebp, %xmm5
	pxor	%xmm6, %xmm6
	movl	hr(%rip), %esi
	cvtsi2sdl	%edx, %xmm3
	leaq	a(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L105:
	movsd	(%r15), %xmm4
	movsd	8(%r15), %xmm2
	jmp	.L97
	.p2align 4,,10
	.p2align 3
.L99:
	leal	-1(%rax), %edx
	addl	$1, %eax
	pxor	%xmm3, %xmm3
	comisd	%xmm0, %xmm2
	cmovbe	%edx, %eax
	movslq	%eax, %rdx
	movl	(%r14,%rdx,4), %esi
	movl	(%r12,%rdx,4), %edx
	cvtsi2sdl	%edx, %xmm3
.L97:
	movapd	%xmm6, %xmm1
	testl	%eax, %eax
	je	.L98
	leal	-1(%rax), %edi
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movslq	%edi, %rdi
	movl	(%r12,%rdi,4), %r8d
	movl	(%r14,%rdi,4), %edi
	subl	%r8d, %edi
	cvtsi2sdl	%r8d, %xmm0
	cvtsi2sdl	%edi, %xmm1
	mulsd	%xmm4, %xmm1
	divsd	%xmm5, %xmm1
	addsd	%xmm0, %xmm1
.L98:
	movl	%esi, %edi
	pxor	%xmm0, %xmm0
	subl	%edx, %edi
	comisd	%xmm1, %xmm2
	cvtsi2sdl	%edi, %xmm0
	mulsd	%xmm4, %xmm0
	divsd	%xmm5, %xmm0
	addsd	%xmm3, %xmm0
	jbe	.L99
	comisd	%xmm2, %xmm0
	jbe	.L99
	movslq	%eax, %rdi
	addq	$16, %r15
	addl	$1, (%rcx,%rdi,4)
	cmpq	%r15, %r13
	jne	.L105
.L129:
	cmpl	$1, 12(%rsp)
	jle	.L110
	movl	12(%rsp), %esi
	leaq	4+a(%rip), %rax
	movl	a(%rip), %edx
	leal	-2(%rsi), %ecx
	leaq	4(%rax), %rsi
	leaq	(%rsi,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L109:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rax, %rcx
	jne	.L109
.L110:
	testl	%ebx, %ebx
	je	.L168
	movl	20(%rsp), %eax
	movl	12(%rsp), %edx
	xorl	%r11d, %r11d
	leaq	s(%rip), %rdi
	addl	%eax, %eax
	cmpl	%ebx, %eax
	jne	.L115
	jmp	.L169
	.p2align 4,,10
	.p2align 3
.L116:
	leal	(%rdx,%r11), %eax
	sarl	%eax
	movslq	%eax, %rsi
	movl	(%rdi,%rsi,4), %ecx
	imull	%ebp, %ecx
	cmpl	%ebx, %ecx
	je	.L170
	js	.L171
	movl	%eax, %edx
.L115:
	cmpl	%r11d, %edx
	jg	.L116
	leal	-1(%r11), %eax
	movslq	%eax, %rsi
.L114:
	movl	12(%rsp), %r10d
	leaq	a(%rip), %rcx
	movl	(%rcx,%rsi,4), %r13d
	cmpl	%r11d, %r10d
	jle	.L117
	movl	s(%rip), %edi
	leaq	s(%rip), %rsi
	movslq	%r11d, %r11
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L118:
	movl	(%rsi,%r11,4), %r8d
	leal	1(%r9), %eax
	cltq
	movl	%r8d, %edx
	subl	%edi, %edx
	imull	%ebp, %edx
	cmpl	%edx, %ebx
	jge	.L121
	.p2align 4,,10
	.p2align 3
.L119:
	movl	(%rsi,%rax,4), %edi
	movl	%r8d, %edx
	movl	%eax, %r9d
	addq	$1, %rax
	subl	%edi, %edx
	imull	%ebp, %edx
	cmpl	%ebx, %edx
	jg	.L119
.L121:
	movslq	%r9d, %rdx
	movl	(%rcx,%r11,4), %eax
	subl	(%rcx,%rdx,4), %eax
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	addq	$1, %r11
	cmpl	%r11d, %r10d
	jg	.L118
.L117:
	movl	16(%rsp), %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%r13d, %edx
	call	__printf_chk@PLT
	jmp	.L53
.L166:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	jmp	.L88
.L165:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	jmp	.L82
.L170:
	leal	1(%rax), %r11d
	jmp	.L114
.L171:
	leal	1(%rax), %r11d
	jmp	.L115
.L169:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L53
.L168:
	movl	16(%rsp), %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L53
.L160:
	addq	$40, %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
.L159:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L123
.L167:
	leaq	cmp(%rip), %rcx
	movl	$16, %edx
	leaq	p(%rip), %rdi
	call	qsort@PLT
	jmp	.L129
.L164:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L73
.L163:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L67
.L162:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L61
.L161:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L55
	.cfi_endproc
.LFE43:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 120008
a:
	.zero	120008
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 120008
s:
	.zero	120008
	.globl	hr
	.align 32
	.type	hr, @object
	.size	hr, 120008
hr:
	.zero	120008
	.globl	hl
	.align 32
	.type	hl, @object
	.size	hl, 120008
hl:
	.zero	120008
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 480032
p:
	.zero	480032
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	-1698910392
	.long	1048238066
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	-1717986918
	.long	1069128089
	.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
	movsd	8(%rdi), %xmm3
	movsd	8(%rsi), %xmm4
	movq	.LC0(%rip), %xmm2
	movsd	.LC1(%rip), %xmm1
	movapd	%xmm3, %xmm0
	subsd	%xmm4, %xmm0
	andpd	%xmm2, %xmm0
	comisd	%xmm0, %xmm1
	jbe	.L11
	movsd	(%rdi), %xmm3
	movsd	(%rsi), %xmm4
	xorl	%eax, %eax
	movapd	%xmm3, %xmm0
	subsd	%xmm4, %xmm0
	andpd	%xmm2, %xmm0
	comisd	%xmm0, %xmm1
	ja	.L1
.L11:
	comisd	%xmm3, %xmm4
	sbbl	%eax, %eax
	andl	$2, %eax
	subl	$1, %eax
.L1:
	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	.L22
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L15:
	xorl	%r12d, %r12d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L13
.L17:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L19:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L16
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L13
	movq	stdin(%rip), %rdi
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L15
	.cfi_endproc
.LFE39:
	.size	in, .-in
	.p2align 4
	.globl	dbl
	.type	dbl, @function
dbl:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L39
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L25:
	xorl	%ebx, %ebx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L26:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L28
.L27:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L29:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebx
	cmpq	%rcx, %rdx
	jb	.L26
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L28
	movq	stdin(%rip), %rdi
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L28:
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%ebx, %xmm2
	cmpl	$46, %eax
	je	.L40
.L23:
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	movapd	%xmm2, %xmm0
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L41
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L32:
	movsd	.LC2(%rip), %xmm1
	movsd	.LC3(%rip), %xmm3
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L33:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L23
.L34:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L35:
	mulsd	%xmm3, %xmm1
	andl	$15, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	%xmm1, %xmm0
	addsd	%xmm0, %xmm2
	cmpq	%rcx, %rdx
	jb	.L33
	movsd	%xmm2, (%rsp)
	movsd	%xmm1, 8(%rsp)
	call	__uflow@PLT
	movsd	(%rsp), %xmm2
	cmpl	$47, %eax
	jle	.L23
	movq	.LC3(%rip), %rsi
	movq	stdin(%rip), %rdi
	movsd	8(%rsp), %xmm1
	movq	%rsi, %xmm3
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L39:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L25
.L41:
	movsd	%xmm2, (%rsp)
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movsd	(%rsp), %xmm2
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L32
	.cfi_endproc
.LFE40:
	.size	dbl, .-dbl
	.p2align 4
	.globl	binary_search
	.type	binary_search, @function
binary_search:
.LFB41:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L46:
	leal	(%rsi,%r8), %eax
	sarl	%eax
	movslq	%eax, %r9
	movl	(%rdi,%r9,4), %r10d
	imull	%edx, %r10d
	cmpl	%ecx, %r10d
	je	.L42
	js	.L51
	movl	%eax, %esi
.L45:
	cmpl	%r8d, %esi
	jg	.L46
	leal	-1(%r8), %eax
.L42:
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	leal	1(%rax), %r8d
	jmp	.L45
	.cfi_endproc
.LFE41:
	.size	binary_search, .-binary_search
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"%d\n"
.LC6:
	.string	"0"
	.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
	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	hl(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
.L53:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L159
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L123:
	xorl	%ebx, %ebx
	jmp	.L127
	.p2align 4,,10
	.p2align 3
.L124:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L126
.L125:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L127:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %ebx
	cmpq	%rcx, %rdx
	jb	.L124
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L126
	movq	stdin(%rip), %rdi
	jmp	.L125
.L126:
	movl	%ebx, 16(%rsp)
	testl	%ebx, %ebx
	je	.L160
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rax
	cmpq	%rax, %rdx
	jnb	.L161
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rdx), %edx
.L55:
	xorl	%ebx, %ebx
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L56:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L151
.L57:
	movq	%rsi, %rcx
.L59:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %ebx
	cmpq	%rax, %rcx
	jb	.L56
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L57
.L151:
	movl	%ebx, 12(%rsp)
	cmpq	%rsi, %rax
	jbe	.L162
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L61:
	xorl	%ebp, %ebp
	jmp	.L65
	.p2align 4,,10
	.p2align 3
.L62:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L64
.L63:
	movq	%rsi, %rcx
.L65:
	leal	0(%rbp,%rbp,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %ebp
	cmpq	%rax, %rcx
	jb	.L62
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L63
.L64:
	cmpq	%rsi, %rax
	jbe	.L163
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L67:
	xorl	%ebx, %ebx
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L68:
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L70
.L69:
	movq	%rsi, %rcx
.L71:
	leal	(%rbx,%rbx,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %ebx
	cmpq	%rax, %rcx
	jb	.L68
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	cmpl	$47, %edx
	jg	.L69
.L70:
	imull	%ebp, %ebx
	movl	%ebx, 20(%rsp)
	cmpq	%rsi, %rax
	jbe	.L164
	leaq	1(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rsi), %edx
.L73:
	xorl	%r13d, %r13d
	jmp	.L77
	.p2align 4,,10
	.p2align 3
.L74:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %edx
	cmpl	$47, %edx
	jle	.L76
.L75:
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
.L77:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %edx
	leal	(%rdx,%rsi,2), %r13d
	cmpq	%rax, %rcx
	jb	.L74
	call	__uflow@PLT
	movl	%eax, %edx
	cmpl	$47, %eax
	jle	.L76
	movq	stdin(%rip), %rdi
	jmp	.L75
.L76:
	movslq	12(%rsp), %rsi
	movl	20(%rsp), %ebx
	xorl	%r15d, %r15d
	leaq	hr(%rip), %r14
	leaq	a(%rip), %rcx
	subl	%r13d, %ebx
	movq	%rsi, %rax
	movq	%rsi, (%rsp)
	leaq	s(%rip), %rsi
	addl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L94
	movl	%ebx, 24(%rsp)
	movq	%rcx, %r13
	movl	%ebp, 28(%rsp)
	movq	%r15, %rbp
	movq	%rsi, %r15
	.p2align 4,,10
	.p2align 3
.L93:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jnb	.L165
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rax), %eax
.L82:
	xorl	%ebx, %ebx
	jmp	.L86
	.p2align 4,,10
	.p2align 3
.L83:
	leaq	1(%rcx), %r9
	movq	%r9, 8(%rdi)
	movzbl	(%rcx), %eax
	cmpl	$47, %eax
	jle	.L85
.L84:
	movq	%r9, %rcx
.L86:
	leal	(%rbx,%rbx,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %ebx
	cmpq	%rsi, %rcx
	jb	.L83
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %r9
	movq	16(%rdi), %rsi
	cmpl	$47, %eax
	jg	.L84
	.p2align 4,,10
	.p2align 3
.L85:
	movl	%ebx, (%r12,%rbp,4)
	cmpq	%r9, %rsi
	jbe	.L166
	leaq	1(%r9), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%r9), %eax
.L88:
	xorl	%ebx, %ebx
	jmp	.L92
	.p2align 4,,10
	.p2align 3
.L89:
	leaq	1(%rcx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rcx), %eax
	cmpl	$47, %eax
	jle	.L91
.L90:
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
.L92:
	leal	(%rbx,%rbx,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %ebx
	cmpq	%rsi, %rcx
	jb	.L89
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L91
	movq	stdin(%rip), %rdi
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L91:
	movl	%ebx, (%r14,%rbp,4)
	addl	(%r12,%rbp,4), %ebx
	movl	$0, 0(%r13,%rbp,4)
	movl	%ebx, (%r15,%rbp,4)
	addq	$1, %rbp
	cmpq	%rbp, (%rsp)
	jne	.L93
	movl	24(%rsp), %ebx
	movl	28(%rsp), %ebp
.L94:
	movslq	16(%rsp), %rsi
	movq	%rsi, (%rsp)
	testl	%esi, %esi
	jle	.L167
	leaq	p(%rip), %r15
	leal	-1(%rsi), %r13d
	salq	$4, %r13
	leaq	16(%r15), %rax
	movq	%r15, %r14
	addq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L95:
	xorl	%eax, %eax
	addq	$16, %r14
	call	dbl
	xorl	%eax, %eax
	movsd	%xmm0, -16(%r14)
	call	dbl
	movsd	%xmm0, -8(%r14)
	cmpq	%r14, %r13
	jne	.L95
	movq	(%rsp), %rsi
	leaq	cmp(%rip), %rcx
	movl	$16, %edx
	leaq	p(%rip), %rdi
	leaq	hr(%rip), %r14
	call	qsort@PLT
	movl	(%r12), %edx
	pxor	%xmm5, %xmm5
	xorl	%eax, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%ebp, %xmm5
	pxor	%xmm6, %xmm6
	movl	hr(%rip), %esi
	cvtsi2sdl	%edx, %xmm3
	leaq	a(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L105:
	movsd	(%r15), %xmm4
	movsd	8(%r15), %xmm2
	jmp	.L97
	.p2align 4,,10
	.p2align 3
.L99:
	leal	-1(%rax), %edx
	addl	$1, %eax
	pxor	%xmm3, %xmm3
	comisd	%xmm0, %xmm2
	cmovbe	%edx, %eax
	movslq	%eax, %rdx
	movl	(%r14,%rdx,4), %esi
	movl	(%r12,%rdx,4), %edx
	cvtsi2sdl	%edx, %xmm3
.L97:
	movapd	%xmm6, %xmm1
	testl	%eax, %eax
	je	.L98
	leal	-1(%rax), %edi
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movslq	%edi, %rdi
	movl	(%r12,%rdi,4), %r8d
	movl	(%r14,%rdi,4), %edi
	subl	%r8d, %edi
	cvtsi2sdl	%r8d, %xmm0
	cvtsi2sdl	%edi, %xmm1
	mulsd	%xmm4, %xmm1
	divsd	%xmm5, %xmm1
	addsd	%xmm0, %xmm1
.L98:
	movl	%esi, %edi
	pxor	%xmm0, %xmm0
	subl	%edx, %edi
	comisd	%xmm1, %xmm2
	cvtsi2sdl	%edi, %xmm0
	mulsd	%xmm4, %xmm0
	divsd	%xmm5, %xmm0
	addsd	%xmm3, %xmm0
	jbe	.L99
	comisd	%xmm2, %xmm0
	jbe	.L99
	movslq	%eax, %rdi
	addq	$16, %r15
	addl	$1, (%rcx,%rdi,4)
	cmpq	%r15, %r13
	jne	.L105
.L129:
	cmpl	$1, 12(%rsp)
	jle	.L110
	movl	12(%rsp), %esi
	leaq	4+a(%rip), %rax
	movl	a(%rip), %edx
	leal	-2(%rsi), %ecx
	leaq	4(%rax), %rsi
	leaq	(%rsi,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L109:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rax, %rcx
	jne	.L109
.L110:
	testl	%ebx, %ebx
	je	.L168
	movl	20(%rsp), %eax
	movl	12(%rsp), %edx
	xorl	%r11d, %r11d
	leaq	s(%rip), %rdi
	addl	%eax, %eax
	cmpl	%ebx, %eax
	jne	.L115
	jmp	.L169
	.p2align 4,,10
	.p2align 3
.L116:
	leal	(%rdx,%r11), %eax
	sarl	%eax
	movslq	%eax, %rsi
	movl	(%rdi,%rsi,4), %ecx
	imull	%ebp, %ecx
	cmpl	%ebx, %ecx
	je	.L170
	js	.L171
	movl	%eax, %edx
.L115:
	cmpl	%r11d, %edx
	jg	.L116
	leal	-1(%r11), %eax
	movslq	%eax, %rsi
.L114:
	movl	12(%rsp), %r10d
	leaq	a(%rip), %rcx
	movl	(%rcx,%rsi,4), %r13d
	cmpl	%r11d, %r10d
	jle	.L117
	movl	s(%rip), %edi
	leaq	s(%rip), %rsi
	movslq	%r11d, %r11
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L118:
	movl	(%rsi,%r11,4), %r8d
	leal	1(%r9), %eax
	cltq
	movl	%r8d, %edx
	subl	%edi, %edx
	imull	%ebp, %edx
	cmpl	%edx, %ebx
	jge	.L121
	.p2align 4,,10
	.p2align 3
.L119:
	movl	(%rsi,%rax,4), %edi
	movl	%r8d, %edx
	movl	%eax, %r9d
	addq	$1, %rax
	subl	%edi, %edx
	imull	%ebp, %edx
	cmpl	%ebx, %edx
	jg	.L119
.L121:
	movslq	%r9d, %rdx
	movl	(%rcx,%r11,4), %eax
	subl	(%rcx,%rdx,4), %eax
	cmpl	%eax, %r13d
	cmovl	%eax, %r13d
	addq	$1, %r11
	cmpl	%r11d, %r10d
	jg	.L118
.L117:
	movl	16(%rsp), %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	subl	%r13d, %edx
	call	__printf_chk@PLT
	jmp	.L53
.L166:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	jmp	.L88
.L165:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rsi
	jmp	.L82
.L170:
	leal	1(%rax), %r11d
	jmp	.L114
.L171:
	leal	1(%rax), %r11d
	jmp	.L115
.L169:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L53
.L168:
	movl	16(%rsp), %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L53
.L160:
	addq	$40, %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
.L159:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L123
.L167:
	leaq	cmp(%rip), %rcx
	movl	$16, %edx
	leaq	p(%rip), %rdi
	call	qsort@PLT
	jmp	.L129
.L164:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L73
.L163:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L67
.L162:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L61
.L161:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movl	%eax, %edx
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	jmp	.L55
	.cfi_endproc
.LFE43:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 120008
a:
	.zero	120008
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 120008
s:
	.zero	120008
	.globl	hr
	.align 32
	.type	hr, @object
	.size	hr, 120008
hr:
	.zero	120008
	.globl	hl
	.align 32
	.type	hl, @object
	.size	hl, 120008
hl:
	.zero	120008
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 480032
p:
	.zero	480032
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	-1698910392
	.long	1048238066
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	-1717986918
	.long	1069128089
	.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 1067 Cutting a Chocolate
// 2018.3.17 bal4u

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

//#define getchar_unlocked()  getchar()
int in()        // get a non-negative integer from stdin
{
	int n = 0, c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

double dbl()    // get a non-negative real number from stdin  
{
	double x, y;
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	x = n;
	if (c == '.') {
		y = 1, c = getchar_unlocked();
		do y *= 0.1, x += y * (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	}
	return x;
}

#define EQ(a,b)   (fabs(a-b)<1e-7)

typedef struct { double x, y; } P;
P p[30002];

int hl[30002], hr[30002], s[30002], a[30002];

int binary_search(int *tbl, int hi, int k, int key)
{
	int lo = 0, mi, r;

    while (lo < hi) {
        mi = (lo + hi) >> 1;
		r = tbl[mi]*k - key;
		if (!r) return mi;
        if (r < 0) lo = mi + 1; else hi = mi;
    }
	return lo-1;
}

int cmp(P *a, P *b)
{
	if (!EQ(a->y, b->y)) { if (a->y <= b->y) return -1;	return 1; }
	if ( EQ(a->x, b->x)) return 0; if (a->x <= b->x) return -1; return 1;
}

int main()
{
	int n, m, w, h, S, i, j, ans;
	double x, y, y1, y2;

	while (n = in()) {
		m = in(), w = in(), h = in(), S = (w*h-in()) << 1;
		for (i = 0; i < m; i++) {
			hl[i] = in(), hr[i] = in(), a[i] = 0;
			s[i] = hl[i] + hr[i];
		}
		for (i = 0; i < n; i++) p[i].x = dbl(), p[i].y = dbl();
		qsort(p, n, sizeof(P), cmp);

		j = 0; for (i = 0; i < n; i++) {
			x = p[i].x, y = p[i].y;
			while (1) {
				if (j == 0) y1 = 0;
				else y1 = (hr[j-1] - hl[j-1]) * x / w + hl[j-1];
				y2 = (hr[j] - hl[j]) * x / w + hl[j];
				if (y1 < y && y < y2) break;
				if (y2 < y) j++;
				else        j--;
			}
			a[j]++;
		}
		for (i = 1; i < m; i++) a[i] += a[i-1];

		if      (S == 0    ) { printf("%d\n", n); continue; }
		else if (S == 2*w*h) { puts("0");         continue; }

		j = binary_search(s, m, w, S); ans = a[j++];
		for (i = 0; j < m; j++) {
			while ((s[j] - s[i])*w > S) i++;
			if (a[j] - a[i] > ans) ans = a[j] - a[i];
		}
		printf("%d\n", n - ans);
	}
	return 0;
}


2 3 10 10 50
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 70
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 30
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 40
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 100
3 3
6 6
10 10
4.0000000000 4.0000000000
7.332538817147148 7.0000000000
0 0 0 0 0
 2 3 10 10 50
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 96
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 30
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 40
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 100
3 0
6 6
10 10
4.0000000000 4.0000000000
7.332538817147148 7.0000000000
0 0 0 0 0
 2 3 10 10 50
3 3
6 6
10 10
4.0000000000 4.0000000000
7.303531606464736 7.0000000000
2 3 10 10 70
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 9 10 30
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 40
3 3
6 6
10 10
4.0000000000 4.039685712266396
7.497558194860766 7.0000000000
2 3 10 10 100
3 0
6 6
10 10
4.0000000000 4.0000000000
7.332538817147148 7.0000000000
0 0 0 0 0
 2 3 7 10 50
3 3
6 6
10 10
4.0000000000 4.380940502722975
7.0000000000 7.0000000000
2 3 10 10 32
3 3
7 6
10 10
4.1530399119933294 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 30
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 40
3 3
6 6
10 10
4.0000000000 4.9984975242062175
7.0000000000 7.0000000000
2 3 10 10 100
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
0 0 0 0 0
 2 3 10 10 50
3 3
6 6
10 10
4.0000000000 4.380940502722975
7.0000000000 7.257128765391302
2 3 10 10 32
3 3
6 6
10 10
4.1530399119933294 4.0000000000
7.0000000000 7.0000000000
2 3 3 10 30
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 40
3 3
6 6
10 10
4.0000000000 4.9984975242062175
7.0000000000 7.0000000000
2 3 10 10 100
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
0 0 0 0 0
 2 3 10 10 50
3 3
6 6
10 10
4.0000000000 4.380940502722975
7.0000000000 7.0000000000
2 3 10 10 32
3 3
8 7
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 11 30
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 40
3 3
6 6
10 10
4.0000000000 4.9984975242062175
7.0000000000 7.0000000000
2 3 10 10 100
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
0 0 0 0 0
 2 3 7 10 50
3 3
6 6
10 10
4.0000000000 4.380940502722975
7.0000000000 7.0000000000
2 3 10 10 32
3 3
7 6
10 10
4.1530399119933294 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 30
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 40
6 3
6 6
10 10
4.0000000000 4.9984975242062175
7.0000000000 7.0000000000
2 3 10 10 100
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
0 0 0 0 0
 2 3 10 10 13
3 3
6 6
10 10
4.0000000000 4.380940502722975
7.0000000000 7.0000000000
2 3 10 10 32
3 3
7 6
10 10
4.1530399119933294 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 30
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 40
3 3
6 6
10 10
4.0000000000 4.9984975242062175
7.0000000000 7.0000000000
2 3 10 10 100
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.917397948654367
0 0 0 0 0
 2 3 10 10 50
3 3
6 6
10 10
4.0000000000 4.380940502722975
7.0000000000 7.0000000000
2 3 10 10 32
3 3
6 7
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 11 30
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 40
3 3
10 6
10 10
4.0000000000 4.9984975242062175
7.0000000000 7.0000000000
2 3 10 10 100
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
0 0 0 0 0
 2 3 10 10 50
3 3
6 6
10 10
4.0000000000 4.380940502722975
7.0000000000 7.257128765391302
2 3 10 10 9
3 3
6 6
10 10
4.1530399119933294 4.0000000000
7.0000000000 7.0000000000
2 3 3 10 30
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
2 3 10 10 40
3 3
6 6
10 10
4.0000000000 4.9984975242062175
7.0000000000 7.0000000000
2 3 10 10 100
3 3
6 6
10 10
4.0000000000 4.0000000000
7.0000000000 7.0000000000
0 0 0 0 0

1
1
0
1
2
 1
2
0
1
2
 1
1
1
1
2
 2
1
0
1
2
 1
1
2
1
2
 1
0
0
1
2
 2
1
0
0
2
 0
1
0
1
2
 1
1
0
0
2
 1
0
2
1
2

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

```c
// AOJ 1067 Cutting a Chocolate
// 2018.3.17 bal4u

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

//#define getchar_unlocked()  getchar()
int in()        // get a non-negative integer from stdin
{
	int n = 0, c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	return n;
}

double dbl()    // get a non-negative real number from stdin  
{
	double x, y;
	int n = 0, c = getchar_unlocked();
	do n = 10*n + (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	x = n;
	if (c == '.') {
		y = 1, c = getchar_unlocked();
		do y *= 0.1, x += y * (c & 0xf), c = getchar_unlocked(); while (c >= '0');
	}
	return x;
}

#define EQ(a,b)   (fabs(a-b)<1e-7)

typedef struct { double x, y; } P;
P p[30002];

int hl[30002], hr[30002], s[30002], a[30002];

int binary_search(int *tbl, int hi, int k, int key)
{
	int lo = 0, mi, r;

    while (lo < hi) {
        mi = (lo + hi) >> 1;
		r = tbl[mi]*k - key;
		if (!r) return mi;
        if (r < 0) lo = mi + 1; else hi = mi;
    }
	return lo-1;
}

int cmp(P *a, P *b)
{
	if (!EQ(a->y, b->y)) { if (a->y <= b->y) return -1;	return 1; }
	if ( EQ(a->x, b->x)) return 0; if (a->x <= b->x) return -1; return 1;
}

int main()
{
	int n, m, w, h, S, i, j, ans;
	double x, y, y1, y2;

	while (n = in()) {
		m = in(), w = in(), h = in(), S = (w*h-in()) << 1;
		for (i = 0; i < m; i++) {
			hl[i] = in(), hr[i] = in(), a[i] = 0;
			s[i] = hl[i] + hr[i];
		}
		for (i = 0; i < n; i++) p[i].x = dbl(), p[i].y = dbl();
		qsort(p, n, sizeof(P), cmp);

		j = 0; for (i = 0; i < n; i++) {
			x = p[i].x, y = p[i].y;
			while (1) {
				if (j == 0) y1 = 0;
				else y1 = (hr[j-1] - hl[j-1]) * x / w + hl[j-1];
				y2 = (hr[j] - hl[j]) * x / w + hl[j];
				if (y1 < y && y < y2) break;
				if (y2 < y) j++;
				else        j--;
			}
			a[j]++;
		}
		for (i = 1; i < m; i++) a[i] += a[i-1];

		if      (S == 0    ) { printf("%d\n", n); continue; }
		else if (S == 2*w*h) { puts("0");         continue; }

		j = binary_search(s, m, w, S); ans = a[j++];
		for (i = 0; j < m; j++) {
			while ((s[j] - s[i])*w > S) i++;
			if (a[j] - a[i] > ans) ans = a[j] - a[i];
		}
		printf("%d\n", 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), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%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	dbl
	.type	dbl, @function
dbl:
.LFB7:
	.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, -24(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
.L5:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
	cmpl	$47, -20(%rbp)
	jg	.L5
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-24(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	cmpl	$46, -20(%rbp)
	jne	.L6
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
.L7:
	movsd	-8(%rbp), %xmm1
	movsd	.LC1(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-20(%rbp), %eax
	andl	$15, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-8(%rbp), %xmm0
	movsd	-16(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
	cmpl	$47, -20(%rbp)
	jg	.L7
.L6:
	movsd	-16(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dbl, .-dbl
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 480032
p:
	.zero	480032
	.globl	hl
	.align 32
	.type	hl, @object
	.size	hl, 120008
hl:
	.zero	120008
	.globl	hr
	.align 32
	.type	hr, @object
	.size	hr, 120008
hr:
	.zero	120008
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 120008
s:
	.zero	120008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 120008
a:
	.zero	120008
	.text
	.globl	binary_search
	.type	binary_search, @function
binary_search:
.LFB8:
	.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)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L10
.L14:
	movl	-12(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -8(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	imull	-32(%rbp), %eax
	subl	-36(%rbp), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L11
	movl	-8(%rbp), %eax
	jmp	.L12
.L11:
	cmpl	$0, -4(%rbp)
	jns	.L13
	movl	-8(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L13:
	movl	-8(%rbp), %eax
	movl	%eax, -28(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L14
	movl	-12(%rbp), %eax
	subl	$1, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	binary_search, .-binary_search
	.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
	movsd	8(%rax), %xmm0
	movq	-16(%rbp), %rax
	movsd	8(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC3(%rip), %xmm0
	comisd	%xmm1, %xmm0
	seta	%al
	xorl	$1, %eax
	testb	%al, %al
	je	.L16
	movq	-8(%rbp), %rax
	movsd	8(%rax), %xmm1
	movq	-16(%rbp), %rax
	movsd	8(%rax), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L27
	movl	$-1, %eax
	jmp	.L19
.L27:
	movl	$1, %eax
	jmp	.L19
.L16:
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC3(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L28
	movl	$0, %eax
	jmp	.L19
.L28:
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L29
	movl	$-1, %eax
	jmp	.L19
.L29:
	movl	$1, %eax
.L19:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmp, .-cmp
	.section	.rodata
.LC5:
	.string	"%d\n"
.LC6:
	.string	"0"
	.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
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	jmp	.L31
.L57:
	movl	$0, %eax
	call	in
	movl	%eax, -64(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -60(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -56(%rbp)
	movl	-60(%rbp), %eax
	imull	-56(%rbp), %eax
	movl	%eax, %ebx
	movl	$0, %eax
	call	in
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -52(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L32
.L33:
	movl	$0, %eax
	call	in
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hl(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hr(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hl(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hr(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -80(%rbp)
.L32:
	movl	-80(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L33
	movl	$0, -80(%rbp)
	jmp	.L34
.L35:
	movl	$0, %eax
	call	dbl
	movq	%xmm0, %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	p(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	$0, %eax
	call	dbl
	movq	%xmm0, %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+p(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -80(%rbp)
.L34:
	movl	-80(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L35
	movl	-68(%rbp), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rsi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -76(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L36
.L47:
	movl	-80(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-80(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -32(%rbp)
.L46:
	cmpl	$0, -76(%rbp)
	jne	.L37
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)
	jmp	.L38
.L37:
	movl	-76(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hr(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-76(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hl(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-60(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movl	-76(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
.L38:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hr(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hl(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-60(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-32(%rbp), %xmm0
	comisd	-48(%rbp), %xmm0
	jbe	.L39
	movsd	-24(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	ja	.L62
.L39:
	movsd	-32(%rbp), %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L61
	addl	$1, -76(%rbp)
	jmp	.L46
.L61:
	subl	$1, -76(%rbp)
	jmp	.L46
.L62:
	nop
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -80(%rbp)
.L36:
	movl	-80(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L47
	movl	$1, -80(%rbp)
	jmp	.L48
.L49:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-80(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -80(%rbp)
.L48:
	movl	-80(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L49
	cmpl	$0, -52(%rbp)
	jne	.L50
	movl	-68(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L50:
	movl	-60(%rbp), %eax
	imull	-56(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -52(%rbp)
	jne	.L51
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L31
.L51:
	movl	-52(%rbp), %ecx
	movl	-60(%rbp), %edx
	movl	-64(%rbp), %eax
	movl	%eax, %esi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	binary_search
	movl	%eax, -76(%rbp)
	movl	-76(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -76(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L52
.L54:
	addl	$1, -80(%rbp)
.L53:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	imull	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L54
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cmpl	%eax, -72(%rbp)
	jge	.L55
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -72(%rbp)
.L55:
	addl	$1, -76(%rbp)
.L52:
	movl	-76(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L53
	movl	-68(%rbp), %eax
	subl	-72(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L31:
	movl	$0, %eax
	call	in
	movl	%eax, -68(%rbp)
	cmpl	$0, -68(%rbp)
	jne	.L57
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	-1717986918
	.long	1069128089
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC3:
	.long	-1698910392
	.long	1048238066
	.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), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%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	dbl
	.type	dbl, @function
dbl:
.LFB7:
	.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, -24(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
.L5:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
	cmpl	$47, -20(%rbp)
	jg	.L5
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-24(%rbp), %xmm0
	movsd	%xmm0, -16(%rbp)
	cmpl	$46, -20(%rbp)
	jne	.L6
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
.L7:
	movsd	-8(%rbp), %xmm1
	movsd	.LC1(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-20(%rbp), %eax
	andl	$15, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-8(%rbp), %xmm0
	movsd	-16(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -20(%rbp)
	cmpl	$47, -20(%rbp)
	jg	.L7
.L6:
	movsd	-16(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dbl, .-dbl
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 480032
p:
	.zero	480032
	.globl	hl
	.align 32
	.type	hl, @object
	.size	hl, 120008
hl:
	.zero	120008
	.globl	hr
	.align 32
	.type	hr, @object
	.size	hr, 120008
hr:
	.zero	120008
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 120008
s:
	.zero	120008
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 120008
a:
	.zero	120008
	.text
	.globl	binary_search
	.type	binary_search, @function
binary_search:
.LFB8:
	.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)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L10
.L14:
	movl	-12(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -8(%rbp)
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	imull	-32(%rbp), %eax
	subl	-36(%rbp), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L11
	movl	-8(%rbp), %eax
	jmp	.L12
.L11:
	cmpl	$0, -4(%rbp)
	jns	.L13
	movl	-8(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L10
.L13:
	movl	-8(%rbp), %eax
	movl	%eax, -28(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L14
	movl	-12(%rbp), %eax
	subl	$1, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	binary_search, .-binary_search
	.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
	movsd	8(%rax), %xmm0
	movq	-16(%rbp), %rax
	movsd	8(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC3(%rip), %xmm0
	comisd	%xmm1, %xmm0
	seta	%al
	xorl	$1, %eax
	testb	%al, %al
	je	.L16
	movq	-8(%rbp), %rax
	movsd	8(%rax), %xmm1
	movq	-16(%rbp), %rax
	movsd	8(%rax), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L27
	movl	$-1, %eax
	jmp	.L19
.L27:
	movl	$1, %eax
	jmp	.L19
.L16:
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC2(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC3(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L28
	movl	$0, %eax
	jmp	.L19
.L28:
	movq	-8(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-16(%rbp), %rax
	movsd	(%rax), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L29
	movl	$-1, %eax
	jmp	.L19
.L29:
	movl	$1, %eax
.L19:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmp, .-cmp
	.section	.rodata
.LC5:
	.string	"%d\n"
.LC6:
	.string	"0"
	.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
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	jmp	.L31
.L57:
	movl	$0, %eax
	call	in
	movl	%eax, -64(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -60(%rbp)
	movl	$0, %eax
	call	in
	movl	%eax, -56(%rbp)
	movl	-60(%rbp), %eax
	imull	-56(%rbp), %eax
	movl	%eax, %ebx
	movl	$0, %eax
	call	in
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -52(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L32
.L33:
	movl	$0, %eax
	call	in
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hl(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hr(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hl(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hr(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -80(%rbp)
.L32:
	movl	-80(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L33
	movl	$0, -80(%rbp)
	jmp	.L34
.L35:
	movl	$0, %eax
	call	dbl
	movq	%xmm0, %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	p(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	$0, %eax
	call	dbl
	movq	%xmm0, %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+p(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -80(%rbp)
.L34:
	movl	-80(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L35
	movl	-68(%rbp), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rsi
	leaq	p(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -76(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L36
.L47:
	movl	-80(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-80(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+p(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	%xmm0, -32(%rbp)
.L46:
	cmpl	$0, -76(%rbp)
	jne	.L37
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)
	jmp	.L38
.L37:
	movl	-76(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hr(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-76(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hl(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-60(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movl	-76(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -48(%rbp)
.L38:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hr(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	hl(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	mulsd	-40(%rbp), %xmm0
	pxor	%xmm2, %xmm2
	cvtsi2sdl	-60(%rbp), %xmm2
	movapd	%xmm0, %xmm1
	divsd	%xmm2, %xmm1
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-32(%rbp), %xmm0
	comisd	-48(%rbp), %xmm0
	jbe	.L39
	movsd	-24(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	ja	.L62
.L39:
	movsd	-32(%rbp), %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L61
	addl	$1, -76(%rbp)
	jmp	.L46
.L61:
	subl	$1, -76(%rbp)
	jmp	.L46
.L62:
	nop
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -80(%rbp)
.L36:
	movl	-80(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L47
	movl	$1, -80(%rbp)
	jmp	.L48
.L49:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-80(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -80(%rbp)
.L48:
	movl	-80(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L49
	cmpl	$0, -52(%rbp)
	jne	.L50
	movl	-68(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L50:
	movl	-60(%rbp), %eax
	imull	-56(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -52(%rbp)
	jne	.L51
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L31
.L51:
	movl	-52(%rbp), %ecx
	movl	-60(%rbp), %edx
	movl	-64(%rbp), %eax
	movl	%eax, %esi
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	binary_search
	movl	%eax, -76(%rbp)
	movl	-76(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -76(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$0, -80(%rbp)
	jmp	.L52
.L54:
	addl	$1, -80(%rbp)
.L53:
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	s(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	s(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	imull	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L54
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cmpl	%eax, -72(%rbp)
	jge	.L55
	movl	-76(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, -72(%rbp)
.L55:
	addl	$1, -76(%rbp)
.L52:
	movl	-76(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L53
	movl	-68(%rbp), %eax
	subl	-72(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L31:
	movl	$0, %eax
	call	in
	movl	%eax, -68(%rbp)
	cmpl	$0, -68(%rbp)
	jne	.L57
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	-1717986918
	.long	1069128089
	.align 16
.LC2:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC3:
	.long	-1698910392
	.long	1048238066
	.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:
