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

```c
#include<stdio.h>
int main(void){
	
	int n,x,i,j,l,count=0;
	
	for(;;){
		
		scanf("%d %d",&n,&x);
		
		if(n==0&&x==0){
			break;
		}
		
		for(i=1;i<=n-2;i++){
			for(j=i+1;j<=n-1;j++){
				for(l=j+1;l<=n;l++){
					if(i+j+l==x && i!=j && i!=l && j!=l){
						count++;
					}
				}
			}
		}
		
		printf("%d\n",count);
		
		count=0;
	}
	
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12(%rbp)
.L11:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L2:
	movl	$1, -24(%rbp)
	jmp	.L4
.L10:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L5
.L9:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L6
.L8:
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L7
	movl	-24(%rbp), %eax
	cmpl	-16(%rbp), %eax
	je	.L7
	movl	-20(%rbp), %eax
	cmpl	-16(%rbp), %eax
	je	.L7
	addl	$1, -12(%rbp)
.L7:
	addl	$1, -16(%rbp)
.L6:
	movl	-32(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L8
	addl	$1, -20(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L9
	addl	$1, -24(%rbp)
.L4:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -24(%rbp)
	jl	.L10
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -12(%rbp)
	jmp	.L11
.L15:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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"
.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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, (%rsp)
	jmp	.L19
.L44:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L3
.L42:
	xorl	%r10d, %r10d
.L4:
	movl	%r10d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L19:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %r9d
	movdqa	.LC1(%rip), %xmm9
	testl	%r9d, %r9d
	je	.L44
	leal	-1(%r9), %r13d
	cmpl	$1, %r13d
	jle	.L42
	movl	20(%rsp), %r11d
	movl	$1, %ebp
	xorl	%r10d, %r10d
	movl	$1, %r12d
	pxor	%xmm4, %xmm4
	movd	%r11d, %xmm7
	pshufd	$0, %xmm7, %xmm10
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%r12d, %ebx
	addl	$1, %r12d
	cmpl	%r12d, %r9d
	jle	.L5
	movl	%r12d, %eax
	movl	%r9d, %edi
	movd	%ebx, %xmm7
	movl	%r12d, %edx
	leal	1(%rax), %ecx
	subl	%r12d, %edi
	pshufd	$0, %xmm7, %xmm7
	cmpl	%ecx, %r9d
	jl	.L6
	.p2align 4,,10
	.p2align 3
.L48:
	movl	%r9d, %esi
	leal	(%rdx,%rbp), %r8d
	subl	%ecx, %esi
	cmpl	$2, %esi
	jbe	.L21
	leal	3(%rdx), %r15d
	leal	2(%rdx), %r14d
	movd	%ecx, %xmm2
	movl	%edi, %esi
	movd	%r15d, %xmm0
	leal	4(%rdx), %r15d
	movd	%r8d, %xmm5
	shrl	$2, %esi
	movd	%r15d, %xmm6
	pshufd	$0, %xmm5, %xmm8
	pxor	%xmm3, %xmm3
	punpckldq	%xmm6, %xmm0
	movd	%r14d, %xmm6
	punpckldq	%xmm6, %xmm2
	movd	%eax, %xmm6
	xorl	%eax, %eax
	pshufd	$0, %xmm6, %xmm6
	punpcklqdq	%xmm0, %xmm2
	movdqa	%xmm6, %xmm5
	pcmpeqd	%xmm7, %xmm5
	pcmpeqd	%xmm4, %xmm5
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	%xmm2, %xmm1
	addl	$1, %eax
	paddd	%xmm9, %xmm2
	movdqa	%xmm1, %xmm11
	movdqa	%xmm1, %xmm0
	pcmpeqd	%xmm7, %xmm11
	pcmpeqd	%xmm6, %xmm1
	paddd	%xmm8, %xmm0
	pcmpeqd	%xmm10, %xmm0
	pcmpeqd	%xmm4, %xmm11
	pcmpeqd	%xmm4, %xmm1
	pand	%xmm5, %xmm0
	pand	%xmm11, %xmm1
	pand	%xmm1, %xmm0
	psubd	%xmm0, %xmm3
	cmpl	%eax, %esi
	jne	.L8
	movdqa	%xmm3, %xmm0
	movl	%edi, %esi
	psrldq	$8, %xmm0
	andl	$-4, %esi
	paddd	%xmm0, %xmm3
	movdqa	%xmm3, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm3
	movd	%xmm3, %eax
	addl	%eax, %r10d
	leal	(%rsi,%rcx), %eax
	cmpl	%esi, %edi
	je	.L11
.L7:
	leal	(%r8,%rax), %esi
	cmpl	%esi, %r11d
	je	.L45
.L12:
	leal	1(%rax), %esi
	cmpl	%esi, %r9d
	jl	.L11
	leal	(%rsi,%r8), %r14d
	cmpl	%r14d, %r11d
	je	.L46
.L13:
	addl	$2, %eax
	cmpl	%eax, %r9d
	jl	.L11
	addl	%eax, %r8d
	cmpl	%r8d, %r11d
	je	.L47
.L11:
	addl	$1, %edx
	subl	$1, %edi
	cmpl	%ecx, %r9d
	je	.L5
	movl	%ecx, %eax
.L49:
	leal	1(%rax), %ecx
	cmpl	%ecx, %r9d
	jge	.L48
.L6:
	addl	$1, %edx
	subl	$1, %edi
	movl	%ecx, %eax
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L5:
	addl	$1, %ebp
	cmpl	%r13d, %r12d
	jne	.L17
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L45:
	cmpl	%edx, %ebx
	setne	%r14b
	cmpl	%eax, %ebx
	setne	%sil
	testb	%sil, %r14b
	je	.L12
	cmpl	%eax, %edx
	setne	%sil
	cmpb	$1, %sil
	sbbl	$-1, %r10d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L46:
	cmpl	%ebx, %esi
	setne	%r15b
	cmpl	%edx, %ebx
	setne	%r14b
	testb	%r14b, %r15b
	je	.L13
	cmpl	%edx, %esi
	setne	%sil
	cmpb	$1, %sil
	sbbl	$-1, %r10d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L47:
	cmpl	%edx, %ebx
	setne	%r8b
	cmpl	%eax, %ebx
	setne	%sil
	testb	%sil, %r8b
	je	.L11
	cmpl	%edx, %eax
	setne	%al
	cmpb	$1, %al
	sbbl	$-1, %r10d
	jmp	.L11
.L21:
	movl	%ecx, %eax
	jmp	.L7
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$40, %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
.L50:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	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"
.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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, (%rsp)
	jmp	.L19
.L44:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L3
.L42:
	xorl	%r10d, %r10d
.L4:
	movl	%r10d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L19:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %r9d
	movdqa	.LC1(%rip), %xmm9
	testl	%r9d, %r9d
	je	.L44
	leal	-1(%r9), %r13d
	cmpl	$1, %r13d
	jle	.L42
	movl	20(%rsp), %r11d
	movl	$1, %ebp
	xorl	%r10d, %r10d
	movl	$1, %r12d
	pxor	%xmm4, %xmm4
	movd	%r11d, %xmm7
	pshufd	$0, %xmm7, %xmm10
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%r12d, %ebx
	addl	$1, %r12d
	cmpl	%r12d, %r9d
	jle	.L5
	movl	%r12d, %eax
	movl	%r9d, %edi
	movd	%ebx, %xmm7
	movl	%r12d, %edx
	leal	1(%rax), %ecx
	subl	%r12d, %edi
	pshufd	$0, %xmm7, %xmm7
	cmpl	%ecx, %r9d
	jl	.L6
	.p2align 4,,10
	.p2align 3
.L48:
	movl	%r9d, %esi
	leal	(%rdx,%rbp), %r8d
	subl	%ecx, %esi
	cmpl	$2, %esi
	jbe	.L21
	leal	3(%rdx), %r15d
	leal	2(%rdx), %r14d
	movd	%ecx, %xmm2
	movl	%edi, %esi
	movd	%r15d, %xmm0
	leal	4(%rdx), %r15d
	movd	%r8d, %xmm5
	shrl	$2, %esi
	movd	%r15d, %xmm6
	pshufd	$0, %xmm5, %xmm8
	pxor	%xmm3, %xmm3
	punpckldq	%xmm6, %xmm0
	movd	%r14d, %xmm6
	punpckldq	%xmm6, %xmm2
	movd	%eax, %xmm6
	xorl	%eax, %eax
	pshufd	$0, %xmm6, %xmm6
	punpcklqdq	%xmm0, %xmm2
	movdqa	%xmm6, %xmm5
	pcmpeqd	%xmm7, %xmm5
	pcmpeqd	%xmm4, %xmm5
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	%xmm2, %xmm1
	addl	$1, %eax
	paddd	%xmm9, %xmm2
	movdqa	%xmm1, %xmm11
	movdqa	%xmm1, %xmm0
	pcmpeqd	%xmm7, %xmm11
	pcmpeqd	%xmm6, %xmm1
	paddd	%xmm8, %xmm0
	pcmpeqd	%xmm10, %xmm0
	pcmpeqd	%xmm4, %xmm11
	pcmpeqd	%xmm4, %xmm1
	pand	%xmm5, %xmm0
	pand	%xmm11, %xmm1
	pand	%xmm1, %xmm0
	psubd	%xmm0, %xmm3
	cmpl	%eax, %esi
	jne	.L8
	movdqa	%xmm3, %xmm0
	movl	%edi, %esi
	psrldq	$8, %xmm0
	andl	$-4, %esi
	paddd	%xmm0, %xmm3
	movdqa	%xmm3, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm3
	movd	%xmm3, %eax
	addl	%eax, %r10d
	leal	(%rsi,%rcx), %eax
	cmpl	%esi, %edi
	je	.L11
.L7:
	leal	(%r8,%rax), %esi
	cmpl	%esi, %r11d
	je	.L45
.L12:
	leal	1(%rax), %esi
	cmpl	%esi, %r9d
	jl	.L11
	leal	(%rsi,%r8), %r14d
	cmpl	%r14d, %r11d
	je	.L46
.L13:
	addl	$2, %eax
	cmpl	%eax, %r9d
	jl	.L11
	addl	%eax, %r8d
	cmpl	%r8d, %r11d
	je	.L47
.L11:
	addl	$1, %edx
	subl	$1, %edi
	cmpl	%ecx, %r9d
	je	.L5
	movl	%ecx, %eax
.L49:
	leal	1(%rax), %ecx
	cmpl	%ecx, %r9d
	jge	.L48
.L6:
	addl	$1, %edx
	subl	$1, %edi
	movl	%ecx, %eax
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L5:
	addl	$1, %ebp
	cmpl	%r13d, %r12d
	jne	.L17
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L45:
	cmpl	%edx, %ebx
	setne	%r14b
	cmpl	%eax, %ebx
	setne	%sil
	testb	%sil, %r14b
	je	.L12
	cmpl	%eax, %edx
	setne	%sil
	cmpb	$1, %sil
	sbbl	$-1, %r10d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L46:
	cmpl	%ebx, %esi
	setne	%r15b
	cmpl	%edx, %ebx
	setne	%r14b
	testb	%r14b, %r15b
	je	.L13
	cmpl	%edx, %esi
	setne	%sil
	cmpb	$1, %sil
	sbbl	$-1, %r10d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L47:
	cmpl	%edx, %ebx
	setne	%r8b
	cmpl	%eax, %ebx
	setne	%sil
	testb	%sil, %r8b
	je	.L11
	cmpl	%edx, %eax
	setne	%al
	cmpb	$1, %al
	sbbl	$-1, %r10d
	jmp	.L11
.L21:
	movl	%ecx, %eax
	jmp	.L7
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$40, %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
.L50:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	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:

#include<stdio.h>
int main(void){
	
	int n,x,i,j,l,count=0;
	
	for(;;){
		
		scanf("%d %d",&n,&x);
		
		if(n==0&&x==0){
			break;
		}
		
		for(i=1;i<=n-2;i++){
			for(j=i+1;j<=n-1;j++){
				for(l=j+1;l<=n;l++){
					if(i+j+l==x && i!=j && i!=l && j!=l){
						count++;
					}
				}
			}
		}
		
		printf("%d\n",count);
		
		count=0;
	}
	
	return 0;
}

5 7
0 0
 2 7
0 0
 5 10
0 0
 7 9
0 0
 8 12
0 0
 13 14
0 0
 10 10
0 0
 12 13
0 0
 16 12
0 0
 16 22
0 0

1
 0
 2
 3
 6
 10
 4
 8
 7
 26

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

```c
#include<stdio.h>
int main(void){
	
	int n,x,i,j,l,count=0;
	
	for(;;){
		
		scanf("%d %d",&n,&x);
		
		if(n==0&&x==0){
			break;
		}
		
		for(i=1;i<=n-2;i++){
			for(j=i+1;j<=n-1;j++){
				for(l=j+1;l<=n;l++){
					if(i+j+l==x && i!=j && i!=l && j!=l){
						count++;
					}
				}
			}
		}
		
		printf("%d\n",count);
		
		count=0;
	}
	
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12(%rbp)
.L11:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L2:
	movl	$1, -24(%rbp)
	jmp	.L4
.L10:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L5
.L9:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L6
.L8:
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L7
	movl	-24(%rbp), %eax
	cmpl	-16(%rbp), %eax
	je	.L7
	movl	-20(%rbp), %eax
	cmpl	-16(%rbp), %eax
	je	.L7
	addl	$1, -12(%rbp)
.L7:
	addl	$1, -16(%rbp)
.L6:
	movl	-32(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L8
	addl	$1, -20(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L9
	addl	$1, -24(%rbp)
.L4:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -24(%rbp)
	jl	.L10
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -12(%rbp)
	jmp	.L11
.L15:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12(%rbp)
.L11:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L2:
	movl	$1, -24(%rbp)
	jmp	.L4
.L10:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L5
.L9:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L6
.L8:
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L7
	movl	-24(%rbp), %eax
	cmpl	-16(%rbp), %eax
	je	.L7
	movl	-20(%rbp), %eax
	cmpl	-16(%rbp), %eax
	je	.L7
	addl	$1, -12(%rbp)
.L7:
	addl	$1, -16(%rbp)
.L6:
	movl	-32(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L8
	addl	$1, -20(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L9
	addl	$1, -24(%rbp)
.L4:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -24(%rbp)
	jl	.L10
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -12(%rbp)
	jmp	.L11
.L15:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
