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()
{
	int n, x, score;
	int i, j, k, a, b, c;

	while (1)
	{
		score = 0;
		scanf("%d %d", &n, &x);
		if (n == 0 && x == 0)
			break;
		for (i = 0; i < n; i++)
		{
			for (j = 1; j < n - i; j++)
				{
				for (k = 1; k < n - j - i; k++)
				{
					c = n - i - j - k;
					b = n - i - j;
					a = n - i;
					if ((a + b + c) == x)
						score++;
				}
			}
		}
		printf("%d\n", score);
	}
		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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L11:
	movl	$0, -36(%rbp)
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L2:
	movl	$0, -32(%rbp)
	jmp	.L4
.L10:
	movl	$1, -28(%rbp)
	jmp	.L5
.L9:
	movl	$1, -24(%rbp)
	jmp	.L6
.L8:
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	subl	-28(%rbp), %eax
	subl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	addl	$1, -36(%rbp)
.L7:
	addl	$1, -24(%rbp)
.L6:
	movl	-44(%rbp), %eax
	subl	-28(%rbp), %eax
	subl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L8
	addl	$1, -28(%rbp)
.L5:
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L9
	addl	$1, -32(%rbp)
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L10
	movl	-36(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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
.LC1:
	.string	"%d %d"
.LC3:
	.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	.L18
.L2:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L5
.L20:
	xorl	%r8d, %r8d
.L3:
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %r13d
	movdqa	.LC2(%rip), %xmm6
	testl	%r13d, %r13d
	je	.L2
	jle	.L20
	movl	20(%rsp), %r9d
	movl	%r13d, %r10d
	xorl	%ebp, %ebp
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	movd	%r9d, %xmm7
	pshufd	$0, %xmm7, %xmm7
	.p2align 4,,10
	.p2align 3
.L4:
	leal	-1(%r10), %r12d
	leal	(%rbx,%rbp), %r11d
	movl	%r12d, %edx
	cmpl	$1, %r10d
	jle	.L16
	cmpl	$1, %edx
	je	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	leal	-2(%rdx), %eax
	leal	(%r11,%rdx), %ecx
	leal	(%rdx,%r10), %r14d
	leal	-1(%rdx), %edi
	cmpl	$4, %eax
	jbe	.L21
	movd	%ecx, %xmm4
	movl	%edi, %esi
	movdqa	.LC0(%rip), %xmm2
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm5
	movd	%r14d, %xmm4
	shrl	$2, %esi
	pxor	%xmm1, %xmm1
	pshufd	$0, %xmm4, %xmm4
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm2, %xmm3
	movdqa	%xmm5, %xmm0
	paddd	%xmm6, %xmm2
	addl	$1, %eax
	psubd	%xmm3, %xmm0
	paddd	%xmm4, %xmm0
	pcmpeqd	%xmm7, %xmm0
	psubd	%xmm0, %xmm1
	cmpl	%eax, %esi
	jne	.L7
	movdqa	%xmm1, %xmm0
	movl	%edi, %esi
	psrldq	$8, %xmm0
	andl	$-4, %esi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r8d
	leal	1(%rsi), %eax
	cmpl	%esi, %edi
	je	.L8
.L6:
	movl	%ecx, %esi
	leal	1(%rax), %r15d
	subl	%eax, %esi
	addl	%r14d, %esi
	cmpl	%esi, %r9d
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %r8d
	cmpl	%edx, %r15d
	jge	.L8
	movl	%ecx, %esi
	subl	%r15d, %esi
	leal	2(%rax), %r15d
	addl	%r14d, %esi
	cmpl	%esi, %r9d
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %r8d
	cmpl	%edx, %r15d
	jge	.L8
	movl	%ecx, %esi
	subl	%r15d, %esi
	leal	3(%rax), %r15d
	addl	%r14d, %esi
	cmpl	%esi, %r9d
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %r8d
	cmpl	%r15d, %edx
	jle	.L8
	movl	%ecx, %esi
	subl	%r15d, %esi
	addl	%r14d, %esi
	cmpl	%esi, %r9d
	sete	%sil
	addl	$4, %eax
	movzbl	%sil, %esi
	addl	%esi, %r8d
	cmpl	%eax, %edx
	jle	.L8
	subl	%eax, %ecx
	xorl	%eax, %eax
	addl	%r14d, %ecx
	cmpl	%ecx, %r9d
	sete	%al
	addl	%eax, %r8d
.L8:
	movl	%edi, %edx
	cmpl	$1, %edx
	jne	.L15
.L16:
	addl	$1, %ebx
	movl	%r12d, %r10d
	subl	$1, %ebp
	cmpl	%ebx, %r13d
	jne	.L4
	jmp	.L3
.L21:
	movl	$1, %eax
	jmp	.L6
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC2:
	.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
.LC1:
	.string	"%d %d"
.LC3:
	.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	.L18
.L2:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L5
.L20:
	xorl	%r8d, %r8d
.L3:
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %r13d
	movdqa	.LC2(%rip), %xmm6
	testl	%r13d, %r13d
	je	.L2
	jle	.L20
	movl	20(%rsp), %r9d
	movl	%r13d, %r10d
	xorl	%ebp, %ebp
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	movd	%r9d, %xmm7
	pshufd	$0, %xmm7, %xmm7
	.p2align 4,,10
	.p2align 3
.L4:
	leal	-1(%r10), %r12d
	leal	(%rbx,%rbp), %r11d
	movl	%r12d, %edx
	cmpl	$1, %r10d
	jle	.L16
	cmpl	$1, %edx
	je	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	leal	-2(%rdx), %eax
	leal	(%r11,%rdx), %ecx
	leal	(%rdx,%r10), %r14d
	leal	-1(%rdx), %edi
	cmpl	$4, %eax
	jbe	.L21
	movd	%ecx, %xmm4
	movl	%edi, %esi
	movdqa	.LC0(%rip), %xmm2
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm5
	movd	%r14d, %xmm4
	shrl	$2, %esi
	pxor	%xmm1, %xmm1
	pshufd	$0, %xmm4, %xmm4
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm2, %xmm3
	movdqa	%xmm5, %xmm0
	paddd	%xmm6, %xmm2
	addl	$1, %eax
	psubd	%xmm3, %xmm0
	paddd	%xmm4, %xmm0
	pcmpeqd	%xmm7, %xmm0
	psubd	%xmm0, %xmm1
	cmpl	%eax, %esi
	jne	.L7
	movdqa	%xmm1, %xmm0
	movl	%edi, %esi
	psrldq	$8, %xmm0
	andl	$-4, %esi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r8d
	leal	1(%rsi), %eax
	cmpl	%esi, %edi
	je	.L8
.L6:
	movl	%ecx, %esi
	leal	1(%rax), %r15d
	subl	%eax, %esi
	addl	%r14d, %esi
	cmpl	%esi, %r9d
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %r8d
	cmpl	%edx, %r15d
	jge	.L8
	movl	%ecx, %esi
	subl	%r15d, %esi
	leal	2(%rax), %r15d
	addl	%r14d, %esi
	cmpl	%esi, %r9d
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %r8d
	cmpl	%edx, %r15d
	jge	.L8
	movl	%ecx, %esi
	subl	%r15d, %esi
	leal	3(%rax), %r15d
	addl	%r14d, %esi
	cmpl	%esi, %r9d
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %r8d
	cmpl	%r15d, %edx
	jle	.L8
	movl	%ecx, %esi
	subl	%r15d, %esi
	addl	%r14d, %esi
	cmpl	%esi, %r9d
	sete	%sil
	addl	$4, %eax
	movzbl	%sil, %esi
	addl	%esi, %r8d
	cmpl	%eax, %edx
	jle	.L8
	subl	%eax, %ecx
	xorl	%eax, %eax
	addl	%r14d, %ecx
	cmpl	%ecx, %r9d
	sete	%al
	addl	%eax, %r8d
.L8:
	movl	%edi, %edx
	cmpl	$1, %edx
	jne	.L15
.L16:
	addl	$1, %ebx
	movl	%r12d, %r10d
	subl	$1, %ebp
	cmpl	%ebx, %r13d
	jne	.L4
	jmp	.L3
.L21:
	movl	$1, %eax
	jmp	.L6
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC2:
	.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()
{
	int n, x, score;
	int i, j, k, a, b, c;

	while (1)
	{
		score = 0;
		scanf("%d %d", &n, &x);
		if (n == 0 && x == 0)
			break;
		for (i = 0; i < n; i++)
		{
			for (j = 1; j < n - i; j++)
				{
				for (k = 1; k < n - j - i; k++)
				{
					c = n - i - j - k;
					b = n - i - j;
					a = n - i;
					if ((a + b + c) == x)
						score++;
				}
			}
		}
		printf("%d\n", score);
	}
		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()
{
	int n, x, score;
	int i, j, k, a, b, c;

	while (1)
	{
		score = 0;
		scanf("%d %d", &n, &x);
		if (n == 0 && x == 0)
			break;
		for (i = 0; i < n; i++)
		{
			for (j = 1; j < n - i; j++)
				{
				for (k = 1; k < n - j - i; k++)
				{
					c = n - i - j - k;
					b = n - i - j;
					a = n - i;
					if ((a + b + c) == x)
						score++;
				}
			}
		}
		printf("%d\n", score);
	}
		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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L11:
	movl	$0, -36(%rbp)
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L2:
	movl	$0, -32(%rbp)
	jmp	.L4
.L10:
	movl	$1, -28(%rbp)
	jmp	.L5
.L9:
	movl	$1, -24(%rbp)
	jmp	.L6
.L8:
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	subl	-28(%rbp), %eax
	subl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	addl	$1, -36(%rbp)
.L7:
	addl	$1, -24(%rbp)
.L6:
	movl	-44(%rbp), %eax
	subl	-28(%rbp), %eax
	subl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L8
	addl	$1, -28(%rbp)
.L5:
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L9
	addl	$1, -32(%rbp)
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L10
	movl	-36(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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.
val
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L11:
	movl	$0, -36(%rbp)
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L15
.L2:
	movl	$0, -32(%rbp)
	jmp	.L4
.L10:
	movl	$1, -28(%rbp)
	jmp	.L5
.L9:
	movl	$1, -24(%rbp)
	jmp	.L6
.L8:
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	subl	-28(%rbp), %eax
	subl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	subl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	addl	$1, -36(%rbp)
.L7:
	addl	$1, -24(%rbp)
.L6:
	movl	-44(%rbp), %eax
	subl	-28(%rbp), %eax
	subl	-32(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L8
	addl	$1, -28(%rbp)
.L5:
	movl	-44(%rbp), %eax
	subl	-32(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L9
	addl	$1, -32(%rbp)
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L10
	movl	-36(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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:
