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>

void swa(int sakagutidaisuke[]) {
	int nakamurayuuichi = sakagutidaisuke[0];
	sakagutidaisuke[0] = sakagutidaisuke[1];
	sakagutidaisuke[1] = nakamurayuuichi;
}

int N;
int p[114514];

int main(void) {
	int i;
	int count = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 1; i <= N; i++) {
		if (scanf("%d", &p[i]) != 1) return 1;
	}
	if (p[1] == 1) {
		swa(p + 1);
		count++;
	}
	for (i = 2; i < N; i++) {
		if (p[i] == i) {
			swa(p + i);
			count++;
		}
	}
	if (p[N] == N) {
		swa(p + N - 1);
		count++;
	}
	printf("%d\n", count);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	swa
	.type	swa, @function
swa:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-24(%rbp), %rax
	leaq	4(%rax), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swa, .-swa
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 458056
p:
	.zero	458056
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	movl	$1, -8(%rbp)
	jmp	.L5
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L6
	movl	$1, %eax
	jmp	.L4
.L6:
	addl	$1, -8(%rbp)
.L5:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L7
	movl	4+p(%rip), %eax
	cmpl	$1, %eax
	jne	.L8
	leaq	4+p(%rip), %rax
	movq	%rax, %rdi
	call	swa
	addl	$1, -4(%rbp)
.L8:
	movl	$2, -8(%rbp)
	jmp	.L9
.L11:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jne	.L10
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	swa
	addl	$1, -4(%rbp)
.L10:
	addl	$1, -8(%rbp)
.L9:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L11
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jne	.L12
	movl	N(%rip), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	swa
	addl	$1, -4(%rbp)
.L12:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	swa
	.type	swa, @function
swa:
.LFB23:
	.cfi_startproc
	endbr64
	rolq	$32, (%rdi)
	ret
	.cfi_endproc
.LFE23:
	.size	swa, .-swa
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L7
	movl	%eax, %ebx
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L6
	leaq	4+p(%rip), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	movl	N(%rip), %eax
	addl	$1, %ebx
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jl	.L6
.L8:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
.L7:
	movl	$1, %eax
.L3:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	movl	4+p(%rip), %r8d
	cmpl	$1, %r8d
	je	.L19
	xorl	%r8d, %r8d
.L9:
	cmpl	$2, %eax
	jle	.L10
	leaq	8+p(%rip), %rcx
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%edx, (%rcx)
	je	.L20
	addl	$1, %edx
	addq	$4, %rcx
	cmpl	%eax, %edx
	jne	.L13
.L10:
	leaq	p(%rip), %rdx
	movslq	%eax, %rcx
	cmpl	%eax, (%rdx,%rcx,4)
	jne	.L14
	rolq	$32, -4(%rdx,%rcx,4)
	addl	$1, %r8d
.L14:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L3
.L19:
	movl	8+p(%rip), %edx
	movl	$1, 8+p(%rip)
	movl	%edx, 4+p(%rip)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	addl	$1, %edx
	rolq	$32, (%rcx)
	addl	$1, %r8d
	addq	$4, %rcx
	cmpl	%eax, %edx
	jne	.L13
	jmp	.L10
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 458056
p:
	.zero	458056
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.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
	.p2align 4
	.globl	swa
	.type	swa, @function
swa:
.LFB23:
	.cfi_startproc
	endbr64
	rolq	$32, (%rdi)
	ret
	.cfi_endproc
.LFE23:
	.size	swa, .-swa
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L7
	movl	%eax, %ebx
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L6
	leaq	4+p(%rip), %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	movl	N(%rip), %eax
	addl	$1, %ebx
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jl	.L6
.L8:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L18
.L7:
	movl	$1, %eax
.L3:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	movl	4+p(%rip), %r8d
	cmpl	$1, %r8d
	je	.L19
	xorl	%r8d, %r8d
.L9:
	cmpl	$2, %eax
	jle	.L10
	leaq	8+p(%rip), %rcx
	movl	$2, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%edx, (%rcx)
	je	.L20
	addl	$1, %edx
	addq	$4, %rcx
	cmpl	%eax, %edx
	jne	.L13
.L10:
	leaq	p(%rip), %rdx
	movslq	%eax, %rcx
	cmpl	%eax, (%rdx,%rcx,4)
	jne	.L14
	rolq	$32, -4(%rdx,%rcx,4)
	addl	$1, %r8d
.L14:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L3
.L19:
	movl	8+p(%rip), %edx
	movl	$1, 8+p(%rip)
	movl	%edx, 4+p(%rip)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	addl	$1, %edx
	rolq	$32, (%rcx)
	addl	$1, %r8d
	addq	$4, %rcx
	cmpl	%eax, %edx
	jne	.L13
	jmp	.L10
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 458056
p:
	.zero	458056
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.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>

void swa(int sakagutidaisuke[]) {
	int nakamurayuuichi = sakagutidaisuke[0];
	sakagutidaisuke[0] = sakagutidaisuke[1];
	sakagutidaisuke[1] = nakamurayuuichi;
}

int N;
int p[114514];

int main(void) {
	int i;
	int count = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 1; i <= N; i++) {
		if (scanf("%d", &p[i]) != 1) return 1;
	}
	if (p[1] == 1) {
		swa(p + 1);
		count++;
	}
	for (i = 2; i < N; i++) {
		if (p[i] == i) {
			swa(p + i);
			count++;
		}
	}
	if (p[N] == N) {
		swa(p + N - 1);
		count++;
	}
	printf("%d\n", count);
	return 0;
}

5
1 4 4 5 2
 9
1 2 4 9 5 8 7 6 6
 9
1 2 4 9 5 8 4 6 6
 5
0 4 4 5 1
 2
1 0
 2
1 1
 5
1 4 4 5 1
 2
1 -1
 2
0 2
 9
2 2 4 9 5 8 4 6 6

1
 3
 2
 0
 1
 1
 1
 1
 1
 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>

void swa(int sakagutidaisuke[]) {
	int nakamurayuuichi = sakagutidaisuke[0];
	sakagutidaisuke[0] = sakagutidaisuke[1];
	sakagutidaisuke[1] = nakamurayuuichi;
}

int N;
int p[114514];

int main(void) {
	int i;
	int count = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 1; i <= N; i++) {
		if (scanf("%d", &p[i]) != 1) return 1;
	}
	if (p[1] == 1) {
		swa(p + 1);
		count++;
	}
	for (i = 2; i < N; i++) {
		if (p[i] == i) {
			swa(p + i);
			count++;
		}
	}
	if (p[N] == N) {
		swa(p + N - 1);
		count++;
	}
	printf("%d\n", count);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	swa
	.type	swa, @function
swa:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-24(%rbp), %rax
	leaq	4(%rax), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swa, .-swa
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 458056
p:
	.zero	458056
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	movl	$1, -8(%rbp)
	jmp	.L5
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L6
	movl	$1, %eax
	jmp	.L4
.L6:
	addl	$1, -8(%rbp)
.L5:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L7
	movl	4+p(%rip), %eax
	cmpl	$1, %eax
	jne	.L8
	leaq	4+p(%rip), %rax
	movq	%rax, %rdi
	call	swa
	addl	$1, -4(%rbp)
.L8:
	movl	$2, -8(%rbp)
	jmp	.L9
.L11:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jne	.L10
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	swa
	addl	$1, -4(%rbp)
.L10:
	addl	$1, -8(%rbp)
.L9:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L11
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jne	.L12
	movl	N(%rip), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	swa
	addl	$1, -4(%rbp)
.L12:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	swa
	.type	swa, @function
swa:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-24(%rbp), %rax
	leaq	4(%rax), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	swa, .-swa
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 458056
p:
	.zero	458056
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	movl	$1, -8(%rbp)
	jmp	.L5
.L7:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L6
	movl	$1, %eax
	jmp	.L4
.L6:
	addl	$1, -8(%rbp)
.L5:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L7
	movl	4+p(%rip), %eax
	cmpl	$1, %eax
	jne	.L8
	leaq	4+p(%rip), %rax
	movq	%rax, %rdi
	call	swa
	addl	$1, -4(%rbp)
.L8:
	movl	$2, -8(%rbp)
	jmp	.L9
.L11:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jne	.L10
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	swa
	addl	$1, -4(%rbp)
.L10:
	addl	$1, -8(%rbp)
.L9:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L11
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	p(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jne	.L12
	movl	N(%rip), %eax
	cltq
	salq	$2, %rax
	leaq	-4(%rax), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	swa
	addl	$1, -4(%rbp)
.L12:
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
