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

```c
// AOJ 2618: Trip to Kyoto
// 2018.1.25 bal4u@uu

#include <stdio.h>

#define ABS(a)    ((a)>=0?(a):-(a))
#define MIN(a,b)  ((a)<=(b)?(a):(b))

int x1[10002], y1[10002], x2[10002], y2[10002];
char *msg[2] = { "%d.0\n", "%d.5\n" };

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	if (c == '-') {
		c = getchar_unlocked();
		do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
		while (c >= '0');
		return -n;
	}
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int calc(int x1, int y1, int x2, int y2)
{
	x1 += 200000000, y1 += 200000000;
	x2 += 200000000, y2 += 200000000;
	if (x1%20 == 0 && x2%20 == 0) {
		if      (x1 == x2) return ABS(y1-y2);
		else if (y1/20 == y2/20) return ABS(x1-x2) + MIN(y1%20+y2%20, 40-y1%20-y2%20);
	} else if (y1%20 == 0 && y2%20 == 0) {
		if      (y1 == y2) return ABS(x1-x2);
		else if (x1/20 == x2/20) return ABS(y1-y2) + MIN(x1%20+x2%20, 40-x1%20-x2%20);
	}
	return ABS(x1-x2) + ABS(y1-y2);
}

int main()
{
	int n, x, y, i, j, k, s, t, ans;
	int xmin, xmax, ymin, ymax;
	int x0, y0;

	n = in();
	x = in() << 1, y = in() << 1;
	x1[0] = x, y1[0] = y, xmin = xmax = x2[0] = x+y, ymin = ymax = y2[0] = x-y;
	for (i = 1; i < n; i++) {
		x = in() << 1, y = in() << 1;
		x1[i] = x,   y1[i] = y;
		x2[i] = x+y, y2[i] = x-y;
		if      (x2[i] < xmin) xmin = x2[i];
		else if (x2[i] > xmax) xmax = x2[i];
		if      (y2[i] < ymin) ymin = y2[i];
		else if (y2[i] > ymax) ymax = y2[i];
	}
 
	x = (xmin + xmax) >> 1, y = (ymin + ymax) >> 1;
	x0 = (x + y) >> 1, y0 = (x - y) >> 1;

	ans = 0x7fffffff;
	for (i = x0-20; i <= x0+20; i++) {
		for (j = y0-20; j <= y0+20; j++) {
			if (i%20 && j%20) continue;
			t = 0; for (k = 0; k < n; k++) if (t < (s = calc(i, j, x1[k], y1[k]))) t = s;
			if (ans > t) ans = t;
		}
	}
	printf(msg[ans & 1], ans >> 1);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x1
	.bss
	.align 32
	.type	x1, @object
	.size	x1, 40008
x1:
	.zero	40008
	.globl	y1
	.align 32
	.type	y1, @object
	.size	y1, 40008
y1:
	.zero	40008
	.globl	x2
	.align 32
	.type	x2, @object
	.size	x2, 40008
x2:
	.zero	40008
	.globl	y2
	.align 32
	.type	y2, @object
	.size	y2, 40008
y2:
	.zero	40008
	.globl	msg
	.section	.rodata
.LC0:
	.string	"%d.0\n"
.LC1:
	.string	"%d.5\n"
	.section	.data.rel.local,"aw"
	.align 16
	.type	msg, @object
	.size	msg, 16
msg:
	.quad	.LC0
	.quad	.LC1
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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)
	cmpl	$45, -4(%rbp)
	jne	.L2
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L3:
	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	.L3
	movl	-8(%rbp), %eax
	negl	%eax
	jmp	.L4
.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
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.globl	calc
	.type	calc, @function
calc:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	addl	$200000000, -4(%rbp)
	addl	$200000000, -8(%rbp)
	addl	$200000000, -12(%rbp)
	addl	$200000000, -16(%rbp)
	movl	-4(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L6
	movl	-12(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L6
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jne	.L7
	movl	-8(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	jmp	.L8
.L7:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-4(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %r8d
	movl	-8(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	%esi, %eax
	sall	$2, %eax
	addl	%esi, %eax
	sall	$2, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	addl	%ecx, %esi
	movl	-8(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$40, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %r9d
	sarl	$31, %r9d
	subl	%r9d, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%edi, %eax
	subl	%ecx, %eax
	cmpl	%eax, %esi
	cmovle	%esi, %eax
	addl	%r8d, %eax
	jmp	.L8
.L6:
	movl	-8(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L10
	movl	-16(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L10
	movl	-8(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jne	.L11
	movl	-4(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	jmp	.L8
.L11:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	cmpl	%eax, %ecx
	jne	.L10
	movl	-8(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %r8d
	movl	-4(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	%esi, %eax
	sall	$2, %eax
	addl	%esi, %eax
	sall	$2, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-12(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	addl	%ecx, %esi
	movl	-4(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$40, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-12(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %r9d
	sarl	$31, %r9d
	subl	%r9d, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%edi, %eax
	subl	%ecx, %eax
	cmpl	%eax, %esi
	cmovle	%esi, %eax
	addl	%r8d, %eax
	jmp	.L8
.L12:
	nop
.L10:
	movl	-4(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calc, .-calc
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -20(%rbp)
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, x1(%rip)
	movl	-16(%rbp), %eax
	movl	%eax, y1(%rip)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, x2(%rip)
	movl	x2(%rip), %eax
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, y2(%rip)
	movl	y2(%rip), %eax
	movl	%eax, -28(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	$1, -60(%rbp)
	jmp	.L14
.L19:
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -20(%rbp)
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -16(%rbp)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x1(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	y1(%rip), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	-60(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	y2(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L15
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -40(%rbp)
	jmp	.L16
.L15:
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jge	.L16
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -36(%rbp)
.L16:
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L17
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -32(%rbp)
	jmp	.L18
.L17:
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L18
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -28(%rbp)
.L18:
	addl	$1, -60(%rbp)
.L14:
	movl	-60(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L19
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	sarl	%eax
	movl	%eax, -8(%rbp)
	movl	$2147483647, -44(%rbp)
	movl	-12(%rbp), %eax
	subl	$20, %eax
	movl	%eax, -60(%rbp)
	jmp	.L20
.L28:
	movl	-8(%rbp), %eax
	subl	$20, %eax
	movl	%eax, -56(%rbp)
	jmp	.L21
.L27:
	movl	-60(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	je	.L22
	movl	-56(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L30
.L22:
	movl	$0, -48(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L24
.L26:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x1(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-56(%rbp), %esi
	movl	-60(%rbp), %eax
	movl	%eax, %edi
	call	calc
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-48(%rbp), %eax
	jle	.L25
	movl	-4(%rbp), %eax
	movl	%eax, -48(%rbp)
.L25:
	addl	$1, -52(%rbp)
.L24:
	movl	-52(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L26
	movl	-44(%rbp), %eax
	cmpl	-48(%rbp), %eax
	jle	.L23
	movl	-48(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L23
.L30:
	nop
.L23:
	addl	$1, -56(%rbp)
.L21:
	movl	-8(%rbp), %eax
	addl	$20, %eax
	cmpl	%eax, -56(%rbp)
	jle	.L27
	addl	$1, -60(%rbp)
.L20:
	movl	-12(%rbp), %eax
	addl	$20, %eax
	cmpl	%eax, -60(%rbp)
	jle	.L28
	movl	-44(%rbp), %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	andl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	msg(%rip), %rax
	movq	(%rcx,%rax), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	in
	.type	in, @function
in:
.LFB23:
	.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	.L20
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	cmpl	$45, %eax
	jne	.L4
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L13:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L4:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L12
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	negl	%r12d
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	cmpq	%rcx, %rdx
	jnb	.L22
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
.L6:
	xorl	%r12d, %r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	1(%rsi), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L9
.L8:
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
.L10:
	leal	(%r12,%r12,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r12d
	cmpq	%rcx, %rsi
	jb	.L7
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L9
	movq	stdin(%rip), %rdi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
.L22:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	jmp	.L6
	.cfi_endproc
.LFE23:
	.size	in, .-in
	.p2align 4
	.globl	calc
	.type	calc, @function
calc:
.LFB24:
	.cfi_startproc
	endbr64
	leal	200000000(%rdi), %r11d
	movl	%ecx, %r10d
	movl	%edx, %r9d
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movslq	%r11d, %rax
	leal	200000000(%rdx), %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movl	%r11d, %edx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edx
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leal	200000000(%rsi), %ebp
	leal	200000000(%r10), %r8d
	sarq	$35, %rax
	subl	%edx, %eax
	leal	(%rax,%rax,4), %edx
	movl	%eax, %ebx
	movl	%r11d, %eax
	movl	%ecx, %r11d
	sall	$2, %edx
	sarl	$31, %r11d
	subl	%edx, %eax
	movslq	%ecx, %rdx
	imulq	$1717986919, %rdx, %rdx
	sarq	$35, %rdx
	subl	%r11d, %edx
	leal	(%rdx,%rdx,4), %r12d
	movl	%edx, %r11d
	sall	$2, %r12d
	subl	%r12d, %ecx
	movl	%ecx, %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	jne	.L24
	cmpl	%r9d, %edi
	je	.L31
	movslq	%ebp, %rax
	movl	%ebp, %edx
	movl	%r8d, %ecx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edx
	sarl	$31, %ecx
	sarq	$35, %rax
	subl	%edx, %eax
	movslq	%r8d, %rdx
	imulq	$1717986919, %rdx, %rdx
	sarq	$35, %rdx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	je	.L32
.L27:
	subl	%r9d, %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
.L30:
	subl	%r10d, %esi
	movl	%esi, %edx
	negl	%edx
	cmovs	%esi, %edx
	addl	%edx, %eax
.L23:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movslq	%ebp, %rcx
	movl	%ebp, %r12d
	imulq	$1717986919, %rcx, %rcx
	sarl	$31, %r12d
	sarq	$35, %rcx
	subl	%r12d, %ecx
	movl	%r8d, %r12d
	leal	(%rcx,%rcx,4), %ecx
	sarl	$31, %r12d
	sall	$2, %ecx
	subl	%ecx, %ebp
	movslq	%r8d, %rcx
	imulq	$1717986919, %rcx, %rcx
	sarq	$35, %rcx
	subl	%r12d, %ecx
	leal	(%rcx,%rcx,4), %ecx
	sall	$2, %ecx
	subl	%ecx, %r8d
	orl	%ebp, %r8d
	jne	.L27
	cmpl	%r10d, %esi
	je	.L33
	cmpl	%r11d, %ebx
	jne	.L27
	movl	$40, %ecx
	subl	%eax, %ecx
	addl	%edx, %eax
	subl	%edx, %ecx
	cmpl	%eax, %ecx
	cmovle	%ecx, %eax
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L31:
	subl	%r10d, %esi
	movl	%esi, %eax
	negl	%eax
	cmovs	%esi, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L32:
	leal	(%rax,%rax,4), %eax
	sall	$2, %eax
	subl	%eax, %ebp
	subl	%eax, %r8d
	movl	$40, %eax
	subl	%ebp, %eax
	addl	%r8d, %ebp
	subl	%r8d, %eax
	cmpl	%ebp, %eax
	cmovg	%ebp, %eax
	subl	%r9d, %edi
	movl	%edi, %edx
	negl	%edx
	cmovs	%edi, %edx
	addl	%edx, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L33:
	subl	%r9d, %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	jmp	.L23
	.cfi_endproc
.LFE24:
	.size	calc, .-calc
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	call	in
	movl	%eax, 48(%rsp)
	movl	%eax, %r14d
	xorl	%eax, %eax
	call	in
	leal	(%rax,%rax), %ebx
	xorl	%eax, %eax
	call	in
	movl	%ebx, x1(%rip)
	addl	%eax, %eax
	leal	(%rbx,%rax), %ebp
	subl	%eax, %ebx
	movl	%eax, y1(%rip)
	movl	%ebp, x2(%rip)
	movl	%ebx, y2(%rip)
	cmpl	$1, %r14d
	jle	.L52
	movslq	%r14d, %rax
	movl	%ebx, %r15d
	movl	%ebp, %r12d
	movl	$1, %r14d
	movq	%rax, 8(%rsp)
	leaq	y1(%rip), %rax
	movq	%rax, 40(%rsp)
	jmp	.L38
.L61:
	cmpl	%edx, %r12d
	cmovl	%edx, %r12d
	cmpl	%ebx, %eax
	jl	.L54
.L62:
	cmpl	%eax, %r15d
	cmovl	%eax, %r15d
	addq	$1, %r14
	cmpq	%r14, 8(%rsp)
	je	.L35
.L38:
	xorl	%eax, %eax
	call	in
	leal	(%rax,%rax), %r13d
	xorl	%eax, %eax
	call	in
	leaq	x1(%rip), %r8
	leaq	x2(%rip), %rdi
	leal	(%rax,%rax), %ecx
	movq	40(%rsp), %rax
	leaq	y2(%rip), %rsi
	movl	%r13d, (%r8,%r14,4)
	leal	0(%r13,%rcx), %edx
	movl	%ecx, (%rax,%r14,4)
	movl	%r13d, %eax
	subl	%ecx, %eax
	movl	%edx, (%rdi,%r14,4)
	movl	%eax, (%rsi,%r14,4)
	cmpl	%ebp, %edx
	jge	.L61
	movl	%edx, %ebp
	cmpl	%ebx, %eax
	jge	.L62
.L54:
	movl	%eax, %ebx
	addq	$1, %r14
	cmpq	%r14, 8(%rsp)
	jne	.L38
.L35:
	leal	(%rbx,%r15), %edx
	leal	0(%rbp,%r12), %eax
	movl	$2147483647, 16(%rsp)
	sarl	%edx
	sarl	%eax
	leal	(%rax,%rdx), %ecx
	subl	%edx, %eax
	sarl	%eax
	sarl	%ecx
	leal	-20(%rax), %ebx
	leal	-20(%rcx), %r14d
	addl	$21, %eax
	movl	%ebx, 56(%rsp)
	leal	21(%rcx), %ebx
	leaq	4+y1(%rip), %rcx
	movl	%ebx, 60(%rsp)
	movl	48(%rsp), %ebx
	movl	%eax, 24(%rsp)
	leal	-1(%rbx), %edx
	leaq	(%rcx,%rdx,4), %r15
	movq	%r15, %rax
	movl	%r14d, %r15d
	movq	%rax, %r14
.L51:
	movslq	%r15d, %rax
	movl	%r15d, %edx
	movl	%r15d, %ebx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edx
	sarq	$35, %rax
	subl	%edx, %eax
	leal	200000000(%r15), %edx
	leal	(%rax,%rax,4), %eax
	movl	%edx, %ecx
	sall	$2, %eax
	sarl	$31, %ecx
	subl	%eax, %ebx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	movl	%ebx, 20(%rsp)
	movl	56(%rsp), %ebx
	sarq	$35, %rax
	subl	%ecx, %eax
	movl	%eax, 28(%rsp)
	leal	(%rax,%rax,4), %eax
	sall	$2, %eax
	subl	%eax, %edx
	movl	$40, %eax
	subl	%edx, %eax
	movl	%edx, %r13d
	movl	%eax, 52(%rsp)
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L42:
	addl	$1, %ebx
	cmpl	24(%rsp), %ebx
	je	.L63
.L50:
	movl	20(%rsp), %edx
	testl	%edx, %edx
	je	.L43
	imull	$-858993459, %ebx, %eax
	addl	$429496728, %eax
	rorl	$2, %eax
	cmpl	$214748364, %eax
	ja	.L42
.L43:
	movl	48(%rsp), %eax
	xorl	%edi, %edi
	testl	%eax, %eax
	jle	.L41
	leal	200000000(%rbx), %eax
	leaq	x1(%rip), %r10
	xorl	%edi, %edi
	movslq	%eax, %rbp
	cltd
	imulq	$1717986919, %rbp, %rbp
	sarq	$35, %rbp
	subl	%edx, %ebp
	leal	0(%rbp,%rbp,4), %edx
	movl	%ebp, 8(%rsp)
	leal	0(,%rdx,4), %esi
	subl	%esi, %eax
	movl	%esi, 36(%rsp)
	movq	40(%rsp), %rsi
	movl	%eax, %ebp
	movl	$40, %eax
	subl	%ebp, %eax
	movl	%eax, 32(%rsp)
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L66:
	cmpl	%r15d, %r8d
	je	.L64
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edx
	sarq	$35, %rax
	subl	%edx, %eax
	cmpl	%eax, 8(%rsp)
	je	.L65
.L47:
	movl	%r15d, %edx
	subl	%r8d, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
.L60:
	movl	%ebx, %ecx
	subl	%r11d, %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	addl	%edx, %eax
.L46:
	cmpl	%eax, %edi
	cmovl	%eax, %edi
	addq	$4, %rsi
	addq	$4, %r10
	cmpq	%r14, %rsi
	je	.L41
.L49:
	movl	(%r10), %r8d
	movl	(%rsi), %r11d
	leal	200000000(%r8), %r12d
	leal	200000000(%r11), %ecx
	movslq	%r12d, %rax
	movl	%r12d, %edx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edx
	sarq	$35, %rax
	subl	%edx, %eax
	leal	(%rax,%rax,4), %edx
	movl	%eax, %r9d
	movl	%r12d, %eax
	sall	$2, %edx
	subl	%edx, %eax
	movl	%r13d, %edx
	orl	%eax, %edx
	je	.L66
	movslq	%ecx, %rdx
	movl	%ecx, %r12d
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %r12d
	sarq	$35, %rdx
	subl	%r12d, %edx
	leal	(%rdx,%rdx,4), %edx
	sall	$2, %edx
	subl	%edx, %ecx
	orl	%ebp, %ecx
	jne	.L47
	cmpl	%ebx, %r11d
	je	.L67
	cmpl	%r9d, 28(%rsp)
	jne	.L47
	movl	52(%rsp), %ecx
	leal	0(%r13,%rax), %edx
	subl	%eax, %ecx
	cmpl	%ecx, %edx
	movl	%ecx, %eax
	cmovle	%edx, %eax
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L41:
	movl	16(%rsp), %eax
	cmpl	%edi, %eax
	cmovle	%eax, %edi
	addl	$1, %ebx
	movl	%edi, 16(%rsp)
	cmpl	24(%rsp), %ebx
	jne	.L50
.L63:
	addl	$1, %r15d
	cmpl	60(%rsp), %r15d
	jne	.L51
	movl	16(%rsp), %ebx
	leaq	msg(%rip), %rcx
	movl	$1, %edi
	movl	%ebx, %eax
	movl	%ebx, %edx
	andl	$1, %eax
	sarl	%edx
	movq	(%rcx,%rax,8), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$72, %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
.L64:
	.cfi_restore_state
	movl	%ebx, %edx
	subl	%r11d, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L65:
	movl	32(%rsp), %edx
	subl	36(%rsp), %ecx
	leal	(%rcx,%rbp), %eax
	subl	%ecx, %edx
	movl	%r15d, %ecx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	subl	%r8d, %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	addl	%edx, %eax
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L67:
	movl	%r15d, %edx
	subl	%r8d, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	jmp	.L46
.L52:
	leaq	y1(%rip), %rax
	movl	%ebx, %r15d
	movl	%ebp, %r12d
	movq	%rax, 40(%rsp)
	jmp	.L35
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	msg
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d.0\n"
.LC1:
	.string	"%d.5\n"
	.section	.data.rel.local,"aw"
	.align 16
	.type	msg, @object
	.size	msg, 16
msg:
	.quad	.LC0
	.quad	.LC1
	.globl	y2
	.bss
	.align 32
	.type	y2, @object
	.size	y2, 40008
y2:
	.zero	40008
	.globl	x2
	.align 32
	.type	x2, @object
	.size	x2, 40008
x2:
	.zero	40008
	.globl	y1
	.align 32
	.type	y1, @object
	.size	y1, 40008
y1:
	.zero	40008
	.globl	x1
	.align 32
	.type	x1, @object
	.size	x1, 40008
x1:
	.zero	40008
	.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	in
	.type	in, @function
in:
.LFB23:
	.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	.L20
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	cmpl	$45, %eax
	jne	.L4
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L13:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L4:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L12
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	negl	%r12d
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	cmpq	%rcx, %rdx
	jnb	.L22
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
.L6:
	xorl	%r12d, %r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	1(%rsi), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L9
.L8:
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
.L10:
	leal	(%r12,%r12,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r12d
	cmpq	%rcx, %rsi
	jb	.L7
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L9
	movq	stdin(%rip), %rdi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
.L22:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	jmp	.L6
	.cfi_endproc
.LFE23:
	.size	in, .-in
	.p2align 4
	.globl	calc
	.type	calc, @function
calc:
.LFB24:
	.cfi_startproc
	endbr64
	leal	200000000(%rdi), %r11d
	movl	%ecx, %r10d
	movl	%edx, %r9d
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movslq	%r11d, %rax
	leal	200000000(%rdx), %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movl	%r11d, %edx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edx
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leal	200000000(%rsi), %ebp
	leal	200000000(%r10), %r8d
	sarq	$35, %rax
	subl	%edx, %eax
	leal	(%rax,%rax,4), %edx
	movl	%eax, %ebx
	movl	%r11d, %eax
	movl	%ecx, %r11d
	sall	$2, %edx
	sarl	$31, %r11d
	subl	%edx, %eax
	movslq	%ecx, %rdx
	imulq	$1717986919, %rdx, %rdx
	sarq	$35, %rdx
	subl	%r11d, %edx
	leal	(%rdx,%rdx,4), %r12d
	movl	%edx, %r11d
	sall	$2, %r12d
	subl	%r12d, %ecx
	movl	%ecx, %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	jne	.L24
	cmpl	%r9d, %edi
	je	.L31
	movslq	%ebp, %rax
	movl	%ebp, %edx
	movl	%r8d, %ecx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edx
	sarl	$31, %ecx
	sarq	$35, %rax
	subl	%edx, %eax
	movslq	%r8d, %rdx
	imulq	$1717986919, %rdx, %rdx
	sarq	$35, %rdx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	je	.L32
.L27:
	subl	%r9d, %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
.L30:
	subl	%r10d, %esi
	movl	%esi, %edx
	negl	%edx
	cmovs	%esi, %edx
	addl	%edx, %eax
.L23:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movslq	%ebp, %rcx
	movl	%ebp, %r12d
	imulq	$1717986919, %rcx, %rcx
	sarl	$31, %r12d
	sarq	$35, %rcx
	subl	%r12d, %ecx
	movl	%r8d, %r12d
	leal	(%rcx,%rcx,4), %ecx
	sarl	$31, %r12d
	sall	$2, %ecx
	subl	%ecx, %ebp
	movslq	%r8d, %rcx
	imulq	$1717986919, %rcx, %rcx
	sarq	$35, %rcx
	subl	%r12d, %ecx
	leal	(%rcx,%rcx,4), %ecx
	sall	$2, %ecx
	subl	%ecx, %r8d
	orl	%ebp, %r8d
	jne	.L27
	cmpl	%r10d, %esi
	je	.L33
	cmpl	%r11d, %ebx
	jne	.L27
	movl	$40, %ecx
	subl	%eax, %ecx
	addl	%edx, %eax
	subl	%edx, %ecx
	cmpl	%eax, %ecx
	cmovle	%ecx, %eax
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L31:
	subl	%r10d, %esi
	movl	%esi, %eax
	negl	%eax
	cmovs	%esi, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L32:
	leal	(%rax,%rax,4), %eax
	sall	$2, %eax
	subl	%eax, %ebp
	subl	%eax, %r8d
	movl	$40, %eax
	subl	%ebp, %eax
	addl	%r8d, %ebp
	subl	%r8d, %eax
	cmpl	%ebp, %eax
	cmovg	%ebp, %eax
	subl	%r9d, %edi
	movl	%edi, %edx
	negl	%edx
	cmovs	%edi, %edx
	addl	%edx, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L33:
	subl	%r9d, %edi
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	jmp	.L23
	.cfi_endproc
.LFE24:
	.size	calc, .-calc
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	call	in
	movl	%eax, 48(%rsp)
	movl	%eax, %r14d
	xorl	%eax, %eax
	call	in
	leal	(%rax,%rax), %ebx
	xorl	%eax, %eax
	call	in
	movl	%ebx, x1(%rip)
	addl	%eax, %eax
	leal	(%rbx,%rax), %ebp
	subl	%eax, %ebx
	movl	%eax, y1(%rip)
	movl	%ebp, x2(%rip)
	movl	%ebx, y2(%rip)
	cmpl	$1, %r14d
	jle	.L52
	movslq	%r14d, %rax
	movl	%ebx, %r15d
	movl	%ebp, %r12d
	movl	$1, %r14d
	movq	%rax, 8(%rsp)
	leaq	y1(%rip), %rax
	movq	%rax, 40(%rsp)
	jmp	.L38
.L61:
	cmpl	%edx, %r12d
	cmovl	%edx, %r12d
	cmpl	%ebx, %eax
	jl	.L54
.L62:
	cmpl	%eax, %r15d
	cmovl	%eax, %r15d
	addq	$1, %r14
	cmpq	%r14, 8(%rsp)
	je	.L35
.L38:
	xorl	%eax, %eax
	call	in
	leal	(%rax,%rax), %r13d
	xorl	%eax, %eax
	call	in
	leaq	x1(%rip), %r8
	leaq	x2(%rip), %rdi
	leal	(%rax,%rax), %ecx
	movq	40(%rsp), %rax
	leaq	y2(%rip), %rsi
	movl	%r13d, (%r8,%r14,4)
	leal	0(%r13,%rcx), %edx
	movl	%ecx, (%rax,%r14,4)
	movl	%r13d, %eax
	subl	%ecx, %eax
	movl	%edx, (%rdi,%r14,4)
	movl	%eax, (%rsi,%r14,4)
	cmpl	%ebp, %edx
	jge	.L61
	movl	%edx, %ebp
	cmpl	%ebx, %eax
	jge	.L62
.L54:
	movl	%eax, %ebx
	addq	$1, %r14
	cmpq	%r14, 8(%rsp)
	jne	.L38
.L35:
	leal	(%rbx,%r15), %edx
	leal	0(%rbp,%r12), %eax
	movl	$2147483647, 16(%rsp)
	sarl	%edx
	sarl	%eax
	leal	(%rax,%rdx), %ecx
	subl	%edx, %eax
	sarl	%eax
	sarl	%ecx
	leal	-20(%rax), %ebx
	leal	-20(%rcx), %r14d
	addl	$21, %eax
	movl	%ebx, 56(%rsp)
	leal	21(%rcx), %ebx
	leaq	4+y1(%rip), %rcx
	movl	%ebx, 60(%rsp)
	movl	48(%rsp), %ebx
	movl	%eax, 24(%rsp)
	leal	-1(%rbx), %edx
	leaq	(%rcx,%rdx,4), %r15
	movq	%r15, %rax
	movl	%r14d, %r15d
	movq	%rax, %r14
.L51:
	movslq	%r15d, %rax
	movl	%r15d, %edx
	movl	%r15d, %ebx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edx
	sarq	$35, %rax
	subl	%edx, %eax
	leal	200000000(%r15), %edx
	leal	(%rax,%rax,4), %eax
	movl	%edx, %ecx
	sall	$2, %eax
	sarl	$31, %ecx
	subl	%eax, %ebx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	movl	%ebx, 20(%rsp)
	movl	56(%rsp), %ebx
	sarq	$35, %rax
	subl	%ecx, %eax
	movl	%eax, 28(%rsp)
	leal	(%rax,%rax,4), %eax
	sall	$2, %eax
	subl	%eax, %edx
	movl	$40, %eax
	subl	%edx, %eax
	movl	%edx, %r13d
	movl	%eax, 52(%rsp)
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L42:
	addl	$1, %ebx
	cmpl	24(%rsp), %ebx
	je	.L63
.L50:
	movl	20(%rsp), %edx
	testl	%edx, %edx
	je	.L43
	imull	$-858993459, %ebx, %eax
	addl	$429496728, %eax
	rorl	$2, %eax
	cmpl	$214748364, %eax
	ja	.L42
.L43:
	movl	48(%rsp), %eax
	xorl	%edi, %edi
	testl	%eax, %eax
	jle	.L41
	leal	200000000(%rbx), %eax
	leaq	x1(%rip), %r10
	xorl	%edi, %edi
	movslq	%eax, %rbp
	cltd
	imulq	$1717986919, %rbp, %rbp
	sarq	$35, %rbp
	subl	%edx, %ebp
	leal	0(%rbp,%rbp,4), %edx
	movl	%ebp, 8(%rsp)
	leal	0(,%rdx,4), %esi
	subl	%esi, %eax
	movl	%esi, 36(%rsp)
	movq	40(%rsp), %rsi
	movl	%eax, %ebp
	movl	$40, %eax
	subl	%ebp, %eax
	movl	%eax, 32(%rsp)
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L66:
	cmpl	%r15d, %r8d
	je	.L64
	movslq	%ecx, %rax
	movl	%ecx, %edx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edx
	sarq	$35, %rax
	subl	%edx, %eax
	cmpl	%eax, 8(%rsp)
	je	.L65
.L47:
	movl	%r15d, %edx
	subl	%r8d, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
.L60:
	movl	%ebx, %ecx
	subl	%r11d, %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	addl	%edx, %eax
.L46:
	cmpl	%eax, %edi
	cmovl	%eax, %edi
	addq	$4, %rsi
	addq	$4, %r10
	cmpq	%r14, %rsi
	je	.L41
.L49:
	movl	(%r10), %r8d
	movl	(%rsi), %r11d
	leal	200000000(%r8), %r12d
	leal	200000000(%r11), %ecx
	movslq	%r12d, %rax
	movl	%r12d, %edx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %edx
	sarq	$35, %rax
	subl	%edx, %eax
	leal	(%rax,%rax,4), %edx
	movl	%eax, %r9d
	movl	%r12d, %eax
	sall	$2, %edx
	subl	%edx, %eax
	movl	%r13d, %edx
	orl	%eax, %edx
	je	.L66
	movslq	%ecx, %rdx
	movl	%ecx, %r12d
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %r12d
	sarq	$35, %rdx
	subl	%r12d, %edx
	leal	(%rdx,%rdx,4), %edx
	sall	$2, %edx
	subl	%edx, %ecx
	orl	%ebp, %ecx
	jne	.L47
	cmpl	%ebx, %r11d
	je	.L67
	cmpl	%r9d, 28(%rsp)
	jne	.L47
	movl	52(%rsp), %ecx
	leal	0(%r13,%rax), %edx
	subl	%eax, %ecx
	cmpl	%ecx, %edx
	movl	%ecx, %eax
	cmovle	%edx, %eax
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L41:
	movl	16(%rsp), %eax
	cmpl	%edi, %eax
	cmovle	%eax, %edi
	addl	$1, %ebx
	movl	%edi, 16(%rsp)
	cmpl	24(%rsp), %ebx
	jne	.L50
.L63:
	addl	$1, %r15d
	cmpl	60(%rsp), %r15d
	jne	.L51
	movl	16(%rsp), %ebx
	leaq	msg(%rip), %rcx
	movl	$1, %edi
	movl	%ebx, %eax
	movl	%ebx, %edx
	andl	$1, %eax
	sarl	%edx
	movq	(%rcx,%rax,8), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$72, %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
.L64:
	.cfi_restore_state
	movl	%ebx, %edx
	subl	%r11d, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L65:
	movl	32(%rsp), %edx
	subl	36(%rsp), %ecx
	leal	(%rcx,%rbp), %eax
	subl	%ecx, %edx
	movl	%r15d, %ecx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	subl	%r8d, %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	addl	%edx, %eax
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L67:
	movl	%r15d, %edx
	subl	%r8d, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	jmp	.L46
.L52:
	leaq	y1(%rip), %rax
	movl	%ebx, %r15d
	movl	%ebp, %r12d
	movq	%rax, 40(%rsp)
	jmp	.L35
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	msg
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d.0\n"
.LC1:
	.string	"%d.5\n"
	.section	.data.rel.local,"aw"
	.align 16
	.type	msg, @object
	.size	msg, 16
msg:
	.quad	.LC0
	.quad	.LC1
	.globl	y2
	.bss
	.align 32
	.type	y2, @object
	.size	y2, 40008
y2:
	.zero	40008
	.globl	x2
	.align 32
	.type	x2, @object
	.size	x2, 40008
x2:
	.zero	40008
	.globl	y1
	.align 32
	.type	y1, @object
	.size	y1, 40008
y1:
	.zero	40008
	.globl	x1
	.align 32
	.type	x1, @object
	.size	x1, 40008
x1:
	.zero	40008
	.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 2618: Trip to Kyoto
// 2018.1.25 bal4u@uu

#include <stdio.h>

#define ABS(a)    ((a)>=0?(a):-(a))
#define MIN(a,b)  ((a)<=(b)?(a):(b))

int x1[10002], y1[10002], x2[10002], y2[10002];
char *msg[2] = { "%d.0\n", "%d.5\n" };

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	if (c == '-') {
		c = getchar_unlocked();
		do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
		while (c >= '0');
		return -n;
	}
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int calc(int x1, int y1, int x2, int y2)
{
	x1 += 200000000, y1 += 200000000;
	x2 += 200000000, y2 += 200000000;
	if (x1%20 == 0 && x2%20 == 0) {
		if      (x1 == x2) return ABS(y1-y2);
		else if (y1/20 == y2/20) return ABS(x1-x2) + MIN(y1%20+y2%20, 40-y1%20-y2%20);
	} else if (y1%20 == 0 && y2%20 == 0) {
		if      (y1 == y2) return ABS(x1-x2);
		else if (x1/20 == x2/20) return ABS(y1-y2) + MIN(x1%20+x2%20, 40-x1%20-x2%20);
	}
	return ABS(x1-x2) + ABS(y1-y2);
}

int main()
{
	int n, x, y, i, j, k, s, t, ans;
	int xmin, xmax, ymin, ymax;
	int x0, y0;

	n = in();
	x = in() << 1, y = in() << 1;
	x1[0] = x, y1[0] = y, xmin = xmax = x2[0] = x+y, ymin = ymax = y2[0] = x-y;
	for (i = 1; i < n; i++) {
		x = in() << 1, y = in() << 1;
		x1[i] = x,   y1[i] = y;
		x2[i] = x+y, y2[i] = x-y;
		if      (x2[i] < xmin) xmin = x2[i];
		else if (x2[i] > xmax) xmax = x2[i];
		if      (y2[i] < ymin) ymin = y2[i];
		else if (y2[i] > ymax) ymax = y2[i];
	}
 
	x = (xmin + xmax) >> 1, y = (ymin + ymax) >> 1;
	x0 = (x + y) >> 1, y0 = (x - y) >> 1;

	ans = 0x7fffffff;
	for (i = x0-20; i <= x0+20; i++) {
		for (j = y0-20; j <= y0+20; j++) {
			if (i%20 && j%20) continue;
			t = 0; for (k = 0; k < n; k++) if (t < (s = calc(i, j, x1[k], y1[k]))) t = s;
			if (ans > t) ans = t;
		}
	}
	printf(msg[ans & 1], ans >> 1);
	return 0;
}

4
100000000 100000000
100000000 -100000000
-100000000 100000000
-195738494 -100000000
 2
-1 0
0 1
 3
4 10
-10 0
3 -10
 4
100000000 100000000
100000000 -100000000
-100000000 100000000
-79841941 -100000000
 2
-1 0
0 2
 3
8 10
-10 0
3 -10
 4
100000000 100000000
100000100 -100000000
-100000000 100000000
-79841941 -100000000
 3
8 10
-10 0
3 -2
 4
100000000 100000000
101000100 -100000000
-100000000 100000000
-79841941 -100000000
 3
8 10
-1 0
3 -2

247869247.0
 1.0
 13.5
 200000000.0
 1.5
 15.5
 200000050.0
 14.0
 200500050.0
 11.5

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

```c
// AOJ 2618: Trip to Kyoto
// 2018.1.25 bal4u@uu

#include <stdio.h>

#define ABS(a)    ((a)>=0?(a):-(a))
#define MIN(a,b)  ((a)<=(b)?(a):(b))

int x1[10002], y1[10002], x2[10002], y2[10002];
char *msg[2] = { "%d.0\n", "%d.5\n" };

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	if (c == '-') {
		c = getchar_unlocked();
		do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
		while (c >= '0');
		return -n;
	}
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int calc(int x1, int y1, int x2, int y2)
{
	x1 += 200000000, y1 += 200000000;
	x2 += 200000000, y2 += 200000000;
	if (x1%20 == 0 && x2%20 == 0) {
		if      (x1 == x2) return ABS(y1-y2);
		else if (y1/20 == y2/20) return ABS(x1-x2) + MIN(y1%20+y2%20, 40-y1%20-y2%20);
	} else if (y1%20 == 0 && y2%20 == 0) {
		if      (y1 == y2) return ABS(x1-x2);
		else if (x1/20 == x2/20) return ABS(y1-y2) + MIN(x1%20+x2%20, 40-x1%20-x2%20);
	}
	return ABS(x1-x2) + ABS(y1-y2);
}

int main()
{
	int n, x, y, i, j, k, s, t, ans;
	int xmin, xmax, ymin, ymax;
	int x0, y0;

	n = in();
	x = in() << 1, y = in() << 1;
	x1[0] = x, y1[0] = y, xmin = xmax = x2[0] = x+y, ymin = ymax = y2[0] = x-y;
	for (i = 1; i < n; i++) {
		x = in() << 1, y = in() << 1;
		x1[i] = x,   y1[i] = y;
		x2[i] = x+y, y2[i] = x-y;
		if      (x2[i] < xmin) xmin = x2[i];
		else if (x2[i] > xmax) xmax = x2[i];
		if      (y2[i] < ymin) ymin = y2[i];
		else if (y2[i] > ymax) ymax = y2[i];
	}
 
	x = (xmin + xmax) >> 1, y = (ymin + ymax) >> 1;
	x0 = (x + y) >> 1, y0 = (x - y) >> 1;

	ans = 0x7fffffff;
	for (i = x0-20; i <= x0+20; i++) {
		for (j = y0-20; j <= y0+20; j++) {
			if (i%20 && j%20) continue;
			t = 0; for (k = 0; k < n; k++) if (t < (s = calc(i, j, x1[k], y1[k]))) t = s;
			if (ans > t) ans = t;
		}
	}
	printf(msg[ans & 1], ans >> 1);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x1
	.bss
	.align 32
	.type	x1, @object
	.size	x1, 40008
x1:
	.zero	40008
	.globl	y1
	.align 32
	.type	y1, @object
	.size	y1, 40008
y1:
	.zero	40008
	.globl	x2
	.align 32
	.type	x2, @object
	.size	x2, 40008
x2:
	.zero	40008
	.globl	y2
	.align 32
	.type	y2, @object
	.size	y2, 40008
y2:
	.zero	40008
	.globl	msg
	.section	.rodata
.LC0:
	.string	"%d.0\n"
.LC1:
	.string	"%d.5\n"
	.section	.data.rel.local,"aw"
	.align 16
	.type	msg, @object
	.size	msg, 16
msg:
	.quad	.LC0
	.quad	.LC1
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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)
	cmpl	$45, -4(%rbp)
	jne	.L2
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L3:
	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	.L3
	movl	-8(%rbp), %eax
	negl	%eax
	jmp	.L4
.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
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.globl	calc
	.type	calc, @function
calc:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	addl	$200000000, -4(%rbp)
	addl	$200000000, -8(%rbp)
	addl	$200000000, -12(%rbp)
	addl	$200000000, -16(%rbp)
	movl	-4(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L6
	movl	-12(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L6
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jne	.L7
	movl	-8(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	jmp	.L8
.L7:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-4(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %r8d
	movl	-8(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	%esi, %eax
	sall	$2, %eax
	addl	%esi, %eax
	sall	$2, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	addl	%ecx, %esi
	movl	-8(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$40, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %r9d
	sarl	$31, %r9d
	subl	%r9d, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%edi, %eax
	subl	%ecx, %eax
	cmpl	%eax, %esi
	cmovle	%esi, %eax
	addl	%r8d, %eax
	jmp	.L8
.L6:
	movl	-8(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L10
	movl	-16(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L10
	movl	-8(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jne	.L11
	movl	-4(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	jmp	.L8
.L11:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	cmpl	%eax, %ecx
	jne	.L10
	movl	-8(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %r8d
	movl	-4(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	%esi, %eax
	sall	$2, %eax
	addl	%esi, %eax
	sall	$2, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-12(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	addl	%ecx, %esi
	movl	-4(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$40, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-12(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %r9d
	sarl	$31, %r9d
	subl	%r9d, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%edi, %eax
	subl	%ecx, %eax
	cmpl	%eax, %esi
	cmovle	%esi, %eax
	addl	%r8d, %eax
	jmp	.L8
.L12:
	nop
.L10:
	movl	-4(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calc, .-calc
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -20(%rbp)
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, x1(%rip)
	movl	-16(%rbp), %eax
	movl	%eax, y1(%rip)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, x2(%rip)
	movl	x2(%rip), %eax
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, y2(%rip)
	movl	y2(%rip), %eax
	movl	%eax, -28(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	$1, -60(%rbp)
	jmp	.L14
.L19:
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -20(%rbp)
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -16(%rbp)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x1(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	y1(%rip), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	-60(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	y2(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L15
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -40(%rbp)
	jmp	.L16
.L15:
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jge	.L16
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -36(%rbp)
.L16:
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L17
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -32(%rbp)
	jmp	.L18
.L17:
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L18
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -28(%rbp)
.L18:
	addl	$1, -60(%rbp)
.L14:
	movl	-60(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L19
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	sarl	%eax
	movl	%eax, -8(%rbp)
	movl	$2147483647, -44(%rbp)
	movl	-12(%rbp), %eax
	subl	$20, %eax
	movl	%eax, -60(%rbp)
	jmp	.L20
.L28:
	movl	-8(%rbp), %eax
	subl	$20, %eax
	movl	%eax, -56(%rbp)
	jmp	.L21
.L27:
	movl	-60(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	je	.L22
	movl	-56(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L30
.L22:
	movl	$0, -48(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L24
.L26:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x1(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-56(%rbp), %esi
	movl	-60(%rbp), %eax
	movl	%eax, %edi
	call	calc
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-48(%rbp), %eax
	jle	.L25
	movl	-4(%rbp), %eax
	movl	%eax, -48(%rbp)
.L25:
	addl	$1, -52(%rbp)
.L24:
	movl	-52(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L26
	movl	-44(%rbp), %eax
	cmpl	-48(%rbp), %eax
	jle	.L23
	movl	-48(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L23
.L30:
	nop
.L23:
	addl	$1, -56(%rbp)
.L21:
	movl	-8(%rbp), %eax
	addl	$20, %eax
	cmpl	%eax, -56(%rbp)
	jle	.L27
	addl	$1, -60(%rbp)
.L20:
	movl	-12(%rbp), %eax
	addl	$20, %eax
	cmpl	%eax, -60(%rbp)
	jle	.L28
	movl	-44(%rbp), %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	andl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	msg(%rip), %rax
	movq	(%rcx,%rax), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	x1
	.bss
	.align 32
	.type	x1, @object
	.size	x1, 40008
x1:
	.zero	40008
	.globl	y1
	.align 32
	.type	y1, @object
	.size	y1, 40008
y1:
	.zero	40008
	.globl	x2
	.align 32
	.type	x2, @object
	.size	x2, 40008
x2:
	.zero	40008
	.globl	y2
	.align 32
	.type	y2, @object
	.size	y2, 40008
y2:
	.zero	40008
	.globl	msg
	.section	.rodata
.LC0:
	.string	"%d.0\n"
.LC1:
	.string	"%d.5\n"
	.section	.data.rel.local,"aw"
	.align 16
	.type	msg, @object
	.size	msg, 16
msg:
	.quad	.LC0
	.quad	.LC1
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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)
	cmpl	$45, -4(%rbp)
	jne	.L2
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L3:
	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	.L3
	movl	-8(%rbp), %eax
	negl	%eax
	jmp	.L4
.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
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.globl	calc
	.type	calc, @function
calc:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	addl	$200000000, -4(%rbp)
	addl	$200000000, -8(%rbp)
	addl	$200000000, -12(%rbp)
	addl	$200000000, -16(%rbp)
	movl	-4(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L6
	movl	-12(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L6
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jne	.L7
	movl	-8(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	jmp	.L8
.L7:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	cmpl	%eax, %ecx
	jne	.L12
	movl	-4(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %r8d
	movl	-8(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	%esi, %eax
	sall	$2, %eax
	addl	%esi, %eax
	sall	$2, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	addl	%ecx, %esi
	movl	-8(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$40, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-16(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %r9d
	sarl	$31, %r9d
	subl	%r9d, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%edi, %eax
	subl	%ecx, %eax
	cmpl	%eax, %esi
	cmovle	%esi, %eax
	addl	%r8d, %eax
	jmp	.L8
.L6:
	movl	-8(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L10
	movl	-16(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L10
	movl	-8(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jne	.L11
	movl	-4(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	jmp	.L8
.L11:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$3, %edx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	cmpl	%eax, %ecx
	jne	.L10
	movl	-8(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %r8d
	movl	-4(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %esi
	movl	%esi, %eax
	sall	$2, %eax
	addl	%esi, %eax
	sall	$2, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-12(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	addl	%ecx, %esi
	movl	-4(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	$40, %eax
	subl	%ecx, %eax
	movl	%eax, %edi
	movl	-12(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%edx, %r9d
	sarl	$31, %r9d
	subl	%r9d, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	sall	$2, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%edi, %eax
	subl	%ecx, %eax
	cmpl	%eax, %esi
	cmovle	%esi, %eax
	addl	%r8d, %eax
	jmp	.L8
.L12:
	nop
.L10:
	movl	-4(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calc, .-calc
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -24(%rbp)
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -20(%rbp)
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, x1(%rip)
	movl	-16(%rbp), %eax
	movl	%eax, y1(%rip)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, x2(%rip)
	movl	x2(%rip), %eax
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	%eax, y2(%rip)
	movl	y2(%rip), %eax
	movl	%eax, -28(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	$1, -60(%rbp)
	jmp	.L14
.L19:
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -20(%rbp)
	movl	$0, %eax
	call	in
	addl	%eax, %eax
	movl	%eax, -16(%rbp)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x1(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	y1(%rip), %rdx
	movl	-16(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	movl	-60(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	y2(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -40(%rbp)
	jle	.L15
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -40(%rbp)
	jmp	.L16
.L15:
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -36(%rbp)
	jge	.L16
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -36(%rbp)
.L16:
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L17
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -32(%rbp)
	jmp	.L18
.L17:
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L18
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y2(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -28(%rbp)
.L18:
	addl	$1, -60(%rbp)
.L14:
	movl	-60(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L19
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -20(%rbp)
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	subl	-16(%rbp), %eax
	sarl	%eax
	movl	%eax, -8(%rbp)
	movl	$2147483647, -44(%rbp)
	movl	-12(%rbp), %eax
	subl	$20, %eax
	movl	%eax, -60(%rbp)
	jmp	.L20
.L28:
	movl	-8(%rbp), %eax
	subl	$20, %eax
	movl	%eax, -56(%rbp)
	jmp	.L21
.L27:
	movl	-60(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	je	.L22
	movl	-56(%rbp), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$3, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	sall	$2, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	testl	%edx, %edx
	jne	.L30
.L22:
	movl	$0, -48(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L24
.L26:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y1(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x1(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-56(%rbp), %esi
	movl	-60(%rbp), %eax
	movl	%eax, %edi
	call	calc
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-48(%rbp), %eax
	jle	.L25
	movl	-4(%rbp), %eax
	movl	%eax, -48(%rbp)
.L25:
	addl	$1, -52(%rbp)
.L24:
	movl	-52(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L26
	movl	-44(%rbp), %eax
	cmpl	-48(%rbp), %eax
	jle	.L23
	movl	-48(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L23
.L30:
	nop
.L23:
	addl	$1, -56(%rbp)
.L21:
	movl	-8(%rbp), %eax
	addl	$20, %eax
	cmpl	%eax, -56(%rbp)
	jle	.L27
	addl	$1, -60(%rbp)
.L20:
	movl	-12(%rbp), %eax
	addl	$20, %eax
	cmpl	%eax, -60(%rbp)
	jle	.L28
	movl	-44(%rbp), %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	andl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	msg(%rip), %rax
	movq	(%rcx,%rax), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
