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>
int main(void){
    int N;
    
    scanf("%d", &N);
    
    if(N <= 111){
        printf("%d\n", 111);
    }else if(N >= 112 && N <= 222){
        printf("%d\n", 222);
    }else if(N >= 223 && N <= 333){
        printf("%d\n", 333);
    }else if(N >= 334 && N <= 444){
        printf("%d\n", 444);
    }else if(N >= 445 && N <= 555){
        printf("%d\n", 555);
    }else if(N >= 556 && N <= 666){
        printf("%d\n", 666);
    }else if(N >= 667 && N <= 777){
        printf("%d\n", 777);
    }else if(N >= 778 && N <= 888){
        printf("%d\n", 888);
    }else if(N >= 889 && N <= 999){
        printf("%d\n", 999);
    }
    
    
    
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	cmpl	$111, %eax
	jle	.L14
	leal	-112(%rax), %edx
	cmpl	$110, %edx
	jbe	.L15
	leal	-223(%rax), %edx
	cmpl	$110, %edx
	jbe	.L16
	leal	-334(%rax), %edx
	cmpl	$110, %edx
	jbe	.L17
	leal	-445(%rax), %edx
	cmpl	$110, %edx
	jbe	.L18
	leal	-556(%rax), %edx
	cmpl	$110, %edx
	jbe	.L19
	leal	-667(%rax), %edx
	cmpl	$110, %edx
	jbe	.L20
	leal	-778(%rax), %edx
	cmpl	$110, %edx
	jbe	.L21
	subl	$889, %eax
	cmpl	$110, %eax
	ja	.L3
	movl	$999, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L15:
	movl	$222, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	movl	$111, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L18:
	movl	$555, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L16:
	movl	$333, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L17:
	movl	$444, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L21:
	movl	$888, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L19:
	movl	$666, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L20:
	movl	$777, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.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:
```

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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	cmpl	$111, %eax
	jle	.L14
	leal	-112(%rax), %edx
	cmpl	$110, %edx
	jbe	.L15
	leal	-223(%rax), %edx
	cmpl	$110, %edx
	jbe	.L16
	leal	-334(%rax), %edx
	cmpl	$110, %edx
	jbe	.L17
	leal	-445(%rax), %edx
	cmpl	$110, %edx
	jbe	.L18
	leal	-556(%rax), %edx
	cmpl	$110, %edx
	jbe	.L19
	leal	-667(%rax), %edx
	cmpl	$110, %edx
	jbe	.L20
	leal	-778(%rax), %edx
	cmpl	$110, %edx
	jbe	.L21
	subl	$889, %eax
	cmpl	$110, %eax
	ja	.L3
	movl	$999, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L15:
	movl	$222, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	movl	$111, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L18:
	movl	$555, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L16:
	movl	$333, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L17:
	movl	$444, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L21:
	movl	$888, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L19:
	movl	$666, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L20:
	movl	$777, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	cmpl	$111, %eax
	jle	.L14
	leal	-112(%rax), %edx
	cmpl	$110, %edx
	jbe	.L15
	leal	-223(%rax), %edx
	cmpl	$110, %edx
	jbe	.L16
	leal	-334(%rax), %edx
	cmpl	$110, %edx
	jbe	.L17
	leal	-445(%rax), %edx
	cmpl	$110, %edx
	jbe	.L18
	leal	-556(%rax), %edx
	cmpl	$110, %edx
	jbe	.L19
	leal	-667(%rax), %edx
	cmpl	$110, %edx
	jbe	.L20
	leal	-778(%rax), %edx
	cmpl	$110, %edx
	jbe	.L21
	subl	$889, %eax
	cmpl	$110, %eax
	ja	.L3
	movl	$999, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L15:
	movl	$222, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	movl	$111, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L18:
	movl	$555, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L16:
	movl	$333, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L17:
	movl	$444, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L21:
	movl	$888, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L19:
	movl	$666, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L20:
	movl	$777, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.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:
```
```c
#include <stdio.h>
int main(void){
    int N;
    
    scanf("%d", &N);
    
    if(N <= 111){
        printf("%d\n", 111);
    }else if(N >= 112 && N <= 222){
        printf("%d\n", 222);
    }else if(N >= 223 && N <= 333){
        printf("%d\n", 333);
    }else if(N >= 334 && N <= 444){
        printf("%d\n", 444);
    }else if(N >= 445 && N <= 555){
        printf("%d\n", 555);
    }else if(N >= 556 && N <= 666){
        printf("%d\n", 666);
    }else if(N >= 667 && N <= 777){
        printf("%d\n", 777);
    }else if(N >= 778 && N <= 888){
        printf("%d\n", 888);
    }else if(N >= 889 && N <= 999){
        printf("%d\n", 999);
    }
    
    
    
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int main(void){
    int N;
    
    scanf("%d", &N);
    
    if(N <= 111){
        printf("%d\n", 111);
    }else if(N >= 112 && N <= 222){
        printf("%d\n", 222);
    }else if(N >= 223 && N <= 333){
        printf("%d\n", 333);
    }else if(N >= 334 && N <= 444){
        printf("%d\n", 444);
    }else if(N >= 445 && N <= 555){
        printf("%d\n", 555);
    }else if(N >= 556 && N <= 666){
        printf("%d\n", 666);
    }else if(N >= 667 && N <= 777){
        printf("%d\n", 777);
    }else if(N >= 778 && N <= 888){
        printf("%d\n", 888);
    }else if(N >= 889 && N <= 999){
        printf("%d\n", 999);
    }
    
    
    
}
```

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:

426
 101
 638
 268
 457
 000
 985
 846
 198
 706

444
 111
 666
 333
 555
 111
 999
 888
 222
 777

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>
int main(void){
    int N;
    
    scanf("%d", &N);
    
    if(N <= 111){
        printf("%d\n", 111);
    }else if(N >= 112 && N <= 222){
        printf("%d\n", 222);
    }else if(N >= 223 && N <= 333){
        printf("%d\n", 333);
    }else if(N >= 334 && N <= 444){
        printf("%d\n", 444);
    }else if(N >= 445 && N <= 555){
        printf("%d\n", 555);
    }else if(N >= 556 && N <= 666){
        printf("%d\n", 666);
    }else if(N >= 667 && N <= 777){
        printf("%d\n", 777);
    }else if(N >= 778 && N <= 888){
        printf("%d\n", 888);
    }else if(N >= 889 && N <= 999){
        printf("%d\n", 999);
    }
    
    
    
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	cmpl	$111, %eax
	jle	.L14
	leal	-112(%rax), %edx
	cmpl	$110, %edx
	jbe	.L15
	leal	-223(%rax), %edx
	cmpl	$110, %edx
	jbe	.L16
	leal	-334(%rax), %edx
	cmpl	$110, %edx
	jbe	.L17
	leal	-445(%rax), %edx
	cmpl	$110, %edx
	jbe	.L18
	leal	-556(%rax), %edx
	cmpl	$110, %edx
	jbe	.L19
	leal	-667(%rax), %edx
	cmpl	$110, %edx
	jbe	.L20
	leal	-778(%rax), %edx
	cmpl	$110, %edx
	jbe	.L21
	subl	$889, %eax
	cmpl	$110, %eax
	ja	.L3
	movl	$999, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L15:
	movl	$222, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	movl	$111, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L18:
	movl	$555, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L16:
	movl	$333, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L17:
	movl	$444, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L21:
	movl	$888, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L19:
	movl	$666, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L20:
	movl	$777, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.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:
```

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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	cmpl	$111, %eax
	jle	.L14
	leal	-112(%rax), %edx
	cmpl	$110, %edx
	jbe	.L15
	leal	-223(%rax), %edx
	cmpl	$110, %edx
	jbe	.L16
	leal	-334(%rax), %edx
	cmpl	$110, %edx
	jbe	.L17
	leal	-445(%rax), %edx
	cmpl	$110, %edx
	jbe	.L18
	leal	-556(%rax), %edx
	cmpl	$110, %edx
	jbe	.L19
	leal	-667(%rax), %edx
	cmpl	$110, %edx
	jbe	.L20
	leal	-778(%rax), %edx
	cmpl	$110, %edx
	jbe	.L21
	subl	$889, %eax
	cmpl	$110, %eax
	ja	.L3
	movl	$999, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L15:
	movl	$222, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	movl	$111, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L18:
	movl	$555, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L16:
	movl	$333, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L17:
	movl	$444, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L21:
	movl	$888, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L19:
	movl	$666, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.L20:
	movl	$777, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L3
.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:
```