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

```c
int n,a,b,M[1<<20]={1},i,k;
main(){
    scanf("%d%d%d",&n,&a,&b);
    if(n>1L*a*b||n<a+b-1) puts("-1");
    else{
        int N=b,C=n;
        while(1){
            for(i=0;i<b;++i) {
                if(a==C){
                    for(k=0;k<=n;++k) if(!M[k]) printf("%d ",k);
                    exit(0);
                }
                C--;printf("%d ",N-i);M[N-i]=1;
            }
            a--;
            N=n<N+b?n:N+b;
        }
    }
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	M
	.data
	.align 32
	.type	M, @object
	.size	M, 4194304
M:
	.long	1
	.zero	4194300
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d "
	.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	$16, %rsp
	leaq	b(%rip), %rax
	movq	%rax, %rcx
	leaq	a(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	movslq	%eax, %rdx
	movl	a(%rip), %eax
	movslq	%eax, %rcx
	movl	b(%rip), %eax
	cltq
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jg	.L2
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	addl	%edx, %eax
	leal	-1(%rax), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L3
.L2:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L3:
	movl	b(%rip), %eax
	movl	%eax, -8(%rbp)
	movl	n(%rip), %eax
	movl	%eax, -4(%rbp)
.L11:
	movl	$0, i(%rip)
	jmp	.L5
.L10:
	movl	a(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L6
	movl	$0, k(%rip)
	jmp	.L7
.L9:
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	M(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L8
	movl	k(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L7:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	$0, %edi
	call	exit@PLT
.L6:
	subl	$1, -4(%rbp)
	movl	i(%rip), %edx
	movl	-8(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	i(%rip), %edx
	movl	-8(%rbp), %eax
	subl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	M(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L5:
	movl	i(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	jl	.L10
	movl	a(%rip), %eax
	subl	$1, %eax
	movl	%eax, a(%rip)
	movl	b(%rip), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L11
.L13:
	movl	$0, %eax
	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	"%d%d%d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	b(%rip), %rcx
	xorl	%eax, %eax
	leaq	a(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	scanf@PLT
	movslq	a(%rip), %rax
	movslq	b(%rip), %rsi
	movslq	n(%rip), %rcx
	movq	%rax, %rdx
	imulq	%rsi, %rax
	cmpq	%rax, %rcx
	jg	.L2
	leal	-1(%rdx,%rsi), %eax
	movq	%rcx, %r12
	movq	%rsi, %r13
	cmpl	%eax, %ecx
	jl	.L2
	leaq	.LC2(%rip), %rbp
	leaq	M(%rip), %rbx
.L3:
	movl	$0, i(%rip)
	movl	b(%rip), %esi
	testl	%esi, %esi
	jle	.L4
	xorl	%eax, %eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r13d, %esi
	movq	%rbp, %rdi
	subl	$1, %r12d
	subl	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
	movl	i(%rip), %eax
	movl	%r13d, %edx
	subl	%eax, %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	movl	%eax, i(%rip)
	movl	$1, (%rbx,%rdx,4)
	movl	b(%rip), %edx
	cmpl	%edx, %eax
	jge	.L21
.L10:
	cmpl	%r12d, a(%rip)
	jne	.L5
	movl	n(%rip), %edx
	xorl	%esi, %esi
	movl	$0, k(%rip)
	leaq	M(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	testl	%edx, %edx
	js	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	%esi, %rax
	movl	(%rbx,%rax,4), %ecx
	testl	%ecx, %ecx
	je	.L22
	addl	$1, %esi
	movl	%esi, k(%rip)
	cmpl	%edx, %esi
	jle	.L6
.L9:
	xorl	%edi, %edi
	call	exit@PLT
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	popq	%rdx
	.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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	k(%rip), %eax
	movl	n(%rip), %edx
	leal	1(%rax), %esi
	movl	%esi, k(%rip)
	cmpl	%edx, %esi
	jle	.L6
	jmp	.L9
.L21:
	addl	%r13d, %edx
	movl	n(%rip), %r13d
	subl	$1, a(%rip)
	cmpl	%r13d, %edx
	cmovle	%edx, %r13d
	jmp	.L3
.L4:
.L12:
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	k
	.bss
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	M
	.data
	.align 32
	.type	M, @object
	.size	M, 4194304
M:
	.long	1
	.zero	4194300
	.globl	b
	.bss
	.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	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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	"%d%d%d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	b(%rip), %rcx
	xorl	%eax, %eax
	leaq	a(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	scanf@PLT
	movslq	a(%rip), %rax
	movslq	b(%rip), %rsi
	movslq	n(%rip), %rcx
	movq	%rax, %rdx
	imulq	%rsi, %rax
	cmpq	%rax, %rcx
	jg	.L2
	leal	-1(%rdx,%rsi), %eax
	movq	%rcx, %r12
	movq	%rsi, %r13
	cmpl	%eax, %ecx
	jl	.L2
	leaq	.LC2(%rip), %rbp
	leaq	M(%rip), %rbx
.L3:
	movl	$0, i(%rip)
	movl	b(%rip), %esi
	testl	%esi, %esi
	jle	.L4
	xorl	%eax, %eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%r13d, %esi
	movq	%rbp, %rdi
	subl	$1, %r12d
	subl	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
	movl	i(%rip), %eax
	movl	%r13d, %edx
	subl	%eax, %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	movl	%eax, i(%rip)
	movl	$1, (%rbx,%rdx,4)
	movl	b(%rip), %edx
	cmpl	%edx, %eax
	jge	.L21
.L10:
	cmpl	%r12d, a(%rip)
	jne	.L5
	movl	n(%rip), %edx
	xorl	%esi, %esi
	movl	$0, k(%rip)
	leaq	M(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	testl	%edx, %edx
	js	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	movslq	%esi, %rax
	movl	(%rbx,%rax,4), %ecx
	testl	%ecx, %ecx
	je	.L22
	addl	$1, %esi
	movl	%esi, k(%rip)
	cmpl	%edx, %esi
	jle	.L6
.L9:
	xorl	%edi, %edi
	call	exit@PLT
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	popq	%rdx
	.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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	k(%rip), %eax
	movl	n(%rip), %edx
	leal	1(%rax), %esi
	movl	%esi, k(%rip)
	cmpl	%edx, %esi
	jle	.L6
	jmp	.L9
.L21:
	addl	%r13d, %edx
	movl	n(%rip), %r13d
	subl	$1, a(%rip)
	cmpl	%r13d, %edx
	cmovle	%edx, %r13d
	jmp	.L3
.L4:
.L12:
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	k
	.bss
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	M
	.data
	.align 32
	.type	M, @object
	.size	M, 4194304
M:
	.long	1
	.zero	4194300
	.globl	b
	.bss
	.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	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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:

int n,a,b,M[1<<20]={1},i,k;
main(){
    scanf("%d%d%d",&n,&a,&b);
    if(n>1L*a*b||n<a+b-1) puts("-1");
    else{
        int N=b,C=n;
        while(1){
            for(i=0;i<b;++i) {
                if(a==C){
                    for(k=0;k<=n;++k) if(!M[k]) printf("%d ",k);
                    exit(0);
                }
                C--;printf("%d ",N-i);M[N-i]=1;
            }
            a--;
            N=n<N+b?n:N+b;
        }
    }
}

7 0 1
 1 1 1
 6 1 6
 6 3 3
 8 2 4
 2 1 2
 4 2 2
 3 1 3
 3 2 2
 566480 300000 300000

-1
 1  6 5 4 3 2 1  3 2 1 6 4 5  4 3 2 1 8 7 6 5  2 1  2 1 4 3  3 2 1  2 1 3  -1

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

```c
int n,a,b,M[1<<20]={1},i,k;
main(){
    scanf("%d%d%d",&n,&a,&b);
    if(n>1L*a*b||n<a+b-1) puts("-1");
    else{
        int N=b,C=n;
        while(1){
            for(i=0;i<b;++i) {
                if(a==C){
                    for(k=0;k<=n;++k) if(!M[k]) printf("%d ",k);
                    exit(0);
                }
                C--;printf("%d ",N-i);M[N-i]=1;
            }
            a--;
            N=n<N+b?n:N+b;
        }
    }
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	M
	.data
	.align 32
	.type	M, @object
	.size	M, 4194304
M:
	.long	1
	.zero	4194300
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d "
	.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	$16, %rsp
	leaq	b(%rip), %rax
	movq	%rax, %rcx
	leaq	a(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	movslq	%eax, %rdx
	movl	a(%rip), %eax
	movslq	%eax, %rcx
	movl	b(%rip), %eax
	cltq
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jg	.L2
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	addl	%edx, %eax
	leal	-1(%rax), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L3
.L2:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L3:
	movl	b(%rip), %eax
	movl	%eax, -8(%rbp)
	movl	n(%rip), %eax
	movl	%eax, -4(%rbp)
.L11:
	movl	$0, i(%rip)
	jmp	.L5
.L10:
	movl	a(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L6
	movl	$0, k(%rip)
	jmp	.L7
.L9:
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	M(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L8
	movl	k(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L7:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	$0, %edi
	call	exit@PLT
.L6:
	subl	$1, -4(%rbp)
	movl	i(%rip), %edx
	movl	-8(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	i(%rip), %edx
	movl	-8(%rbp), %eax
	subl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	M(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L5:
	movl	i(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	jl	.L10
	movl	a(%rip), %eax
	subl	$1, %eax
	movl	%eax, a(%rip)
	movl	b(%rip), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L11
.L13:
	movl	$0, %eax
	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
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	M
	.data
	.align 32
	.type	M, @object
	.size	M, 4194304
M:
	.long	1
	.zero	4194300
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d "
	.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	$16, %rsp
	leaq	b(%rip), %rax
	movq	%rax, %rcx
	leaq	a(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	movslq	%eax, %rdx
	movl	a(%rip), %eax
	movslq	%eax, %rcx
	movl	b(%rip), %eax
	cltq
	imulq	%rcx, %rax
	cmpq	%rax, %rdx
	jg	.L2
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	addl	%edx, %eax
	leal	-1(%rax), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L3
.L2:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L13
.L3:
	movl	b(%rip), %eax
	movl	%eax, -8(%rbp)
	movl	n(%rip), %eax
	movl	%eax, -4(%rbp)
.L11:
	movl	$0, i(%rip)
	jmp	.L5
.L10:
	movl	a(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jne	.L6
	movl	$0, k(%rip)
	jmp	.L7
.L9:
	movl	k(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	M(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L8
	movl	k(%rip), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L7:
	movl	k(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L9
	movl	$0, %edi
	call	exit@PLT
.L6:
	subl	$1, -4(%rbp)
	movl	i(%rip), %edx
	movl	-8(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	i(%rip), %edx
	movl	-8(%rbp), %eax
	subl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	M(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L5:
	movl	i(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	jl	.L10
	movl	a(%rip), %eax
	subl	$1, %eax
	movl	%eax, a(%rip)
	movl	b(%rip), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L11
.L13:
	movl	$0, %eax
	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:
