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 a,b,k,i;
	scanf("%d%d%d",&a,&b,&k);
	i=0;
	while(a+i<b && i<k){
		printf("%d\n",a+i);
		i++;
	}
	while(a+i<b-k+1){
		i++;
	}
	while(a+i<=b){
		printf("%d\n",a+i);
		i++;
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	16(%rsp), %eax
	movl	%edx, %ecx
	cmpl	%eax, %edx
	jge	.L3
	movl	%edx, %r8d
	leaq	.LC1(%rip), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r8d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	addl	$1, %ebx
	movl	16(%rsp), %eax
	leal	(%rdx,%rbx), %ecx
	movl	%ecx, %r8d
	cmpl	%eax, %ecx
	jge	.L3
.L2:
	cmpl	%ebx, 20(%rsp)
	jg	.L4
	leal	(%rdx,%rbx), %ecx
.L3:
	subl	20(%rsp), %eax
	cmpl	%ecx, %eax
	jl	.L5
	leal	1(%rbx,%rdx), %esi
	movl	%eax, %ecx
	leal	1(%rax), %r8d
	movl	$1, %r9d
	subl	%esi, %ecx
	cmpl	%r8d, %esi
	leal	2(%rcx), %edi
	cmovg	%r9d, %edi
	addl	$1, %ecx
	cmpl	$2, %ecx
	jbe	.L13
	cmpl	%r8d, %esi
	jg	.L13
	movd	%ebx, %xmm4
	movl	%edi, %esi
	movdqa	.LC3(%rip), %xmm3
	xorl	%ecx, %ecx
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC4(%rip), %xmm2
	paddd	.LC2(%rip), %xmm1
	shrl	$2, %esi
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %ecx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%esi, %ecx
	jne	.L7
	movl	%edi, %esi
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %esi
	leal	(%rsi,%rbx), %ecx
	movd	%xmm0, %ebx
	cmpl	%esi, %edi
	je	.L5
.L6:
	leal	1(%rcx), %ebx
	leal	(%rbx,%rdx), %esi
	cmpl	%eax, %esi
	jg	.L5
	leal	2(%rcx), %ebx
	leal	(%rdx,%rbx), %esi
	cmpl	%esi, %eax
	jl	.L5
	leal	3(%rcx), %ebx
.L5:
	addl	%ebx, %edx
	cmpl	%edx, 16(%rsp)
	jl	.L9
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	addl	%ebx, %edx
	cmpl	16(%rsp), %edx
	jle	.L10
.L9:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	%ebx, %ecx
	jmp	.L6
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	16(%rsp), %eax
	movl	%edx, %ecx
	cmpl	%eax, %edx
	jge	.L3
	movl	%edx, %r8d
	leaq	.LC1(%rip), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r8d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	addl	$1, %ebx
	movl	16(%rsp), %eax
	leal	(%rdx,%rbx), %ecx
	movl	%ecx, %r8d
	cmpl	%eax, %ecx
	jge	.L3
.L2:
	cmpl	%ebx, 20(%rsp)
	jg	.L4
	leal	(%rdx,%rbx), %ecx
.L3:
	subl	20(%rsp), %eax
	cmpl	%ecx, %eax
	jl	.L5
	leal	1(%rbx,%rdx), %esi
	movl	%eax, %ecx
	leal	1(%rax), %r8d
	movl	$1, %r9d
	subl	%esi, %ecx
	cmpl	%r8d, %esi
	leal	2(%rcx), %edi
	cmovg	%r9d, %edi
	addl	$1, %ecx
	cmpl	$2, %ecx
	jbe	.L13
	cmpl	%r8d, %esi
	jg	.L13
	movd	%ebx, %xmm4
	movl	%edi, %esi
	movdqa	.LC3(%rip), %xmm3
	xorl	%ecx, %ecx
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC4(%rip), %xmm2
	paddd	.LC2(%rip), %xmm1
	shrl	$2, %esi
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %ecx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%esi, %ecx
	jne	.L7
	movl	%edi, %esi
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %esi
	leal	(%rsi,%rbx), %ecx
	movd	%xmm0, %ebx
	cmpl	%esi, %edi
	je	.L5
.L6:
	leal	1(%rcx), %ebx
	leal	(%rbx,%rdx), %esi
	cmpl	%eax, %esi
	jg	.L5
	leal	2(%rcx), %ebx
	leal	(%rdx,%rbx), %esi
	cmpl	%esi, %eax
	jl	.L5
	leal	3(%rcx), %ebx
.L5:
	addl	%ebx, %edx
	cmpl	%edx, 16(%rsp)
	jl	.L9
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	addl	%ebx, %edx
	cmpl	16(%rsp), %edx
	jle	.L10
.L9:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	%ebx, %ecx
	jmp	.L6
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	16(%rsp), %eax
	movl	%edx, %ecx
	cmpl	%eax, %edx
	jge	.L3
	movl	%edx, %r8d
	leaq	.LC1(%rip), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r8d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	addl	$1, %ebx
	movl	16(%rsp), %eax
	leal	(%rdx,%rbx), %ecx
	movl	%ecx, %r8d
	cmpl	%eax, %ecx
	jge	.L3
.L2:
	cmpl	%ebx, 20(%rsp)
	jg	.L4
	leal	(%rdx,%rbx), %ecx
.L3:
	subl	20(%rsp), %eax
	cmpl	%ecx, %eax
	jl	.L5
	leal	1(%rbx,%rdx), %esi
	movl	%eax, %ecx
	leal	1(%rax), %r8d
	movl	$1, %r9d
	subl	%esi, %ecx
	cmpl	%r8d, %esi
	leal	2(%rcx), %edi
	cmovg	%r9d, %edi
	addl	$1, %ecx
	cmpl	$2, %ecx
	jbe	.L13
	cmpl	%r8d, %esi
	jg	.L13
	movd	%ebx, %xmm4
	movl	%edi, %esi
	movdqa	.LC3(%rip), %xmm3
	xorl	%ecx, %ecx
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC4(%rip), %xmm2
	paddd	.LC2(%rip), %xmm1
	shrl	$2, %esi
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %ecx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%esi, %ecx
	jne	.L7
	movl	%edi, %esi
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %esi
	leal	(%rsi,%rbx), %ecx
	movd	%xmm0, %ebx
	cmpl	%esi, %edi
	je	.L5
.L6:
	leal	1(%rcx), %ebx
	leal	(%rbx,%rdx), %esi
	cmpl	%eax, %esi
	jg	.L5
	leal	2(%rcx), %ebx
	leal	(%rdx,%rbx), %esi
	cmpl	%esi, %eax
	jl	.L5
	leal	3(%rcx), %ebx
.L5:
	addl	%ebx, %edx
	cmpl	%edx, 16(%rsp)
	jl	.L9
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	addl	%ebx, %edx
	cmpl	16(%rsp), %edx
	jle	.L10
.L9:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	%ebx, %ecx
	jmp	.L6
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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 a,b,k,i;
	scanf("%d%d%d",&a,&b,&k);
	i=0;
	while(a+i<b && i<k){
		printf("%d\n",a+i);
		i++;
	}
	while(a+i<b-k+1){
		i++;
	}
	while(a+i<=b){
		printf("%d\n",a+i);
		i++;
	}
	return 0;
}```
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 a,b,k,i;
	scanf("%d%d%d",&a,&b,&k);
	i=0;
	while(a+i<b && i<k){
		printf("%d\n",a+i);
		i++;
	}
	while(a+i<b-k+1){
		i++;
	}
	while(a+i<=b){
		printf("%d\n",a+i);
		i++;
	}
	return 0;
}```

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:

2 9 110
 3 4 2
 4 11 3
 2 5 110
 0 11 3
 2 6 110
 1 4 4
 0 0 3
 2 12 110
 1 1 4

2
3
4
5
6
7
8
9
 3
4
 4
5
6
9
10
11
 2
3
4
5
 0
1
2
9
10
11
 2
3
4
5
6
 1
2
3
4
 0
 2
3
4
5
6
7
8
9
10
11
12
 1

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 a,b,k,i;
	scanf("%d%d%d",&a,&b,&k);
	i=0;
	while(a+i<b && i<k){
		printf("%d\n",a+i);
		i++;
	}
	while(a+i<b-k+1){
		i++;
	}
	while(a+i<=b){
		printf("%d\n",a+i);
		i++;
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	16(%rsp), %eax
	movl	%edx, %ecx
	cmpl	%eax, %edx
	jge	.L3
	movl	%edx, %r8d
	leaq	.LC1(%rip), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r8d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	addl	$1, %ebx
	movl	16(%rsp), %eax
	leal	(%rdx,%rbx), %ecx
	movl	%ecx, %r8d
	cmpl	%eax, %ecx
	jge	.L3
.L2:
	cmpl	%ebx, 20(%rsp)
	jg	.L4
	leal	(%rdx,%rbx), %ecx
.L3:
	subl	20(%rsp), %eax
	cmpl	%ecx, %eax
	jl	.L5
	leal	1(%rbx,%rdx), %esi
	movl	%eax, %ecx
	leal	1(%rax), %r8d
	movl	$1, %r9d
	subl	%esi, %ecx
	cmpl	%r8d, %esi
	leal	2(%rcx), %edi
	cmovg	%r9d, %edi
	addl	$1, %ecx
	cmpl	$2, %ecx
	jbe	.L13
	cmpl	%r8d, %esi
	jg	.L13
	movd	%ebx, %xmm4
	movl	%edi, %esi
	movdqa	.LC3(%rip), %xmm3
	xorl	%ecx, %ecx
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC4(%rip), %xmm2
	paddd	.LC2(%rip), %xmm1
	shrl	$2, %esi
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %ecx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%esi, %ecx
	jne	.L7
	movl	%edi, %esi
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %esi
	leal	(%rsi,%rbx), %ecx
	movd	%xmm0, %ebx
	cmpl	%esi, %edi
	je	.L5
.L6:
	leal	1(%rcx), %ebx
	leal	(%rbx,%rdx), %esi
	cmpl	%eax, %esi
	jg	.L5
	leal	2(%rcx), %ebx
	leal	(%rdx,%rbx), %esi
	cmpl	%esi, %eax
	jl	.L5
	leal	3(%rcx), %ebx
.L5:
	addl	%ebx, %edx
	cmpl	%edx, 16(%rsp)
	jl	.L9
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	addl	%ebx, %edx
	cmpl	16(%rsp), %edx
	jle	.L10
.L9:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	%ebx, %ecx
	jmp	.L6
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	16(%rsp), %eax
	movl	%edx, %ecx
	cmpl	%eax, %edx
	jge	.L3
	movl	%edx, %r8d
	leaq	.LC1(%rip), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%r8d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	addl	$1, %ebx
	movl	16(%rsp), %eax
	leal	(%rdx,%rbx), %ecx
	movl	%ecx, %r8d
	cmpl	%eax, %ecx
	jge	.L3
.L2:
	cmpl	%ebx, 20(%rsp)
	jg	.L4
	leal	(%rdx,%rbx), %ecx
.L3:
	subl	20(%rsp), %eax
	cmpl	%ecx, %eax
	jl	.L5
	leal	1(%rbx,%rdx), %esi
	movl	%eax, %ecx
	leal	1(%rax), %r8d
	movl	$1, %r9d
	subl	%esi, %ecx
	cmpl	%r8d, %esi
	leal	2(%rcx), %edi
	cmovg	%r9d, %edi
	addl	$1, %ecx
	cmpl	$2, %ecx
	jbe	.L13
	cmpl	%r8d, %esi
	jg	.L13
	movd	%ebx, %xmm4
	movl	%edi, %esi
	movdqa	.LC3(%rip), %xmm3
	xorl	%ecx, %ecx
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC4(%rip), %xmm2
	paddd	.LC2(%rip), %xmm1
	shrl	$2, %esi
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm0
	addl	$1, %ecx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%esi, %ecx
	jne	.L7
	movl	%edi, %esi
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %esi
	leal	(%rsi,%rbx), %ecx
	movd	%xmm0, %ebx
	cmpl	%esi, %edi
	je	.L5
.L6:
	leal	1(%rcx), %ebx
	leal	(%rbx,%rdx), %esi
	cmpl	%eax, %esi
	jg	.L5
	leal	2(%rcx), %ebx
	leal	(%rdx,%rbx), %esi
	cmpl	%esi, %eax
	jl	.L5
	leal	3(%rcx), %ebx
.L5:
	addl	%ebx, %edx
	cmpl	%edx, 16(%rsp)
	jl	.L9
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__printf_chk@PLT
	movl	12(%rsp), %edx
	addl	%ebx, %edx
	cmpl	16(%rsp), %edx
	jle	.L10
.L9:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	movl	%ebx, %ecx
	jmp	.L6
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```