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<stdbool.h>
#define min(a, b) ((a) > (b) ? (b) : (a))
#define ll long long

int n, m, a, b, c, d, e[5555]={};

int main(){
    for(int j=1; j<5555; j++)e[j] = 1001001001;
    scanf("%d%d", &n, &m);
    for(int i=0; i<m; i++){
        scanf("%d%d", &a, &b);
        d = 0;
        for(int j=0; j<b; j++){
            scanf("%d", &c);
            d |= (1<<(c-1));
        }
        for(int j=0; j<(1<<n); j++){
            e[j|d] = min(e[j|d], e[j] + a);
        }
    }
    if(e[(1<<n)-1] == 1001001001)e[(1<<n)-1] = -1;
    printf("%d\n", e[(1<<n)-1]);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d%d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	4+e(%rip), %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	22208(%rax), %rdx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	.p2align 4,,10
	.p2align 3
.L2:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L2
	movq	.LC1(%rip), %rax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	movq	%rax, 22212+e(%rip)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	testl	%edx, %edx
	jle	.L3
	xorl	%r13d, %r13d
	leaq	e(%rip), %r15
	leaq	c(%rip), %r12
	movl	$1, %ebx
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	b(%rip), %rdx
	leaq	a(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	b(%rip), %eax
	movl	$0, d(%rip)
	testl	%eax, %eax
	jle	.L12
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	c(%rip), %eax
	movl	%ebx, %edx
	leal	-1(%rax), %ecx
	sall	%cl, %edx
	orl	d(%rip), %edx
	cmpl	%r14d, b(%rip)
	movl	%edx, d(%rip)
	jg	.L5
.L4:
	movl	n(%rip), %ecx
	movl	%ebx, %r10d
	sall	%cl, %r10d
	testl	%r10d, %r10d
	jle	.L10
	movl	a(%rip), %r9d
	movslq	%r10d, %r8
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edx, %ecx
	movl	(%r15,%rax,4), %esi
	orl	%eax, %ecx
	movslq	%ecx, %rcx
	addl	%r9d, %esi
	movl	(%r15,%rcx,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addq	$1, %rax
	movl	%esi, (%r15,%rcx,4)
	cmpq	%rax, %r8
	jne	.L9
.L10:
	addl	$1, %r13d
	cmpl	%r13d, m(%rip)
	jg	.L7
.L8:
	leal	-1(%r10), %eax
	cltq
	cmpl	$1001001001, (%r15,%rax,4)
	jne	.L11
	movl	$-1, (%r15,%rax,4)
.L11:
	movl	(%r15,%rax,4), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L4
.L3:
	movl	n(%rip), %ecx
	movl	$1, %r10d
	leaq	e(%rip), %r15
	sall	%cl, %r10d
	jmp	.L8
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	e
	.bss
	.align 32
	.type	e, @object
	.size	e, 22220
e:
	.zero	22220
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.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	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1001001001
	.long	1001001001
	.long	1001001001
	.long	1001001001
	.set	.LC1,.LC0
	.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
.LC2:
	.string	"%d%d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	4+e(%rip), %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	22208(%rax), %rdx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	.p2align 4,,10
	.p2align 3
.L2:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L2
	movq	.LC1(%rip), %rax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	movq	%rax, 22212+e(%rip)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	testl	%edx, %edx
	jle	.L3
	xorl	%r13d, %r13d
	leaq	e(%rip), %r15
	leaq	c(%rip), %r12
	movl	$1, %ebx
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	b(%rip), %rdx
	leaq	a(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	b(%rip), %eax
	movl	$0, d(%rip)
	testl	%eax, %eax
	jle	.L12
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	c(%rip), %eax
	movl	%ebx, %edx
	leal	-1(%rax), %ecx
	sall	%cl, %edx
	orl	d(%rip), %edx
	cmpl	%r14d, b(%rip)
	movl	%edx, d(%rip)
	jg	.L5
.L4:
	movl	n(%rip), %ecx
	movl	%ebx, %r10d
	sall	%cl, %r10d
	testl	%r10d, %r10d
	jle	.L10
	movl	a(%rip), %r9d
	movslq	%r10d, %r8
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edx, %ecx
	movl	(%r15,%rax,4), %esi
	orl	%eax, %ecx
	movslq	%ecx, %rcx
	addl	%r9d, %esi
	movl	(%r15,%rcx,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addq	$1, %rax
	movl	%esi, (%r15,%rcx,4)
	cmpq	%rax, %r8
	jne	.L9
.L10:
	addl	$1, %r13d
	cmpl	%r13d, m(%rip)
	jg	.L7
.L8:
	leal	-1(%r10), %eax
	cltq
	cmpl	$1001001001, (%r15,%rax,4)
	jne	.L11
	movl	$-1, (%r15,%rax,4)
.L11:
	movl	(%r15,%rax,4), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L4
.L3:
	movl	n(%rip), %ecx
	movl	$1, %r10d
	leaq	e(%rip), %r15
	sall	%cl, %r10d
	jmp	.L8
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	e
	.bss
	.align 32
	.type	e, @object
	.size	e, 22220
e:
	.zero	22220
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.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	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1001001001
	.long	1001001001
	.long	1001001001
	.long	1001001001
	.set	.LC1,.LC0
	.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
.LC2:
	.string	"%d%d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	4+e(%rip), %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	22208(%rax), %rdx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	.p2align 4,,10
	.p2align 3
.L2:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L2
	movq	.LC1(%rip), %rax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	movq	%rax, 22212+e(%rip)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	testl	%edx, %edx
	jle	.L3
	xorl	%r13d, %r13d
	leaq	e(%rip), %r15
	leaq	c(%rip), %r12
	movl	$1, %ebx
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	b(%rip), %rdx
	leaq	a(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	b(%rip), %eax
	movl	$0, d(%rip)
	testl	%eax, %eax
	jle	.L12
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	c(%rip), %eax
	movl	%ebx, %edx
	leal	-1(%rax), %ecx
	sall	%cl, %edx
	orl	d(%rip), %edx
	cmpl	%r14d, b(%rip)
	movl	%edx, d(%rip)
	jg	.L5
.L4:
	movl	n(%rip), %ecx
	movl	%ebx, %r10d
	sall	%cl, %r10d
	testl	%r10d, %r10d
	jle	.L10
	movl	a(%rip), %r9d
	movslq	%r10d, %r8
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edx, %ecx
	movl	(%r15,%rax,4), %esi
	orl	%eax, %ecx
	movslq	%ecx, %rcx
	addl	%r9d, %esi
	movl	(%r15,%rcx,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addq	$1, %rax
	movl	%esi, (%r15,%rcx,4)
	cmpq	%rax, %r8
	jne	.L9
.L10:
	addl	$1, %r13d
	cmpl	%r13d, m(%rip)
	jg	.L7
.L8:
	leal	-1(%r10), %eax
	cltq
	cmpl	$1001001001, (%r15,%rax,4)
	jne	.L11
	movl	$-1, (%r15,%rax,4)
.L11:
	movl	(%r15,%rax,4), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L4
.L3:
	movl	n(%rip), %ecx
	movl	$1, %r10d
	leaq	e(%rip), %r15
	sall	%cl, %r10d
	jmp	.L8
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	e
	.bss
	.align 32
	.type	e, @object
	.size	e, 22220
e:
	.zero	22220
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.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	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1001001001
	.long	1001001001
	.long	1001001001
	.long	1001001001
	.set	.LC1,.LC0
	.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<stdbool.h>
#define min(a, b) ((a) > (b) ? (b) : (a))
#define ll long long

int n, m, a, b, c, d, e[5555]={};

int main(){
    for(int j=1; j<5555; j++)e[j] = 1001001001;
    scanf("%d%d", &n, &m);
    for(int i=0; i<m; i++){
        scanf("%d%d", &a, &b);
        d = 0;
        for(int j=0; j<b; j++){
            scanf("%d", &c);
            d |= (1<<(c-1));
        }
        for(int j=0; j<(1<<n); j++){
            e[j|d] = min(e[j|d], e[j] + a);
        }
    }
    if(e[(1<<n)-1] == 1001001001)e[(1<<n)-1] = -1;
    printf("%d\n", e[(1<<n)-1]);
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdbool.h>
#define min(a, b) ((a) > (b) ? (b) : (a))
#define ll long long

int n, m, a, b, c, d, e[5555]={};

int main(){
    for(int j=1; j<5555; j++)e[j] = 1001001001;
    scanf("%d%d", &n, &m);
    for(int i=0; i<m; i++){
        scanf("%d%d", &a, &b);
        d = 0;
        for(int j=0; j<b; j++){
            scanf("%d", &c);
            d |= (1<<(c-1));
        }
        for(int j=0; j<(1<<n); j++){
            e[j|d] = min(e[j|d], e[j] + a);
        }
    }
    if(e[(1<<n)-1] == 1001001001)e[(1<<n)-1] = -1;
    printf("%d\n", e[(1<<n)-1]);
    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:

4 0
67786 3
1 3 4
3497 1
2
44908 3
2 3 4
2156 3
2 3 4
26230 1
2
86918 1
3
 2 3
10 1
1
15 1
2
29 2
1 2
 2 3
10 1
1
28 1
2
30 2
1 2
 0 0
25124 5
0 6 9
6178 0
0
10169 0
1 -1 4
2156 3
2 3 7
26230 1
2
14402 1
3
 4 6
67786 3
1 3 4
3497 1
2
44908 3
2 3 4
2156 3
2 3 4
41097 1
2
86918 1
3
 2 3
10 1
1
15 1
2
21 2
1 2
 12 1
100000 1
1
 4 0
67786 3
0 3 4
3497 1
2
44908 3
2 3 4
2156 3
2 3 4
26230 1
2
86918 1
3
 12 1
100010 1
1
 4 0
67786 3
0 3 5
3497 1
2
44908 3
2 3 4
2156 3
2 3 4
26230 1
2
86918 1
3

-1
 25
 30
 0
 69942
 21
 -1
 -1
 -1
 -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>
#include<stdbool.h>
#define min(a, b) ((a) > (b) ? (b) : (a))
#define ll long long

int n, m, a, b, c, d, e[5555]={};

int main(){
    for(int j=1; j<5555; j++)e[j] = 1001001001;
    scanf("%d%d", &n, &m);
    for(int i=0; i<m; i++){
        scanf("%d%d", &a, &b);
        d = 0;
        for(int j=0; j<b; j++){
            scanf("%d", &c);
            d |= (1<<(c-1));
        }
        for(int j=0; j<(1<<n); j++){
            e[j|d] = min(e[j|d], e[j] + a);
        }
    }
    if(e[(1<<n)-1] == 1001001001)e[(1<<n)-1] = -1;
    printf("%d\n", e[(1<<n)-1]);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d%d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	4+e(%rip), %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	22208(%rax), %rdx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	.p2align 4,,10
	.p2align 3
.L2:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L2
	movq	.LC1(%rip), %rax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	movq	%rax, 22212+e(%rip)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	testl	%edx, %edx
	jle	.L3
	xorl	%r13d, %r13d
	leaq	e(%rip), %r15
	leaq	c(%rip), %r12
	movl	$1, %ebx
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	b(%rip), %rdx
	leaq	a(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	b(%rip), %eax
	movl	$0, d(%rip)
	testl	%eax, %eax
	jle	.L12
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	c(%rip), %eax
	movl	%ebx, %edx
	leal	-1(%rax), %ecx
	sall	%cl, %edx
	orl	d(%rip), %edx
	cmpl	%r14d, b(%rip)
	movl	%edx, d(%rip)
	jg	.L5
.L4:
	movl	n(%rip), %ecx
	movl	%ebx, %r10d
	sall	%cl, %r10d
	testl	%r10d, %r10d
	jle	.L10
	movl	a(%rip), %r9d
	movslq	%r10d, %r8
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edx, %ecx
	movl	(%r15,%rax,4), %esi
	orl	%eax, %ecx
	movslq	%ecx, %rcx
	addl	%r9d, %esi
	movl	(%r15,%rcx,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addq	$1, %rax
	movl	%esi, (%r15,%rcx,4)
	cmpq	%rax, %r8
	jne	.L9
.L10:
	addl	$1, %r13d
	cmpl	%r13d, m(%rip)
	jg	.L7
.L8:
	leal	-1(%r10), %eax
	cltq
	cmpl	$1001001001, (%r15,%rax,4)
	jne	.L11
	movl	$-1, (%r15,%rax,4)
.L11:
	movl	(%r15,%rax,4), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L4
.L3:
	movl	n(%rip), %ecx
	movl	$1, %r10d
	leaq	e(%rip), %r15
	sall	%cl, %r10d
	jmp	.L8
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	e
	.bss
	.align 32
	.type	e, @object
	.size	e, 22220
e:
	.zero	22220
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.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	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1001001001
	.long	1001001001
	.long	1001001001
	.long	1001001001
	.set	.LC1,.LC0
	.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
.LC2:
	.string	"%d%d"
.LC3:
	.string	"%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	4+e(%rip), %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	22208(%rax), %rdx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	movdqa	.LC0(%rip), %xmm0
	.p2align 4,,10
	.p2align 3
.L2:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L2
	movq	.LC1(%rip), %rax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	movq	%rax, 22212+e(%rip)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edx
	testl	%edx, %edx
	jle	.L3
	xorl	%r13d, %r13d
	leaq	e(%rip), %r15
	leaq	c(%rip), %r12
	movl	$1, %ebx
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	b(%rip), %rdx
	leaq	a(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	b(%rip), %eax
	movl	$0, d(%rip)
	testl	%eax, %eax
	jle	.L12
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	c(%rip), %eax
	movl	%ebx, %edx
	leal	-1(%rax), %ecx
	sall	%cl, %edx
	orl	d(%rip), %edx
	cmpl	%r14d, b(%rip)
	movl	%edx, d(%rip)
	jg	.L5
.L4:
	movl	n(%rip), %ecx
	movl	%ebx, %r10d
	sall	%cl, %r10d
	testl	%r10d, %r10d
	jle	.L10
	movl	a(%rip), %r9d
	movslq	%r10d, %r8
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edx, %ecx
	movl	(%r15,%rax,4), %esi
	orl	%eax, %ecx
	movslq	%ecx, %rcx
	addl	%r9d, %esi
	movl	(%r15,%rcx,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addq	$1, %rax
	movl	%esi, (%r15,%rcx,4)
	cmpq	%rax, %r8
	jne	.L9
.L10:
	addl	$1, %r13d
	cmpl	%r13d, m(%rip)
	jg	.L7
.L8:
	leal	-1(%r10), %eax
	cltq
	cmpl	$1001001001, (%r15,%rax,4)
	jne	.L11
	movl	$-1, (%r15,%rax,4)
.L11:
	movl	(%r15,%rax,4), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L4
.L3:
	movl	n(%rip), %ecx
	movl	$1, %r10d
	leaq	e(%rip), %r15
	sall	%cl, %r10d
	jmp	.L8
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	e
	.bss
	.align 32
	.type	e, @object
	.size	e, 22220
e:
	.zero	22220
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.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	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1001001001
	.long	1001001001
	.long	1001001001
	.long	1001001001
	.set	.LC1,.LC0
	.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:
```