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;
    int a[101][101]={{0}};
    int x,y;
    scanf("%d %d",&x,&y);
    for(j=0;j<x;j++){
        for(i=0;i<y;i++){
            scanf("%d",&a[j][i]);
            a[j][y]+=a[j][i];
            a[x][i]+=a[j][i];
        }
        a[x][y]+=a[j][y];
    }
    for(j=0;j<=x;j++){
        for(i=0;i<=y;i++){
            printf("%d",a[j][i]);
            if(i!=y){
                printf(" ");
            }
        }
         
            printf("\n");
         
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.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
	leaq	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40816(%rbp), %rax
	movl	$40804, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-40828(%rbp), %rdx
	leaq	-40832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40820(%rbp)
	jmp	.L2
.L5:
	movl	$0, -40824(%rbp)
	jmp	.L3
.L4:
	leaq	-40816(%rbp), %rcx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40828(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-40816(%rbp,%rax,4), %edx
	movl	-40828(%rbp), %eax
	addl	%edx, %ecx
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -40816(%rbp,%rax,4)
	movl	-40832(%rbp), %eax
	movl	-40824(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-40816(%rbp,%rax,4), %edx
	movl	-40832(%rbp), %eax
	addl	%edx, %ecx
	movl	-40824(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -40816(%rbp,%rax,4)
	addl	$1, -40824(%rbp)
.L3:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L4
	movl	-40832(%rbp), %eax
	movl	-40828(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %esi
	movl	-40828(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40832(%rbp), %eax
	movl	-40828(%rbp), %edx
	addl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -40816(%rbp,%rax,4)
	addl	$1, -40820(%rbp)
.L2:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L5
	movl	$0, -40820(%rbp)
	jmp	.L6
.L10:
	movl	$0, -40824(%rbp)
	jmp	.L7
.L9:
	movl	-40824(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	je	.L8
	movl	$32, %edi
	call	putchar@PLT
.L8:
	addl	$1, -40824(%rbp)
.L7:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jle	.L9
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -40820(%rbp)
.L6:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jle	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3992, %rsp
	.cfi_def_cfa_offset 40912
	movl	$40804, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 40840(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	memset@PLT
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L2
	movslq	28(%rsp), %rsi
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %r13
	testl	%esi, %esi
	jle	.L29
	.p2align 4,,10
	.p2align 3
.L8:
	movq	8(%rsp), %rax
	xorl	%ebp, %ebp
	leaq	(%rax,%r15,4), %rbx
	movslq	%r14d, %rax
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,4), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	movslq	24(%rsp), %rcx
	movslq	28(%rsp), %r10
	movl	-4(%rbx), %eax
	leaq	(%rcx,%rcx,4), %r8
	leaq	(%r12,%r10), %rdi
	movq	%rcx, %r9
	movq	%r10, %rsi
	leaq	(%r8,%r8,4), %r8
	addl	%eax, 32(%rsp,%rdi,4)
	movslq	%ebp, %rax
	addl	$1, %ebp
	leaq	(%rcx,%r8,4), %rcx
	movl	-4(%rbx), %r8d
	addq	%rcx, %rax
	addl	%r8d, 32(%rsp,%rax,4)
	cmpl	%ebp, %r10d
	jg	.L4
	addq	%r10, %rcx
	addl	$1, %r14d
	movl	32(%rsp,%rdi,4), %eax
	addl	%eax, 32(%rsp,%rcx,4)
	cmpl	%r14d, %r9d
	jle	.L2
	addq	$101, %r15
	testl	%esi, %esi
	jg	.L8
.L29:
	movslq	%r9d, %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rcx
	movslq	%r14d, %rax
	addl	$1, %r14d
	leaq	(%rax,%rax,4), %rdx
	addq	%rsi, %rcx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	addq	%rsi, %rax
	movl	32(%rsp,%rax,4), %eax
	addl	32(%rsp,%rcx,4), %eax
	movl	%eax, 32(%rsp,%rcx,4)
	cmpl	%r14d, %r9d
	jg	.L30
.L2:
	testl	%r9d, %r9d
	jns	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movq	40840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$40856, %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
.L30:
	.cfi_restore_state
	movslq	%r14d, %rdx
	movq	8(%rsp), %rdi
	imulq	$101, %rdx, %rdx
	addq	%rsi, %rdx
	leaq	(%rdi,%rdx,4), %rdx
	.p2align 4,,10
	.p2align 3
.L6:
	addl	(%rdx), %eax
	addl	$1, %r14d
	addq	$404, %rdx
	movl	%eax, 32(%rsp,%rcx,4)
	cmpl	%r14d, %r9d
	jg	.L6
.L7:
	movq	8(%rsp), %rbp
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L11:
	movl	28(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	js	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	movl	0(%rbp,%rbx,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	28(%rsp), %eax
	cmpl	%ebx, %eax
	je	.L12
	movl	$32, %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpl	%ebx, 28(%rsp)
	jge	.L15
.L14:
	movl	$10, %edi
	addl	$1, %r13d
	addq	$404, %rbp
	call	putchar@PLT
	cmpl	%r13d, 24(%rsp)
	jge	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jge	.L15
	jmp	.L14
.L31:
	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	"%d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3992, %rsp
	.cfi_def_cfa_offset 40912
	movl	$40804, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 40840(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
	call	memset@PLT
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L2
	movslq	28(%rsp), %rsi
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %r13
	testl	%esi, %esi
	jle	.L29
	.p2align 4,,10
	.p2align 3
.L8:
	movq	8(%rsp), %rax
	xorl	%ebp, %ebp
	leaq	(%rax,%r15,4), %rbx
	movslq	%r14d, %rax
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,4), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	movslq	24(%rsp), %rcx
	movslq	28(%rsp), %r10
	movl	-4(%rbx), %eax
	leaq	(%rcx,%rcx,4), %r8
	leaq	(%r12,%r10), %rdi
	movq	%rcx, %r9
	movq	%r10, %rsi
	leaq	(%r8,%r8,4), %r8
	addl	%eax, 32(%rsp,%rdi,4)
	movslq	%ebp, %rax
	addl	$1, %ebp
	leaq	(%rcx,%r8,4), %rcx
	movl	-4(%rbx), %r8d
	addq	%rcx, %rax
	addl	%r8d, 32(%rsp,%rax,4)
	cmpl	%ebp, %r10d
	jg	.L4
	addq	%r10, %rcx
	addl	$1, %r14d
	movl	32(%rsp,%rdi,4), %eax
	addl	%eax, 32(%rsp,%rcx,4)
	cmpl	%r14d, %r9d
	jle	.L2
	addq	$101, %r15
	testl	%esi, %esi
	jg	.L8
.L29:
	movslq	%r9d, %rax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rcx
	movslq	%r14d, %rax
	addl	$1, %r14d
	leaq	(%rax,%rax,4), %rdx
	addq	%rsi, %rcx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	addq	%rsi, %rax
	movl	32(%rsp,%rax,4), %eax
	addl	32(%rsp,%rcx,4), %eax
	movl	%eax, 32(%rsp,%rcx,4)
	cmpl	%r14d, %r9d
	jg	.L30
.L2:
	testl	%r9d, %r9d
	jns	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movq	40840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$40856, %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
.L30:
	.cfi_restore_state
	movslq	%r14d, %rdx
	movq	8(%rsp), %rdi
	imulq	$101, %rdx, %rdx
	addq	%rsi, %rdx
	leaq	(%rdi,%rdx,4), %rdx
	.p2align 4,,10
	.p2align 3
.L6:
	addl	(%rdx), %eax
	addl	$1, %r14d
	addq	$404, %rdx
	movl	%eax, 32(%rsp,%rcx,4)
	cmpl	%r14d, %r9d
	jg	.L6
.L7:
	movq	8(%rsp), %rbp
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L11:
	movl	28(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	js	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	movl	0(%rbp,%rbx,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	28(%rsp), %eax
	cmpl	%ebx, %eax
	je	.L12
	movl	$32, %edi
	addq	$1, %rbx
	call	putchar@PLT
	cmpl	%ebx, 28(%rsp)
	jge	.L15
.L14:
	movl	$10, %edi
	addl	$1, %r13d
	addq	$404, %rbp
	call	putchar@PLT
	cmpl	%r13d, 24(%rsp)
	jge	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jge	.L15
	jmp	.L14
.L31:
	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;
    int a[101][101]={{0}};
    int x,y;
    scanf("%d %d",&x,&y);
    for(j=0;j<x;j++){
        for(i=0;i<y;i++){
            scanf("%d",&a[j][i]);
            a[j][y]+=a[j][i];
            a[x][i]+=a[j][i];
        }
        a[x][y]+=a[j][y];
    }
    for(j=0;j<=x;j++){
        for(i=0;i<=y;i++){
            printf("%d",a[j][i]);
            if(i!=y){
                printf(" ");
            }
        }
         
            printf("\n");
         
    }
    return 0;
}

4 5
1 1 3 4 8
2 2 2 4 5
3 3 0 1 1
2 3 4 4 6
 4 5
1 1 3 4 8
2 2 2 4 5
3 3 0 1 1
2 3 4 8 6
 4 5
1 1 3 4 8
2 2 2 4 5
3 3 0 1 1
2 6 4 8 6
 4 5
1 1 3 4 8
2 2 2 4 5
3 3 0 1 2
2 6 4 8 6
 4 5
2 1 3 4 8
2 2 2 4 5
3 3 0 1 2
2 6 4 8 6
 4 5
1 1 3 1 5
2 2 2 4 5
3 3 0 1 1
2 3 4 4 6
 4 5
1 1 1 4 8
2 2 2 4 5
3 3 0 1 1
2 3 4 4 6
 4 5
1 1 3 4 8
2 2 2 4 5
3 3 0 1 0
2 3 4 8 6
 4 5
1 1 3 4 8
2 2 2 4 5
3 3 0 1 1
2 6 4 1 6
 4 5
1 1 3 8 8
2 2 2 4 5
3 3 0 1 2
2 6 4 8 6

1 1 3 4 8 17
2 2 2 4 5 15
3 3 0 1 1 8
2 3 4 4 6 19
8 9 9 13 20 59
 1 1 3 4 8 17
2 2 2 4 5 15
3 3 0 1 1 8
2 3 4 8 6 23
8 9 9 17 20 63
 1 1 3 4 8 17
2 2 2 4 5 15
3 3 0 1 1 8
2 6 4 8 6 26
8 12 9 17 20 66
 1 1 3 4 8 17
2 2 2 4 5 15
3 3 0 1 2 9
2 6 4 8 6 26
8 12 9 17 21 67
 2 1 3 4 8 18
2 2 2 4 5 15
3 3 0 1 2 9
2 6 4 8 6 26
9 12 9 17 21 68
 1 1 3 1 5 11
2 2 2 4 5 15
3 3 0 1 1 8
2 3 4 4 6 19
8 9 9 10 17 53
 1 1 1 4 8 15
2 2 2 4 5 15
3 3 0 1 1 8
2 3 4 4 6 19
8 9 7 13 20 57
 1 1 3 4 8 17
2 2 2 4 5 15
3 3 0 1 0 7
2 3 4 8 6 23
8 9 9 17 19 62
 1 1 3 4 8 17
2 2 2 4 5 15
3 3 0 1 1 8
2 6 4 1 6 19
8 12 9 10 20 59
 1 1 3 8 8 21
2 2 2 4 5 15
3 3 0 1 2 9
2 6 4 8 6 26
8 12 9 21 21 71

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;
    int a[101][101]={{0}};
    int x,y;
    scanf("%d %d",&x,&y);
    for(j=0;j<x;j++){
        for(i=0;i<y;i++){
            scanf("%d",&a[j][i]);
            a[j][y]+=a[j][i];
            a[x][i]+=a[j][i];
        }
        a[x][y]+=a[j][y];
    }
    for(j=0;j<=x;j++){
        for(i=0;i<=y;i++){
            printf("%d",a[j][i]);
            if(i!=y){
                printf(" ");
            }
        }
         
            printf("\n");
         
    }
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.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
	leaq	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40816(%rbp), %rax
	movl	$40804, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-40828(%rbp), %rdx
	leaq	-40832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40820(%rbp)
	jmp	.L2
.L5:
	movl	$0, -40824(%rbp)
	jmp	.L3
.L4:
	leaq	-40816(%rbp), %rcx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40828(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-40816(%rbp,%rax,4), %edx
	movl	-40828(%rbp), %eax
	addl	%edx, %ecx
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -40816(%rbp,%rax,4)
	movl	-40832(%rbp), %eax
	movl	-40824(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-40816(%rbp,%rax,4), %edx
	movl	-40832(%rbp), %eax
	addl	%edx, %ecx
	movl	-40824(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -40816(%rbp,%rax,4)
	addl	$1, -40824(%rbp)
.L3:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L4
	movl	-40832(%rbp), %eax
	movl	-40828(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %esi
	movl	-40828(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40832(%rbp), %eax
	movl	-40828(%rbp), %edx
	addl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -40816(%rbp,%rax,4)
	addl	$1, -40820(%rbp)
.L2:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L5
	movl	$0, -40820(%rbp)
	jmp	.L6
.L10:
	movl	$0, -40824(%rbp)
	jmp	.L7
.L9:
	movl	-40824(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	je	.L8
	movl	$32, %edi
	call	putchar@PLT
.L8:
	addl	$1, -40824(%rbp)
.L7:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jle	.L9
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -40820(%rbp)
.L6:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jle	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%d %d"
.LC1:
	.string	"%d"
	.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
	leaq	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40816(%rbp), %rax
	movl	$40804, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-40828(%rbp), %rdx
	leaq	-40832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40820(%rbp)
	jmp	.L2
.L5:
	movl	$0, -40824(%rbp)
	jmp	.L3
.L4:
	leaq	-40816(%rbp), %rcx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40828(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-40816(%rbp,%rax,4), %edx
	movl	-40828(%rbp), %eax
	addl	%edx, %ecx
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -40816(%rbp,%rax,4)
	movl	-40832(%rbp), %eax
	movl	-40824(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40824(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-40816(%rbp,%rax,4), %edx
	movl	-40832(%rbp), %eax
	addl	%edx, %ecx
	movl	-40824(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -40816(%rbp,%rax,4)
	addl	$1, -40824(%rbp)
.L3:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L4
	movl	-40832(%rbp), %eax
	movl	-40828(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %esi
	movl	-40828(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %ecx
	movl	-40832(%rbp), %eax
	movl	-40828(%rbp), %edx
	addl	%esi, %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -40816(%rbp,%rax,4)
	addl	$1, -40820(%rbp)
.L2:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L5
	movl	$0, -40820(%rbp)
	jmp	.L6
.L10:
	movl	$0, -40824(%rbp)
	jmp	.L7
.L9:
	movl	-40824(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	je	.L8
	movl	$32, %edi
	call	putchar@PLT
.L8:
	addl	$1, -40824(%rbp)
.L7:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jle	.L9
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -40820(%rbp)
.L6:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jle	.L10
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
