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 l[6] = {60, 80, 100, 120, 140, 160};
int g[6] = {2, 5, 10, 15, 20, 25};
int m[7] = {600, 800, 1000, 1200, 1400, 1600, 0};
int main() {
	int x, y, h, w, N, I, i, ans;
	while(1) {
		scanf("%d", &N);
		if(N == 0) break;
		ans = 0;
		for(I = 0; I < N; ++ I) {
			scanf("%d %d %d %d", &x, &y, &h, &w);
			for(i = 0; i < 6; ++ i) {
				if(x + y + h <= l[i] && w <= g[i]) {
					break;
				}
			}
			ans += m[i];
		}
		printf("%d\n", ans);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %d"
.LC2:
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, %r14d
	jle	.L3
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r15
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	20(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	l(%rip), %rcx
	movl	24(%rsp), %eax
	addl	20(%rsp), %eax
	addl	28(%rsp), %eax
	cmpl	(%rcx), %eax
	jg	.L4
	movl	32(%rsp), %esi
	cmpl	%esi, g(%rip)
	jge	.L14
.L4:
	cmpl	4+l(%rip), %eax
	jg	.L6
	movl	32(%rsp), %edi
	cmpl	%edi, 4+g(%rip)
	jge	.L15
.L6:
	cmpl	8+l(%rip), %eax
	jg	.L7
	movl	32(%rsp), %edi
	cmpl	%edi, 8+g(%rip)
	jge	.L16
.L7:
	cmpl	12+l(%rip), %eax
	jg	.L8
	movl	32(%rsp), %esi
	cmpl	%esi, 12+g(%rip)
	jge	.L17
.L8:
	cmpl	16+l(%rip), %eax
	jg	.L9
	movl	32(%rsp), %ecx
	cmpl	%ecx, 16+g(%rip)
	jge	.L18
.L9:
	cmpl	20+l(%rip), %eax
	movl	$6, %edx
	jg	.L5
	xorl	%edx, %edx
	movl	32(%rsp), %eax
	cmpl	%eax, 20+g(%rip)
	setl	%dl
	addl	$5, %edx
.L5:
	movslq	%edx, %rdx
	leaq	m(%rip), %rax
	addl	$1, %ebx
	addl	(%rax,%rdx,4), %r14d
	cmpl	%ebx, 36(%rsp)
	jg	.L10
.L3:
	movl	%r14d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L14:
	xorl	%edx, %edx
	jmp	.L5
.L15:
	movl	$1, %edx
	jmp	.L5
.L16:
	movl	$2, %edx
	jmp	.L5
.L17:
	movl	$3, %edx
	jmp	.L5
.L18:
	movl	$4, %edx
	jmp	.L5
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %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
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	m
	.data
	.align 16
	.type	m, @object
	.size	m, 28
m:
	.long	600
	.long	800
	.long	1000
	.long	1200
	.long	1400
	.long	1600
	.long	0
	.globl	g
	.align 16
	.type	g, @object
	.size	g, 24
g:
	.long	2
	.long	5
	.long	10
	.long	15
	.long	20
	.long	25
	.globl	l
	.align 16
	.type	l, @object
	.size	l, 24
l:
	.long	60
	.long	80
	.long	100
	.long	120
	.long	140
	.long	160
	.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 %d %d %d"
.LC2:
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, %r14d
	jle	.L3
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r15
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	20(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	l(%rip), %rcx
	movl	24(%rsp), %eax
	addl	20(%rsp), %eax
	addl	28(%rsp), %eax
	cmpl	(%rcx), %eax
	jg	.L4
	movl	32(%rsp), %esi
	cmpl	%esi, g(%rip)
	jge	.L14
.L4:
	cmpl	4+l(%rip), %eax
	jg	.L6
	movl	32(%rsp), %edi
	cmpl	%edi, 4+g(%rip)
	jge	.L15
.L6:
	cmpl	8+l(%rip), %eax
	jg	.L7
	movl	32(%rsp), %edi
	cmpl	%edi, 8+g(%rip)
	jge	.L16
.L7:
	cmpl	12+l(%rip), %eax
	jg	.L8
	movl	32(%rsp), %esi
	cmpl	%esi, 12+g(%rip)
	jge	.L17
.L8:
	cmpl	16+l(%rip), %eax
	jg	.L9
	movl	32(%rsp), %ecx
	cmpl	%ecx, 16+g(%rip)
	jge	.L18
.L9:
	cmpl	20+l(%rip), %eax
	movl	$6, %edx
	jg	.L5
	xorl	%edx, %edx
	movl	32(%rsp), %eax
	cmpl	%eax, 20+g(%rip)
	setl	%dl
	addl	$5, %edx
.L5:
	movslq	%edx, %rdx
	leaq	m(%rip), %rax
	addl	$1, %ebx
	addl	(%rax,%rdx,4), %r14d
	cmpl	%ebx, 36(%rsp)
	jg	.L10
.L3:
	movl	%r14d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L14:
	xorl	%edx, %edx
	jmp	.L5
.L15:
	movl	$1, %edx
	jmp	.L5
.L16:
	movl	$2, %edx
	jmp	.L5
.L17:
	movl	$3, %edx
	jmp	.L5
.L18:
	movl	$4, %edx
	jmp	.L5
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %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
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	m
	.data
	.align 16
	.type	m, @object
	.size	m, 28
m:
	.long	600
	.long	800
	.long	1000
	.long	1200
	.long	1400
	.long	1600
	.long	0
	.globl	g
	.align 16
	.type	g, @object
	.size	g, 24
g:
	.long	2
	.long	5
	.long	10
	.long	15
	.long	20
	.long	25
	.globl	l
	.align 16
	.type	l, @object
	.size	l, 24
l:
	.long	60
	.long	80
	.long	100
	.long	120
	.long	140
	.long	160
	.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 %d %d %d"
.LC2:
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, %r14d
	jle	.L3
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r15
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	20(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	l(%rip), %rcx
	movl	24(%rsp), %eax
	addl	20(%rsp), %eax
	addl	28(%rsp), %eax
	cmpl	(%rcx), %eax
	jg	.L4
	movl	32(%rsp), %esi
	cmpl	%esi, g(%rip)
	jge	.L14
.L4:
	cmpl	4+l(%rip), %eax
	jg	.L6
	movl	32(%rsp), %edi
	cmpl	%edi, 4+g(%rip)
	jge	.L15
.L6:
	cmpl	8+l(%rip), %eax
	jg	.L7
	movl	32(%rsp), %edi
	cmpl	%edi, 8+g(%rip)
	jge	.L16
.L7:
	cmpl	12+l(%rip), %eax
	jg	.L8
	movl	32(%rsp), %esi
	cmpl	%esi, 12+g(%rip)
	jge	.L17
.L8:
	cmpl	16+l(%rip), %eax
	jg	.L9
	movl	32(%rsp), %ecx
	cmpl	%ecx, 16+g(%rip)
	jge	.L18
.L9:
	cmpl	20+l(%rip), %eax
	movl	$6, %edx
	jg	.L5
	xorl	%edx, %edx
	movl	32(%rsp), %eax
	cmpl	%eax, 20+g(%rip)
	setl	%dl
	addl	$5, %edx
.L5:
	movslq	%edx, %rdx
	leaq	m(%rip), %rax
	addl	$1, %ebx
	addl	(%rax,%rdx,4), %r14d
	cmpl	%ebx, 36(%rsp)
	jg	.L10
.L3:
	movl	%r14d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L14:
	xorl	%edx, %edx
	jmp	.L5
.L15:
	movl	$1, %edx
	jmp	.L5
.L16:
	movl	$2, %edx
	jmp	.L5
.L17:
	movl	$3, %edx
	jmp	.L5
.L18:
	movl	$4, %edx
	jmp	.L5
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %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
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	m
	.data
	.align 16
	.type	m, @object
	.size	m, 28
m:
	.long	600
	.long	800
	.long	1000
	.long	1200
	.long	1400
	.long	1600
	.long	0
	.globl	g
	.align 16
	.type	g, @object
	.size	g, 24
g:
	.long	2
	.long	5
	.long	10
	.long	15
	.long	20
	.long	25
	.globl	l
	.align 16
	.type	l, @object
	.size	l, 24
l:
	.long	60
	.long	80
	.long	100
	.long	120
	.long	140
	.long	160
	.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 l[6] = {60, 80, 100, 120, 140, 160};
int g[6] = {2, 5, 10, 15, 20, 25};
int m[7] = {600, 800, 1000, 1200, 1400, 1600, 0};
int main() {
	int x, y, h, w, N, I, i, ans;
	while(1) {
		scanf("%d", &N);
		if(N == 0) break;
		ans = 0;
		for(I = 0; I < N; ++ I) {
			scanf("%d %d %d %d", &x, &y, &h, &w);
			for(i = 0; i < 6; ++ i) {
				if(x + y + h <= l[i] && w <= g[i]) {
					break;
				}
			}
			ans += m[i];
		}
		printf("%d\n", ans);
	}
	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 l[6] = {60, 80, 100, 120, 140, 160};
int g[6] = {2, 5, 10, 15, 20, 25};
int m[7] = {600, 800, 1000, 1200, 1400, 1600, 0};
int main() {
	int x, y, h, w, N, I, i, ans;
	while(1) {
		scanf("%d", &N);
		if(N == 0) break;
		ans = 0;
		for(I = 0; I < N; ++ I) {
			scanf("%d %d %d %d", &x, &y, &h, &w);
			for(i = 0; i < 6; ++ i) {
				if(x + y + h <= l[i] && w <= g[i]) {
					break;
				}
			}
			ans += m[i];
		}
		printf("%d\n", ans);
	}
	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
50 25 5 5
80 60 10 30
3
10 7 25 24
5 8 12 5
30 30 30 18
0
 2
50 25 5 5
80 60 10 30
3
10 7 25 24
5 8 12 5
30 30 30 3
0
 2
50 25 5 5
135 60 10 30
3
10 7 25 24
5 8 13 5
30 30 30 14
0
 2
50 36 5 5
135 60 8 30
3
10 8 25 24
5 1 13 5
30 30 30 14
0
 2
74 2 5 5
80 82 1 0
0
7 2 0 24
2 -1 12 3
30 30 -1 11
0
 2
74 2 3 5
115 94 1 0
0
7 2 0 24
2 -1 12 3
54 30 -2 11
0
 2
50 34 5 5
80 60 10 30
3
10 15 25 24
5 8 12 5
30 30 30 18
0
 2
50 1 5 2
80 60 10 30
3
10 15 25 24
5 8 12 5
30 30 30 18
0
 2
86 25 5 5
135 60 10 30
3
10 8 25 24
5 8 13 5
30 30 30 14
0
 2
51 1 5 5
80 95 3 30
3
10 15 25 47
2 12 12 3
30 30 30 11
0

800
3800
 800
3400
 800
3600
 1000
3600
 1000
 800
 1000
3800
 600
3800
 1200
3600
 800
2000

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 l[6] = {60, 80, 100, 120, 140, 160};
int g[6] = {2, 5, 10, 15, 20, 25};
int m[7] = {600, 800, 1000, 1200, 1400, 1600, 0};
int main() {
	int x, y, h, w, N, I, i, ans;
	while(1) {
		scanf("%d", &N);
		if(N == 0) break;
		ans = 0;
		for(I = 0; I < N; ++ I) {
			scanf("%d %d %d %d", &x, &y, &h, &w);
			for(i = 0; i < 6; ++ i) {
				if(x + y + h <= l[i] && w <= g[i]) {
					break;
				}
			}
			ans += m[i];
		}
		printf("%d\n", ans);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %d"
.LC2:
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, %r14d
	jle	.L3
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r15
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	20(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	l(%rip), %rcx
	movl	24(%rsp), %eax
	addl	20(%rsp), %eax
	addl	28(%rsp), %eax
	cmpl	(%rcx), %eax
	jg	.L4
	movl	32(%rsp), %esi
	cmpl	%esi, g(%rip)
	jge	.L14
.L4:
	cmpl	4+l(%rip), %eax
	jg	.L6
	movl	32(%rsp), %edi
	cmpl	%edi, 4+g(%rip)
	jge	.L15
.L6:
	cmpl	8+l(%rip), %eax
	jg	.L7
	movl	32(%rsp), %edi
	cmpl	%edi, 8+g(%rip)
	jge	.L16
.L7:
	cmpl	12+l(%rip), %eax
	jg	.L8
	movl	32(%rsp), %esi
	cmpl	%esi, 12+g(%rip)
	jge	.L17
.L8:
	cmpl	16+l(%rip), %eax
	jg	.L9
	movl	32(%rsp), %ecx
	cmpl	%ecx, 16+g(%rip)
	jge	.L18
.L9:
	cmpl	20+l(%rip), %eax
	movl	$6, %edx
	jg	.L5
	xorl	%edx, %edx
	movl	32(%rsp), %eax
	cmpl	%eax, 20+g(%rip)
	setl	%dl
	addl	$5, %edx
.L5:
	movslq	%edx, %rdx
	leaq	m(%rip), %rax
	addl	$1, %ebx
	addl	(%rax,%rdx,4), %r14d
	cmpl	%ebx, 36(%rsp)
	jg	.L10
.L3:
	movl	%r14d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L14:
	xorl	%edx, %edx
	jmp	.L5
.L15:
	movl	$1, %edx
	jmp	.L5
.L16:
	movl	$2, %edx
	jmp	.L5
.L17:
	movl	$3, %edx
	jmp	.L5
.L18:
	movl	$4, %edx
	jmp	.L5
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %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
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	m
	.data
	.align 16
	.type	m, @object
	.size	m, 28
m:
	.long	600
	.long	800
	.long	1000
	.long	1200
	.long	1400
	.long	1600
	.long	0
	.globl	g
	.align 16
	.type	g, @object
	.size	g, 24
g:
	.long	2
	.long	5
	.long	10
	.long	15
	.long	20
	.long	25
	.globl	l
	.align 16
	.type	l, @object
	.size	l, 24
l:
	.long	60
	.long	80
	.long	100
	.long	120
	.long	140
	.long	160
	.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 %d %d %d"
.LC2:
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movl	$0, %r14d
	jle	.L3
	xorl	%ebx, %ebx
	leaq	32(%rsp), %r15
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %r12
	leaq	20(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	l(%rip), %rcx
	movl	24(%rsp), %eax
	addl	20(%rsp), %eax
	addl	28(%rsp), %eax
	cmpl	(%rcx), %eax
	jg	.L4
	movl	32(%rsp), %esi
	cmpl	%esi, g(%rip)
	jge	.L14
.L4:
	cmpl	4+l(%rip), %eax
	jg	.L6
	movl	32(%rsp), %edi
	cmpl	%edi, 4+g(%rip)
	jge	.L15
.L6:
	cmpl	8+l(%rip), %eax
	jg	.L7
	movl	32(%rsp), %edi
	cmpl	%edi, 8+g(%rip)
	jge	.L16
.L7:
	cmpl	12+l(%rip), %eax
	jg	.L8
	movl	32(%rsp), %esi
	cmpl	%esi, 12+g(%rip)
	jge	.L17
.L8:
	cmpl	16+l(%rip), %eax
	jg	.L9
	movl	32(%rsp), %ecx
	cmpl	%ecx, 16+g(%rip)
	jge	.L18
.L9:
	cmpl	20+l(%rip), %eax
	movl	$6, %edx
	jg	.L5
	xorl	%edx, %edx
	movl	32(%rsp), %eax
	cmpl	%eax, 20+g(%rip)
	setl	%dl
	addl	$5, %edx
.L5:
	movslq	%edx, %rdx
	leaq	m(%rip), %rax
	addl	$1, %ebx
	addl	(%rax,%rdx,4), %r14d
	cmpl	%ebx, 36(%rsp)
	jg	.L10
.L3:
	movl	%r14d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L11
.L14:
	xorl	%edx, %edx
	jmp	.L5
.L15:
	movl	$1, %edx
	jmp	.L5
.L16:
	movl	$2, %edx
	jmp	.L5
.L17:
	movl	$3, %edx
	jmp	.L5
.L18:
	movl	$4, %edx
	jmp	.L5
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$56, %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
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	m
	.data
	.align 16
	.type	m, @object
	.size	m, 28
m:
	.long	600
	.long	800
	.long	1000
	.long	1200
	.long	1400
	.long	1600
	.long	0
	.globl	g
	.align 16
	.type	g, @object
	.size	g, 24
g:
	.long	2
	.long	5
	.long	10
	.long	15
	.long	20
	.long	25
	.globl	l
	.align 16
	.type	l, @object
	.size	l, 24
l:
	.long	60
	.long	80
	.long	100
	.long	120
	.long	140
	.long	160
	.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:
```