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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
int DBG = 0;										/* デバッグプリント 提出時は0 */
/* main *************************************************************/
int a[300001],x[300001],y[300001];
int n,q;
int main()
{
	int		ng = 0,p,xx,yy,b,c,i,j,k,m,ans = 0;
	
	scanf("%d", &n);
	scanf("%d",&a[1]);
	for(i=2;i<=n;i++) {
		scanf("%d",&a[i]);
		if (a[i-1] > a[i]) ng++;
	}
	scanf("%d", &q);
	for(i=1;i<=q;i++) scanf("%d %d",&x[i],&y[i]);

	if (DBG) printf("ng:%d\n\n",ng);
	if (ng==0) { printf("0\n"); return 0; }
	for(i=1;i<=q;i++) {
		xx = x[i];
		yy = y[i];
		if (xx > yy) {
			k = xx;
			xx = yy;
			yy = k;
		}
		if (xx!=1) {
			if ((a[xx] >= a[xx-1]) && (a[yy] < a[xx-1])) ng++;
			if ((a[xx] < a[xx-1]) && (a[yy] >= a[xx-1])) ng--;
		}
		if (yy-xx != 1) {
			if ((a[xx] > a[xx+1]) && (a[yy] <= a[xx+1])) ng--;
			if ((a[xx] <= a[xx+1]) && (a[yy] > a[xx+1])) ng++;
			if ((a[yy] >= a[yy-1]) && (a[xx] < a[yy-1])) ng++;
			if ((a[yy] < a[yy-1]) && (a[xx] >= a[yy-1])) ng--;
		} else {
			if (a[xx] > a[yy]) ng--;
			else ng++;
		}
		if (yy!=n) {
			if ((a[yy] > a[yy+1]) && (a[xx] <= a[yy+1])) ng--;
			if ((a[yy] <= a[yy+1]) && (a[xx] > a[yy+1])) ng++;
		}
		k = a[xx];
		a[xx] = a[yy];
		a[yy] = k;
		if (DBG) printf("ng:%d\n",ng);
		if (ng <0) { printf("Error\n"); }
		if (ng==0) { ans = 1; break; }
	}

	if (ans) printf("%d\n", i);
	else printf("-1\n");

	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	DBG
	.bss
	.align 4
	.type	DBG, @object
	.size	DBG, 4
DBG:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 1200004
a:
	.zero	1200004
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 1200004
x:
	.zero	1200004
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 1200004
y:
	.zero	1200004
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	q
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"ng:%d\n\n"
.LC3:
	.string	"0"
.LC4:
	.string	"ng:%d\n"
.LC5:
	.string	"Error"
.LC6:
	.string	"%d\n"
.LC7:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	movl	$0, -24(%rbp)
	movl	$0, -8(%rbp)
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	4+a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -12(%rbp)
	jmp	.L2
.L4:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L3
	addl	$1, -24(%rbp)
.L3:
	addl	$1, -12(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L4
	leaq	q(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L5:
	movl	q(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L6
	movl	DBG(%rip), %eax
	testl	%eax, %eax
	je	.L7
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	cmpl	$0, -24(%rbp)
	jne	.L8
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L8:
	movl	$1, -12(%rbp)
	jmp	.L10
.L26:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jle	.L11
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -16(%rbp)
.L11:
	cmpl	$1, -20(%rbp)
	je	.L12
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L13
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L13
	addl	$1, -24(%rbp)
.L13:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L12
	subl	$1, -24(%rbp)
.L12:
	movl	-16(%rbp), %eax
	subl	-20(%rbp), %eax
	cmpl	$1, %eax
	je	.L14
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L15
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L15
	subl	$1, -24(%rbp)
.L15:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L16
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L16
	addl	$1, -24(%rbp)
.L16:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L17
	addl	$1, -24(%rbp)
.L17:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L18
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L18
	subl	$1, -24(%rbp)
	jmp	.L18
.L14:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L19
	subl	$1, -24(%rbp)
	jmp	.L18
.L19:
	addl	$1, -24(%rbp)
.L18:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	je	.L20
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L21
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L21
	subl	$1, -24(%rbp)
.L21:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L20
	addl	$1, -24(%rbp)
.L20:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	DBG(%rip), %eax
	testl	%eax, %eax
	je	.L22
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	cmpl	$0, -24(%rbp)
	jns	.L23
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L23:
	cmpl	$0, -24(%rbp)
	jne	.L24
	movl	$1, -8(%rbp)
	jmp	.L25
.L24:
	addl	$1, -12(%rbp)
.L10:
	movl	q(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L26
.L25:
	cmpl	$0, -8(%rbp)
	je	.L27
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L28
.L27:
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L28:
	movl	$0, %eax
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"ng:%d\n\n"
.LC3:
	.string	"0"
.LC4:
	.string	"ng:%d\n"
.LC5:
	.string	"Error"
.LC6:
	.string	"%d\n"
.LC7:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	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
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	4+a(%rip), %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, n(%rip)
	jle	.L34
	leaq	8+a(%rip), %rbp
	movl	$2, %r12d
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	0(%rbp), %eax
	cmpl	%eax, -4(%rbp)
	setg	%al
	addl	$1, %r12d
	addq	$4, %rbp
	movzbl	%al, %eax
	addl	%eax, %ebx
	cmpl	%r12d, n(%rip)
	jge	.L4
.L2:
	leaq	q(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	movl	$4, %r13d
	call	__isoc99_scanf@PLT
	movl	q(%rip), %esi
	movl	$1, %r14d
	leaq	y(%rip), %r12
	leaq	x(%rip), %rbp
	leaq	.LC1(%rip), %r15
	testl	%esi, %esi
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%r12,%r13), %rdx
	leaq	0(%rbp,%r13), %rsi
	xorl	%eax, %eax
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	addl	$1, %r14d
	addq	$4, %r13
	cmpl	%r14d, q(%rip)
	jge	.L5
.L8:
	movl	DBG(%rip), %ecx
	testl	%ecx, %ecx
	jne	.L50
.L7:
	testl	%ebx, %ebx
	je	.L9
	movl	q(%rip), %edx
	movl	$1, %r15d
	leaq	y(%rip), %r12
	leaq	x(%rip), %rbp
	leaq	a(%rip), %r14
	leaq	.LC4(%rip), %r13
	testl	%edx, %edx
	jg	.L10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L53:
	leal	-1(%rax), %r10d
	movslq	%r10d, %r10
	movl	(%r14,%r10,4), %r10d
	cmpl	%ecx, %r10d
	jg	.L15
	cmpl	%esi, %r10d
	jle	.L14
	addl	$1, %ebx
	cmpl	$1, %r11d
	je	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %eax
	cltq
	movl	(%r14,%rax,4), %eax
	cmpl	%ecx, %eax
	jge	.L20
	cmpl	%esi, %eax
	setge	%al
	movzbl	%al, %eax
	subl	%eax, %ebx
.L21:
	leal	-1(%rdx), %eax
	cltq
	movl	(%r14,%rax,4), %eax
	cmpl	%esi, %eax
	jg	.L22
	cmpl	%ecx, %eax
	setg	%al
	movzbl	%al, %eax
	addl	%eax, %ebx
.L23:
	cmpl	%edx, n(%rip)
	je	.L24
	addl	$1, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %eax
	cmpl	%esi, %eax
	jge	.L25
	cmpl	%ecx, %eax
	setge	%al
	movzbl	%al, %eax
	subl	%eax, %ebx
.L24:
	movl	DBG(%rip), %eax
	movl	%esi, (%r14,%rdi,4)
	movl	%ecx, (%r14,%r9,4)
	testl	%eax, %eax
	jne	.L51
	testl	%ebx, %ebx
	js	.L52
.L27:
	je	.L29
	addq	$1, %r15
	cmpl	%r15d, q(%rip)
	jl	.L11
.L10:
	movl	0(%rbp,%r15,4), %eax
	movl	(%r12,%r15,4), %edx
	movl	%r15d, %r8d
	cmpl	%edx, %eax
	jle	.L13
	movl	%eax, %ecx
	movl	%edx, %eax
	movl	%ecx, %edx
.L13:
	movslq	%eax, %rdi
	movslq	%edx, %r9
	movl	%edx, %r11d
	movl	(%r14,%rdi,4), %ecx
	movl	(%r14,%r9,4), %esi
	subl	%eax, %r11d
	cmpl	$1, %eax
	jne	.L53
.L14:
	cmpl	$1, %r11d
	jne	.L16
	cmpl	%esi, %ecx
	jle	.L18
.L17:
	subl	$1, %ebx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	%ecx, %eax
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %ebx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	%esi, %r10d
	jg	.L14
	subl	$1, %ebx
	cmpl	$1, %r11d
	jne	.L16
.L18:
	addl	$1, %ebx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	cmpl	%ecx, %eax
	setle	%al
	movzbl	%al, %eax
	subl	%eax, %ebx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	%esi, %eax
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %ebx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L51:
	movl	%ebx, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r8d, 12(%rsp)
	call	__printf_chk@PLT
	movl	12(%rsp), %r8d
	testl	%ebx, %ebx
	jns	.L27
.L52:
	leaq	.LC5(%rip), %rdi
	addq	$1, %r15
	call	puts@PLT
	cmpl	%r15d, q(%rip)
	jge	.L10
.L11:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
.L45:
	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
.L29:
	.cfi_restore_state
	movl	%r8d, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L45
.L50:
	movl	%ebx, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L9:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L45
.L34:
	xorl	%ebx, %ebx
	jmp	.L2
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	q
	.bss
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 1200004
y:
	.zero	1200004
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 1200004
x:
	.zero	1200004
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 1200004
a:
	.zero	1200004
	.globl	DBG
	.align 4
	.type	DBG, @object
	.size	DBG, 4
DBG:
	.zero	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"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"ng:%d\n\n"
.LC3:
	.string	"0"
.LC4:
	.string	"ng:%d\n"
.LC5:
	.string	"Error"
.LC6:
	.string	"%d\n"
.LC7:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	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
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	4+a(%rip), %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, n(%rip)
	jle	.L34
	leaq	8+a(%rip), %rbp
	movl	$2, %r12d
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	0(%rbp), %eax
	cmpl	%eax, -4(%rbp)
	setg	%al
	addl	$1, %r12d
	addq	$4, %rbp
	movzbl	%al, %eax
	addl	%eax, %ebx
	cmpl	%r12d, n(%rip)
	jge	.L4
.L2:
	leaq	q(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	movl	$4, %r13d
	call	__isoc99_scanf@PLT
	movl	q(%rip), %esi
	movl	$1, %r14d
	leaq	y(%rip), %r12
	leaq	x(%rip), %rbp
	leaq	.LC1(%rip), %r15
	testl	%esi, %esi
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%r12,%r13), %rdx
	leaq	0(%rbp,%r13), %rsi
	xorl	%eax, %eax
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	addl	$1, %r14d
	addq	$4, %r13
	cmpl	%r14d, q(%rip)
	jge	.L5
.L8:
	movl	DBG(%rip), %ecx
	testl	%ecx, %ecx
	jne	.L50
.L7:
	testl	%ebx, %ebx
	je	.L9
	movl	q(%rip), %edx
	movl	$1, %r15d
	leaq	y(%rip), %r12
	leaq	x(%rip), %rbp
	leaq	a(%rip), %r14
	leaq	.LC4(%rip), %r13
	testl	%edx, %edx
	jg	.L10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L53:
	leal	-1(%rax), %r10d
	movslq	%r10d, %r10
	movl	(%r14,%r10,4), %r10d
	cmpl	%ecx, %r10d
	jg	.L15
	cmpl	%esi, %r10d
	jle	.L14
	addl	$1, %ebx
	cmpl	$1, %r11d
	je	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %eax
	cltq
	movl	(%r14,%rax,4), %eax
	cmpl	%ecx, %eax
	jge	.L20
	cmpl	%esi, %eax
	setge	%al
	movzbl	%al, %eax
	subl	%eax, %ebx
.L21:
	leal	-1(%rdx), %eax
	cltq
	movl	(%r14,%rax,4), %eax
	cmpl	%esi, %eax
	jg	.L22
	cmpl	%ecx, %eax
	setg	%al
	movzbl	%al, %eax
	addl	%eax, %ebx
.L23:
	cmpl	%edx, n(%rip)
	je	.L24
	addl	$1, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %eax
	cmpl	%esi, %eax
	jge	.L25
	cmpl	%ecx, %eax
	setge	%al
	movzbl	%al, %eax
	subl	%eax, %ebx
.L24:
	movl	DBG(%rip), %eax
	movl	%esi, (%r14,%rdi,4)
	movl	%ecx, (%r14,%r9,4)
	testl	%eax, %eax
	jne	.L51
	testl	%ebx, %ebx
	js	.L52
.L27:
	je	.L29
	addq	$1, %r15
	cmpl	%r15d, q(%rip)
	jl	.L11
.L10:
	movl	0(%rbp,%r15,4), %eax
	movl	(%r12,%r15,4), %edx
	movl	%r15d, %r8d
	cmpl	%edx, %eax
	jle	.L13
	movl	%eax, %ecx
	movl	%edx, %eax
	movl	%ecx, %edx
.L13:
	movslq	%eax, %rdi
	movslq	%edx, %r9
	movl	%edx, %r11d
	movl	(%r14,%rdi,4), %ecx
	movl	(%r14,%r9,4), %esi
	subl	%eax, %r11d
	cmpl	$1, %eax
	jne	.L53
.L14:
	cmpl	$1, %r11d
	jne	.L16
	cmpl	%esi, %ecx
	jle	.L18
.L17:
	subl	$1, %ebx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	%ecx, %eax
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %ebx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	%esi, %r10d
	jg	.L14
	subl	$1, %ebx
	cmpl	$1, %r11d
	jne	.L16
.L18:
	addl	$1, %ebx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	cmpl	%ecx, %eax
	setle	%al
	movzbl	%al, %eax
	subl	%eax, %ebx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	%esi, %eax
	setl	%al
	movzbl	%al, %eax
	addl	%eax, %ebx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L51:
	movl	%ebx, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	%r8d, 12(%rsp)
	call	__printf_chk@PLT
	movl	12(%rsp), %r8d
	testl	%ebx, %ebx
	jns	.L27
.L52:
	leaq	.LC5(%rip), %rdi
	addq	$1, %r15
	call	puts@PLT
	cmpl	%r15d, q(%rip)
	jge	.L10
.L11:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
.L45:
	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
.L29:
	.cfi_restore_state
	movl	%r8d, %edx
	leaq	.LC6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L45
.L50:
	movl	%ebx, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L9:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L45
.L34:
	xorl	%ebx, %ebx
	jmp	.L2
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	q
	.bss
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 1200004
y:
	.zero	1200004
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 1200004
x:
	.zero	1200004
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 1200004
a:
	.zero	1200004
	.globl	DBG
	.align 4
	.type	DBG, @object
	.size	DBG, 4
DBG:
	.zero	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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
int DBG = 0;										/* デバッグプリント 提出時は0 */
/* main *************************************************************/
int a[300001],x[300001],y[300001];
int n,q;
int main()
{
	int		ng = 0,p,xx,yy,b,c,i,j,k,m,ans = 0;
	
	scanf("%d", &n);
	scanf("%d",&a[1]);
	for(i=2;i<=n;i++) {
		scanf("%d",&a[i]);
		if (a[i-1] > a[i]) ng++;
	}
	scanf("%d", &q);
	for(i=1;i<=q;i++) scanf("%d %d",&x[i],&y[i]);

	if (DBG) printf("ng:%d\n\n",ng);
	if (ng==0) { printf("0\n"); return 0; }
	for(i=1;i<=q;i++) {
		xx = x[i];
		yy = y[i];
		if (xx > yy) {
			k = xx;
			xx = yy;
			yy = k;
		}
		if (xx!=1) {
			if ((a[xx] >= a[xx-1]) && (a[yy] < a[xx-1])) ng++;
			if ((a[xx] < a[xx-1]) && (a[yy] >= a[xx-1])) ng--;
		}
		if (yy-xx != 1) {
			if ((a[xx] > a[xx+1]) && (a[yy] <= a[xx+1])) ng--;
			if ((a[xx] <= a[xx+1]) && (a[yy] > a[xx+1])) ng++;
			if ((a[yy] >= a[yy-1]) && (a[xx] < a[yy-1])) ng++;
			if ((a[yy] < a[yy-1]) && (a[xx] >= a[yy-1])) ng--;
		} else {
			if (a[xx] > a[yy]) ng--;
			else ng++;
		}
		if (yy!=n) {
			if ((a[yy] > a[yy+1]) && (a[xx] <= a[yy+1])) ng--;
			if ((a[yy] <= a[yy+1]) && (a[xx] > a[yy+1])) ng++;
		}
		k = a[xx];
		a[xx] = a[yy];
		a[yy] = k;
		if (DBG) printf("ng:%d\n",ng);
		if (ng <0) { printf("Error\n"); }
		if (ng==0) { ans = 1; break; }
	}

	if (ans) printf("%d\n", i);
	else printf("-1\n");

	return 0;
}


6
9 7 5 6 3 1
3
1 6
2 5
3 4

2

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>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b)	(((a) > (b)) ? (a) : (b))		/* ２個の値の最大値 */
#define min(a, b)	(((a) < (b)) ? (a) : (b))		/* ２個の値の最小値 */
#define ENTER		printf("\n")					/* 改行プリント */
int DBG = 0;										/* デバッグプリント 提出時は0 */
/* main *************************************************************/
int a[300001],x[300001],y[300001];
int n,q;
int main()
{
	int		ng = 0,p,xx,yy,b,c,i,j,k,m,ans = 0;
	
	scanf("%d", &n);
	scanf("%d",&a[1]);
	for(i=2;i<=n;i++) {
		scanf("%d",&a[i]);
		if (a[i-1] > a[i]) ng++;
	}
	scanf("%d", &q);
	for(i=1;i<=q;i++) scanf("%d %d",&x[i],&y[i]);

	if (DBG) printf("ng:%d\n\n",ng);
	if (ng==0) { printf("0\n"); return 0; }
	for(i=1;i<=q;i++) {
		xx = x[i];
		yy = y[i];
		if (xx > yy) {
			k = xx;
			xx = yy;
			yy = k;
		}
		if (xx!=1) {
			if ((a[xx] >= a[xx-1]) && (a[yy] < a[xx-1])) ng++;
			if ((a[xx] < a[xx-1]) && (a[yy] >= a[xx-1])) ng--;
		}
		if (yy-xx != 1) {
			if ((a[xx] > a[xx+1]) && (a[yy] <= a[xx+1])) ng--;
			if ((a[xx] <= a[xx+1]) && (a[yy] > a[xx+1])) ng++;
			if ((a[yy] >= a[yy-1]) && (a[xx] < a[yy-1])) ng++;
			if ((a[yy] < a[yy-1]) && (a[xx] >= a[yy-1])) ng--;
		} else {
			if (a[xx] > a[yy]) ng--;
			else ng++;
		}
		if (yy!=n) {
			if ((a[yy] > a[yy+1]) && (a[xx] <= a[yy+1])) ng--;
			if ((a[yy] <= a[yy+1]) && (a[xx] > a[yy+1])) ng++;
		}
		k = a[xx];
		a[xx] = a[yy];
		a[yy] = k;
		if (DBG) printf("ng:%d\n",ng);
		if (ng <0) { printf("Error\n"); }
		if (ng==0) { ans = 1; break; }
	}

	if (ans) printf("%d\n", i);
	else printf("-1\n");

	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	DBG
	.bss
	.align 4
	.type	DBG, @object
	.size	DBG, 4
DBG:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 1200004
a:
	.zero	1200004
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 1200004
x:
	.zero	1200004
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 1200004
y:
	.zero	1200004
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	q
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"ng:%d\n\n"
.LC3:
	.string	"0"
.LC4:
	.string	"ng:%d\n"
.LC5:
	.string	"Error"
.LC6:
	.string	"%d\n"
.LC7:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	movl	$0, -24(%rbp)
	movl	$0, -8(%rbp)
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	4+a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -12(%rbp)
	jmp	.L2
.L4:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L3
	addl	$1, -24(%rbp)
.L3:
	addl	$1, -12(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L4
	leaq	q(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L5:
	movl	q(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L6
	movl	DBG(%rip), %eax
	testl	%eax, %eax
	je	.L7
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	cmpl	$0, -24(%rbp)
	jne	.L8
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L8:
	movl	$1, -12(%rbp)
	jmp	.L10
.L26:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jle	.L11
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -16(%rbp)
.L11:
	cmpl	$1, -20(%rbp)
	je	.L12
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L13
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L13
	addl	$1, -24(%rbp)
.L13:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L12
	subl	$1, -24(%rbp)
.L12:
	movl	-16(%rbp), %eax
	subl	-20(%rbp), %eax
	cmpl	$1, %eax
	je	.L14
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L15
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L15
	subl	$1, -24(%rbp)
.L15:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L16
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L16
	addl	$1, -24(%rbp)
.L16:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L17
	addl	$1, -24(%rbp)
.L17:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L18
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L18
	subl	$1, -24(%rbp)
	jmp	.L18
.L14:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L19
	subl	$1, -24(%rbp)
	jmp	.L18
.L19:
	addl	$1, -24(%rbp)
.L18:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	je	.L20
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L21
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L21
	subl	$1, -24(%rbp)
.L21:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L20
	addl	$1, -24(%rbp)
.L20:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	DBG(%rip), %eax
	testl	%eax, %eax
	je	.L22
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	cmpl	$0, -24(%rbp)
	jns	.L23
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L23:
	cmpl	$0, -24(%rbp)
	jne	.L24
	movl	$1, -8(%rbp)
	jmp	.L25
.L24:
	addl	$1, -12(%rbp)
.L10:
	movl	q(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L26
.L25:
	cmpl	$0, -8(%rbp)
	je	.L27
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L28
.L27:
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L28:
	movl	$0, %eax
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.globl	DBG
	.bss
	.align 4
	.type	DBG, @object
	.size	DBG, 4
DBG:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 1200004
a:
	.zero	1200004
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 1200004
x:
	.zero	1200004
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 1200004
y:
	.zero	1200004
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	q
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"ng:%d\n\n"
.LC3:
	.string	"0"
.LC4:
	.string	"ng:%d\n"
.LC5:
	.string	"Error"
.LC6:
	.string	"%d\n"
.LC7:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	movl	$0, -24(%rbp)
	movl	$0, -8(%rbp)
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	4+a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$2, -12(%rbp)
	jmp	.L2
.L4:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L3
	addl	$1, -24(%rbp)
.L3:
	addl	$1, -12(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L4
	leaq	q(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -12(%rbp)
	jmp	.L5
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L5:
	movl	q(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L6
	movl	DBG(%rip), %eax
	testl	%eax, %eax
	je	.L7
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	cmpl	$0, -24(%rbp)
	jne	.L8
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L9
.L8:
	movl	$1, -12(%rbp)
	jmp	.L10
.L26:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -16(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jle	.L11
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -16(%rbp)
.L11:
	cmpl	$1, -20(%rbp)
	je	.L12
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L13
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L13
	addl	$1, -24(%rbp)
.L13:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L12
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L12
	subl	$1, -24(%rbp)
.L12:
	movl	-16(%rbp), %eax
	subl	-20(%rbp), %eax
	cmpl	$1, %eax
	je	.L14
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L15
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L15
	subl	$1, -24(%rbp)
.L15:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L16
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L16
	addl	$1, -24(%rbp)
.L16:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L17
	addl	$1, -24(%rbp)
.L17:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L18
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jl	.L18
	subl	$1, -24(%rbp)
	jmp	.L18
.L14:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L19
	subl	$1, -24(%rbp)
	jmp	.L18
.L19:
	addl	$1, -24(%rbp)
.L18:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	je	.L20
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L21
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L21
	subl	$1, -24(%rbp)
.L21:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jg	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L20
	addl	$1, -24(%rbp)
.L20:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	DBG(%rip), %eax
	testl	%eax, %eax
	je	.L22
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	cmpl	$0, -24(%rbp)
	jns	.L23
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L23:
	cmpl	$0, -24(%rbp)
	jne	.L24
	movl	$1, -8(%rbp)
	jmp	.L25
.L24:
	addl	$1, -12(%rbp)
.L10:
	movl	q(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L26
.L25:
	cmpl	$0, -8(%rbp)
	je	.L27
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L28
.L27:
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L28:
	movl	$0, %eax
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
