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

```c
#include <stdio.h>

void check(double eye, int table[4]);

int main(void)
{
	int right[4] = {0};
	int left[4] = {0};
	double r, l;
	int i;
	
	while (scanf("%lf %lf", &l, &r) != EOF){
		check(r, right);
		check(l, left);
	}
	for (i = 0; i < 4; i++){
		printf("%d %d\n", left[i], right[i]);
	}
	
	return 0;
}

void check(double eye, int table[4])
{
	if (eye >= 1.1){
		table[0]++;
	}
	else if (eye >= 0.6){
		table[1]++;
	}
	else if (eye >= 0.2){
		table[2]++;
	}
	else {
		table[3]++;
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lf %lf"
.LC1:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	jmp	.L2
.L3:
	movq	-64(%rbp), %rax
	leaq	-48(%rbp), %rdx
	movq	%rdx, %rdi
	movq	%rax, %xmm0
	call	check
	movq	-56(%rbp), %rax
	leaq	-32(%rbp), %rdx
	movq	%rdx, %rdi
	movq	%rax, %xmm0
	call	check
.L2:
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L3
	movl	$0, -68(%rbp)
	jmp	.L4
.L5:
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-68(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -68(%rbp)
.L4:
	cmpl	$3, -68(%rbp)
	jle	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	check
	.type	check, @function
check:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movq	%rdi, -16(%rbp)
	movsd	-8(%rbp), %xmm0
	comisd	.LC2(%rip), %xmm0
	jb	.L19
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, (%rax)
	jmp	.L22
.L19:
	movsd	-8(%rbp), %xmm0
	comisd	.LC3(%rip), %xmm0
	jb	.L20
	movq	-16(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	jmp	.L22
.L20:
	movsd	-8(%rbp), %xmm0
	comisd	.LC4(%rip), %xmm0
	jb	.L21
	movq	-16(%rbp), %rax
	addq	$8, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	jmp	.L22
.L21:
	movq	-16(%rbp), %rax
	addq	$12, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
.L22:
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	check, .-check
	.section	.rodata
	.align 8
.LC2:
	.long	-1717986918
	.long	1072798105
	.align 8
.LC3:
	.long	858993459
	.long	1071854387
	.align 8
.LC4:
	.long	-1717986918
	.long	1070176665
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%lf %lf"
.LC4:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC3(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r13
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %r12
	movaps	%xmm0, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L35
	movsd	(%rsp), %xmm0
	comisd	.LC0(%rip), %xmm0
	jb	.L27
	addl	$1, 16(%rsp)
.L5:
	movsd	8(%rsp), %xmm0
	comisd	.LC0(%rip), %xmm0
	jb	.L30
.L36:
	addl	$1, %ebx
	movl	%ebx, 32(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L27:
	comisd	.LC1(%rip), %xmm0
	jb	.L28
	addl	$1, 20(%rsp)
	movsd	8(%rsp), %xmm0
	comisd	.LC0(%rip), %xmm0
	jnb	.L36
.L30:
	comisd	.LC1(%rip), %xmm0
	jb	.L31
	addl	$1, 36(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L28:
	comisd	.LC2(%rip), %xmm0
	jb	.L29
	addl	$1, 24(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L31:
	comisd	.LC2(%rip), %xmm0
	jb	.L32
	addl	$1, 40(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L29:
	addl	$1, 28(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, 44(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L35:
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	.LC4(%rip), %rbp
.L18:
	movl	0(%r13,%rbx), %ecx
	movl	(%r12,%rbx), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	$16, %rbx
	jne	.L18
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L37:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB24:
	.cfi_startproc
	endbr64
	comisd	.LC0(%rip), %xmm0
	jb	.L49
	addl	$1, (%rdi)
	ret
	.p2align 4,,10
	.p2align 3
.L49:
	comisd	.LC1(%rip), %xmm0
	jb	.L50
	addl	$1, 4(%rdi)
	ret
	.p2align 4,,10
	.p2align 3
.L50:
	comisd	.LC2(%rip), %xmm0
	jb	.L51
	addl	$1, 8(%rdi)
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	addl	$1, 12(%rdi)
	ret
	.cfi_endproc
.LFE24:
	.size	check, .-check
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1717986918
	.long	1072798105
	.align 8
.LC1:
	.long	858993459
	.long	1071854387
	.align 8
.LC2:
	.long	-1717986918
	.long	1070176665
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%lf %lf"
.LC4:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	%xmm0, %xmm0
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC3(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r13
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %r12
	movaps	%xmm0, 32(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L35
	movsd	(%rsp), %xmm0
	comisd	.LC0(%rip), %xmm0
	jb	.L27
	addl	$1, 16(%rsp)
.L5:
	movsd	8(%rsp), %xmm0
	comisd	.LC0(%rip), %xmm0
	jb	.L30
.L36:
	addl	$1, %ebx
	movl	%ebx, 32(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L27:
	comisd	.LC1(%rip), %xmm0
	jb	.L28
	addl	$1, 20(%rsp)
	movsd	8(%rsp), %xmm0
	comisd	.LC0(%rip), %xmm0
	jnb	.L36
.L30:
	comisd	.LC1(%rip), %xmm0
	jb	.L31
	addl	$1, 36(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L28:
	comisd	.LC2(%rip), %xmm0
	jb	.L29
	addl	$1, 24(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L31:
	comisd	.LC2(%rip), %xmm0
	jb	.L32
	addl	$1, 40(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L29:
	addl	$1, 28(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, 44(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L35:
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	.LC4(%rip), %rbp
.L18:
	movl	0(%r13,%rbx), %ecx
	movl	(%r12,%rbx), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	$16, %rbx
	jne	.L18
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L37:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB24:
	.cfi_startproc
	endbr64
	comisd	.LC0(%rip), %xmm0
	jb	.L49
	addl	$1, (%rdi)
	ret
	.p2align 4,,10
	.p2align 3
.L49:
	comisd	.LC1(%rip), %xmm0
	jb	.L50
	addl	$1, 4(%rdi)
	ret
	.p2align 4,,10
	.p2align 3
.L50:
	comisd	.LC2(%rip), %xmm0
	jb	.L51
	addl	$1, 8(%rdi)
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	addl	$1, 12(%rdi)
	ret
	.cfi_endproc
.LFE24:
	.size	check, .-check
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1717986918
	.long	1072798105
	.align 8
.LC1:
	.long	858993459
	.long	1071854387
	.align 8
.LC2:
	.long	-1717986918
	.long	1070176665
	.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 <stdio.h>

void check(double eye, int table[4]);

int main(void)
{
	int right[4] = {0};
	int left[4] = {0};
	double r, l;
	int i;
	
	while (scanf("%lf %lf", &l, &r) != EOF){
		check(r, right);
		check(l, left);
	}
	for (i = 0; i < 4; i++){
		printf("%d %d\n", left[i], right[i]);
	}
	
	return 0;
}

void check(double eye, int table[4])
{
	if (eye >= 1.1){
		table[0]++;
	}
	else if (eye >= 0.6){
		table[1]++;
	}
	else if (eye >= 0.2){
		table[2]++;
	}
	else {
		table[3]++;
	}
}
1.0 1.2
0.8 1.5
1.2 0.7
2.0 2.1903643288076555
 1.0 1.6960573379527397
1.4596389610615816 1.5471720124202895
1.2 0.7
2.751284804693524 2.1903643288076555
 1.4450818768746183 1.6960573379527397
2.61268179406582 1.5471720124202895
2.573217216239934 0.7
4.9346769267643475 2.1903643288076555
 3.074377310282718 3.408310358864073
4.365908554441974 2.7842928577123516
2.573217216239934 1.750655805377047
6.112015344915439 2.378616543190681
 1.0 1.2
0.8 1.5
1.2 0.7
2.751284804693524 2.1903643288076555
 1.0 1.2
0.8 1.5471720124202895
1.2 0.7
2.751284804693524 2.1903643288076555
 1.0 1.6960573379527397
0.8 1.5471720124202895
1.2 0.7
2.751284804693524 2.1903643288076555
 1.0 1.6960573379527397
0.8413834025534568 1.5471720124202895
1.2 0.7
2.751284804693524 2.1903643288076555
 1.0 1.6960573379527397
1.4596389610615816 1.5471720124202895
1.2 0.7
3.619100269325771 2.1903643288076555
 1.0 1.6960573379527397
1.4596389610615816 1.5471720124202895
1.2 0.7
4.285760834475757 2.1903643288076555

2 3
2 1
0 0
0 0
 3 3
1 1
0 0
0 0
 4 3
0 1
0 0
0 0
 4 4
0 0
0 0
0 0
 2 3
2 1
0 0
0 0
 2 3
2 1
0 0
0 0
 2 3
2 1
0 0
0 0
 2 3
2 1
0 0
0 0
 3 3
1 1
0 0
0 0
 3 3
1 1
0 0
0 0

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

```c
#include <stdio.h>

