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

```c
#include<stdio.h>
int main(){
	int i,j;
	char a[10][10],b[10][10];
	for(i=0;i<8;i++)
		scanf("%s",a[i]);
	for(j=0;j<8;j++)
		for(i=0;i<8;i++)
		b[i][7-j]=a[j][i];
	printf("90\n");
	for(j=0;j<8;j++){
		for(i=0;i<8;i++)
			printf("%c",b[j][i]);
		printf("\n");
	}
	
	for(j=0;j<8;j++)
		for(i=0;i<8;i++)
		b[7-j][7-i]=a[j][i];
	printf("180\n");
	for(j=0;j<8;j++){
		for(i=0;i<8;i++)
			printf("%c",b[j][i]);
		printf("\n");
	}
		for(j=0;j<8;j++)
		for(i=0;i<8;i++)
		b[7-i][j]=a[j][i];
	printf("270\n");
	for(j=0;j<8;j++){
		for(i=0;i<8;i++)
			printf("%c",b[j][i]);
		printf("\n");
	}
	
	
	
	
	
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"90"
.LC2:
	.string	"180"
.LC3:
	.string	"270"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$240, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -232(%rbp)
	jmp	.L2
.L3:
	leaq	-224(%rbp), %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -232(%rbp)
.L2:
	cmpl	$7, -232(%rbp)
	jle	.L3
	movl	$0, -228(%rbp)
	jmp	.L4
.L7:
	movl	$0, -232(%rbp)
	jmp	.L5
.L6:
	movl	$7, %eax
	subl	-228(%rbp), %eax
	movl	%eax, %ecx
	movl	-232(%rbp), %eax
	movslq	%eax, %rsi
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$224, %rax
	movzbl	(%rax), %edx
	movslq	%ecx, %rsi
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$112, %rax
	movb	%dl, (%rax)
	addl	$1, -232(%rbp)
.L5:
	cmpl	$7, -232(%rbp)
	jle	.L6
	addl	$1, -228(%rbp)
.L4:
	cmpl	$7, -228(%rbp)
	jle	.L7
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -228(%rbp)
	jmp	.L8
.L11:
	movl	$0, -232(%rbp)
	jmp	.L9
.L10:
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$112, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -232(%rbp)
.L9:
	cmpl	$7, -232(%rbp)
	jle	.L10
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -228(%rbp)
.L8:
	cmpl	$7, -228(%rbp)
	jle	.L11
	movl	$0, -228(%rbp)
	jmp	.L12
.L15:
	movl	$0, -232(%rbp)
	jmp	.L13
.L14:
	movl	$7, %eax
	subl	-228(%rbp), %eax
	movl	%eax, %ecx
	movl	$7, %eax
	subl	-232(%rbp), %eax
	movl	%eax, %esi
	movl	-232(%rbp), %eax
	movslq	%eax, %rdi
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rdi, %rax
	subq	$224, %rax
	movzbl	(%rax), %edx
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$112, %rax
	movb	%dl, (%rax)
	addl	$1, -232(%rbp)
.L13:
	cmpl	$7, -232(%rbp)
	jle	.L14
	addl	$1, -228(%rbp)
.L12:
	cmpl	$7, -228(%rbp)
	jle	.L15
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -228(%rbp)
	jmp	.L16
.L19:
	movl	$0, -232(%rbp)
	jmp	.L17
.L18:
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$112, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -232(%rbp)
.L17:
	cmpl	$7, -232(%rbp)
	jle	.L18
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -228(%rbp)
.L16:
	cmpl	$7, -228(%rbp)
	jle	.L19
	movl	$0, -228(%rbp)
	jmp	.L20
.L23:
	movl	$0, -232(%rbp)
	jmp	.L21
.L22:
	movl	$7, %eax
	subl	-232(%rbp), %eax
	movl	%eax, %ecx
	movl	-232(%rbp), %eax
	movslq	%eax, %rsi
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$224, %rax
	movzbl	(%rax), %edx
	movl	-228(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$112, %rax
	movb	%dl, (%rax)
	addl	$1, -232(%rbp)
.L21:
	cmpl	$7, -232(%rbp)
	jle	.L22
	addl	$1, -228(%rbp)
.L20:
	cmpl	$7, -228(%rbp)
	jle	.L23
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -228(%rbp)
	jmp	.L24
.L27:
	movl	$0, -232(%rbp)
	jmp	.L25
.L26:
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$112, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -232(%rbp)
.L25:
	cmpl	$7, -232(%rbp)
	jle	.L26
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -228(%rbp)
.L24:
	cmpl	$7, -228(%rbp)
	jle	.L27
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"90"
.LC2:
	.string	"180"
.LC3:
	.string	"270"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$232, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	80(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$10, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r12
	jne	.L2
	movzbl	(%rsp), %eax
	movzbl	10(%rsp), %edx
	leaq	.LC1(%rip), %rdi
	leaq	112(%rsp), %rbp
	leaq	192(%rsp), %r12
	movq	%rbp, %r13
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	20(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	30(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	40(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	50(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	60(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	70(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	11(%rsp), %edx
	movq	%rax, 112(%rsp)
	movzbl	1(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	21(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	31(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	41(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	51(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	61(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	71(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	12(%rsp), %edx
	movq	%rax, 122(%rsp)
	movzbl	2(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	22(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	32(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	42(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	52(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	62(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	72(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	13(%rsp), %edx
	movq	%rax, 132(%rsp)
	movzbl	3(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	23(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	33(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	43(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	53(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	63(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	73(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	14(%rsp), %edx
	movq	%rax, 142(%rsp)
	movzbl	4(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	24(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	34(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	44(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	54(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	64(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	74(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	15(%rsp), %edx
	movq	%rax, 152(%rsp)
	movzbl	5(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	25(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	35(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	45(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	55(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	65(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	75(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	16(%rsp), %edx
	movq	%rax, 162(%rsp)
	movzbl	6(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	26(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	36(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	46(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	56(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	66(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	76(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movq	%rax, 172(%rsp)
	movzbl	7(%rsp), %eax
	movzbl	17(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	27(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	37(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	47(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	57(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	67(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	77(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movq	%rax, 182(%rsp)
	call	puts@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	0(%r13,%rbx), %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpq	$8, %rbx
	jne	.L4
	movl	$10, %edi
	addq	$10, %r13
	call	putchar@PLT
	cmpq	%r12, %r13
	jne	.L3
	movq	(%rsp), %rax
	leaq	.LC2(%rip), %rdi
	movq	%rbp, %r13
	bswap	%rax
	movq	%rax, 182(%rsp)
	movq	10(%rsp), %rax
	bswap	%rax
	movq	%rax, 172(%rsp)
	movq	20(%rsp), %rax
	bswap	%rax
	movq	%rax, 162(%rsp)
	movq	30(%rsp), %rax
	bswap	%rax
	movq	%rax, 152(%rsp)
	movq	40(%rsp), %rax
	bswap	%rax
	movq	%rax, 142(%rsp)
	movq	50(%rsp), %rax
	bswap	%rax
	movq	%rax, 132(%rsp)
	movq	60(%rsp), %rax
	bswap	%rax
	movq	%rax, 122(%rsp)
	movq	70(%rsp), %rax
	bswap	%rax
	movq	%rax, 112(%rsp)
	call	puts@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L7:
	movsbl	0(%r13,%rbx), %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpq	$8, %rbx
	jne	.L7
	movl	$10, %edi
	addq	$10, %r13
	call	putchar@PLT
	cmpq	%r12, %r13
	jne	.L6
	movzbl	70(%rsp), %eax
	movzbl	60(%rsp), %edx
	leaq	.LC3(%rip), %rdi
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	50(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	40(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	30(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	20(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	10(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	61(%rsp), %edx
	movq	%rax, 182(%rsp)
	movzbl	71(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	51(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	41(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	31(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	21(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	11(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	1(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	62(%rsp), %edx
	movq	%rax, 172(%rsp)
	movzbl	72(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	52(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	42(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	32(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	22(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	12(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	2(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	63(%rsp), %edx
	movq	%rax, 162(%rsp)
	movzbl	73(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	53(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	43(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	33(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	23(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	13(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	3(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	64(%rsp), %edx
	movq	%rax, 152(%rsp)
	movzbl	74(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	54(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	44(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	34(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	24(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	14(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	4(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	65(%rsp), %edx
	movq	%rax, 142(%rsp)
	movzbl	75(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	55(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	45(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	35(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	25(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	15(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	5(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	66(%rsp), %edx
	movq	%rax, 132(%rsp)
	movzbl	76(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	56(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	46(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	36(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	26(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	16(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	6(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movq	%rax, 122(%rsp)
	movzbl	77(%rsp), %eax
	movzbl	67(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	57(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	47(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	37(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	27(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	17(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	7(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movq	%rax, 112(%rsp)
	call	puts@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	0(%rbp,%rbx), %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpq	$8, %rbx
	jne	.L10
	movl	$10, %edi
	addq	$10, %rbp
	call	putchar@PLT
	cmpq	%r12, %rbp
	jne	.L9
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"90"
.LC2:
	.string	"180"
.LC3:
	.string	"270"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$232, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	80(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$10, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r12
	jne	.L2
	movzbl	(%rsp), %eax
	movzbl	10(%rsp), %edx
	leaq	.LC1(%rip), %rdi
	leaq	112(%rsp), %rbp
	leaq	192(%rsp), %r12
	movq	%rbp, %r13
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	20(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	30(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	40(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	50(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	60(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	70(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	11(%rsp), %edx
	movq	%rax, 112(%rsp)
	movzbl	1(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	21(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	31(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	41(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	51(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	61(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	71(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	12(%rsp), %edx
	movq	%rax, 122(%rsp)
	movzbl	2(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	22(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	32(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	42(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	52(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	62(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	72(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	13(%rsp), %edx
	movq	%rax, 132(%rsp)
	movzbl	3(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	23(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	33(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	43(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	53(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	63(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	73(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	14(%rsp), %edx
	movq	%rax, 142(%rsp)
	movzbl	4(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	24(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	34(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	44(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	54(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	64(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	74(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	15(%rsp), %edx
	movq	%rax, 152(%rsp)
	movzbl	5(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	25(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	35(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	45(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	55(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	65(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	75(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	16(%rsp), %edx
	movq	%rax, 162(%rsp)
	movzbl	6(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	26(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	36(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	46(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	56(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	66(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	76(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movq	%rax, 172(%rsp)
	movzbl	7(%rsp), %eax
	movzbl	17(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	27(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	37(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	47(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	57(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	67(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	77(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movq	%rax, 182(%rsp)
	call	puts@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	0(%r13,%rbx), %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpq	$8, %rbx
	jne	.L4
	movl	$10, %edi
	addq	$10, %r13
	call	putchar@PLT
	cmpq	%r12, %r13
	jne	.L3
	movq	(%rsp), %rax
	leaq	.LC2(%rip), %rdi
	movq	%rbp, %r13
	bswap	%rax
	movq	%rax, 182(%rsp)
	movq	10(%rsp), %rax
	bswap	%rax
	movq	%rax, 172(%rsp)
	movq	20(%rsp), %rax
	bswap	%rax
	movq	%rax, 162(%rsp)
	movq	30(%rsp), %rax
	bswap	%rax
	movq	%rax, 152(%rsp)
	movq	40(%rsp), %rax
	bswap	%rax
	movq	%rax, 142(%rsp)
	movq	50(%rsp), %rax
	bswap	%rax
	movq	%rax, 132(%rsp)
	movq	60(%rsp), %rax
	bswap	%rax
	movq	%rax, 122(%rsp)
	movq	70(%rsp), %rax
	bswap	%rax
	movq	%rax, 112(%rsp)
	call	puts@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L7:
	movsbl	0(%r13,%rbx), %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpq	$8, %rbx
	jne	.L7
	movl	$10, %edi
	addq	$10, %r13
	call	putchar@PLT
	cmpq	%r12, %r13
	jne	.L6
	movzbl	70(%rsp), %eax
	movzbl	60(%rsp), %edx
	leaq	.LC3(%rip), %rdi
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	50(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	40(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	30(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	20(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	10(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	61(%rsp), %edx
	movq	%rax, 182(%rsp)
	movzbl	71(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	51(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	41(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	31(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	21(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	11(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	1(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	62(%rsp), %edx
	movq	%rax, 172(%rsp)
	movzbl	72(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	52(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	42(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	32(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	22(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	12(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	2(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	63(%rsp), %edx
	movq	%rax, 162(%rsp)
	movzbl	73(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	53(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	43(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	33(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	23(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	13(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	3(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	64(%rsp), %edx
	movq	%rax, 152(%rsp)
	movzbl	74(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	54(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	44(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	34(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	24(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	14(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	4(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	65(%rsp), %edx
	movq	%rax, 142(%rsp)
	movzbl	75(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	55(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	45(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	35(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	25(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	15(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	5(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	66(%rsp), %edx
	movq	%rax, 132(%rsp)
	movzbl	76(%rsp), %eax
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	56(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	46(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	36(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	26(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	16(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	6(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movq	%rax, 122(%rsp)
	movzbl	77(%rsp), %eax
	movzbl	67(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	57(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	47(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	37(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	27(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	17(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movzbl	7(%rsp), %edx
	salq	$8, %rax
	orq	%rdx, %rax
	movq	%rax, 112(%rsp)
	call	puts@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	0(%rbp,%rbx), %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpq	$8, %rbx
	jne	.L10
	movl	$10, %edi
	addq	$10, %rbp
	call	putchar@PLT
	cmpq	%r12, %rbp
	jne	.L9
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

#include<stdio.h>
int main(){
	int i,j;
	char a[10][10],b[10][10];
	for(i=0;i<8;i++)
		scanf("%s",a[i]);
	for(j=0;j<8;j++)
		for(i=0;i<8;i++)
		b[i][7-j]=a[j][i];
	printf("90\n");
	for(j=0;j<8;j++){
		for(i=0;i<8;i++)
			printf("%c",b[j][i]);
		printf("\n");
	}
	
	for(j=0;j<8;j++)
		for(i=0;i<8;i++)
		b[7-j][7-i]=a[j][i];
	printf("180\n");
	for(j=0;j<8;j++){
		for(i=0;i<8;i++)
			printf("%c",b[j][i]);
		printf("\n");
	}
		for(j=0;j<8;j++)
		for(i=0;i<8;i++)
		b[7-i][j]=a[j][i];
	printf("270\n");
	for(j=0;j<8;j++){
		for(i=0;i<8;i++)
			printf("%c",b[j][i]);
		printf("\n");
	}
	
	
	
	
	
	
	return 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
#include<stdio.h>
int main(){
	int i,j;
	char a[10][10],b[10][10];
	for(i=0;i<8;i++)
		scanf("%s",a[i]);
	for(j=0;j<8;j++)
		for(i=0;i<8;i++)
		b[i][7-j]=a[j][i];
	printf("90\n");
	for(j=0;j<8;j++){
		for(i=0;i<8;i++)
			printf("%c",b[j][i]);
		printf("\n");
	}
	
	for(j=0;j<8;j++)
		for(i=0;i<8;i++)
		b[7-j][7-i]=a[j][i];
	printf("180\n");
	for(j=0;j<8;j++){
		for(i=0;i<8;i++)
			printf("%c",b[j][i]);
		printf("\n");
	}
		for(j=0;j<8;j++)
		for(i=0;i<8;i++)
		b[7-i][j]=a[j][i];
	printf("270\n");
	for(j=0;j<8;j++){
		for(i=0;i<8;i++)
			printf("%c",b[j][i]);
		printf("\n");
	}
	
	
	
	
	
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"90"
.LC2:
	.string	"180"
.LC3:
	.string	"270"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$240, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -232(%rbp)
	jmp	.L2
.L3:
	leaq	-224(%rbp), %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -232(%rbp)
.L2:
	cmpl	$7, -232(%rbp)
	jle	.L3
	movl	$0, -228(%rbp)
	jmp	.L4
.L7:
	movl	$0, -232(%rbp)
	jmp	.L5
.L6:
	movl	$7, %eax
	subl	-228(%rbp), %eax
	movl	%eax, %ecx
	movl	-232(%rbp), %eax
	movslq	%eax, %rsi
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$224, %rax
	movzbl	(%rax), %edx
	movslq	%ecx, %rsi
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$112, %rax
	movb	%dl, (%rax)
	addl	$1, -232(%rbp)
.L5:
	cmpl	$7, -232(%rbp)
	jle	.L6
	addl	$1, -228(%rbp)
.L4:
	cmpl	$7, -228(%rbp)
	jle	.L7
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -228(%rbp)
	jmp	.L8
.L11:
	movl	$0, -232(%rbp)
	jmp	.L9
.L10:
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$112, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -232(%rbp)
.L9:
	cmpl	$7, -232(%rbp)
	jle	.L10
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -228(%rbp)
.L8:
	cmpl	$7, -228(%rbp)
	jle	.L11
	movl	$0, -228(%rbp)
	jmp	.L12
.L15:
	movl	$0, -232(%rbp)
	jmp	.L13
.L14:
	movl	$7, %eax
	subl	-228(%rbp), %eax
	movl	%eax, %ecx
	movl	$7, %eax
	subl	-232(%rbp), %eax
	movl	%eax, %esi
	movl	-232(%rbp), %eax
	movslq	%eax, %rdi
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rdi, %rax
	subq	$224, %rax
	movzbl	(%rax), %edx
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$112, %rax
	movb	%dl, (%rax)
	addl	$1, -232(%rbp)
.L13:
	cmpl	$7, -232(%rbp)
	jle	.L14
	addl	$1, -228(%rbp)
.L12:
	cmpl	$7, -228(%rbp)
	jle	.L15
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -228(%rbp)
	jmp	.L16
.L19:
	movl	$0, -232(%rbp)
	jmp	.L17
.L18:
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$112, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -232(%rbp)
.L17:
	cmpl	$7, -232(%rbp)
	jle	.L18
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -228(%rbp)
.L16:
	cmpl	$7, -228(%rbp)
	jle	.L19
	movl	$0, -228(%rbp)
	jmp	.L20
.L23:
	movl	$0, -232(%rbp)
	jmp	.L21
.L22:
	movl	$7, %eax
	subl	-232(%rbp), %eax
	movl	%eax, %ecx
	movl	-232(%rbp), %eax
	movslq	%eax, %rsi
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$224, %rax
	movzbl	(%rax), %edx
	movl	-228(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$112, %rax
	movb	%dl, (%rax)
	addl	$1, -232(%rbp)
.L21:
	cmpl	$7, -232(%rbp)
	jle	.L22
	addl	$1, -228(%rbp)
.L20:
	cmpl	$7, -228(%rbp)
	jle	.L23
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -228(%rbp)
	jmp	.L24
.L27:
	movl	$0, -232(%rbp)
	jmp	.L25
.L26:
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$112, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -232(%rbp)
.L25:
	cmpl	$7, -232(%rbp)
	jle	.L26
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -228(%rbp)
.L24:
	cmpl	$7, -228(%rbp)
	jle	.L27
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"90"
.LC2:
	.string	"180"
.LC3:
	.string	"270"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$240, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -232(%rbp)
	jmp	.L2
.L3:
	leaq	-224(%rbp), %rcx
	movl	-232(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -232(%rbp)
.L2:
	cmpl	$7, -232(%rbp)
	jle	.L3
	movl	$0, -228(%rbp)
	jmp	.L4
.L7:
	movl	$0, -232(%rbp)
	jmp	.L5
.L6:
	movl	$7, %eax
	subl	-228(%rbp), %eax
	movl	%eax, %ecx
	movl	-232(%rbp), %eax
	movslq	%eax, %rsi
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$224, %rax
	movzbl	(%rax), %edx
	movslq	%ecx, %rsi
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$112, %rax
	movb	%dl, (%rax)
	addl	$1, -232(%rbp)
.L5:
	cmpl	$7, -232(%rbp)
	jle	.L6
	addl	$1, -228(%rbp)
.L4:
	cmpl	$7, -228(%rbp)
	jle	.L7
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -228(%rbp)
	jmp	.L8
.L11:
	movl	$0, -232(%rbp)
	jmp	.L9
.L10:
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$112, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -232(%rbp)
.L9:
	cmpl	$7, -232(%rbp)
	jle	.L10
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -228(%rbp)
.L8:
	cmpl	$7, -228(%rbp)
	jle	.L11
	movl	$0, -228(%rbp)
	jmp	.L12
.L15:
	movl	$0, -232(%rbp)
	jmp	.L13
.L14:
	movl	$7, %eax
	subl	-228(%rbp), %eax
	movl	%eax, %ecx
	movl	$7, %eax
	subl	-232(%rbp), %eax
	movl	%eax, %esi
	movl	-232(%rbp), %eax
	movslq	%eax, %rdi
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rdi, %rax
	subq	$224, %rax
	movzbl	(%rax), %edx
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$112, %rax
	movb	%dl, (%rax)
	addl	$1, -232(%rbp)
.L13:
	cmpl	$7, -232(%rbp)
	jle	.L14
	addl	$1, -228(%rbp)
.L12:
	cmpl	$7, -228(%rbp)
	jle	.L15
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -228(%rbp)
	jmp	.L16
.L19:
	movl	$0, -232(%rbp)
	jmp	.L17
.L18:
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$112, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -232(%rbp)
.L17:
	cmpl	$7, -232(%rbp)
	jle	.L18
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -228(%rbp)
.L16:
	cmpl	$7, -228(%rbp)
	jle	.L19
	movl	$0, -228(%rbp)
	jmp	.L20
.L23:
	movl	$0, -232(%rbp)
	jmp	.L21
.L22:
	movl	$7, %eax
	subl	-232(%rbp), %eax
	movl	%eax, %ecx
	movl	-232(%rbp), %eax
	movslq	%eax, %rsi
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$224, %rax
	movzbl	(%rax), %edx
	movl	-228(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$112, %rax
	movb	%dl, (%rax)
	addl	$1, -232(%rbp)
.L21:
	cmpl	$7, -232(%rbp)
	jle	.L22
	addl	$1, -228(%rbp)
.L20:
	cmpl	$7, -228(%rbp)
	jle	.L23
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -228(%rbp)
	jmp	.L24
.L27:
	movl	$0, -232(%rbp)
	jmp	.L25
.L26:
	movl	-232(%rbp), %eax
	movslq	%eax, %rcx
	movl	-228(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$112, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -232(%rbp)
.L25:
	cmpl	$7, -232(%rbp)
	jle	.L26
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -228(%rbp)
.L24:
	cmpl	$7, -228(%rbp)
	jle	.L27
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
