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>

int main(void) {
	long long x, y;
	long long button = 0;
	
	scanf("%lld %lld", &x, &y);
	
	if (y == x*-1) button = 1;
	
	if (x < y){
		if (x >= 0 || (x < 0 && y <= 0)) button = y - x;
		else if (x*-1 < y) button = y - x*-1 + 1;
		else button = x*-1 - y + 1;
	}
	else {
		if ((x > 0 && y > 0) || x < 0) button = x - y + 2;
		else if (x == 0) button = y*-1 + 1;
		else if (y == 0) button = x+1;
		else if (x > y*-1) button = x + y + 1;
		else button = x*-1 - y + 1;
	}
	
	printf("%lld\n", button);
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld\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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -16(%rbp)
	leaq	-24(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-32(%rbp), %rax
	negq	%rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L2
	movq	$1, -16(%rbp)
.L2:
	movq	-32(%rbp), %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L3
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jns	.L4
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jns	.L5
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jg	.L5
.L4:
	movq	-24(%rbp), %rax
	movq	-32(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L5:
	movq	-32(%rbp), %rax
	negq	%rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L7
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L7:
	movq	-32(%rbp), %rax
	negq	%rax
	movq	-24(%rbp), %rdx
	subq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L3:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jle	.L9
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jg	.L10
.L9:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jns	.L11
.L10:
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	subq	%rdx, %rax
	addq	$2, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L11:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jne	.L12
	movq	-24(%rbp), %rdx
	movl	$1, %eax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L12:
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jne	.L13
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L13:
	movq	-24(%rbp), %rax
	negq	%rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L14
	movq	-32(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L14:
	movq	-32(%rbp), %rax
	negq	%rax
	movq	-24(%rbp), %rdx
	subq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
.L8:
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	movq	16(%rsp), %rcx
	movq	%rax, %rdx
	negq	%rdx
	cmpq	%rcx, %rax
	jge	.L2
	testq	%rcx, %rcx
	jle	.L14
	testq	%rax, %rax
	js	.L3
.L14:
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L5:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	testq	%rax, %rax
	jle	.L15
	testq	%rcx, %rcx
	jle	.L15
.L7:
	subq	%rcx, %rax
	leaq	2(%rax), %rdx
	jmp	.L5
.L15:
	testq	%rax, %rax
	js	.L7
	jne	.L10
	movl	$1, %edx
	subq	%rcx, %rdx
	jmp	.L5
.L3:
	cmpq	%rcx, %rdx
	jge	.L12
.L20:
	leaq	1(%rax,%rcx), %rdx
	jmp	.L5
.L10:
	testq	%rcx, %rcx
	jne	.L11
	leaq	1(%rax), %rdx
	jmp	.L5
.L11:
	movq	%rcx, %rsi
	negq	%rsi
	cmpq	%rsi, %rax
	jg	.L20
.L12:
	subq	%rcx, %rdx
	addq	$1, %rdx
	jmp	.L5
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	movq	16(%rsp), %rcx
	movq	%rax, %rdx
	negq	%rdx
	cmpq	%rcx, %rax
	jge	.L2
	testq	%rcx, %rcx
	jle	.L14
	testq	%rax, %rax
	js	.L3
.L14:
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L5:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	testq	%rax, %rax
	jle	.L15
	testq	%rcx, %rcx
	jle	.L15
.L7:
	subq	%rcx, %rax
	leaq	2(%rax), %rdx
	jmp	.L5
.L15:
	testq	%rax, %rax
	js	.L7
	jne	.L10
	movl	$1, %edx
	subq	%rcx, %rdx
	jmp	.L5
.L3:
	cmpq	%rcx, %rdx
	jge	.L12
.L20:
	leaq	1(%rax,%rcx), %rdx
	jmp	.L5
.L10:
	testq	%rcx, %rcx
	jne	.L11
	leaq	1(%rax), %rdx
	jmp	.L5
.L11:
	movq	%rcx, %rsi
	negq	%rsi
	cmpq	%rsi, %rax
	jg	.L20
.L12:
	subq	%rcx, %rdx
	addq	$1, %rdx
	jmp	.L5
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

#include <stdio.h>

int main(void) {
	long long x, y;
	long long button = 0;
	
	scanf("%lld %lld", &x, &y);
	
	if (y == x*-1) button = 1;
	
	if (x < y){
		if (x >= 0 || (x < 0 && y <= 0)) button = y - x;
		else if (x*-1 < y) button = y - x*-1 + 1;
		else button = x*-1 - y + 1;
	}
	else {
		if ((x > 0 && y > 0) || x < 0) button = x - y + 2;
		else if (x == 0) button = y*-1 + 1;
		else if (y == 0) button = x+1;
		else if (x > y*-1) button = x + y + 1;
		else button = x*-1 - y + 1;
	}
	
	printf("%lld\n", button);
	
	return 0;
}
15 20
 -10 -3
 19 -10
 -10 -2
 8 -10
 28 0
 28 2
 9 -14
 28 3
 1 -14

5
 7
 10
 8
 3
 29
 28
 6
 27
 14

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>

int main(void) {
	long long x, y;
	long long button = 0;
	
	scanf("%lld %lld", &x, &y);
	
	if (y == x*-1) button = 1;
	
	if (x < y){
		if (x >= 0 || (x < 0 && y <= 0)) button = y - x;
		else if (x*-1 < y) button = y - x*-1 + 1;
		else button = x*-1 - y + 1;
	}
	else {
		if ((x > 0 && y > 0) || x < 0) button = x - y + 2;
		else if (x == 0) button = y*-1 + 1;
		else if (y == 0) button = x+1;
		else if (x > y*-1) button = x + y + 1;
		else button = x*-1 - y + 1;
	}
	
	printf("%lld\n", button);
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld\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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -16(%rbp)
	leaq	-24(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-32(%rbp), %rax
	negq	%rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L2
	movq	$1, -16(%rbp)
.L2:
	movq	-32(%rbp), %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L3
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jns	.L4
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jns	.L5
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jg	.L5
.L4:
	movq	-24(%rbp), %rax
	movq	-32(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L5:
	movq	-32(%rbp), %rax
	negq	%rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L7
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L7:
	movq	-32(%rbp), %rax
	negq	%rax
	movq	-24(%rbp), %rdx
	subq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L3:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jle	.L9
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jg	.L10
.L9:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jns	.L11
.L10:
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	subq	%rdx, %rax
	addq	$2, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L11:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jne	.L12
	movq	-24(%rbp), %rdx
	movl	$1, %eax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L12:
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jne	.L13
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L13:
	movq	-24(%rbp), %rax
	negq	%rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L14
	movq	-32(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L14:
	movq	-32(%rbp), %rax
	negq	%rax
	movq	-24(%rbp), %rdx
	subq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
.L8:
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld\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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -16(%rbp)
	leaq	-24(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-32(%rbp), %rax
	negq	%rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L2
	movq	$1, -16(%rbp)
.L2:
	movq	-32(%rbp), %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L3
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jns	.L4
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jns	.L5
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jg	.L5
.L4:
	movq	-24(%rbp), %rax
	movq	-32(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L5:
	movq	-32(%rbp), %rax
	negq	%rax
	movq	%rax, %rdx
	movq	-24(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L7
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L7:
	movq	-32(%rbp), %rax
	negq	%rax
	movq	-24(%rbp), %rdx
	subq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L3:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jle	.L9
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jg	.L10
.L9:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jns	.L11
.L10:
	movq	-32(%rbp), %rax
	movq	-24(%rbp), %rdx
	subq	%rdx, %rax
	addq	$2, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L11:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jne	.L12
	movq	-24(%rbp), %rdx
	movl	$1, %eax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L12:
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jne	.L13
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L13:
	movq	-24(%rbp), %rax
	negq	%rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	cmpq	%rax, %rdx
	jge	.L14
	movq	-32(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
	jmp	.L8
.L14:
	movq	-32(%rbp), %rax
	negq	%rax
	movq	-24(%rbp), %rdx
	subq	%rdx, %rax
	addq	$1, %rax
	movq	%rax, -16(%rbp)
.L8:
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
