Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define e(i,n)for(i=0;i<n;i++)
#define s(a,b){a^=b;b^=a;a^=b;}
char p[8][9];i,j;r(o){e(i,8)e(j,i)s(p[i][j],p[j][i])e(i,8)e(j,4)s(p[i][j],p[i][7-j])printf("%d\n",o);e(i,8)puts(p[i]);}main(){e(i,8)scanf("%s",p[i]);r(90);r(180);r(270);exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 72
p:
	.zero	72
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	r
	.type	r, @function
r:
.LFB0:
	.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	%edi, -4(%rbp)
	movl	$0, i(%rip)
	jmp	.L2
.L5:
	movl	$0, j(%rip)
	jmp	.L3
.L4:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L3:
	movl	j(%rip), %edx
	movl	i(%rip), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L2:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L5
	movl	$0, i(%rip)
	jmp	.L6
.L9:
	movl	$0, j(%rip)
	jmp	.L7
.L8:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	$7, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	$7, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edi
	movl	$7, %edx
	subl	%edi, %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	$7, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L7:
	movl	j(%rip), %eax
	cmpl	$3, %eax
	jle	.L8
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L6:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L9
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, i(%rip)
	jmp	.L10
.L11:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	p(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L10:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L11
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	r, .-r
	.section	.rodata
.LC1:
	.string	"%s"
	.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
	movl	$0, i(%rip)
	jmp	.L13
.L14:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	p(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L13:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L14
	movl	$90, %edi
	movl	$0, %eax
	call	r
	movl	$180, %edi
	movl	$0, %eax
	call	r
	movl	$270, %edi
	movl	$0, %eax
	call	r
	movl	$0, %edi
	call	exit@PLT
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	r
	.type	r, @function
r:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	9+p(%rip), %rax
	movl	%edi, %r8d
	xorl	%esi, %esi
	leaq	-8(%rax), %rdx
	movl	$1, %edi
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	(%rax), %ecx
	xorb	(%rdx), %cl
	movb	%cl, (%rax)
	xorb	(%rdx), %cl
	movb	%cl, (%rdx)
	xorb	%cl, (%rax)
	testl	%esi, %esi
	je	.L2
	movzbl	1(%rax), %ecx
	xorb	9(%rdx), %cl
	movb	%cl, 1(%rax)
	xorb	9(%rdx), %cl
	movb	%cl, 9(%rdx)
	xorb	%cl, 1(%rax)
	cmpl	$1, %esi
	je	.L2
	movzbl	2(%rax), %ecx
	xorb	18(%rdx), %cl
	movb	%cl, 2(%rax)
	xorb	18(%rdx), %cl
	movb	%cl, 18(%rdx)
	xorb	%cl, 2(%rax)
	cmpl	$2, %esi
	je	.L2
	movzbl	3(%rax), %ecx
	xorb	27(%rdx), %cl
	movb	%cl, 3(%rax)
	xorb	27(%rdx), %cl
	movb	%cl, 27(%rdx)
	xorb	%cl, 3(%rax)
	cmpl	$3, %esi
	je	.L2
	movzbl	4(%rax), %ecx
	xorb	36(%rdx), %cl
	movb	%cl, 4(%rax)
	xorb	36(%rdx), %cl
	movb	%cl, 36(%rdx)
	xorb	%cl, 4(%rax)
	cmpl	$4, %esi
	je	.L2
	movzbl	5(%rax), %ecx
	xorb	45(%rdx), %cl
	movb	%cl, 5(%rax)
	xorb	45(%rdx), %cl
	movb	%cl, 45(%rdx)
	xorb	%cl, 5(%rax)
	cmpl	$6, %esi
	jne	.L2
	movzbl	6(%rax), %ecx
	xorb	54(%rdx), %cl
	movb	%cl, 6(%rax)
	xorb	54(%rdx), %cl
	movb	%cl, 54(%rdx)
	xorb	%cl, 6(%rax)
.L2:
	addq	$1, %rdi
	addl	$1, %esi
	addq	$9, %rax
	addq	$1, %rdx
	cmpq	$8, %rdi
	jne	.L3
	movl	$8, i(%rip)
	leaq	p(%rip), %rbx
	movq	%rbx, %rax
	leaq	72(%rbx), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movzbl	7(%rax), %edx
	movzbl	(%rax), %ecx
	addq	$9, %rax
	movb	%cl, -2(%rax)
	movzbl	-8(%rax), %ecx
	movb	%dl, -9(%rax)
	movzbl	-3(%rax), %edx
	movb	%cl, -3(%rax)
	movzbl	-7(%rax), %ecx
	movb	%dl, -8(%rax)
	movzbl	-4(%rax), %edx
	movb	%cl, -4(%rax)
	movzbl	-6(%rax), %ecx
	movb	%dl, -7(%rax)
	movzbl	-5(%rax), %edx
	movb	%cl, -5(%rax)
	movb	%dl, -6(%rax)
	cmpq	%rsi, %rax
	jne	.L4
	movl	%r8d, %esi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	movl	$4, j(%rip)
	call	printf@PLT
	xorl	%eax, %eax
	movl	$0, i(%rip)
	.p2align 4,,10
	.p2align 3
.L5:
	cltq
	leaq	(%rax,%rax,8), %rdi
	addq	%rbx, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	$7, %eax
	jle	.L5
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	r, .-r
	.section	.rodata.str1.1
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%eax, %eax
	leaq	p(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	$0, i(%rip)
	.p2align 4,,10
	.p2align 3
.L27:
	cltq
	movq	%rbx, %rdi
	leaq	(%rax,%rax,8), %rsi
	xorl	%eax, %eax
	addq	%rbp, %rsi
	call	scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	$7, %eax
	jle	.L27
	movl	$90, %edi
	xorl	%eax, %eax
	call	r
	movl	$180, %edi
	xorl	%eax, %eax
	call	r
	movl	$270, %edi
	xorl	%eax, %eax
	call	r
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	j
	.bss
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 72
p:
	.zero	72
	.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\n"
	.text
	.p2align 4
	.globl	r
	.type	r, @function
r:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	9+p(%rip), %rax
	movl	%edi, %r8d
	xorl	%esi, %esi
	leaq	-8(%rax), %rdx
	movl	$1, %edi
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	(%rax), %ecx
	xorb	(%rdx), %cl
	movb	%cl, (%rax)
	xorb	(%rdx), %cl
	movb	%cl, (%rdx)
	xorb	%cl, (%rax)
	testl	%esi, %esi
	je	.L2
	movzbl	1(%rax), %ecx
	xorb	9(%rdx), %cl
	movb	%cl, 1(%rax)
	xorb	9(%rdx), %cl
	movb	%cl, 9(%rdx)
	xorb	%cl, 1(%rax)
	cmpl	$1, %esi
	je	.L2
	movzbl	2(%rax), %ecx
	xorb	18(%rdx), %cl
	movb	%cl, 2(%rax)
	xorb	18(%rdx), %cl
	movb	%cl, 18(%rdx)
	xorb	%cl, 2(%rax)
	cmpl	$2, %esi
	je	.L2
	movzbl	3(%rax), %ecx
	xorb	27(%rdx), %cl
	movb	%cl, 3(%rax)
	xorb	27(%rdx), %cl
	movb	%cl, 27(%rdx)
	xorb	%cl, 3(%rax)
	cmpl	$3, %esi
	je	.L2
	movzbl	4(%rax), %ecx
	xorb	36(%rdx), %cl
	movb	%cl, 4(%rax)
	xorb	36(%rdx), %cl
	movb	%cl, 36(%rdx)
	xorb	%cl, 4(%rax)
	cmpl	$4, %esi
	je	.L2
	movzbl	5(%rax), %ecx
	xorb	45(%rdx), %cl
	movb	%cl, 5(%rax)
	xorb	45(%rdx), %cl
	movb	%cl, 45(%rdx)
	xorb	%cl, 5(%rax)
	cmpl	$6, %esi
	jne	.L2
	movzbl	6(%rax), %ecx
	xorb	54(%rdx), %cl
	movb	%cl, 6(%rax)
	xorb	54(%rdx), %cl
	movb	%cl, 54(%rdx)
	xorb	%cl, 6(%rax)
.L2:
	addq	$1, %rdi
	addl	$1, %esi
	addq	$9, %rax
	addq	$1, %rdx
	cmpq	$8, %rdi
	jne	.L3
	movl	$8, i(%rip)
	leaq	p(%rip), %rbx
	movq	%rbx, %rax
	leaq	72(%rbx), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movzbl	7(%rax), %edx
	movzbl	(%rax), %ecx
	addq	$9, %rax
	movb	%cl, -2(%rax)
	movzbl	-8(%rax), %ecx
	movb	%dl, -9(%rax)
	movzbl	-3(%rax), %edx
	movb	%cl, -3(%rax)
	movzbl	-7(%rax), %ecx
	movb	%dl, -8(%rax)
	movzbl	-4(%rax), %edx
	movb	%cl, -4(%rax)
	movzbl	-6(%rax), %ecx
	movb	%dl, -7(%rax)
	movzbl	-5(%rax), %edx
	movb	%cl, -5(%rax)
	movb	%dl, -6(%rax)
	cmpq	%rsi, %rax
	jne	.L4
	movl	%r8d, %esi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	movl	$4, j(%rip)
	call	printf@PLT
	xorl	%eax, %eax
	movl	$0, i(%rip)
	.p2align 4,,10
	.p2align 3
.L5:
	cltq
	leaq	(%rax,%rax,8), %rdi
	addq	%rbx, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	$7, %eax
	jle	.L5
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	r, .-r
	.section	.rodata.str1.1
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xorl	%eax, %eax
	leaq	p(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movl	$0, i(%rip)
	.p2align 4,,10
	.p2align 3
.L27:
	cltq
	movq	%rbx, %rdi
	leaq	(%rax,%rax,8), %rsi
	xorl	%eax, %eax
	addq	%rbp, %rsi
	call	scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	$7, %eax
	jle	.L27
	movl	$90, %edi
	xorl	%eax, %eax
	call	r
	movl	$180, %edi
	xorl	%eax, %eax
	call	r
	movl	$270, %edi
	xorl	%eax, %eax
	call	r
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	j
	.bss
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 72
p:
	.zero	72
	.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:

#define e(i,n)for(i=0;i<n;i++)
#define s(a,b){a^=b;b^=a;a^=b;}
char p[8][9];i,j;r(o){e(i,8)e(j,i)s(p[i][j],p[j][i])e(i,8)e(j,4)s(p[i][j],p[i][7-j])printf("%d\n",o);e(i,8)puts(p[i]);}main(){e(i,8)scanf("%s",p[i]);r(90);r(180);r(270);exit(0);}
#*******
#*******
"*******
#*******
#*******
#*******
#*******
########
 ****)**
*******
*******
*******
*******
*******
*******
 #*******
#*******
"*******
#*******
#*******
#*******
#*******
$#######
 ****)**
*******
*******
*******
*******
*****+*
*******
 #*******
#*******
"*******
#*******
#**)****
#*******
#*******
$#######
 ****)**
*******
*******
*******
*)*****
*****+*
*******
 #*******
#*******
"*******
#*******
#**)****
#*******
#*)*****
$#######
 ****)**
