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

```c
// Aizu Vol-1 0153: Triangle and Circle
// 2017.8.12 bal4u@uu

#include <stdio.h>

long long x[10], y[10];
long long xe, ye, r;

int atSameSide(long long x1, long long y1, long long x2, long long y2,
	long long xa, long long ya, long long xb, long long yb)
{
	long long sa, sb;
	sa = (x2 - x1) * (ya - y1) + (y2 - y1) * (x1 - xa);
	sb = (x2 - x1) * (yb - y1) + (y2 - y1) * (x1 - xb);
	return (sa >= 0 && sb >= 0) || (sa < 0 && sb < 0);
}

int between(long long x1, long long y1, long long x2, long long y2,
	long long x, long long y)
{
	long long sa, sb;
	sa = (x2 - x1) * (x - x1) + (y2 - y1) * (y - y1);
	sb = (x1 - x2) * (x - x2) + (y1 - y2) * (y - y2);
	return (sa >= 0 && sb >= 0) || (sa < 0 && sb < 0);
}

int disCmp(long long x1, long long y1, long long x2, long long y2,
	long long x, long long y, long long r)
{
	long long a, b, c, t;			/* ax + by + c = 0 */
	long long squ;
	a = y1 - y2, b = x2 - x1, c = y2*x1-x2*y1;
	squ = a*a + b*b;
	if (squ == 0) return 0;
	t = (a * x) + (b * y) + c;
	t = t*t - r*r*squ;
	if (t > 0) return 1;
	if (t < 0) return -1;
	return 0;
}

int main()
{
	int i, f;
	long long d[3], rr;

	while (1) {
		for (i = 0; i < 3; i++) {
			scanf("%lld%lld", x + i, y + i);
			if (!i && !x[0] && !y[0]) return 0;
			x[i + 3] = x[i], y[i + 3] = y[i];
		}
		scanf("%lld%lld%lld", &xe, &ye, &r); rr = r*r;

		for (i = 0; i < 3; i++)
			d[i] = (x[i] - xe)*(x[i] - xe) + (y[i] - ye)*(y[i] - ye);
		if (rr >= d[0] && rr >= d[1] && rr >= d[2]) { puts("b"); continue; }
		if (rr >= d[0] || rr >= d[1] || rr >= d[2]) { puts("c"); continue; }

		for (f = 1, i = 0; f && i < 3; i++)
			f = atSameSide(x[i], y[i], x[i + 1], y[i + 1],
				x[i + 2], y[i + 2], xe, ye);
		for (i = 0; i < 3; i++)
			d[i] = disCmp(x[i], y[i], x[i + 1], y[i + 1], xe, ye, r);
		if (f) { puts(d[0] >= 0 && d[1] >= 0 && d[2] >= 0 ? "a" : "c"); continue; }
		if (d[0] > 0 && d[1] > 0 && d[2] > 0) { puts("d"); continue; }

		for (f = 1, i = 0; f && i < 3; i++)
			if (between(x[i], y[i], x[i + 1], y[i + 1], xe, ye) && d[i] <= 0) f = 0;
		puts(f ? "d" : "c");
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 80
x:
	.zero	80
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 80
y:
	.zero	80
	.globl	xe
	.align 8
	.type	xe, @object
	.size	xe, 8
xe:
	.zero	8
	.globl	ye
	.align 8
	.type	ye, @object
	.size	ye, 8
ye:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.text
	.globl	atSameSide
	.type	atSameSide, @function
atSameSide:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	%r8, -56(%rbp)
	movq	%r9, -64(%rbp)
	movq	-40(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	subq	-56(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	24(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	subq	16(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -16(%rbp)
	js	.L2
	cmpq	$0, -8(%rbp)
	jns	.L3
.L2:
	cmpq	$0, -16(%rbp)
	jns	.L4
	cmpq	$0, -8(%rbp)
	jns	.L4
.L3:
	movl	$1, %eax
	jmp	.L6
.L4:
	movl	$0, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	atSameSide, .-atSameSide
	.globl	between
	.type	between, @function
between:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	%r8, -56(%rbp)
	movq	%r9, -64(%rbp)
	movq	-40(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	-32(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-32(%rbp), %rax
	subq	-48(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	-48(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -16(%rbp)
	js	.L8
	cmpq	$0, -8(%rbp)
	jns	.L9
.L8:
	cmpq	$0, -16(%rbp)
	jns	.L10
	cmpq	$0, -8(%rbp)
	jns	.L10
.L9:
	movl	$1, %eax
	jmp	.L12
.L10:
	movl	$0, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	between, .-between
	.globl	disCmp
	.type	disCmp, @function
disCmp:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%rdx, -72(%rbp)
	movq	%rcx, -80(%rbp)
	movq	%r8, -88(%rbp)
	movq	%r9, -96(%rbp)
	movq	-64(%rbp), %rax
	subq	-80(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	-72(%rbp), %rax
	subq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	movq	-72(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	cmpq	$0, -16(%rbp)
	jne	.L14
	movl	$0, %eax
	jmp	.L15
.L14:
	movq	-40(%rbp), %rax
	imulq	-88(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	-96(%rbp), %rax
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rdx
	movq	16(%rbp), %rax
	imulq	%rax, %rax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jle	.L16
	movl	$1, %eax
	jmp	.L15
.L16:
	cmpq	$0, -8(%rbp)
	jns	.L17
	movl	$-1, %eax
	jmp	.L15
.L17:
	movl	$0, %eax
.L15:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	disCmp, .-disCmp
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld%lld%lld"
.LC2:
	.string	"b"
.LC3:
	.string	"c"
.LC4:
	.string	"a"
.LC5:
	.string	"d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L44:
	movl	$0, -48(%rbp)
	jmp	.L19
.L22:
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -48(%rbp)
	jne	.L20
	movq	x(%rip), %rax
	testq	%rax, %rax
	jne	.L20
	movq	y(%rip), %rax
	testq	%rax, %rax
	jne	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L45
	jmp	.L46
.L20:
	movl	-48(%rbp), %eax
	leal	3(%rax), %ecx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-48(%rbp), %eax
	leal	3(%rax), %ecx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -48(%rbp)
.L19:
	cmpl	$2, -48(%rbp)
	jle	.L22
	leaq	r(%rip), %rax
	movq	%rax, %rcx
	leaq	ye(%rip), %rax
	movq	%rax, %rdx
	leaq	xe(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	r(%rip), %rdx
	movq	r(%rip), %rax
	imulq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L23
.L24:
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	xe(%rip), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	xe(%rip), %rdx
	subq	%rdx, %rax
	movq	%rcx, %rsi
	imulq	%rax, %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	ye(%rip), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	ye(%rip), %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	leaq	(%rsi,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	movq	%rdx, -32(%rbp,%rax,8)
	addl	$1, -48(%rbp)
.L23:
	cmpl	$2, -48(%rbp)
	jle	.L24
	movq	-32(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L25
	movq	-24(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L25
	movq	-16(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L25
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L25:
	movq	-32(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jge	.L27
	movq	-24(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jge	.L27
	movq	-16(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L28
.L27:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L28:
	movl	$1, -44(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L29
.L31:
	movq	ye(%rip), %r8
	movq	xe(%rip), %rdi
	movl	-48(%rbp), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %r11
	movl	-48(%rbp), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %r10
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	y(%rip), %rax
	movq	(%rsi,%rax), %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %r9
	leaq	x(%rip), %rax
	movq	(%r9,%rax), %rax
	pushq	%r8
	pushq	%rdi
	movq	%r11, %r9
	movq	%r10, %r8
	movq	%rax, %rdi
	call	atSameSide
	addq	$16, %rsp
	movl	%eax, -44(%rbp)
	addl	$1, -48(%rbp)
.L29:
	cmpl	$0, -44(%rbp)
	je	.L30
	cmpl	$2, -48(%rbp)
	jle	.L31
.L30:
	movl	$0, -48(%rbp)
	jmp	.L32
.L33:
	movq	r(%rip), %rdi
	movq	ye(%rip), %r9
	movq	xe(%rip), %r10
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	y(%rip), %rax
	movq	(%rsi,%rax), %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %r8
	leaq	x(%rip), %rax
	movq	(%r8,%rax), %rax
	subq	$8, %rsp
	pushq	%rdi
	movq	%r10, %r8
	movq	%rax, %rdi
	call	disCmp
	addq	$16, %rsp
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	movq	%rdx, -32(%rbp,%rax,8)
	addl	$1, -48(%rbp)
.L32:
	cmpl	$2, -48(%rbp)
	jle	.L33
	cmpl	$0, -44(%rbp)
	je	.L34
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	js	.L35
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	js	.L35
	movq	-16(%rbp), %rax
	testq	%rax, %rax
	js	.L35
	leaq	.LC4(%rip), %rax
	jmp	.L36
.L35:
	leaq	.LC3(%rip), %rax
.L36:
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L34:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jle	.L37
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jle	.L37
	movq	-16(%rbp), %rax
	testq	%rax, %rax
	jle	.L37
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L37:
	movl	$1, -44(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L38
.L41:
	movq	ye(%rip), %r9
	movq	xe(%rip), %r8
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	y(%rip), %rax
	movq	(%rsi,%rax), %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdi
	leaq	x(%rip), %rax
	movq	(%rdi,%rax), %rax
	movq	%rax, %rdi
	call	between
	testl	%eax, %eax
	je	.L39
	movl	-48(%rbp), %eax
	cltq
	movq	-32(%rbp,%rax,8), %rax
	testq	%rax, %rax
	jg	.L39
	movl	$0, -44(%rbp)
.L39:
	addl	$1, -48(%rbp)
.L38:
	cmpl	$0, -44(%rbp)
	je	.L40
	cmpl	$2, -48(%rbp)
	jle	.L41
.L40:
	cmpl	$0, -44(%rbp)
	je	.L42
	leaq	.LC5(%rip), %rax
	jmp	.L43
.L42:
	leaq	.LC3(%rip), %rax
.L43:
	movq	%rax, %rdi
	call	puts@PLT
.L26:
	jmp	.L44
.L46:
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	atSameSide
	.type	atSameSide, @function
atSameSide:
.LFB23:
	.cfi_startproc
	endbr64
	subq	%rdi, %rdx
	subq	%rsi, %r9
	movq	%rdi, %rax
	subq	%rsi, %rcx
	imulq	%rdx, %r9
	movq	%rdx, %r10
	movq	16(%rsp), %rdx
	subq	%r8, %rax
	subq	8(%rsp), %rdi
	imulq	%rcx, %rax
	subq	%rsi, %rdx
	imulq	%rcx, %rdi
	imulq	%r10, %rdx
	addq	%r9, %rax
	addq	%rdx, %rdi
	xorq	%rdi, %rax
	notq	%rax
	shrq	$63, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	atSameSide, .-atSameSide
	.p2align 4
	.globl	between
	.type	between, @function
between:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdx, %r10
	movq	%rcx, %rdx
	movq	%r8, %rcx
	movq	%r9, %r11
	movq	%r10, %rax
	subq	%rdi, %rcx
	subq	%rsi, %r11
	subq	%r10, %r8
	subq	%rdi, %rax
	subq	%rdx, %r9
	subq	%r10, %rdi
	imulq	%rcx, %rax
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	imulq	%r8, %rdi
	subq	%rdx, %rsi
	imulq	%r11, %rcx
	imulq	%r9, %rsi
	addq	%rcx, %rax
	addq	%rsi, %rdi
	xorq	%rdi, %rax
	notq	%rax
	shrq	$63, %rax
	ret
	.cfi_endproc
.LFE24:
	.size	between, .-between
	.p2align 4
	.globl	disCmp
	.type	disCmp, @function
disCmp:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rsi, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	subq	%rcx, %rax
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
	movq	%rax, %r11
	movq	32(%rsp), %rdi
	subq	%rbx, %rdx
	imulq	%rax, %r11
	movq	%rdx, %r12
	imulq	%rdx, %r12
	addq	%r12, %r11
	je	.L9
	imulq	%r8, %rax
	xorl	%r10d, %r10d
	imulq	%rbx, %rcx
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	imulq	%rbp, %rsi
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	imulq	%r9, %rdx
	imulq	%rdi, %rdi
	subq	%rsi, %rcx
	addq	%rax, %rdx
	movl	$1, %eax
	addq	%rcx, %rdx
	imulq	%r11, %rdi
	imulq	%rdx, %rdx
	subq	%rdi, %rdx
	setne	%r10b
	negl	%r10d
	testq	%rdx, %rdx
	cmovg	%eax, %r10d
	movl	%r10d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xorl	%r10d, %r10d
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	movl	%r10d, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	disCmp, .-disCmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"a"
.LC1:
	.string	"c"
.LC2:
	.string	"d"
.LC3:
	.string	"%lld%lld"
.LC4:
	.string	"%lld%lld%lld"
.LC5:
	.string	"b"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC3(%rip), %r15
	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	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	x(%rip), %rbp
	leaq	y(%rip), %rbx
	movl	$1, %r12d
.L16:
	xorl	%eax, %eax
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %r12d
	je	.L57
	movq	0(%rbp), %rax
	movq	%rax, 24(%rbp)
	movq	(%rbx), %rax
	movq	%rax, 24(%rbx)
	cmpl	$3, %r12d
	jne	.L37
	leaq	r(%rip), %rcx
	leaq	ye(%rip), %rdx
	xorl	%eax, %eax
	leaq	xe(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	leaq	x(%rip), %rax
	movq	xe(%rip), %rdi
	movq	8+y(%rip), %rbp
	movq	(%rax), %rax
	movq	ye(%rip), %rsi
	movq	%rbp, %rcx
	movq	16+x(%rip), %r11
	movq	16+y(%rip), %r10
	movq	%rax, %rbx
	movq	%rax, 16(%rsp)
	leaq	y(%rip), %rax
	subq	%rsi, %rcx
	movq	(%rax), %r13
	movq	8+x(%rip), %rax
	movq	%r11, %r14
	movq	%r10, %r9
	imulq	%rcx, %rcx
	subq	%rdi, %r14
	subq	%rsi, %r9
	subq	%rdi, %rbx
	movq	%rax, %r12
	movq	%rax, 8(%rsp)
	imulq	%r9, %r9
	movq	%r13, %r8
	subq	%rdi, %r12
	movq	r(%rip), %rdx
	subq	%rsi, %r8
	movq	%r12, %rax
	imulq	%r8, %r8
	imulq	%r12, %rax
	imulq	%rdx, %rdx
	addq	%rcx, %rax
	movq	%r14, %rcx
	imulq	%r14, %rcx
	addq	%r9, %rcx
	movq	%rbx, %r9
	imulq	%rbx, %r9
	addq	%r8, %r9
	cmpq	%r9, %rdx
	jl	.L17
	cmpq	%rcx, %rax
	cmovge	%rax, %rcx
	cmpq	%rdx, %rcx
	jle	.L58
.L18:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L57:
	leaq	x(%rip), %rax
	leaq	y(%rip), %rsi
	movq	(%rax), %rax
	orq	(%rsi), %rax
	je	.L59
	movq	0(%rbp), %rax
	movq	%rax, 24(%rbp)
	movq	(%rbx), %rax
	movq	%rax, 24(%rbx)
.L37:
	addq	$8, %rbp
	addq	$8, %rbx
	addl	$1, %r12d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	cmpq	%rcx, %rax
	cmovg	%rcx, %rax
	cmpq	%rdx, %rax
	jle	.L18
	movq	%rsi, %rcx
	movq	16(%rsp), %rax
	movq	8(%rsp), %r8
	movq	%rbp, %r9
	subq	%r13, %rcx
	subq	%r13, %r9
	movq	%rcx, 48(%rsp)
	movq	%r10, %rcx
	imulq	%r9, %rbx
	subq	%rax, %r8
	subq	%r13, %rcx
	subq	%r11, %rax
	movq	%r8, 56(%rsp)
	imulq	%r8, %rcx
	movq	%r9, 88(%rsp)
	imulq	%r9, %rax
	addq	%rcx, %rax
	movq	48(%rsp), %rcx
	imulq	%r8, %rcx
	addq	%rbx, %rcx
	xorq	%rcx, %rax
	movq	%rax, 32(%rsp)
	js	.L60
	movq	24+x(%rip), %rcx
	movq	24+y(%rip), %rbx
	movq	%r11, %r9
	movq	%r10, %r8
	subq	%rbp, %r8
	movq	%rcx, 24(%rsp)
	movq	8(%rsp), %rcx
	movq	%rbx, %rax
	imulq	%r8, %r12
	subq	%rbp, %rax
	movq	%rbx, 40(%rsp)
	subq	%rcx, %r9
	subq	24(%rsp), %rcx
	imulq	%r9, %rax
	imulq	%r8, %rcx
	addq	%rax, %rcx
	movq	%rsi, %rax
	subq	%rbp, %rax
	imulq	%r9, %rax
	addq	%r12, %rax
	xorq	%rax, %rcx
	movq	%rcx, 32(%rsp)
	js	.L21
	movq	24(%rsp), %r9
	movq	32+y(%rip), %rax
	subq	%r10, %rbx
	movq	%r11, %rcx
	subq	32+x(%rip), %rcx
	movq	%rbx, %r8
	subq	%r11, %r9
	imulq	%rbx, %rcx
	subq	%r10, %rax
	imulq	%r9, %rax
	imulq	%r14, %r8
	addq	%rax, %rcx
	movq	%rsi, %rax
	subq	%r10, %rax
	imulq	%r9, %rax
	addq	%r8, %rax
	xorq	%rax, %rcx
	movq	%rcx, 32(%rsp)
.L21:
	movq	56(%rsp), %rbx
	movq	%r13, %r14
	subq	%rbp, %r14
	movq	%r14, %rcx
	movq	%rbx, %rax
	imulq	%r14, %rcx
	imulq	%rbx, %rax
	addq	%rcx, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, %r9
	je	.L39
	movq	16(%rsp), %rax
	movq	%r14, %rcx
	imulq	8(%rsp), %r13
	imulq	%rdi, %rcx
	imulq	%rbp, %rax
	imulq	%rsi, %rbx
	subq	%r13, %rax
	addq	%rbx, %rcx
	addq	%rcx, %rax
	movq	%r9, %rcx
	imulq	%rax, %rax
	imulq	%rdx, %rcx
	subq	%rcx, %rax
	testq	%rax, %rax
	jg	.L40
	setne	%al
	movb	$0, 79(%rsp)
	movzbl	%al, %eax
	negl	%eax
	movl	%eax, 96(%rsp)
	cltq
	movq	%rax, 64(%rsp)
.L22:
	movq	8(%rsp), %r8
	movq	%rbp, %r12
	movq	%r11, %r9
	subq	%r10, %r12
	subq	%r8, %r9
	movq	%r12, %rcx
	movq	%r9, %rax
	imulq	%r12, %rcx
	imulq	%r9, %rax
	addq	%rcx, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, %rbx
	je	.L41
	movq	%r8, %rax
	imulq	%rdx, %rbx
	movq	%rbp, %rcx
	movq	%r9, %r8
	imulq	%r11, %rcx
	imulq	%r10, %rax
	imulq	%rsi, %r8
	subq	%rcx, %rax
	movq	%r12, %rcx
	imulq	%rdi, %rcx
	addq	%r8, %rcx
	addq	%rcx, %rax
	imulq	%rax, %rax
	subq	%rbx, %rax
	testq	%rax, %rax
	jg	.L42
	setne	%al
	movb	$0, 79(%rsp)
	movzbl	%al, %eax
	negl	%eax
	movl	%eax, 100(%rsp)
	cltq
	movq	%rax, 80(%rsp)
.L23:
	movq	24(%rsp), %rbx
	movq	%r10, %r8
	subq	40(%rsp), %r8
	movq	%r8, %rcx
	movq	%rbx, %rax
	imulq	%r8, %rcx
	subq	%r11, %rax
	movq	%rax, 104(%rsp)
	movq	%rax, %r13
	imulq	%rax, %rax
	addq	%rax, %rcx
	je	.L24
	movq	40(%rsp), %rax
	imulq	%r10, %rbx
	imulq	%rsi, %r13
	imulq	%r11, %rax
	imulq	%rdx, %rcx
	subq	%rbx, %rax
	movq	%r8, %rbx
	imulq	%rdi, %rbx
	addq	%r13, %rbx
	addq	%rbx, %rax
	imulq	%rax, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jg	.L25
	setne	%dl
	movzbl	%dl, %edx
	negq	%rdx
	testq	%rax, %rax
	sete	%cl
	cmpq	$0, 32(%rsp)
	movq	%rdx, 128(%rsp)
	jns	.L28
.L27:
	movq	16(%rsp), %rcx
	movq	8(%rsp), %r13
	movq	%rdi, %rdx
	movq	%rsi, %rbx
	subq	%rbp, %rbx
	movq	%rcx, %rax
	subq	%r13, %rdx
	subq	%r13, %rax
	movq	%rdx, 32(%rsp)
	imulq	%rdx, %rax
	movq	%r14, %rdx
	imulq	%rbx, %rdx
	addq	%rax, %rdx
	movq	%rdi, %rax
	subq	%rcx, %rax
	movq	48(%rsp), %rcx
	imulq	56(%rsp), %rax
	imulq	88(%rsp), %rcx
	addq	%rcx, %rax
	xorq	%rdx, %rax
	js	.L34
	cmpq	$0, 64(%rsp)
	leaq	.LC1(%rip), %r13
	jg	.L34
.L35:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L34:
	movq	8(%rsp), %rdx
	movq	%rdi, %r13
	movq	%rsi, %rax
	movq	%r12, %rcx
	subq	%r11, %r13
	subq	%r10, %rax
	movq	32(%rsp), %r12
	subq	%r11, %rdx
	imulq	%rax, %rcx
	imulq	%r13, %rdx
	imulq	%r9, %r12
	addq	%rdx, %rcx
	movq	%r10, %rdx
	subq	%rbp, %rdx
	imulq	%rbx, %rdx
	addq	%r12, %rdx
	xorq	%rcx, %rdx
	js	.L36
	cmpq	$0, 80(%rsp)
	jle	.L61
.L36:
	movq	24(%rsp), %rdx
	movq	40(%rsp), %rbx
	imulq	104(%rsp), %r13
	subq	%rdx, %rdi
	subq	%rdx, %r11
	subq	%rbx, %rsi
	subq	%r10, %rbx
	imulq	%r11, %rdi
	imulq	%r8, %rsi
	imulq	%rbx, %rax
	leaq	(%rdi,%rsi), %rdx
	addq	%r13, %rax
	leaq	.LC2(%rip), %r13
	xorq	%rax, %rdx
	js	.L35
	cmpq	$0, 128(%rsp)
	leaq	.LC1(%rip), %rax
	cmovle	%rax, %r13
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L24:
	cmpq	$0, 32(%rsp)
	movq	$0, 128(%rsp)
	js	.L27
.L47:
	movl	$1, %ecx
.L28:
	cmpl	$-1, 96(%rsp)
	setne	%dl
	cmpl	$-1, 100(%rsp)
	setne	%al
	testb	%al, %dl
	je	.L48
	leaq	.LC0(%rip), %rdi
	testb	%cl, %cl
	jne	.L56
.L48:
	leaq	.LC1(%rip), %rdi
.L56:
	call	puts@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L41:
	movb	$0, 79(%rsp)
	movl	$0, 100(%rsp)
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L39:
	movb	$0, 79(%rsp)
	movl	$0, 96(%rsp)
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L42:
	movq	$1, 80(%rsp)
	movl	$1, 100(%rsp)
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L25:
	cmpq	$0, 32(%rsp)
	movq	$1, 128(%rsp)
	jns	.L47
	cmpb	$0, 79(%rsp)
	je	.L27
	leaq	.LC2(%rip), %rdi
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L40:
	movb	$1, 79(%rsp)
	movq	$1, 64(%rsp)
	movl	$1, 96(%rsp)
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L60:
	movq	24+y(%rip), %rax
	movq	%rax, 40(%rsp)
	movq	24+x(%rip), %rax
	movq	%rax, 24(%rsp)
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L58:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L59:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L62
	addq	$152, %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
.L61:
	.cfi_restore_state
	leaq	.LC1(%rip), %r13
	jmp	.L35
.L62:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	ye
	.align 8
	.type	ye, @object
	.size	ye, 8
ye:
	.zero	8
	.globl	xe
	.align 8
	.type	xe, @object
	.size	xe, 8
xe:
	.zero	8
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 80
y:
	.zero	80
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 80
x:
	.zero	80
	.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	atSameSide
	.type	atSameSide, @function
atSameSide:
.LFB23:
	.cfi_startproc
	endbr64
	subq	%rdi, %rdx
	subq	%rsi, %r9
	movq	%rdi, %rax
	subq	%rsi, %rcx
	imulq	%rdx, %r9
	movq	%rdx, %r10
	movq	16(%rsp), %rdx
	subq	%r8, %rax
	subq	8(%rsp), %rdi
	imulq	%rcx, %rax
	subq	%rsi, %rdx
	imulq	%rcx, %rdi
	imulq	%r10, %rdx
	addq	%r9, %rax
	addq	%rdx, %rdi
	xorq	%rdi, %rax
	notq	%rax
	shrq	$63, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	atSameSide, .-atSameSide
	.p2align 4
	.globl	between
	.type	between, @function
between:
.LFB24:
	.cfi_startproc
	endbr64
	movq	%rdx, %r10
	movq	%rcx, %rdx
	movq	%r8, %rcx
	movq	%r9, %r11
	movq	%r10, %rax
	subq	%rdi, %rcx
	subq	%rsi, %r11
	subq	%r10, %r8
	subq	%rdi, %rax
	subq	%rdx, %r9
	subq	%r10, %rdi
	imulq	%rcx, %rax
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	imulq	%r8, %rdi
	subq	%rdx, %rsi
	imulq	%r11, %rcx
	imulq	%r9, %rsi
	addq	%rcx, %rax
	addq	%rsi, %rdi
	xorq	%rdi, %rax
	notq	%rax
	shrq	$63, %rax
	ret
	.cfi_endproc
.LFE24:
	.size	between, .-between
	.p2align 4
	.globl	disCmp
	.type	disCmp, @function
disCmp:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rsi, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	subq	%rcx, %rax
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
	movq	%rax, %r11
	movq	32(%rsp), %rdi
	subq	%rbx, %rdx
	imulq	%rax, %r11
	movq	%rdx, %r12
	imulq	%rdx, %r12
	addq	%r12, %r11
	je	.L9
	imulq	%r8, %rax
	xorl	%r10d, %r10d
	imulq	%rbx, %rcx
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	imulq	%rbp, %rsi
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	imulq	%r9, %rdx
	imulq	%rdi, %rdi
	subq	%rsi, %rcx
	addq	%rax, %rdx
	movl	$1, %eax
	addq	%rcx, %rdx
	imulq	%r11, %rdi
	imulq	%rdx, %rdx
	subq	%rdi, %rdx
	setne	%r10b
	negl	%r10d
	testq	%rdx, %rdx
	cmovg	%eax, %r10d
	movl	%r10d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xorl	%r10d, %r10d
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	movl	%r10d, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	disCmp, .-disCmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"a"
.LC1:
	.string	"c"
.LC2:
	.string	"d"
.LC3:
	.string	"%lld%lld"
.LC4:
	.string	"%lld%lld%lld"
.LC5:
	.string	"b"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC3(%rip), %r15
	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	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	x(%rip), %rbp
	leaq	y(%rip), %rbx
	movl	$1, %r12d
.L16:
	xorl	%eax, %eax
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %r12d
	je	.L57
	movq	0(%rbp), %rax
	movq	%rax, 24(%rbp)
	movq	(%rbx), %rax
	movq	%rax, 24(%rbx)
	cmpl	$3, %r12d
	jne	.L37
	leaq	r(%rip), %rcx
	leaq	ye(%rip), %rdx
	xorl	%eax, %eax
	leaq	xe(%rip), %rsi
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	leaq	x(%rip), %rax
	movq	xe(%rip), %rdi
	movq	8+y(%rip), %rbp
	movq	(%rax), %rax
	movq	ye(%rip), %rsi
	movq	%rbp, %rcx
	movq	16+x(%rip), %r11
	movq	16+y(%rip), %r10
	movq	%rax, %rbx
	movq	%rax, 16(%rsp)
	leaq	y(%rip), %rax
	subq	%rsi, %rcx
	movq	(%rax), %r13
	movq	8+x(%rip), %rax
	movq	%r11, %r14
	movq	%r10, %r9
	imulq	%rcx, %rcx
	subq	%rdi, %r14
	subq	%rsi, %r9
	subq	%rdi, %rbx
	movq	%rax, %r12
	movq	%rax, 8(%rsp)
	imulq	%r9, %r9
	movq	%r13, %r8
	subq	%rdi, %r12
	movq	r(%rip), %rdx
	subq	%rsi, %r8
	movq	%r12, %rax
	imulq	%r8, %r8
	imulq	%r12, %rax
	imulq	%rdx, %rdx
	addq	%rcx, %rax
	movq	%r14, %rcx
	imulq	%r14, %rcx
	addq	%r9, %rcx
	movq	%rbx, %r9
	imulq	%rbx, %r9
	addq	%r8, %r9
	cmpq	%r9, %rdx
	jl	.L17
	cmpq	%rcx, %rax
	cmovge	%rax, %rcx
	cmpq	%rdx, %rcx
	jle	.L58
.L18:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L57:
	leaq	x(%rip), %rax
	leaq	y(%rip), %rsi
	movq	(%rax), %rax
	orq	(%rsi), %rax
	je	.L59
	movq	0(%rbp), %rax
	movq	%rax, 24(%rbp)
	movq	(%rbx), %rax
	movq	%rax, 24(%rbx)
.L37:
	addq	$8, %rbp
	addq	$8, %rbx
	addl	$1, %r12d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	cmpq	%rcx, %rax
	cmovg	%rcx, %rax
	cmpq	%rdx, %rax
	jle	.L18
	movq	%rsi, %rcx
	movq	16(%rsp), %rax
	movq	8(%rsp), %r8
	movq	%rbp, %r9
	subq	%r13, %rcx
	subq	%r13, %r9
	movq	%rcx, 48(%rsp)
	movq	%r10, %rcx
	imulq	%r9, %rbx
	subq	%rax, %r8
	subq	%r13, %rcx
	subq	%r11, %rax
	movq	%r8, 56(%rsp)
	imulq	%r8, %rcx
	movq	%r9, 88(%rsp)
	imulq	%r9, %rax
	addq	%rcx, %rax
	movq	48(%rsp), %rcx
	imulq	%r8, %rcx
	addq	%rbx, %rcx
	xorq	%rcx, %rax
	movq	%rax, 32(%rsp)
	js	.L60
	movq	24+x(%rip), %rcx
	movq	24+y(%rip), %rbx
	movq	%r11, %r9
	movq	%r10, %r8
	subq	%rbp, %r8
	movq	%rcx, 24(%rsp)
	movq	8(%rsp), %rcx
	movq	%rbx, %rax
	imulq	%r8, %r12
	subq	%rbp, %rax
	movq	%rbx, 40(%rsp)
	subq	%rcx, %r9
	subq	24(%rsp), %rcx
	imulq	%r9, %rax
	imulq	%r8, %rcx
	addq	%rax, %rcx
	movq	%rsi, %rax
	subq	%rbp, %rax
	imulq	%r9, %rax
	addq	%r12, %rax
	xorq	%rax, %rcx
	movq	%rcx, 32(%rsp)
	js	.L21
	movq	24(%rsp), %r9
	movq	32+y(%rip), %rax
	subq	%r10, %rbx
	movq	%r11, %rcx
	subq	32+x(%rip), %rcx
	movq	%rbx, %r8
	subq	%r11, %r9
	imulq	%rbx, %rcx
	subq	%r10, %rax
	imulq	%r9, %rax
	imulq	%r14, %r8
	addq	%rax, %rcx
	movq	%rsi, %rax
	subq	%r10, %rax
	imulq	%r9, %rax
	addq	%r8, %rax
	xorq	%rax, %rcx
	movq	%rcx, 32(%rsp)
.L21:
	movq	56(%rsp), %rbx
	movq	%r13, %r14
	subq	%rbp, %r14
	movq	%r14, %rcx
	movq	%rbx, %rax
	imulq	%r14, %rcx
	imulq	%rbx, %rax
	addq	%rcx, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, %r9
	je	.L39
	movq	16(%rsp), %rax
	movq	%r14, %rcx
	imulq	8(%rsp), %r13
	imulq	%rdi, %rcx
	imulq	%rbp, %rax
	imulq	%rsi, %rbx
	subq	%r13, %rax
	addq	%rbx, %rcx
	addq	%rcx, %rax
	movq	%r9, %rcx
	imulq	%rax, %rax
	imulq	%rdx, %rcx
	subq	%rcx, %rax
	testq	%rax, %rax
	jg	.L40
	setne	%al
	movb	$0, 79(%rsp)
	movzbl	%al, %eax
	negl	%eax
	movl	%eax, 96(%rsp)
	cltq
	movq	%rax, 64(%rsp)
.L22:
	movq	8(%rsp), %r8
	movq	%rbp, %r12
	movq	%r11, %r9
	subq	%r10, %r12
	subq	%r8, %r9
	movq	%r12, %rcx
	movq	%r9, %rax
	imulq	%r12, %rcx
	imulq	%r9, %rax
	addq	%rcx, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, %rbx
	je	.L41
	movq	%r8, %rax
	imulq	%rdx, %rbx
	movq	%rbp, %rcx
	movq	%r9, %r8
	imulq	%r11, %rcx
	imulq	%r10, %rax
	imulq	%rsi, %r8
	subq	%rcx, %rax
	movq	%r12, %rcx
	imulq	%rdi, %rcx
	addq	%r8, %rcx
	addq	%rcx, %rax
	imulq	%rax, %rax
	subq	%rbx, %rax
	testq	%rax, %rax
	jg	.L42
	setne	%al
	movb	$0, 79(%rsp)
	movzbl	%al, %eax
	negl	%eax
	movl	%eax, 100(%rsp)
	cltq
	movq	%rax, 80(%rsp)
.L23:
	movq	24(%rsp), %rbx
	movq	%r10, %r8
	subq	40(%rsp), %r8
	movq	%r8, %rcx
	movq	%rbx, %rax
	imulq	%r8, %rcx
	subq	%r11, %rax
	movq	%rax, 104(%rsp)
	movq	%rax, %r13
	imulq	%rax, %rax
	addq	%rax, %rcx
	je	.L24
	movq	40(%rsp), %rax
	imulq	%r10, %rbx
	imulq	%rsi, %r13
	imulq	%r11, %rax
	imulq	%rdx, %rcx
	subq	%rbx, %rax
	movq	%r8, %rbx
	imulq	%rdi, %rbx
	addq	%r13, %rbx
	addq	%rbx, %rax
	imulq	%rax, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	jg	.L25
	setne	%dl
	movzbl	%dl, %edx
	negq	%rdx
	testq	%rax, %rax
	sete	%cl
	cmpq	$0, 32(%rsp)
	movq	%rdx, 128(%rsp)
	jns	.L28
.L27:
	movq	16(%rsp), %rcx
	movq	8(%rsp), %r13
	movq	%rdi, %rdx
	movq	%rsi, %rbx
	subq	%rbp, %rbx
	movq	%rcx, %rax
	subq	%r13, %rdx
	subq	%r13, %rax
	movq	%rdx, 32(%rsp)
	imulq	%rdx, %rax
	movq	%r14, %rdx
	imulq	%rbx, %rdx
	addq	%rax, %rdx
	movq	%rdi, %rax
	subq	%rcx, %rax
	movq	48(%rsp), %rcx
	imulq	56(%rsp), %rax
	imulq	88(%rsp), %rcx
	addq	%rcx, %rax
	xorq	%rdx, %rax
	js	.L34
	cmpq	$0, 64(%rsp)
	leaq	.LC1(%rip), %r13
	jg	.L34
.L35:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L34:
	movq	8(%rsp), %rdx
	movq	%rdi, %r13
	movq	%rsi, %rax
	movq	%r12, %rcx
	subq	%r11, %r13
	subq	%r10, %rax
	movq	32(%rsp), %r12
	subq	%r11, %rdx
	imulq	%rax, %rcx
	imulq	%r13, %rdx
	imulq	%r9, %r12
	addq	%rdx, %rcx
	movq	%r10, %rdx
	subq	%rbp, %rdx
	imulq	%rbx, %rdx
	addq	%r12, %rdx
	xorq	%rcx, %rdx
	js	.L36
	cmpq	$0, 80(%rsp)
	jle	.L61
.L36:
	movq	24(%rsp), %rdx
	movq	40(%rsp), %rbx
	imulq	104(%rsp), %r13
	subq	%rdx, %rdi
	subq	%rdx, %r11
	subq	%rbx, %rsi
	subq	%r10, %rbx
	imulq	%r11, %rdi
	imulq	%r8, %rsi
	imulq	%rbx, %rax
	leaq	(%rdi,%rsi), %rdx
	addq	%r13, %rax
	leaq	.LC2(%rip), %r13
	xorq	%rax, %rdx
	js	.L35
	cmpq	$0, 128(%rsp)
	leaq	.LC1(%rip), %rax
	cmovle	%rax, %r13
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L24:
	cmpq	$0, 32(%rsp)
	movq	$0, 128(%rsp)
	js	.L27
.L47:
	movl	$1, %ecx
.L28:
	cmpl	$-1, 96(%rsp)
	setne	%dl
	cmpl	$-1, 100(%rsp)
	setne	%al
	testb	%al, %dl
	je	.L48
	leaq	.LC0(%rip), %rdi
	testb	%cl, %cl
	jne	.L56
.L48:
	leaq	.LC1(%rip), %rdi
.L56:
	call	puts@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L41:
	movb	$0, 79(%rsp)
	movl	$0, 100(%rsp)
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L39:
	movb	$0, 79(%rsp)
	movl	$0, 96(%rsp)
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L42:
	movq	$1, 80(%rsp)
	movl	$1, 100(%rsp)
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L25:
	cmpq	$0, 32(%rsp)
	movq	$1, 128(%rsp)
	jns	.L47
	cmpb	$0, 79(%rsp)
	je	.L27
	leaq	.LC2(%rip), %rdi
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L40:
	movb	$1, 79(%rsp)
	movq	$1, 64(%rsp)
	movl	$1, 96(%rsp)
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L60:
	movq	24+y(%rip), %rax
	movq	%rax, 40(%rsp)
	movq	24+x(%rip), %rax
	movq	%rax, 24(%rsp)
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L58:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L59:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L62
	addq	$152, %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
.L61:
	.cfi_restore_state
	leaq	.LC1(%rip), %r13
	jmp	.L35
.L62:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	ye
	.align 8
	.type	ye, @object
	.size	ye, 8
ye:
	.zero	8
	.globl	xe
	.align 8
	.type	xe, @object
	.size	xe, 8
xe:
	.zero	8
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 80
y:
	.zero	80
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 80
x:
	.zero	80
	.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:

// Aizu Vol-1 0153: Triangle and Circle
// 2017.8.12 bal4u@uu

#include <stdio.h>

long long x[10], y[10];
long long xe, ye, r;

int atSameSide(long long x1, long long y1, long long x2, long long y2,
	long long xa, long long ya, long long xb, long long yb)
{
	long long sa, sb;
	sa = (x2 - x1) * (ya - y1) + (y2 - y1) * (x1 - xa);
	sb = (x2 - x1) * (yb - y1) + (y2 - y1) * (x1 - xb);
	return (sa >= 0 && sb >= 0) || (sa < 0 && sb < 0);
}

int between(long long x1, long long y1, long long x2, long long y2,
	long long x, long long y)
{
	long long sa, sb;
	sa = (x2 - x1) * (x - x1) + (y2 - y1) * (y - y1);
	sb = (x1 - x2) * (x - x2) + (y1 - y2) * (y - y2);
	return (sa >= 0 && sb >= 0) || (sa < 0 && sb < 0);
}

int disCmp(long long x1, long long y1, long long x2, long long y2,
	long long x, long long y, long long r)
{
	long long a, b, c, t;			/* ax + by + c = 0 */
	long long squ;
	a = y1 - y2, b = x2 - x1, c = y2*x1-x2*y1;
	squ = a*a + b*b;
	if (squ == 0) return 0;
	t = (a * x) + (b * y) + c;
	t = t*t - r*r*squ;
	if (t > 0) return 1;
	if (t < 0) return -1;
	return 0;
}

int main()
{
	int i, f;
	long long d[3], rr;

	while (1) {
		for (i = 0; i < 3; i++) {
			scanf("%lld%lld", x + i, y + i);
			if (!i && !x[0] && !y[0]) return 0;
			x[i + 3] = x[i], y[i + 3] = y[i];
		}
		scanf("%lld%lld%lld", &xe, &ye, &r); rr = r*r;

		for (i = 0; i < 3; i++)
			d[i] = (x[i] - xe)*(x[i] - xe) + (y[i] - ye)*(y[i] - ye);
		if (rr >= d[0] && rr >= d[1] && rr >= d[2]) { puts("b"); continue; }
		if (rr >= d[0] || rr >= d[1] || rr >= d[2]) { puts("c"); continue; }

		for (f = 1, i = 0; f && i < 3; i++)
			f = atSameSide(x[i], y[i], x[i + 1], y[i + 1],
				x[i + 2], y[i + 2], xe, ye);
		for (i = 0; i < 3; i++)
			d[i] = disCmp(x[i], y[i], x[i + 1], y[i + 1], xe, ye, r);
		if (f) { puts(d[0] >= 0 && d[1] >= 0 && d[2] >= 0 ? "a" : "c"); continue; }
		if (d[0] > 0 && d[1] > 0 && d[2] > 0) { puts("d"); continue; }

		for (f = 1, i = 0; f && i < 3; i++)
			if (between(x[i], y[i], x[i + 1], y[i + 1], xe, ye) && d[i] <= 0) f = 0;
		puts(f ? "d" : "c");
	}
	return 0;
}
1 1
3 1
3 3
3 2
3
3 12
9 3
11 12
8 7
5
15 3
17 7
22 5
7 6
5
6 11
8 2
16 9
10 8
2
0 0
 2 1
3 1
3 3
3 2
3
3 12
9 3
11 12
8 7
5
15 3
17 7
22 5
7 6
5
6 11
8 2
16 9
15 8
0
0 0
 2 1
3 1
3 3
3 2
3
3 12
9 3
11 12
8 7
5
5 3
17 7
22 5
7 6
5
6 11
8 2
16 9
15 8
0
0 0
 2 1
3 1
3 3
3 4
3
3 12
9 3
11 12
8 7
5
5 3
17 7
22 5
7 6
5
6 11
8 2
16 9
15 8
0
0 0
 2 1
3 1
3 3
3 4
3
3 12
9 3
11 12
8 7
5
5 3
17 7
22 5
7 6
5
6 11
8 2
16 9
10 8
0
0 0
 1 1
3 1
3 3
3 2
3
3 12
9 3
11 12
8 7
5
15 3
17 7
22 5
7 6
4
6 11
13 2
16 9
10 8
2
0 0
 1 1
3 1
3 3
3 2
3
3 12
9 3
11 12
8 7
5
10 3
17 7
22 5
7 6
5
6 11
8 2
16 9
10 8
0
0 0
 2 1
3 1
3 3
3 4
3
3 12
9 3
11 12
8 7
5
5 3
17 7
22 5
7 6
2
6 11
12 2
16 9
19 8
0
0 0
 1 1
3 1
3 3
3 2
3
3 8
9 3
11 12
8 7
9
15 3
17 7
22 5
5 6
5
6 11
8 2
16 9
13 8
2
0 0
 2 1
3 1
2 3
3 2
4
3 12
9 3
11 12
3 6
3
5 3
17 7
22 5
7 6
7
6 11
8 2
16 9
19 8
0
0 0

b
c
d
a
 b
c
d
d
 b
c
c
d
 c
c
c
d
 c
c
c
a
 b
c
d
c
 b
c
c
a
 c
c
d
d
 b
b
d
c
 b
d
c
d

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

```c
// Aizu Vol-1 0153: Triangle and Circle
// 2017.8.12 bal4u@uu

#include <stdio.h>

long long x[10], y[10];
long long xe, ye, r;

int atSameSide(long long x1, long long y1, long long x2, long long y2,
	long long xa, long long ya, long long xb, long long yb)
{
	long long sa, sb;
	sa = (x2 - x1) * (ya - y1) + (y2 - y1) * (x1 - xa);
	sb = (x2 - x1) * (yb - y1) + (y2 - y1) * (x1 - xb);
	return (sa >= 0 && sb >= 0) || (sa < 0 && sb < 0);
}

int between(long long x1, long long y1, long long x2, long long y2,
	long long x, long long y)
{
	long long sa, sb;
	sa = (x2 - x1) * (x - x1) + (y2 - y1) * (y - y1);
	sb = (x1 - x2) * (x - x2) + (y1 - y2) * (y - y2);
	return (sa >= 0 && sb >= 0) || (sa < 0 && sb < 0);
}

int disCmp(long long x1, long long y1, long long x2, long long y2,
	long long x, long long y, long long r)
{
	long long a, b, c, t;			/* ax + by + c = 0 */
	long long squ;
	a = y1 - y2, b = x2 - x1, c = y2*x1-x2*y1;
	squ = a*a + b*b;
	if (squ == 0) return 0;
	t = (a * x) + (b * y) + c;
	t = t*t - r*r*squ;
	if (t > 0) return 1;
	if (t < 0) return -1;
	return 0;
}

int main()
{
	int i, f;
	long long d[3], rr;

	while (1) {
		for (i = 0; i < 3; i++) {
			scanf("%lld%lld", x + i, y + i);
			if (!i && !x[0] && !y[0]) return 0;
			x[i + 3] = x[i], y[i + 3] = y[i];
		}
		scanf("%lld%lld%lld", &xe, &ye, &r); rr = r*r;

		for (i = 0; i < 3; i++)
			d[i] = (x[i] - xe)*(x[i] - xe) + (y[i] - ye)*(y[i] - ye);
		if (rr >= d[0] && rr >= d[1] && rr >= d[2]) { puts("b"); continue; }
		if (rr >= d[0] || rr >= d[1] || rr >= d[2]) { puts("c"); continue; }

		for (f = 1, i = 0; f && i < 3; i++)
			f = atSameSide(x[i], y[i], x[i + 1], y[i + 1],
				x[i + 2], y[i + 2], xe, ye);
		for (i = 0; i < 3; i++)
			d[i] = disCmp(x[i], y[i], x[i + 1], y[i + 1], xe, ye, r);
		if (f) { puts(d[0] >= 0 && d[1] >= 0 && d[2] >= 0 ? "a" : "c"); continue; }
		if (d[0] > 0 && d[1] > 0 && d[2] > 0) { puts("d"); continue; }

		for (f = 1, i = 0; f && i < 3; i++)
			if (between(x[i], y[i], x[i + 1], y[i + 1], xe, ye) && d[i] <= 0) f = 0;
		puts(f ? "d" : "c");
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 80
x:
	.zero	80
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 80
y:
	.zero	80
	.globl	xe
	.align 8
	.type	xe, @object
	.size	xe, 8
xe:
	.zero	8
	.globl	ye
	.align 8
	.type	ye, @object
	.size	ye, 8
ye:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.text
	.globl	atSameSide
	.type	atSameSide, @function
atSameSide:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	%r8, -56(%rbp)
	movq	%r9, -64(%rbp)
	movq	-40(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	subq	-56(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	24(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	subq	16(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -16(%rbp)
	js	.L2
	cmpq	$0, -8(%rbp)
	jns	.L3
.L2:
	cmpq	$0, -16(%rbp)
	jns	.L4
	cmpq	$0, -8(%rbp)
	jns	.L4
.L3:
	movl	$1, %eax
	jmp	.L6
.L4:
	movl	$0, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	atSameSide, .-atSameSide
	.globl	between
	.type	between, @function
between:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	%r8, -56(%rbp)
	movq	%r9, -64(%rbp)
	movq	-40(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	-32(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-32(%rbp), %rax
	subq	-48(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	-48(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -16(%rbp)
	js	.L8
	cmpq	$0, -8(%rbp)
	jns	.L9
.L8:
	cmpq	$0, -16(%rbp)
	jns	.L10
	cmpq	$0, -8(%rbp)
	jns	.L10
.L9:
	movl	$1, %eax
	jmp	.L12
.L10:
	movl	$0, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	between, .-between
	.globl	disCmp
	.type	disCmp, @function
disCmp:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%rdx, -72(%rbp)
	movq	%rcx, -80(%rbp)
	movq	%r8, -88(%rbp)
	movq	%r9, -96(%rbp)
	movq	-64(%rbp), %rax
	subq	-80(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	-72(%rbp), %rax
	subq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	movq	-72(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	cmpq	$0, -16(%rbp)
	jne	.L14
	movl	$0, %eax
	jmp	.L15
.L14:
	movq	-40(%rbp), %rax
	imulq	-88(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	-96(%rbp), %rax
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rdx
	movq	16(%rbp), %rax
	imulq	%rax, %rax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jle	.L16
	movl	$1, %eax
	jmp	.L15
.L16:
	cmpq	$0, -8(%rbp)
	jns	.L17
	movl	$-1, %eax
	jmp	.L15
.L17:
	movl	$0, %eax
.L15:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	disCmp, .-disCmp
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld%lld%lld"
.LC2:
	.string	"b"
.LC3:
	.string	"c"
.LC4:
	.string	"a"
.LC5:
	.string	"d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L44:
	movl	$0, -48(%rbp)
	jmp	.L19
.L22:
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -48(%rbp)
	jne	.L20
	movq	x(%rip), %rax
	testq	%rax, %rax
	jne	.L20
	movq	y(%rip), %rax
	testq	%rax, %rax
	jne	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L45
	jmp	.L46
.L20:
	movl	-48(%rbp), %eax
	leal	3(%rax), %ecx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-48(%rbp), %eax
	leal	3(%rax), %ecx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -48(%rbp)
.L19:
	cmpl	$2, -48(%rbp)
	jle	.L22
	leaq	r(%rip), %rax
	movq	%rax, %rcx
	leaq	ye(%rip), %rax
	movq	%rax, %rdx
	leaq	xe(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	r(%rip), %rdx
	movq	r(%rip), %rax
	imulq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L23
.L24:
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	xe(%rip), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	xe(%rip), %rdx
	subq	%rdx, %rax
	movq	%rcx, %rsi
	imulq	%rax, %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	ye(%rip), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	ye(%rip), %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	leaq	(%rsi,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	movq	%rdx, -32(%rbp,%rax,8)
	addl	$1, -48(%rbp)
.L23:
	cmpl	$2, -48(%rbp)
	jle	.L24
	movq	-32(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L25
	movq	-24(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L25
	movq	-16(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L25
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L25:
	movq	-32(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jge	.L27
	movq	-24(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jge	.L27
	movq	-16(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L28
.L27:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L28:
	movl	$1, -44(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L29
.L31:
	movq	ye(%rip), %r8
	movq	xe(%rip), %rdi
	movl	-48(%rbp), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %r11
	movl	-48(%rbp), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %r10
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	y(%rip), %rax
	movq	(%rsi,%rax), %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %r9
	leaq	x(%rip), %rax
	movq	(%r9,%rax), %rax
	pushq	%r8
	pushq	%rdi
	movq	%r11, %r9
	movq	%r10, %r8
	movq	%rax, %rdi
	call	atSameSide
	addq	$16, %rsp
	movl	%eax, -44(%rbp)
	addl	$1, -48(%rbp)
.L29:
	cmpl	$0, -44(%rbp)
	je	.L30
	cmpl	$2, -48(%rbp)
	jle	.L31
.L30:
	movl	$0, -48(%rbp)
	jmp	.L32
.L33:
	movq	r(%rip), %rdi
	movq	ye(%rip), %r9
	movq	xe(%rip), %r10
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	y(%rip), %rax
	movq	(%rsi,%rax), %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %r8
	leaq	x(%rip), %rax
	movq	(%r8,%rax), %rax
	subq	$8, %rsp
	pushq	%rdi
	movq	%r10, %r8
	movq	%rax, %rdi
	call	disCmp
	addq	$16, %rsp
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	movq	%rdx, -32(%rbp,%rax,8)
	addl	$1, -48(%rbp)
.L32:
	cmpl	$2, -48(%rbp)
	jle	.L33
	cmpl	$0, -44(%rbp)
	je	.L34
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	js	.L35
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	js	.L35
	movq	-16(%rbp), %rax
	testq	%rax, %rax
	js	.L35
	leaq	.LC4(%rip), %rax
	jmp	.L36
.L35:
	leaq	.LC3(%rip), %rax
.L36:
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L34:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jle	.L37
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jle	.L37
	movq	-16(%rbp), %rax
	testq	%rax, %rax
	jle	.L37
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L37:
	movl	$1, -44(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L38
.L41:
	movq	ye(%rip), %r9
	movq	xe(%rip), %r8
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	y(%rip), %rax
	movq	(%rsi,%rax), %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdi
	leaq	x(%rip), %rax
	movq	(%rdi,%rax), %rax
	movq	%rax, %rdi
	call	between
	testl	%eax, %eax
	je	.L39
	movl	-48(%rbp), %eax
	cltq
	movq	-32(%rbp,%rax,8), %rax
	testq	%rax, %rax
	jg	.L39
	movl	$0, -44(%rbp)
.L39:
	addl	$1, -48(%rbp)
.L38:
	cmpl	$0, -44(%rbp)
	je	.L40
	cmpl	$2, -48(%rbp)
	jle	.L41
.L40:
	cmpl	$0, -44(%rbp)
	je	.L42
	leaq	.LC5(%rip), %rax
	jmp	.L43
.L42:
	leaq	.LC3(%rip), %rax
.L43:
	movq	%rax, %rdi
	call	puts@PLT
.L26:
	jmp	.L44
.L46:
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 80
x:
	.zero	80
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 80
y:
	.zero	80
	.globl	xe
	.align 8
	.type	xe, @object
	.size	xe, 8
xe:
	.zero	8
	.globl	ye
	.align 8
	.type	ye, @object
	.size	ye, 8
ye:
	.zero	8
	.globl	r
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.text
	.globl	atSameSide
	.type	atSameSide, @function
atSameSide:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	%r8, -56(%rbp)
	movq	%r9, -64(%rbp)
	movq	-40(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	subq	-56(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -16(%rbp)
	movq	-40(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	24(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	subq	16(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -16(%rbp)
	js	.L2
	cmpq	$0, -8(%rbp)
	jns	.L3
.L2:
	cmpq	$0, -16(%rbp)
	jns	.L4
	cmpq	$0, -8(%rbp)
	jns	.L4
.L3:
	movl	$1, %eax
	jmp	.L6
.L4:
	movl	$0, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	atSameSide, .-atSameSide
	.globl	between
	.type	between, @function
between:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	%r8, -56(%rbp)
	movq	%r9, -64(%rbp)
	movq	-40(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	subq	-24(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax
	subq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	-32(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%rax, %rcx
	movq	-32(%rbp), %rax
	subq	-48(%rbp), %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	subq	-48(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -16(%rbp)
	js	.L8
	cmpq	$0, -8(%rbp)
	jns	.L9
.L8:
	cmpq	$0, -16(%rbp)
	jns	.L10
	cmpq	$0, -8(%rbp)
	jns	.L10
.L9:
	movl	$1, %eax
	jmp	.L12
.L10:
	movl	$0, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	between, .-between
	.globl	disCmp
	.type	disCmp, @function
disCmp:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%rdx, -72(%rbp)
	movq	%rcx, -80(%rbp)
	movq	%r8, -88(%rbp)
	movq	%r9, -96(%rbp)
	movq	-64(%rbp), %rax
	subq	-80(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	-72(%rbp), %rax
	subq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	movq	-72(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -24(%rbp)
	movq	-40(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	cmpq	$0, -16(%rbp)
	jne	.L14
	movl	$0, %eax
	jmp	.L15
.L14:
	movq	-40(%rbp), %rax
	imulq	-88(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	-96(%rbp), %rax
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rdx
	movq	16(%rbp), %rax
	imulq	%rax, %rax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jle	.L16
	movl	$1, %eax
	jmp	.L15
.L16:
	cmpq	$0, -8(%rbp)
	jns	.L17
	movl	$-1, %eax
	jmp	.L15
.L17:
	movl	$0, %eax
.L15:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	disCmp, .-disCmp
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld%lld%lld"
.LC2:
	.string	"b"
.LC3:
	.string	"c"
.LC4:
	.string	"a"
.LC5:
	.string	"d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L44:
	movl	$0, -48(%rbp)
	jmp	.L19
.L22:
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -48(%rbp)
	jne	.L20
	movq	x(%rip), %rax
	testq	%rax, %rax
	jne	.L20
	movq	y(%rip), %rax
	testq	%rax, %rax
	jne	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L45
	jmp	.L46
.L20:
	movl	-48(%rbp), %eax
	leal	3(%rax), %ecx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-48(%rbp), %eax
	leal	3(%rax), %ecx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -48(%rbp)
.L19:
	cmpl	$2, -48(%rbp)
	jle	.L22
	leaq	r(%rip), %rax
	movq	%rax, %rcx
	leaq	ye(%rip), %rax
	movq	%rax, %rdx
	leaq	xe(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	r(%rip), %rdx
	movq	r(%rip), %rax
	imulq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L23
.L24:
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	xe(%rip), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	xe(%rip), %rdx
	subq	%rdx, %rax
	movq	%rcx, %rsi
	imulq	%rax, %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	ye(%rip), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	ye(%rip), %rdx
	subq	%rdx, %rax
	imulq	%rcx, %rax
	leaq	(%rsi,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	movq	%rdx, -32(%rbp,%rax,8)
	addl	$1, -48(%rbp)
.L23:
	cmpl	$2, -48(%rbp)
	jle	.L24
	movq	-32(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L25
	movq	-24(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L25
	movq	-16(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L25
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L25:
	movq	-32(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jge	.L27
	movq	-24(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jge	.L27
	movq	-16(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L28
.L27:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L28:
	movl	$1, -44(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L29
.L31:
	movq	ye(%rip), %r8
	movq	xe(%rip), %rdi
	movl	-48(%rbp), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %r11
	movl	-48(%rbp), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %r10
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	y(%rip), %rax
	movq	(%rsi,%rax), %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %r9
	leaq	x(%rip), %rax
	movq	(%r9,%rax), %rax
	pushq	%r8
	pushq	%rdi
	movq	%r11, %r9
	movq	%r10, %r8
	movq	%rax, %rdi
	call	atSameSide
	addq	$16, %rsp
	movl	%eax, -44(%rbp)
	addl	$1, -48(%rbp)
.L29:
	cmpl	$0, -44(%rbp)
	je	.L30
	cmpl	$2, -48(%rbp)
	jle	.L31
.L30:
	movl	$0, -48(%rbp)
	jmp	.L32
.L33:
	movq	r(%rip), %rdi
	movq	ye(%rip), %r9
	movq	xe(%rip), %r10
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	y(%rip), %rax
	movq	(%rsi,%rax), %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %r8
	leaq	x(%rip), %rax
	movq	(%r8,%rax), %rax
	subq	$8, %rsp
	pushq	%rdi
	movq	%r10, %r8
	movq	%rax, %rdi
	call	disCmp
	addq	$16, %rsp
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	movq	%rdx, -32(%rbp,%rax,8)
	addl	$1, -48(%rbp)
.L32:
	cmpl	$2, -48(%rbp)
	jle	.L33
	cmpl	$0, -44(%rbp)
	je	.L34
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	js	.L35
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	js	.L35
	movq	-16(%rbp), %rax
	testq	%rax, %rax
	js	.L35
	leaq	.LC4(%rip), %rax
	jmp	.L36
.L35:
	leaq	.LC3(%rip), %rax
.L36:
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L34:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jle	.L37
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jle	.L37
	movq	-16(%rbp), %rax
	testq	%rax, %rax
	jle	.L37
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L37:
	movl	$1, -44(%rbp)
	movl	$0, -48(%rbp)
	jmp	.L38
.L41:
	movq	ye(%rip), %r9
	movq	xe(%rip), %r8
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-48(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	y(%rip), %rax
	movq	(%rsi,%rax), %rsi
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdi
	leaq	x(%rip), %rax
	movq	(%rdi,%rax), %rax
	movq	%rax, %rdi
	call	between
	testl	%eax, %eax
	je	.L39
	movl	-48(%rbp), %eax
	cltq
	movq	-32(%rbp,%rax,8), %rax
	testq	%rax, %rax
	jg	.L39
	movl	$0, -44(%rbp)
.L39:
	addl	$1, -48(%rbp)
.L38:
	cmpl	$0, -44(%rbp)
	je	.L40
	cmpl	$2, -48(%rbp)
	jle	.L41
.L40:
	cmpl	$0, -44(%rbp)
	je	.L42
	leaq	.LC5(%rip), %rax
	jmp	.L43
.L42:
	leaq	.LC3(%rip), %rax
.L43:
	movq	%rax, %rdi
	call	puts@PLT
.L26:
	jmp	.L44
.L46:
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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:
