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

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

char inputline[100];
int a,b,N;
int alice,borys;

int main(){

	alice = 0;
	borys = 0;

	fgets(inputline,sizeof(inputline),stdin);
	sscanf(inputline,"%d %d %d",&N,&a,&b);

	alice = a;
	borys = b;

	for(int i=0;i<100;i++){

		if(alice + 1  !=  borys){

			alice = alice + 1;

		}
		
		else if(alice + 1 == borys){

			if(alice == 0){

				printf("Borys\n");

				return 0;

			}

			alice = alice -1;

		}

		if(borys - 1 != alice){

			borys = borys - 1;

		}

		else if(borys - 1 == alice){

			if(borys == N){
				printf("Alice\n");

				return 0;
			}

			borys = borys + 1;

		}

	}
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Borys"
.LC2:
	.string	"Alice"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$100, %esi
	movq	stdin(%rip), %rdx
	leaq	inputline(%rip), %rbp
	movl	$0, alice(%rip)
	movq	%rbp, %rdi
	movl	$0, borys(%rip)
	call	fgets@PLT
	leaq	b(%rip), %r8
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	a(%rip), %rcx
	leaq	N(%rip), %rdx
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	a(%rip), %eax
	movl	b(%rip), %edx
	xorl	%edi, %edi
	movl	N(%rip), %r8d
	movl	$100, %ecx
	movl	%eax, alice(%rip)
	movl	%edx, borys(%rip)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%esi, %eax
	leal	-1(%rdx), %esi
	cmpl	%eax, %esi
	je	.L21
.L11:
	movl	%esi, %edx
	movl	$1, %edi
	subl	$1, %ecx
	je	.L22
.L9:
	leal	1(%rax), %esi
	cmpl	%edx, %esi
	jne	.L10
	testl	%eax, %eax
	je	.L23
	subl	$1, %eax
	leal	-1(%rdx), %esi
	cmpl	%eax, %esi
	jne	.L11
.L21:
	cmpl	%edx, %r8d
	je	.L24
	addl	$1, %edx
	movl	$1, %edi
	subl	$1, %ecx
	jne	.L9
.L22:
	movl	%edx, borys(%rip)
	movl	%eax, alice(%rip)
	jmp	.L5
.L23:
	testb	%dil, %dil
	je	.L4
	movl	%edx, borys(%rip)
	movl	$0, alice(%rip)
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	xorl	%eax, %eax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	testb	%dil, %dil
	je	.L8
	movl	%r8d, borys(%rip)
.L8:
	leaq	.LC2(%rip), %rdi
	movl	%eax, alice(%rip)
	call	puts@PLT
	jmp	.L5
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	borys
	.bss
	.align 4
	.type	borys, @object
	.size	borys, 4
borys:
	.zero	4
	.globl	alice
	.align 4
	.type	alice, @object
	.size	alice, 4
alice:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	inputline
	.align 32
	.type	inputline, @object
	.size	inputline, 100
inputline:
	.zero	100
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Borys"
.LC2:
	.string	"Alice"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$100, %esi
	movq	stdin(%rip), %rdx
	leaq	inputline(%rip), %rbp
	movl	$0, alice(%rip)
	movq	%rbp, %rdi
	movl	$0, borys(%rip)
	call	fgets@PLT
	leaq	b(%rip), %r8
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	a(%rip), %rcx
	leaq	N(%rip), %rdx
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	a(%rip), %eax
	movl	b(%rip), %edx
	xorl	%edi, %edi
	movl	N(%rip), %r8d
	movl	$100, %ecx
	movl	%eax, alice(%rip)
	movl	%edx, borys(%rip)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%esi, %eax
	leal	-1(%rdx), %esi
	cmpl	%eax, %esi
	je	.L21
.L11:
	movl	%esi, %edx
	movl	$1, %edi
	subl	$1, %ecx
	je	.L22
.L9:
	leal	1(%rax), %esi
	cmpl	%edx, %esi
	jne	.L10
	testl	%eax, %eax
	je	.L23
	subl	$1, %eax
	leal	-1(%rdx), %esi
	cmpl	%eax, %esi
	jne	.L11
.L21:
	cmpl	%edx, %r8d
	je	.L24
	addl	$1, %edx
	movl	$1, %edi
	subl	$1, %ecx
	jne	.L9
.L22:
	movl	%edx, borys(%rip)
	movl	%eax, alice(%rip)
	jmp	.L5
.L23:
	testb	%dil, %dil
	je	.L4
	movl	%edx, borys(%rip)
	movl	$0, alice(%rip)
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	xorl	%eax, %eax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	testb	%dil, %dil
	je	.L8
	movl	%r8d, borys(%rip)
.L8:
	leaq	.LC2(%rip), %rdi
	movl	%eax, alice(%rip)
	call	puts@PLT
	jmp	.L5
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	borys
	.bss
	.align 4
	.type	borys, @object
	.size	borys, 4
borys:
	.zero	4
	.globl	alice
	.align 4
	.type	alice, @object
	.size	alice, 4
alice:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	inputline
	.align 32
	.type	inputline, @object
	.size	inputline, 100
inputline:
	.zero	100
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Borys"
.LC2:
	.string	"Alice"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$100, %esi
	movq	stdin(%rip), %rdx
	leaq	inputline(%rip), %rbp
	movl	$0, alice(%rip)
	movq	%rbp, %rdi
	movl	$0, borys(%rip)
	call	fgets@PLT
	leaq	b(%rip), %r8
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	a(%rip), %rcx
	leaq	N(%rip), %rdx
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	a(%rip), %eax
	movl	b(%rip), %edx
	xorl	%edi, %edi
	movl	N(%rip), %r8d
	movl	$100, %ecx
	movl	%eax, alice(%rip)
	movl	%edx, borys(%rip)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%esi, %eax
	leal	-1(%rdx), %esi
	cmpl	%eax, %esi
	je	.L21
.L11:
	movl	%esi, %edx
	movl	$1, %edi
	subl	$1, %ecx
	je	.L22
.L9:
	leal	1(%rax), %esi
	cmpl	%edx, %esi
	jne	.L10
	testl	%eax, %eax
	je	.L23
	subl	$1, %eax
	leal	-1(%rdx), %esi
	cmpl	%eax, %esi
	jne	.L11
.L21:
	cmpl	%edx, %r8d
	je	.L24
	addl	$1, %edx
	movl	$1, %edi
	subl	$1, %ecx
	jne	.L9
.L22:
	movl	%edx, borys(%rip)
	movl	%eax, alice(%rip)
	jmp	.L5
.L23:
	testb	%dil, %dil
	je	.L4
	movl	%edx, borys(%rip)
	movl	$0, alice(%rip)
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	xorl	%eax, %eax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	testb	%dil, %dil
	je	.L8
	movl	%r8d, borys(%rip)
.L8:
	leaq	.LC2(%rip), %rdi
	movl	%eax, alice(%rip)
	call	puts@PLT
	jmp	.L5
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	borys
	.bss
	.align 4
	.type	borys, @object
	.size	borys, 4
borys:
	.zero	4
	.globl	alice
	.align 4
	.type	alice, @object
	.size	alice, 4
alice:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	inputline
	.align 32
	.type	inputline, @object
	.size	inputline, 100
inputline:
	.zero	100
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char inputline[100];
int a,b,N;
int alice,borys;

int main(){

	alice = 0;
	borys = 0;

	fgets(inputline,sizeof(inputline),stdin);
	sscanf(inputline,"%d %d %d",&N,&a,&b);

	alice = a;
	borys = b;

	for(int i=0;i<100;i++){

		if(alice + 1  !=  borys){

			alice = alice + 1;

		}
		
		else if(alice + 1 == borys){

			if(alice == 0){

				printf("Borys\n");

				return 0;

			}

			alice = alice -1;

		}

		if(borys - 1 != alice){

			borys = borys - 1;

		}

		else if(borys - 1 == alice){

			if(borys == N){
				printf("Alice\n");

				return 0;
			}

			borys = borys + 1;

		}

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

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

char inputline[100];
int a,b,N;
int alice,borys;

int main(){

	alice = 0;
	borys = 0;

	fgets(inputline,sizeof(inputline),stdin);
	sscanf(inputline,"%d %d %d",&N,&a,&b);

	alice = a;
	borys = b;

	for(int i=0;i<100;i++){

		if(alice + 1  !=  borys){

			alice = alice + 1;

		}
		
		else if(alice + 1 == borys){

			if(alice == 0){

				printf("Borys\n");

				return 0;

			}

			alice = alice -1;

		}

		if(borys - 1 != alice){

			borys = borys - 1;

		}

		else if(borys - 1 == alice){

			if(borys == N){
				printf("Alice\n");

				return 0;
			}

			borys = borys + 1;

		}

	}
}
```

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.
Optimized Assembly Code:

9 23 42
 8 2 4
 3 1 2
 9 23 18
 3 2 2
 8 2 3
 9 23 23
 0 2 2
 7 2 3
 9 44 23

Borys
 Alice
 Borys
 Borys
 Borys

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

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

char inputline[100];
int a,b,N;
int alice,borys;

int main(){

	alice = 0;
	borys = 0;

	fgets(inputline,sizeof(inputline),stdin);
	sscanf(inputline,"%d %d %d",&N,&a,&b);

	alice = a;
	borys = b;

	for(int i=0;i<100;i++){

		if(alice + 1  !=  borys){

			alice = alice + 1;

		}
		
		else if(alice + 1 == borys){

			if(alice == 0){

				printf("Borys\n");

				return 0;

			}

			alice = alice -1;

		}

		if(borys - 1 != alice){

			borys = borys - 1;

		}

		else if(borys - 1 == alice){

			if(borys == N){
				printf("Alice\n");

				return 0;
			}

			borys = borys + 1;

		}

	}
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Borys"
.LC2:
	.string	"Alice"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$100, %esi
	movq	stdin(%rip), %rdx
	leaq	inputline(%rip), %rbp
	movl	$0, alice(%rip)
	movq	%rbp, %rdi
	movl	$0, borys(%rip)
	call	fgets@PLT
	leaq	b(%rip), %r8
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	a(%rip), %rcx
	leaq	N(%rip), %rdx
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	a(%rip), %eax
	movl	b(%rip), %edx
	xorl	%edi, %edi
	movl	N(%rip), %r8d
	movl	$100, %ecx
	movl	%eax, alice(%rip)
	movl	%edx, borys(%rip)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%esi, %eax
	leal	-1(%rdx), %esi
	cmpl	%eax, %esi
	je	.L21
.L11:
	movl	%esi, %edx
	movl	$1, %edi
	subl	$1, %ecx
	je	.L22
.L9:
	leal	1(%rax), %esi
	cmpl	%edx, %esi
	jne	.L10
	testl	%eax, %eax
	je	.L23
	subl	$1, %eax
	leal	-1(%rdx), %esi
	cmpl	%eax, %esi
	jne	.L11
.L21:
	cmpl	%edx, %r8d
	je	.L24
	addl	$1, %edx
	movl	$1, %edi
	subl	$1, %ecx
	jne	.L9
.L22:
	movl	%edx, borys(%rip)
	movl	%eax, alice(%rip)
	jmp	.L5
.L23:
	testb	%dil, %dil
	je	.L4
	movl	%edx, borys(%rip)
	movl	$0, alice(%rip)
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	xorl	%eax, %eax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	testb	%dil, %dil
	je	.L8
	movl	%r8d, borys(%rip)
.L8:
	leaq	.LC2(%rip), %rdi
	movl	%eax, alice(%rip)
	call	puts@PLT
	jmp	.L5
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	borys
	.bss
	.align 4
	.type	borys, @object
	.size	borys, 4
borys:
	.zero	4
	.globl	alice
	.align 4
	.type	alice, @object
	.size	alice, 4
alice:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	inputline
	.align 32
	.type	inputline, @object
	.size	inputline, 100
inputline:
	.zero	100
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Borys"
.LC2:
	.string	"Alice"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	$100, %esi
	movq	stdin(%rip), %rdx
	leaq	inputline(%rip), %rbp
	movl	$0, alice(%rip)
	movq	%rbp, %rdi
	movl	$0, borys(%rip)
	call	fgets@PLT
	leaq	b(%rip), %r8
	movq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	a(%rip), %rcx
	leaq	N(%rip), %rdx
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movl	a(%rip), %eax
	movl	b(%rip), %edx
	xorl	%edi, %edi
	movl	N(%rip), %r8d
	movl	$100, %ecx
	movl	%eax, alice(%rip)
	movl	%edx, borys(%rip)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%esi, %eax
	leal	-1(%rdx), %esi
	cmpl	%eax, %esi
	je	.L21
.L11:
	movl	%esi, %edx
	movl	$1, %edi
	subl	$1, %ecx
	je	.L22
.L9:
	leal	1(%rax), %esi
	cmpl	%edx, %esi
	jne	.L10
	testl	%eax, %eax
	je	.L23
	subl	$1, %eax
	leal	-1(%rdx), %esi
	cmpl	%eax, %esi
	jne	.L11
.L21:
	cmpl	%edx, %r8d
	je	.L24
	addl	$1, %edx
	movl	$1, %edi
	subl	$1, %ecx
	jne	.L9
.L22:
	movl	%edx, borys(%rip)
	movl	%eax, alice(%rip)
	jmp	.L5
.L23:
	testb	%dil, %dil
	je	.L4
	movl	%edx, borys(%rip)
	movl	$0, alice(%rip)
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	xorl	%eax, %eax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	testb	%dil, %dil
	je	.L8
	movl	%r8d, borys(%rip)
.L8:
	leaq	.LC2(%rip), %rdi
	movl	%eax, alice(%rip)
	call	puts@PLT
	jmp	.L5
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	borys
	.bss
	.align 4
	.type	borys, @object
	.size	borys, 4
borys:
	.zero	4
	.globl	alice
	.align 4
	.type	alice, @object
	.size	alice, 4
alice:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	inputline
	.align 32
	.type	inputline, @object
	.size	inputline, 100
inputline:
	.zero	100
	.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:
```