void check(double eye, int table[4]);

int main(void)
{
	int right[4] = {0};
	int left[4] = {0};
	double r, l;
	int i;
	
	while (scanf("%lf %lf", &l, &r) != EOF){
		check(r, right);
		check(l, left);
	}
	for (i = 0; i < 4; i++){
		printf("%d %d\n", left[i], right[i]);
	}
	
	return 0;
}

void check(double eye, int table[4])
{
	if (eye >= 1.1){
		table[0]++;
	}
	else if (eye >= 0.6){
		table[1]++;
	}
	else if (eye >= 0.2){
		table[2]++;
	}
	else {
		table[3]++;
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lf %lf"
.LC1:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	jmp	.L2
.L3:
	movq	-64(%rbp), %rax
	leaq	-48(%rbp), %rdx
	movq	%rdx, %rdi
	movq	%rax, %xmm0
	call	check
	movq	-56(%rbp), %rax
	leaq	-32(%rbp), %rdx
	movq	%rdx, %rdi
	movq	%rax, %xmm0
	call	check
.L2:
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L3
	movl	$0, -68(%rbp)
	jmp	.L4
.L5:
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-68(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -68(%rbp)
.L4:
	cmpl	$3, -68(%rbp)
	jle	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	check
	.type	check, @function
check:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movq	%rdi, -16(%rbp)
	movsd	-8(%rbp), %xmm0
	comisd	.LC2(%rip), %xmm0
	jb	.L19
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, (%rax)
	jmp	.L22
.L19:
	movsd	-8(%rbp), %xmm0
	comisd	.LC3(%rip), %xmm0
	jb	.L20
	movq	-16(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	jmp	.L22
.L20:
	movsd	-8(%rbp), %xmm0
	comisd	.LC4(%rip), %xmm0
	jb	.L21
	movq	-16(%rbp), %rax
	addq	$8, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	jmp	.L22
.L21:
	movq	-16(%rbp), %rax
	addq	$12, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
.L22:
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	check, .-check
	.section	.rodata
	.align 8
.LC2:
	.long	-1717986918
	.long	1072798105
	.align 8
.LC3:
	.long	858993459
	.long	1071854387
	.align 8
.LC4:
	.long	-1717986918
	.long	1070176665
	.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
	.section	.rodata
.LC0:
	.string	"%lf %lf"
.LC1:
	.string	"%d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	jmp	.L2
.L3:
	movq	-64(%rbp), %rax
	leaq	-48(%rbp), %rdx
	movq	%rdx, %rdi
	movq	%rax, %xmm0
	call	check
	movq	-56(%rbp), %rax
	leaq	-32(%rbp), %rdx
	movq	%rdx, %rdi
	movq	%rax, %xmm0
	call	check
.L2:
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	jne	.L3
	movl	$0, -68(%rbp)
	jmp	.L4
.L5:
	movl	-68(%rbp), %eax
	cltq
	movl	-48(%rbp,%rax,4), %edx
	movl	-68(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -68(%rbp)
.L4:
	cmpl	$3, -68(%rbp)
	jle	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	check
	.type	check, @function
check:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movsd	%xmm0, -8(%rbp)
	movq	%rdi, -16(%rbp)
	movsd	-8(%rbp), %xmm0
	comisd	.LC2(%rip), %xmm0
	jb	.L19
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movq	-16(%rbp), %rax
	movl	%edx, (%rax)
	jmp	.L22
.L19:
	movsd	-8(%rbp), %xmm0
	comisd	.LC3(%rip), %xmm0
	jb	.L20
	movq	-16(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	jmp	.L22
.L20:
	movsd	-8(%rbp), %xmm0
	comisd	.LC4(%rip), %xmm0
	jb	.L21
	movq	-16(%rbp), %rax
	addq	$8, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	jmp	.L22
.L21:
	movq	-16(%rbp), %rax
	addq	$12, %rax
	movl	(%rax), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
.L22:
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	check, .-check
	.section	.rodata
	.align 8
.LC2:
	.long	-1717986918
	.long	1072798105
	.align 8
.LC3:
	.long	858993459
	.long	1071854387
	.align 8
.LC4:
	.long	-1717986918
	.long	1070176665
	.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:
