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

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

typedef long long LL;

int N;
int XYD[100001][3];

LL calc_area(LL n) {
  const int tbl[][2] = {
    {1, 0}, {-1, 0}, {0, 1}, {0, -1},
  };
  LL min_x, min_y, max_x, max_y;
  min_x = min_y = (LL)1e9;
  max_x = max_y = (LL)-1e9;
  
  for (int i = 0; i < N; ++i) {
    // printf("%lf %lf %lf %lf\n", max_x, min_x, max_y, min_y);
    // printf("%d %d\n", tbl[XYD[i][2]][0], tbl[XYD[i][2]][1]);
    LL x = XYD[i][0] * 2;
    LL y = XYD[i][1] * 2;
    x += n * tbl[XYD[i][2]][0];
    y += n * tbl[XYD[i][2]][1];
    if (x < min_x)
      min_x = x;
    if (x > max_x)
      max_x = x;
    if (y < min_y)
      min_y = y;
    if (y > max_y)
      max_y = y;
  }
  return (max_x - min_x) * (max_y - min_y);
}

int main(void) {
  scanf("%d", &N);
  for (int i = 0; i < N; ++i) {
    int x, y, z;
    char d;
    scanf("%d %d %c", &x, &y, &d);
    XYD[i][0] = x;
    XYD[i][1] = y;
    switch (d) {
    case 'R':
      XYD[i][2] = 0;
      break;
    case 'L':
      XYD[i][2] = 1;
      break;
    case 'U':
      XYD[i][2] = 2;
      break;
    default:
      XYD[i][2] = 3;
      break;
    }
  }

  LL l = 0;
  LL r = (LL)1e9;

  for (int i = 0; i < 100; ++i) {
    if (calc_area((l * 2 + r) / 3) < calc_area((l + r * 2) / 3))
      r = (l + r * 2) / 3;
    else
      l = (l * 2 + r) / 3;
  }
  LL c = (l + r) / 2;
  // printf("%lf\n", c);
  printf("%lf\n", (double)calc_area(c) / 4);

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	XYD
	.align 32
	.type	XYD, @object
	.size	XYD, 1200012
XYD:
	.zero	1200012
	.text
	.globl	calc_area
	.type	calc_area, @function
calc_area:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movq	%rdi, -120(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$-1, -20(%rbp)
	movq	$1000000000, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	$-1000000000, -72(%rbp)
	movq	-72(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L2
.L7:
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	cltq
	movq	%rax, -64(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	cltq
	movq	%rax, -56(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	movl	-48(%rbp,%rax,8), %eax
	cltq
	imulq	-120(%rbp), %rax
	addq	%rax, -64(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	movl	-44(%rbp,%rax,8), %eax
	cltq
	imulq	-120(%rbp), %rax
	addq	%rax, -56(%rbp)
	movq	-64(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jge	.L3
	movq	-64(%rbp), %rax
	movq	%rax, -96(%rbp)
.L3:
	movq	-64(%rbp), %rax
	cmpq	-80(%rbp), %rax
	jle	.L4
	movq	-64(%rbp), %rax
	movq	%rax, -80(%rbp)
.L4:
	movq	-56(%rbp), %rax
	cmpq	-88(%rbp), %rax
	jge	.L5
	movq	-56(%rbp), %rax
	movq	%rax, -88(%rbp)
.L5:
	movq	-56(%rbp), %rax
	cmpq	-72(%rbp), %rax
	jle	.L6
	movq	-56(%rbp), %rax
	movq	%rax, -72(%rbp)
.L6:
	addl	$1, -100(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L7
	movq	-80(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-72(%rbp), %rax
	subq	-88(%rbp), %rax
	imulq	%rdx, %rax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calc_area, .-calc_area
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %c"
.LC3:
	.string	"%lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -56(%rbp)
	jmp	.L11
.L16:
	leaq	-65(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %edx
	movl	-56(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	XYD(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+XYD(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movzbl	-65(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$85, %eax
	je	.L12
	cmpl	$85, %eax
	jg	.L13
	cmpl	$76, %eax
	je	.L14
	cmpl	$82, %eax
	jne	.L13
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L15
.L14:
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$1, (%rdx,%rax)
	jmp	.L15
.L12:
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$2, (%rdx,%rax)
	jmp	.L15
.L13:
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$3, (%rdx,%rax)
	nop
.L15:
	addl	$1, -56(%rbp)
.L11:
	movl	N(%rip), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L16
	movq	$0, -48(%rbp)
	movq	$1000000000, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L17
.L20:
	movq	-48(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-40(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	calc_area
	movq	%rax, %rbx
	movq	-40(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	calc_area
	cmpq	%rax, %rbx
	jge	.L18
	movq	-40(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -40(%rbp)
	jmp	.L19
.L18:
	movq	-48(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-40(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -48(%rbp)
.L19:
	addl	$1, -52(%rbp)
.L17:
	cmpl	$99, -52(%rbp)
	jle	.L20
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	calc_area
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rax, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.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	calc_area
	.type	calc_area, @function
calc_area:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	movdqa	.LC0(%rip), %xmm0
	movl	N(%rip), %edx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movabsq	$4000000000000000000, %rax
	movaps	%xmm0, (%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 16(%rsp)
	testl	%edx, %edx
	jle	.L1
	leal	-1(%rdx), %eax
	movq	%rdi, %r11
	leaq	XYD(%rip), %rsi
	movq	$-1000000000, %r8
	leaq	(%rax,%rax,2), %rdx
	leaq	12(%rsi), %rax
	movl	$1000000000, %r9d
	movl	$1000000000, %r10d
	leaq	(%rax,%rdx,4), %rbx
	movq	$-1000000000, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	8(%rsi), %rbp
	movl	(%rsi), %edi
	movslq	(%rsp,%rbp,8), %rcx
	leal	(%rdi,%rdi), %edx
	movl	4(%rsi), %edi
	movslq	%edx, %rdx
	imulq	%r11, %rcx
	addl	%edi, %edi
	movslq	%edi, %rdi
	addq	%rdx, %rcx
	movslq	4(%rsp,%rbp,8), %rdx
	imulq	%r11, %rdx
	addq	%rdi, %rdx
	cmpq	%rcx, %r10
	cmovg	%rcx, %r10
	cmpq	%rcx, %rax
	cmovl	%rcx, %rax
	cmpq	%rdx, %r9
	cmovg	%rdx, %r9
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$12, %rsi
	cmpq	%rbx, %rsi
	jne	.L3
	subq	%r10, %rax
	subq	%r9, %r8
	imulq	%r8, %rax
.L1:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L10
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	calc_area, .-calc_area
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d %c"
.LC5:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	N(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	XYD(%rip), %rbx
	xorl	%r15d, %r15d
	leaq	31(%rsp), %r14
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movd	32(%rsp), %xmm0
	movd	36(%rsp), %xmm1
	xorl	%eax, %eax
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%rbx)
	movzbl	31(%rsp), %edx
	cmpb	$82, %dl
	je	.L13
	movl	$2, %eax
	cmpb	$85, %dl
	je	.L13
	xorl	%eax, %eax
	cmpb	$76, %dl
	setne	%al
	leal	1(%rax,%rax), %eax
.L13:
	movl	%eax, 8(%rbx)
	addl	$1, %r15d
	addq	$12, %rbx
	cmpl	%r15d, N(%rip)
	jg	.L14
.L12:
	movl	$100, 12(%rsp)
	movl	$1000000000, %r12d
	xorl	%ebp, %ebp
	movabsq	$6148914691236517206, %r15
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	(%r12,%rbp,2), %rsi
	movq	%rsi, %rax
	sarq	$63, %rsi
	imulq	%r15
	subq	%rsi, %rdx
	movq	%rdx, %rdi
	movq	%rdx, %r14
	call	calc_area
	leaq	0(%rbp,%r12,2), %rsi
	movq	%rax, %r13
	movq	%rsi, %rax
	sarq	$63, %rsi
	imulq	%r15
	movq	%rdx, %rbx
	subq	%rsi, %rbx
	movq	%rbx, %rdi
	call	calc_area
	cmpq	%rax, %r13
	cmovge	%r14, %rbp
	cmovl	%rbx, %r12
	subl	$1, 12(%rsp)
	jne	.L16
	addq	%r12, %rbp
	movq	%rbp, %rdi
	shrq	$63, %rdi
	addq	%rbp, %rdi
	sarq	%rdi
	call	calc_area
	pxor	%xmm0, %xmm0
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	cvtsi2sdq	%rax, %xmm0
	mulsd	.LC4(%rip), %xmm0
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	XYD
	.bss
	.align 32
	.type	XYD, @object
	.size	XYD, 1200012
XYD:
	.zero	1200012
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	0
	.long	-1
	.long	0
	.align 16
.LC1:
	.long	0
	.long	1
	.long	0
	.long	-1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1070596096
	.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	calc_area
	.type	calc_area, @function
calc_area:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$56, %rsp
	.cfi_def_cfa_offset 80
	movdqa	.LC0(%rip), %xmm0
	movl	N(%rip), %edx
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movabsq	$4000000000000000000, %rax
	movaps	%xmm0, (%rsp)
	movdqa	.LC1(%rip), %xmm0
	movaps	%xmm0, 16(%rsp)
	testl	%edx, %edx
	jle	.L1
	leal	-1(%rdx), %eax
	movq	%rdi, %r11
	leaq	XYD(%rip), %rsi
	movq	$-1000000000, %r8
	leaq	(%rax,%rax,2), %rdx
	leaq	12(%rsi), %rax
	movl	$1000000000, %r9d
	movl	$1000000000, %r10d
	leaq	(%rax,%rdx,4), %rbx
	movq	$-1000000000, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	8(%rsi), %rbp
	movl	(%rsi), %edi
	movslq	(%rsp,%rbp,8), %rcx
	leal	(%rdi,%rdi), %edx
	movl	4(%rsi), %edi
	movslq	%edx, %rdx
	imulq	%r11, %rcx
	addl	%edi, %edi
	movslq	%edi, %rdi
	addq	%rdx, %rcx
	movslq	4(%rsp,%rbp,8), %rdx
	imulq	%r11, %rdx
	addq	%rdi, %rdx
	cmpq	%rcx, %r10
	cmovg	%rcx, %r10
	cmpq	%rcx, %rax
	cmovl	%rcx, %rax
	cmpq	%rdx, %r9
	cmovg	%rdx, %r9
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
	addq	$12, %rsi
	cmpq	%rbx, %rsi
	jne	.L3
	subq	%r10, %rax
	subq	%r9, %r8
	imulq	%r8, %rax
.L1:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L10
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	calc_area, .-calc_area
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d %c"
.LC5:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	N(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	XYD(%rip), %rbx
	xorl	%r15d, %r15d
	leaq	31(%rsp), %r14
	leaq	36(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movd	32(%rsp), %xmm0
	movd	36(%rsp), %xmm1
	xorl	%eax, %eax
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%rbx)
	movzbl	31(%rsp), %edx
	cmpb	$82, %dl
	je	.L13
	movl	$2, %eax
	cmpb	$85, %dl
	je	.L13
	xorl	%eax, %eax
	cmpb	$76, %dl
	setne	%al
	leal	1(%rax,%rax), %eax
.L13:
	movl	%eax, 8(%rbx)
	addl	$1, %r15d
	addq	$12, %rbx
	cmpl	%r15d, N(%rip)
	jg	.L14
.L12:
	movl	$100, 12(%rsp)
	movl	$1000000000, %r12d
	xorl	%ebp, %ebp
	movabsq	$6148914691236517206, %r15
	.p2align 4,,10
	.p2align 3
.L16:
	leaq	(%r12,%rbp,2), %rsi
	movq	%rsi, %rax
	sarq	$63, %rsi
	imulq	%r15
	subq	%rsi, %rdx
	movq	%rdx, %rdi
	movq	%rdx, %r14
	call	calc_area
	leaq	0(%rbp,%r12,2), %rsi
	movq	%rax, %r13
	movq	%rsi, %rax
	sarq	$63, %rsi
	imulq	%r15
	movq	%rdx, %rbx
	subq	%rsi, %rbx
	movq	%rbx, %rdi
	call	calc_area
	cmpq	%rax, %r13
	cmovge	%r14, %rbp
	cmovl	%rbx, %r12
	subl	$1, 12(%rsp)
	jne	.L16
	addq	%r12, %rbp
	movq	%rbp, %rdi
	shrq	$63, %rdi
	addq	%rbp, %rdi
	sarq	%rdi
	call	calc_area
	pxor	%xmm0, %xmm0
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	cvtsi2sdq	%rax, %xmm0
	mulsd	.LC4(%rip), %xmm0
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	XYD
	.bss
	.align 32
	.type	XYD, @object
	.size	XYD, 1200012
XYD:
	.zero	1200012
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	0
	.long	-1
	.long	0
	.align 16
.LC1:
	.long	0
	.long	1
	.long	0
	.long	-1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1070596096
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

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

typedef long long LL;

int N;
int XYD[100001][3];

LL calc_area(LL n) {
  const int tbl[][2] = {
    {1, 0}, {-1, 0}, {0, 1}, {0, -1},
  };
  LL min_x, min_y, max_x, max_y;
  min_x = min_y = (LL)1e9;
  max_x = max_y = (LL)-1e9;
  
  for (int i = 0; i < N; ++i) {
    // printf("%lf %lf %lf %lf\n", max_x, min_x, max_y, min_y);
    // printf("%d %d\n", tbl[XYD[i][2]][0], tbl[XYD[i][2]][1]);
    LL x = XYD[i][0] * 2;
    LL y = XYD[i][1] * 2;
    x += n * tbl[XYD[i][2]][0];
    y += n * tbl[XYD[i][2]][1];
    if (x < min_x)
      min_x = x;
    if (x > max_x)
      max_x = x;
    if (y < min_y)
      min_y = y;
    if (y > max_y)
      max_y = y;
  }
  return (max_x - min_x) * (max_y - min_y);
}

int main(void) {
  scanf("%d", &N);
  for (int i = 0; i < N; ++i) {
    int x, y, z;
    char d;
    scanf("%d %d %c", &x, &y, &d);
    XYD[i][0] = x;
    XYD[i][1] = y;
    switch (d) {
    case 'R':
      XYD[i][2] = 0;
      break;
    case 'L':
      XYD[i][2] = 1;
      break;
    case 'U':
      XYD[i][2] = 2;
      break;
    default:
      XYD[i][2] = 3;
      break;
    }
  }

  LL l = 0;
  LL r = (LL)1e9;

  for (int i = 0; i < 100; ++i) {
    if (calc_area((l * 2 + r) / 3) < calc_area((l + r * 2) / 3))
      r = (l + r * 2) / 3;
    else
      l = (l * 2 + r) / 3;
  }
  LL c = (l + r) / 2;
  // printf("%lf\n", c);
  printf("%lf\n", (double)calc_area(c) / 4);

  return 0;
}

20
6 -10 R
-4 -9 U
9 6 D
-3 -2 R
0 7 D
4 5 D
10 -10 U
-1 -8 U
10 -6 D
8 -5 U
6 4 D
0 3 D
7 9 R
9 -4 R
3 10 D
1 9 U
1 -6 U
9 -8 R
9 7 D
7 -3 D
 5
-7 -10 U
7 -6 U
-8 7 D
-4 3 D
0 -6 R
 5
-7 -10 U
7 -6 U
-8 7 D
-8 3 D
1 -6 R
 2
0 3 D
3 1 L
 20
6 -10 R
-4 -9 U
9 6 D
-3 -2 R
0 7 D
4 5 D
10 -10 U
-1 -8 U
10 -6 D
8 -5 U
6 4 D
0 3 D
10 9 R
9 -4 R
3 10 D
1 9 U
1 -6 U
9 -8 R
9 7 D
7 -3 D
 5
-7 -10 U
4 -6 U
-8 7 D
-4 3 D
0 -6 R
 5
-7 -12 U
7 -6 U
-3 7 D
-3 3 D
0 -6 R
 5
-7 -10 U
4 -12 U
-8 7 D
-4 3 D
0 -6 R
 5
-7 -10 U
8 -6 U
-8 7 D
-8 5 D
0 -6 R
 5
-7 -10 U
7 -6 U
-8 7 D
-7 0 D
1 -6 R

273.000000
 97.500000
 100.750000
 0.000000
 280.000000
 94.250000
 91.000000
 74.250000
 104.000000
 105.000000

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

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

typedef long long LL;

int N;
int XYD[100001][3];

LL calc_area(LL n) {
  const int tbl[][2] = {
    {1, 0}, {-1, 0}, {0, 1}, {0, -1},
  };
  LL min_x, min_y, max_x, max_y;
  min_x = min_y = (LL)1e9;
  max_x = max_y = (LL)-1e9;
  
  for (int i = 0; i < N; ++i) {
    // printf("%lf %lf %lf %lf\n", max_x, min_x, max_y, min_y);
    // printf("%d %d\n", tbl[XYD[i][2]][0], tbl[XYD[i][2]][1]);
    LL x = XYD[i][0] * 2;
    LL y = XYD[i][1] * 2;
    x += n * tbl[XYD[i][2]][0];
    y += n * tbl[XYD[i][2]][1];
    if (x < min_x)
      min_x = x;
    if (x > max_x)
      max_x = x;
    if (y < min_y)
      min_y = y;
    if (y > max_y)
      max_y = y;
  }
  return (max_x - min_x) * (max_y - min_y);
}

int main(void) {
  scanf("%d", &N);
  for (int i = 0; i < N; ++i) {
    int x, y, z;
    char d;
    scanf("%d %d %c", &x, &y, &d);
    XYD[i][0] = x;
    XYD[i][1] = y;
    switch (d) {
    case 'R':
      XYD[i][2] = 0;
      break;
    case 'L':
      XYD[i][2] = 1;
      break;
    case 'U':
      XYD[i][2] = 2;
      break;
    default:
      XYD[i][2] = 3;
      break;
    }
  }

  LL l = 0;
  LL r = (LL)1e9;

  for (int i = 0; i < 100; ++i) {
    if (calc_area((l * 2 + r) / 3) < calc_area((l + r * 2) / 3))
      r = (l + r * 2) / 3;
    else
      l = (l * 2 + r) / 3;
  }
  LL c = (l + r) / 2;
  // printf("%lf\n", c);
  printf("%lf\n", (double)calc_area(c) / 4);

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	XYD
	.align 32
	.type	XYD, @object
	.size	XYD, 1200012
XYD:
	.zero	1200012
	.text
	.globl	calc_area
	.type	calc_area, @function
calc_area:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movq	%rdi, -120(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$-1, -20(%rbp)
	movq	$1000000000, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	$-1000000000, -72(%rbp)
	movq	-72(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L2
.L7:
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	cltq
	movq	%rax, -64(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	cltq
	movq	%rax, -56(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	movl	-48(%rbp,%rax,8), %eax
	cltq
	imulq	-120(%rbp), %rax
	addq	%rax, -64(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	movl	-44(%rbp,%rax,8), %eax
	cltq
	imulq	-120(%rbp), %rax
	addq	%rax, -56(%rbp)
	movq	-64(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jge	.L3
	movq	-64(%rbp), %rax
	movq	%rax, -96(%rbp)
.L3:
	movq	-64(%rbp), %rax
	cmpq	-80(%rbp), %rax
	jle	.L4
	movq	-64(%rbp), %rax
	movq	%rax, -80(%rbp)
.L4:
	movq	-56(%rbp), %rax
	cmpq	-88(%rbp), %rax
	jge	.L5
	movq	-56(%rbp), %rax
	movq	%rax, -88(%rbp)
.L5:
	movq	-56(%rbp), %rax
	cmpq	-72(%rbp), %rax
	jle	.L6
	movq	-56(%rbp), %rax
	movq	%rax, -72(%rbp)
.L6:
	addl	$1, -100(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L7
	movq	-80(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-72(%rbp), %rax
	subq	-88(%rbp), %rax
	imulq	%rdx, %rax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calc_area, .-calc_area
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %c"
.LC3:
	.string	"%lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -56(%rbp)
	jmp	.L11
.L16:
	leaq	-65(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %edx
	movl	-56(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	XYD(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+XYD(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movzbl	-65(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$85, %eax
	je	.L12
	cmpl	$85, %eax
	jg	.L13
	cmpl	$76, %eax
	je	.L14
	cmpl	$82, %eax
	jne	.L13
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L15
.L14:
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$1, (%rdx,%rax)
	jmp	.L15
.L12:
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$2, (%rdx,%rax)
	jmp	.L15
.L13:
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$3, (%rdx,%rax)
	nop
.L15:
	addl	$1, -56(%rbp)
.L11:
	movl	N(%rip), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L16
	movq	$0, -48(%rbp)
	movq	$1000000000, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L17
.L20:
	movq	-48(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-40(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	calc_area
	movq	%rax, %rbx
	movq	-40(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	calc_area
	cmpq	%rax, %rbx
	jge	.L18
	movq	-40(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -40(%rbp)
	jmp	.L19
.L18:
	movq	-48(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-40(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -48(%rbp)
.L19:
	addl	$1, -52(%rbp)
.L17:
	cmpl	$99, -52(%rbp)
	jle	.L20
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	calc_area
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rax, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.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	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	XYD
	.align 32
	.type	XYD, @object
	.size	XYD, 1200012
XYD:
	.zero	1200012
	.text
	.globl	calc_area
	.type	calc_area, @function
calc_area:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	addq	$-128, %rsp
	movq	%rdi, -120(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$1, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$-1, -20(%rbp)
	movq	$1000000000, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	$-1000000000, -72(%rbp)
	movq	-72(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L2
.L7:
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	cltq
	movq	%rax, -64(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %eax
	cltq
	movq	%rax, -56(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	movl	-48(%rbp,%rax,8), %eax
	cltq
	imulq	-120(%rbp), %rax
	addq	%rax, -64(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	movl	-44(%rbp,%rax,8), %eax
	cltq
	imulq	-120(%rbp), %rax
	addq	%rax, -56(%rbp)
	movq	-64(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jge	.L3
	movq	-64(%rbp), %rax
	movq	%rax, -96(%rbp)
.L3:
	movq	-64(%rbp), %rax
	cmpq	-80(%rbp), %rax
	jle	.L4
	movq	-64(%rbp), %rax
	movq	%rax, -80(%rbp)
.L4:
	movq	-56(%rbp), %rax
	cmpq	-88(%rbp), %rax
	jge	.L5
	movq	-56(%rbp), %rax
	movq	%rax, -88(%rbp)
.L5:
	movq	-56(%rbp), %rax
	cmpq	-72(%rbp), %rax
	jle	.L6
	movq	-56(%rbp), %rax
	movq	%rax, -72(%rbp)
.L6:
	addl	$1, -100(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L7
	movq	-80(%rbp), %rax
	subq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-72(%rbp), %rax
	subq	-88(%rbp), %rax
	imulq	%rdx, %rax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calc_area, .-calc_area
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %c"
.LC3:
	.string	"%lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -56(%rbp)
	jmp	.L11
.L16:
	leaq	-65(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %edx
	movl	-56(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	XYD(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	movq	%rax, %rcx
	leaq	4+XYD(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movzbl	-65(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$85, %eax
	je	.L12
	cmpl	$85, %eax
	jg	.L13
	cmpl	$76, %eax
	je	.L14
	cmpl	$82, %eax
	jne	.L13
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L15
.L14:
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$1, (%rdx,%rax)
	jmp	.L15
.L12:
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$2, (%rdx,%rax)
	jmp	.L15
.L13:
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	8+XYD(%rip), %rax
	movl	$3, (%rdx,%rax)
	nop
.L15:
	addl	$1, -56(%rbp)
.L11:
	movl	N(%rip), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L16
	movq	$0, -48(%rbp)
	movq	$1000000000, -40(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L17
.L20:
	movq	-48(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-40(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	calc_area
	movq	%rax, %rbx
	movq	-40(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	calc_area
	cmpq	%rax, %rbx
	jge	.L18
	movq	-40(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -40(%rbp)
	jmp	.L19
.L18:
	movq	-48(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-40(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$6148914691236517206, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	sarq	$63, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -48(%rbp)
.L19:
	addl	$1, -52(%rbp)
.L17:
	cmpl	$99, -52(%rbp)
	jle	.L20
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	calc_area
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rax, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.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:
