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 <stdlib.h>
#include <math.h>
#include <string.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
typedef long long lld;
typedef long double Lf;
#define Ma(x,y) ((x)>(y)?(x):(y))
#define mi(x,y) ((x)<(y)?(x):(y))
#define A(x) (int)abs(x)

int main() {
	int n, x, y, a[2000] = { 0 };
	scanf("%d%d%d", &n, &x, &y);
	Rep(i, 1, n)Rep(j, i + 1, n + 1)a[mi(abs(x - i) + abs(y - j) + 1, mi(abs(y - i) + abs(x - j) + 1, j - i))]++;
	Rep(i, 1, n)printf("%d\n", a[i]);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8080
	movl	$1000, %ecx
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	8(%rsp), %rdx
	movq	%rbx, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	12(%rsp), %rcx
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	cmpl	$1, %ebp
	jle	.L2
	movl	8(%rsp), %r12d
	movl	12(%rsp), %r9d
	movl	$1, %r11d
	leal	-1(%r12), %esi
	leal	1(%r9), %r13d
	subl	%r12d, %r9d
	movl	%esi, %r10d
	subl	%ebp, %r10d
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %r11d
	cmpl	%ebp, %r11d
	jg	.L3
	movl	%r13d, %eax
	movl	%esi, %edi
	subl	%r11d, %eax
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	negl	%edi
	movl	%r12d, %eax
	cmovs	%esi, %edi
	subl	%r11d, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	leal	(%r9,%rax), %ecx
	movl	%esi, %r14d
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movl	%eax, %ecx
	negl	%ecx
	cmovs	%eax, %ecx
	subl	%eax, %r14d
	leal	1(%rdi,%rdx), %edx
	leal	1(%r8,%rcx), %ecx
	cmpl	%r14d, %ecx
	cmovg	%r14d, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	subl	$1, %eax
	movslq	%edx, %rdx
	addl	$1, 16(%rsp,%rdx,4)
	cmpl	%eax, %r10d
	jne	.L4
	subl	$1, %esi
	cmpl	%ebp, %r11d
	jne	.L6
	movl	$1, %ebp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx,%rbp,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 4(%rsp)
	jg	.L5
.L2:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$8032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	subl	$1, %esi
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8080
	movl	$1000, %ecx
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	8(%rsp), %rdx
	movq	%rbx, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	12(%rsp), %rcx
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	cmpl	$1, %ebp
	jle	.L2
	movl	8(%rsp), %r12d
	movl	12(%rsp), %r9d
	movl	$1, %r11d
	leal	-1(%r12), %esi
	leal	1(%r9), %r13d
	subl	%r12d, %r9d
	movl	%esi, %r10d
	subl	%ebp, %r10d
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %r11d
	cmpl	%ebp, %r11d
	jg	.L3
	movl	%r13d, %eax
	movl	%esi, %edi
	subl	%r11d, %eax
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	negl	%edi
	movl	%r12d, %eax
	cmovs	%esi, %edi
	subl	%r11d, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	leal	(%r9,%rax), %ecx
	movl	%esi, %r14d
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movl	%eax, %ecx
	negl	%ecx
	cmovs	%eax, %ecx
	subl	%eax, %r14d
	leal	1(%rdi,%rdx), %edx
	leal	1(%r8,%rcx), %ecx
	cmpl	%r14d, %ecx
	cmovg	%r14d, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	subl	$1, %eax
	movslq	%edx, %rdx
	addl	$1, 16(%rsp,%rdx,4)
	cmpl	%eax, %r10d
	jne	.L4
	subl	$1, %esi
	cmpl	%ebp, %r11d
	jne	.L6
	movl	$1, %ebp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx,%rbp,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 4(%rsp)
	jg	.L5
.L2:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$8032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	subl	$1, %esi
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8080
	movl	$1000, %ecx
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	8(%rsp), %rdx
	movq	%rbx, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	12(%rsp), %rcx
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	cmpl	$1, %ebp
	jle	.L2
	movl	8(%rsp), %r12d
	movl	12(%rsp), %r9d
	movl	$1, %r11d
	leal	-1(%r12), %esi
	leal	1(%r9), %r13d
	subl	%r12d, %r9d
	movl	%esi, %r10d
	subl	%ebp, %r10d
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %r11d
	cmpl	%ebp, %r11d
	jg	.L3
	movl	%r13d, %eax
	movl	%esi, %edi
	subl	%r11d, %eax
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	negl	%edi
	movl	%r12d, %eax
	cmovs	%esi, %edi
	subl	%r11d, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	leal	(%r9,%rax), %ecx
	movl	%esi, %r14d
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movl	%eax, %ecx
	negl	%ecx
	cmovs	%eax, %ecx
	subl	%eax, %r14d
	leal	1(%rdi,%rdx), %edx
	leal	1(%r8,%rcx), %ecx
	cmpl	%r14d, %ecx
	cmovg	%r14d, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	subl	$1, %eax
	movslq	%edx, %rdx
	addl	$1, 16(%rsp,%rdx,4)
	cmpl	%eax, %r10d
	jne	.L4
	subl	$1, %esi
	cmpl	%ebp, %r11d
	jne	.L6
	movl	$1, %ebp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx,%rbp,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 4(%rsp)
	jg	.L5
.L2:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$8032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	subl	$1, %esi
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
typedef long long lld;
typedef long double Lf;
#define Ma(x,y) ((x)>(y)?(x):(y))
#define mi(x,y) ((x)<(y)?(x):(y))
#define A(x) (int)abs(x)

int main() {
	int n, x, y, a[2000] = { 0 };
	scanf("%d%d%d", &n, &x, &y);
	Rep(i, 1, n)Rep(j, i + 1, n + 1)a[mi(abs(x - i) + abs(y - j) + 1, mi(abs(y - i) + abs(x - j) + 1, j - i))]++;
	Rep(i, 1, n)printf("%d\n", a[i]);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
typedef long long lld;
typedef long double Lf;
#define Ma(x,y) ((x)>(y)?(x):(y))
#define mi(x,y) ((x)<(y)?(x):(y))
#define A(x) (int)abs(x)

int main() {
	int n, x, y, a[2000] = { 0 };
	scanf("%d%d%d", &n, &x, &y);
	Rep(i, 1, n)Rep(j, i + 1, n + 1)a[mi(abs(x - i) + abs(y - j) + 1, mi(abs(y - i) + abs(x - j) + 1, j - i))]++;
	Rep(i, 1, n)printf("%d\n", a[i]);
}```

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 1 3
 7 3 4
 10 4 6
 9 2 4
 14 3 4
 10 4 9
 10 4 5
 3 2 3
 5 1 4
 4 1 2

4
2
0
 6
5
4
3
2
1
 10
9
8
7
5
3
2
1
0
 9
8
6
5
4
3
1
0
 13
12
11
10
9
8
7
6
5
4
3
2
1
 10
12
11
7
4
1
0
0
0
 9
8
7
6
5
4
3
2
1
 2
1
 5
4
1
0
 3
2
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 <stdlib.h>
#include <math.h>
#include <string.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
typedef long long lld;
typedef long double Lf;
#define Ma(x,y) ((x)>(y)?(x):(y))
#define mi(x,y) ((x)<(y)?(x):(y))
#define A(x) (int)abs(x)

int main() {
	int n, x, y, a[2000] = { 0 };
	scanf("%d%d%d", &n, &x, &y);
	Rep(i, 1, n)Rep(j, i + 1, n + 1)a[mi(abs(x - i) + abs(y - j) + 1, mi(abs(y - i) + abs(x - j) + 1, j - i))]++;
	Rep(i, 1, n)printf("%d\n", a[i]);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8080
	movl	$1000, %ecx
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	8(%rsp), %rdx
	movq	%rbx, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	12(%rsp), %rcx
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	cmpl	$1, %ebp
	jle	.L2
	movl	8(%rsp), %r12d
	movl	12(%rsp), %r9d
	movl	$1, %r11d
	leal	-1(%r12), %esi
	leal	1(%r9), %r13d
	subl	%r12d, %r9d
	movl	%esi, %r10d
	subl	%ebp, %r10d
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %r11d
	cmpl	%ebp, %r11d
	jg	.L3
	movl	%r13d, %eax
	movl	%esi, %edi
	subl	%r11d, %eax
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	negl	%edi
	movl	%r12d, %eax
	cmovs	%esi, %edi
	subl	%r11d, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	leal	(%r9,%rax), %ecx
	movl	%esi, %r14d
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movl	%eax, %ecx
	negl	%ecx
	cmovs	%eax, %ecx
	subl	%eax, %r14d
	leal	1(%rdi,%rdx), %edx
	leal	1(%r8,%rcx), %ecx
	cmpl	%r14d, %ecx
	cmovg	%r14d, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	subl	$1, %eax
	movslq	%edx, %rdx
	addl	$1, 16(%rsp,%rdx,4)
	cmpl	%eax, %r10d
	jne	.L4
	subl	$1, %esi
	cmpl	%ebp, %r11d
	jne	.L6
	movl	$1, %ebp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx,%rbp,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 4(%rsp)
	jg	.L5
.L2:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$8032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	subl	$1, %esi
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8080
	movl	$1000, %ecx
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	8(%rsp), %rdx
	movq	%rbx, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	12(%rsp), %rcx
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebp
	cmpl	$1, %ebp
	jle	.L2
	movl	8(%rsp), %r12d
	movl	12(%rsp), %r9d
	movl	$1, %r11d
	leal	-1(%r12), %esi
	leal	1(%r9), %r13d
	subl	%r12d, %r9d
	movl	%esi, %r10d
	subl	%ebp, %r10d
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %r11d
	cmpl	%ebp, %r11d
	jg	.L3
	movl	%r13d, %eax
	movl	%esi, %edi
	subl	%r11d, %eax
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	negl	%edi
	movl	%r12d, %eax
	cmovs	%esi, %edi
	subl	%r11d, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	leal	(%r9,%rax), %ecx
	movl	%esi, %r14d
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	movl	%eax, %ecx
	negl	%ecx
	cmovs	%eax, %ecx
	subl	%eax, %r14d
	leal	1(%rdi,%rdx), %edx
	leal	1(%r8,%rcx), %ecx
	cmpl	%r14d, %ecx
	cmovg	%r14d, %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	subl	$1, %eax
	movslq	%edx, %rdx
	addl	$1, 16(%rsp,%rdx,4)
	cmpl	%eax, %r10d
	jne	.L4
	subl	$1, %esi
	cmpl	%ebp, %r11d
	jne	.L6
	movl	$1, %ebp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx,%rbp,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 4(%rsp)
	jg	.L5
.L2:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$8032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	subl	$1, %esi
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```