+******
*******
*******
*)*****
*****+*
*******
 #*******
#*******
"***+***
#*******
#**)****
#*******
#*)*****
$#######
 ****)**
+******
*******
*******
*)*****
*****+*
*****)*

90
#####"##
#*******
#*******
#*******
#*******
#*******
#*******
#*******
180
########
*******#
*******#
*******#
*******#
*******"
*******#
*******#
270
*******#
*******#
*******#
*******#
*******#
*******#
*******#
##"#####
 90








180








270

*******
*******
)******
*******
*******
*******
*******
 90
$####"##
#*******
#*******
#*******
#*******
#*******
#*******
#*******
180
#######$
*******#
*******#
*******#
*******#
*******"
*******#
*******#
270
*******#
*******#
*******#
*******#
*******#
*******#
*******#
##"####$
 90








180








270

*******
*****+*
)******
*******
*******
*******
*******
 90
$####"##
#*******
#*******
#**)****
#*******
#*******
#*******
#*******
180
#######$
*******#
*******#
****)**#
*******#
*******"
*******#
*******#
270
*******#
*******#
*******#
*******#
****)**#
*******#
*******#
##"####$
 90








180








270

*******
*****+*
)******
*******
*******
****)**
*******
 90
$####"##
#*******
#)******
#**)****
#*******
#*******
#*******
#*******
180
#######$
*****)*#
*******#
****)**#
*******#
*******"
*******#
*******#
270
*******#
*******#
*******#
*******#
****)**#
******)#
*******#
##"####$
 90








180








270

*******
*****+*
)******
*******
*******
****)**
*+*****
 90
$####"##
#*******
#)******
#**)****
#****+**
#*******
#*******
#*******
180
#######$
*****)*#
*******#
****)**#
*******#
***+***"
*******#
*******#
270
*******#
*******#
*******#
**+****#
****)**#
******)#
*******#
##"####$
 90








180








270

*******
*****+)
)******
*******
*******
****)**
*+*****

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define e(i,n)for(i=0;i<n;i++)
#define s(a,b){a^=b;b^=a;a^=b;}
char p[8][9];i,j;r(o){e(i,8)e(j,i)s(p[i][j],p[j][i])e(i,8)e(j,4)s(p[i][j],p[i][7-j])printf("%d\n",o);e(i,8)puts(p[i]);}main(){e(i,8)scanf("%s",p[i]);r(90);r(180);r(270);exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 72
p:
	.zero	72
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	r
	.type	r, @function
r:
.LFB0:
	.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	%edi, -4(%rbp)
	movl	$0, i(%rip)
	jmp	.L2
.L5:
	movl	$0, j(%rip)
	jmp	.L3
.L4:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L3:
	movl	j(%rip), %edx
	movl	i(%rip), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L2:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L5
	movl	$0, i(%rip)
	jmp	.L6
.L9:
	movl	$0, j(%rip)
	jmp	.L7
.L8:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	$7, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	$7, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edi
	movl	$7, %edx
	subl	%edi, %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	$7, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L7:
	movl	j(%rip), %eax
	cmpl	$3, %eax
	jle	.L8
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L6:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L9
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, i(%rip)
	jmp	.L10
.L11:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	p(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L10:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L11
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	r, .-r
	.section	.rodata
.LC1:
	.string	"%s"
	.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
	movl	$0, i(%rip)
	jmp	.L13
.L14:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	p(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L13:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L14
	movl	$90, %edi
	movl	$0, %eax
	call	r
	movl	$180, %edi
	movl	$0, %eax
	call	r
	movl	$270, %edi
	movl	$0, %eax
	call	r
	movl	$0, %edi
	call	exit@PLT
	.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	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 72
p:
	.zero	72
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	r
	.type	r, @function
r:
.LFB0:
	.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	%edi, -4(%rbp)
	movl	$0, i(%rip)
	jmp	.L2
.L5:
	movl	$0, j(%rip)
	jmp	.L3
.L4:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	j(%rip), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L3:
	movl	j(%rip), %edx
	movl	i(%rip), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L2:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L5
	movl	$0, i(%rip)
	jmp	.L6
.L9:
	movl	$0, j(%rip)
	jmp	.L7
.L8:
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	$7, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	$7, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edi
	movl	$7, %edx
	subl	%edi, %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %esi
	movl	i(%rip), %eax
	movl	j(%rip), %ecx
	movl	$7, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	i(%rip), %eax
	movl	j(%rip), %edx
	xorl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	p(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	movl	j(%rip), %eax
	addl	$1, %eax
	movl	%eax, j(%rip)
.L7:
	movl	j(%rip), %eax
	cmpl	$3, %eax
	jle	.L8
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L6:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L9
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, i(%rip)
	jmp	.L10
.L11:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	p(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L10:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L11
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	r, .-r
	.section	.rodata
.LC1:
	.string	"%s"
	.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
	movl	$0, i(%rip)
	jmp	.L13
.L14:
	movl	i(%rip), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	p(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L13:
	movl	i(%rip), %eax
	cmpl	$7, %eax
	jle	.L14
	movl	$90, %edi
	movl	$0, %eax
	call	r
	movl	$180, %edi
	movl	$0, %eax
	call	r
	movl	$270, %edi
	movl	$0, %eax
	call	r
	movl	$0, %edi
	call	exit@PLT
	.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:
