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, n1, n2, n3, k;

	scanf("%d %d", &n, &x);
	while( n != 0 || x != 0)
	{
		k=0;
		for(n1 = 1; n1 <= n - 2; n1++)
		{
			for(n2 = n1 + 1; n2 <= n - 1; n2++)
			{
				for(n3 = n2 + 1; n3 <= n; n3++)
				{
					if(n1 + n2 + n3 == x)
						k++;
				}
			}
		}
		printf("%d\n",k);
		scanf("%d %d", &n, &x);
	}
}

```

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
	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
	jmp	.L2
.L10:
	movl	$0, -12(%rbp)
	movl	$1, -24(%rbp)
	jmp	.L3
.L9:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L4
.L8:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L5
.L7:
	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	.L6
	addl	$1, -12(%rbp)
.L6:
	addl	$1, -16(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L7
	addl	$1, -20(%rbp)
.L4:
	movl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L8
	addl	$1, -24(%rbp)
.L3:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -24(%rbp)
	jl	.L9
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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
.L2:
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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
	leaq	.LC0(%rip), %rdi
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	movq	%r12, %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	movdqa	.LC1(%rip), %xmm4
	testl	%esi, %esi
	jne	.L21
.L32:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	je	.L31
.L24:
	xorl	%edx, %edx
.L19:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	movdqa	.LC1(%rip), %xmm4
	testl	%esi, %esi
	je	.L32
.L21:
	leal	-1(%rsi), %r15d
	cmpl	$1, %r15d
	jle	.L24
	movl	4(%rsp), %r10d
	movl	$1, %r14d
	xorl	%edx, %edx
	movl	$1, %r13d
	movd	%r10d, %xmm6
	pshufd	$0, %xmm6, %xmm5
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r13d
	cmpl	%r13d, %esi
	jle	.L3
	movl	%r13d, %eax
	movl	%esi, %r9d
	leal	-1(%r14), %r11d
	leal	1(%rax), %ecx
	subl	%r13d, %r9d
	cmpl	%ecx, %esi
	jl	.L4
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%esi, %edi
	leal	(%r11,%rcx), %r8d
	subl	%ecx, %edi
	cmpl	$5, %edi
	jbe	.L23
	leal	2(%rax), %ebx
	movd	%ecx, %xmm2
	movd	%r8d, %xmm7
	movl	%r9d, %edi
	movd	%ebx, %xmm1
	leal	3(%rax), %ebx
	addl	$4, %eax
	shrl	$2, %edi
	movd	%eax, %xmm6
	movd	%ebx, %xmm0
	punpckldq	%xmm1, %xmm2
	xorl	%eax, %eax
	punpckldq	%xmm6, %xmm0
	pshufd	$0, %xmm7, %xmm3
	pxor	%xmm1, %xmm1
	punpcklqdq	%xmm0, %xmm2
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm2, %xmm0
	addl	$1, %eax
	paddd	%xmm4, %xmm2
	paddd	%xmm3, %xmm0
	pcmpeqd	%xmm5, %xmm0
	psubd	%xmm0, %xmm1
	cmpl	%edi, %eax
	jne	.L6
	movdqa	%xmm1, %xmm0
	movl	%r9d, %edi
	psrldq	$8, %xmm0
	andl	$-4, %edi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %edx
	leal	(%rdi,%rcx), %eax
	cmpl	%r9d, %edi
	je	.L9
.L5:
	leal	(%rax,%r8), %edi
	cmpl	%edi, %r10d
	sete	%dil
	movzbl	%dil, %edi
	addl	%edi, %edx
	leal	1(%rax), %edi
	cmpl	%edi, %esi
	jl	.L9
	addl	%r8d, %edi
	cmpl	%edi, %r10d
	sete	%dil
	movzbl	%dil, %edi
	addl	%edi, %edx
	leal	2(%rax), %edi
	cmpl	%edi, %esi
	jl	.L9
	addl	%r8d, %edi
	cmpl	%edi, %r10d
	sete	%dil
	movzbl	%dil, %edi
	addl	%edi, %edx
	leal	3(%rax), %edi
	cmpl	%edi, %esi
	jl	.L9
	addl	%r8d, %edi
	cmpl	%edi, %r10d
	sete	%dil
	movzbl	%dil, %edi
	addl	%edi, %edx
	leal	4(%rax), %edi
	cmpl	%edi, %esi
	jl	.L9
	addl	%r8d, %edi
	cmpl	%edi, %r10d
	sete	%dil
	addl	$5, %eax
	movzbl	%dil, %edi
	addl	%edi, %edx
	cmpl	%eax, %esi
	jl	.L9
	addl	%eax, %r8d
	xorl	%eax, %eax
	cmpl	%r8d, %r10d
	sete	%al
	addl	%eax, %edx
.L9:
	subl	$1, %r9d
	cmpl	%ecx, %esi
	je	.L3
	movl	%ecx, %eax
.L34:
	leal	1(%rax), %ecx
	cmpl	%ecx, %esi
	jge	.L33
.L4:
	subl	$1, %r9d
	movl	%ecx, %eax
	jmp	.L34
.L31:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	addl	$1, %r14d
	cmpl	%r13d, %r15d
	jne	.L18
	jmp	.L19
.L23:
	movl	%ecx, %eax
	jmp	.L5
.L35:
	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
	leaq	.LC0(%rip), %rdi
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	movq	%r12, %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	movdqa	.LC1(%rip), %xmm4
	testl	%esi, %esi
	jne	.L21
.L32:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	je	.L31
.L24:
	xorl	%edx, %edx
.L19:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	movdqa	.LC1(%rip), %xmm4
	testl	%esi, %esi
	je	.L32
.L21:
	leal	-1(%rsi), %r15d
	cmpl	$1, %r15d
	jle	.L24
	movl	4(%rsp), %r10d
	movl	$1, %r14d
	xorl	%edx, %edx
	movl	$1, %r13d
	movd	%r10d, %xmm6
	pshufd	$0, %xmm6, %xmm5
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %r13d
	cmpl	%r13d, %esi
	jle	.L3
	movl	%r13d, %eax
	movl	%esi, %r9d
	leal	-1(%r14), %r11d
	leal	1(%rax), %ecx
	subl	%r13d, %r9d
	cmpl	%ecx, %esi
	jl	.L4
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%esi, %edi
	leal	(%r11,%rcx), %r8d
	subl	%ecx, %edi
	cmpl	$5, %edi
	jbe	.L23
	leal	2(%rax), %ebx
	movd	%ecx, %xmm2
	movd	%r8d, %xmm7
	movl	%r9d, %edi
	movd	%ebx, %xmm1
	leal	3(%rax), %ebx
	addl	$4, %eax
	shrl	$2, %edi
	movd	%eax, %xmm6
	movd	%ebx, %xmm0
	punpckldq	%xmm1, %xmm2
	xorl	%eax, %eax
	punpckldq	%xmm6, %xmm0
	pshufd	$0, %xmm7, %xmm3
	pxor	%xmm1, %xmm1
	punpcklqdq	%xmm0, %xmm2
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm2, %xmm0
	addl	$1, %eax
	paddd	%xmm4, %xmm2
	paddd	%xmm3, %xmm0
	pcmpeqd	%xmm5, %xmm0
	psubd	%xmm0, %xmm1
	cmpl	%edi, %eax
	jne	.L6
	movdqa	%xmm1, %xmm0
	movl	%r9d, %edi
	psrldq	$8, %xmm0
	andl	$-4, %edi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %edx
	leal	(%rdi,%rcx), %eax
	cmpl	%r9d, %edi
	je	.L9
.L5:
	leal	(%rax,%r8), %edi
	cmpl	%edi, %r10d
	sete	%dil
	movzbl	%dil, %edi
	addl	%edi, %edx
	leal	1(%rax), %edi
	cmpl	%edi, %esi
	jl	.L9
	addl	%r8d, %edi
	cmpl	%edi, %r10d
	sete	%dil
	movzbl	%dil, %edi
	addl	%edi, %edx
	leal	2(%rax), %edi
	cmpl	%edi, %esi
	jl	.L9
	addl	%r8d, %edi
	cmpl	%edi, %r10d
	sete	%dil
	movzbl	%dil, %edi
	addl	%edi, %edx
	leal	3(%rax), %edi
	cmpl	%edi, %esi
	jl	.L9
	addl	%r8d, %edi
	cmpl	%edi, %r10d
	sete	%dil
	movzbl	%dil, %edi
	addl	%edi, %edx
	leal	4(%rax), %edi
	cmpl	%edi, %esi
	jl	.L9
	addl	%r8d, %edi
	cmpl	%edi, %r10d
	sete	%dil
	addl	$5, %eax
	movzbl	%dil, %edi
	addl	%edi, %edx
	cmpl	%eax, %esi
	jl	.L9
	addl	%eax, %r8d
	xorl	%eax, %eax
	cmpl	%r8d, %r10d
	sete	%al
	addl	%eax, %edx
.L9:
	subl	$1, %r9d
	cmpl	%ecx, %esi
	je	.L3
	movl	%ecx, %eax
.L34:
	leal	1(%rax), %ecx
	cmpl	%ecx, %esi
	jge	.L33
.L4:
	subl	$1, %r9d
	movl	%ecx, %eax
	jmp	.L34
.L31:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	addl	$1, %r14d
	cmpl	%r13d, %r15d
	jne	.L18
	jmp	.L19
.L23:
	movl	%ecx, %eax
	jmp	.L5
.L35:
	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, n1, n2, n3, k;

	scanf("%d %d", &n, &x);
	while( n != 0 || x != 0)
	{
		k=0;
		for(n1 = 1; n1 <= n - 2; n1++)
		{
			for(n2 = n1 + 1; n2 <= n - 1; n2++)
			{
				for(n3 = n2 + 1; n3 <= n; n3++)
				{
					if(n1 + n2 + n3 == x)
						k++;
				}
			}
		}
		printf("%d\n",k);
		scanf("%d %d", &n, &x);
	}
}


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, n1, n2, n3, k;

	scanf("%d %d", &n, &x);
	while( n != 0 || x != 0)
	{
		k=0;
		for(n1 = 1; n1 <= n - 2; n1++)
		{
			for(n2 = n1 + 1; n2 <= n - 1; n2++)
			{
				for(n3 = n2 + 1; n3 <= n; n3++)
				{
					if(n1 + n2 + n3 == x)
						k++;
				}
			}
		}
		printf("%d\n",k);
		scanf("%d %d", &n, &x);
	}
}

```

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
	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
	jmp	.L2
.L10:
	movl	$0, -12(%rbp)
	movl	$1, -24(%rbp)
	jmp	.L3
.L9:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L4
.L8:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L5
.L7:
	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	.L6
	addl	$1, -12(%rbp)
.L6:
	addl	$1, -16(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L7
	addl	$1, -20(%rbp)
.L4:
	movl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L8
	addl	$1, -24(%rbp)
.L3:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -24(%rbp)
	jl	.L9
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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
.L2:
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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
	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
	jmp	.L2
.L10:
	movl	$0, -12(%rbp)
	movl	$1, -24(%rbp)
	jmp	.L3
.L9:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L4
.L8:
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -16(%rbp)
	jmp	.L5
.L7:
	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	.L6
	addl	$1, -12(%rbp)
.L6:
	addl	$1, -16(%rbp)
.L5:
	movl	-32(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L7
	addl	$1, -20(%rbp)
.L4:
	movl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L8
	addl	$1, -24(%rbp)
.L3:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -24(%rbp)
	jl	.L9
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	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
.L2:
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
