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

```c
#include <stdio.h>
#include <string.h>

int main(void){
   char o[51],e[51];
   int ol,el,i;
   double l;

   scanf("%s%s",o,e);
   ol=strlen(o); el=strlen(e);

   for(l=0;l<el;l+=0){
      i=(int)l;
      if(l-i==0){printf("%c",o[i]);l+=0.5;}
      else {printf("%c",e[i]);l+=0.5;}
   }

   if(ol-l>=0.5) printf("%c",o[(int)l]);
   printf("\n");

   return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s%s"
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rdx
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -148(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -144(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -136(%rbp)
	jmp	.L2
.L6:
	movsd	-136(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -140(%rbp)
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-140(%rbp), %xmm1
	movsd	-136(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L3
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	.L3
	movl	-140(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movsd	-136(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -136(%rbp)
	jmp	.L5
.L3:
	movl	-140(%rbp), %eax
	cltq
	movzbl	-64(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movsd	-136(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -136(%rbp)
.L5:
	movsd	-136(%rbp), %xmm1
	pxor	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -136(%rbp)
.L2:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	comisd	-136(%rbp), %xmm0
	ja	.L6
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-148(%rbp), %xmm0
	subsd	-136(%rbp), %xmm0
	comisd	.LC2(%rip), %xmm0
	jb	.L7
	movsd	-136(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L7:
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.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
.LC1:
	.string	"%s%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC1(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$144, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rbp
	leaq	16(%rsp), %r12
	movq	%rbp, %rdx
	movq	%r12, %rsi
	call	__isoc99_scanf@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	testq	%rax, %rax
	je	.L11
	pxor	%xmm6, %xmm6
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm6
	movq	%xmm6, %rbp
	movsd	.LC2(%rip), %xmm6
	movsd	%xmm6, (%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	cvttsd2sil	%xmm0, %eax
	pxor	%xmm2, %xmm2
	movapd	%xmm0, %xmm1
	movsd	%xmm0, 8(%rsp)
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm2
	cltq
	subsd	%xmm2, %xmm1
	ucomisd	%xmm3, %xmm1
	jp	.L3
	jne	.L3
	movsbl	16(%rsp,%rax), %edi
	call	putchar@PLT
	movsd	8(%rsp), %xmm0
	addsd	(%rsp), %xmm0
	pxor	%xmm5, %xmm5
	movq	%rbp, %xmm6
	addsd	%xmm5, %xmm0
	comisd	%xmm0, %xmm6
	ja	.L7
.L2:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ebx, %xmm1
	subsd	%xmm0, %xmm1
	comisd	(%rsp), %xmm1
	jnb	.L16
.L8:
	movl	$10, %edi
	call	putchar@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movsbl	80(%rsp,%rax), %edi
	call	putchar@PLT
	movsd	8(%rsp), %xmm0
	addsd	(%rsp), %xmm0
	pxor	%xmm4, %xmm4
	movq	%rbp, %xmm5
	addsd	%xmm4, %xmm0
	comisd	%xmm0, %xmm5
	ja	.L7
	jmp	.L2
.L16:
	cvttsd2sil	%xmm0, %eax
	cltq
	movsbl	16(%rsp,%rax), %edi
	call	putchar@PLT
	jmp	.L8
.L11:
	movsd	.LC2(%rip), %xmm7
	pxor	%xmm0, %xmm0
	movsd	%xmm7, (%rsp)
	jmp	.L2
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.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
.LC1:
	.string	"%s%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC1(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$144, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rbp
	leaq	16(%rsp), %r12
	movq	%rbp, %rdx
	movq	%r12, %rsi
	call	__isoc99_scanf@PLT
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	testq	%rax, %rax
	je	.L11
	pxor	%xmm6, %xmm6
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm6
	movq	%xmm6, %rbp
	movsd	.LC2(%rip), %xmm6
	movsd	%xmm6, (%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	cvttsd2sil	%xmm0, %eax
	pxor	%xmm2, %xmm2
	movapd	%xmm0, %xmm1
	movsd	%xmm0, 8(%rsp)
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm2
	cltq
	subsd	%xmm2, %xmm1
	ucomisd	%xmm3, %xmm1
	jp	.L3
	jne	.L3
	movsbl	16(%rsp,%rax), %edi
	call	putchar@PLT
	movsd	8(%rsp), %xmm0
	addsd	(%rsp), %xmm0
	pxor	%xmm5, %xmm5
	movq	%rbp, %xmm6
	addsd	%xmm5, %xmm0
	comisd	%xmm0, %xmm6
	ja	.L7
.L2:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ebx, %xmm1
	subsd	%xmm0, %xmm1
	comisd	(%rsp), %xmm1
	jnb	.L16
.L8:
	movl	$10, %edi
	call	putchar@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movsbl	80(%rsp,%rax), %edi
	call	putchar@PLT
	movsd	8(%rsp), %xmm0
	addsd	(%rsp), %xmm0
	pxor	%xmm4, %xmm4
	movq	%rbp, %xmm5
	addsd	%xmm4, %xmm0
	comisd	%xmm0, %xmm5
	ja	.L7
	jmp	.L2
.L16:
	cvttsd2sil	%xmm0, %eax
	cltq
	movsbl	16(%rsp,%rax), %edi
	call	putchar@PLT
	jmp	.L8
.L11:
	movsd	.LC2(%rip), %xmm7
	pxor	%xmm0, %xmm0
	movsd	%xmm7, (%rsp)
	jmp	.L2
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <string.h>

int main(void){
   char o[51],e[51];
   int ol,el,i;
   double l;

   scanf("%s%s",o,e);
   ol=strlen(o); el=strlen(e);

   for(l=0;l<el;l+=0){
      i=(int)l;
      if(l-i==0){printf("%c",o[i]);l+=0.5;}
      else {printf("%c",e[i]);l+=0.5;}
   }

   if(ol-l>=0.5) printf("%c",o[(int)l]);
   printf("\n");

   return 0;
}

atcoderbeeinnercontgst
atcoderregularcontest
 xyz
acc
 atcoderbeeinnercontgst
atcoaerreguldrcontest
 xyz
adc
 atcoderbfeinnercontgst
atcoaerreguldrcontest
 xyy
adc
 atcoderbfeinnercontgst
atcoaerreguldrcnntest
 xyy
acd
 ftcoderbaeinnercontgst
atcoaerreguldrcnntest
 yyx
acd

aattccooddeerrbreeegiunlnaerrccoonnttegsstt
 xayczc
 aattccoodaeerrbreeegiunlnderrccoonnttegsstt
 xaydzc
 aattccoodaeerrbrfeegiunlnderrccoonnttegsstt
 xaydyc
 aattccoodaeerrbrfeegiunlnderrccnonnttegsstt
 xaycyd
 fattccoodaeerrbraeegiunlnderrccnonnttegsstt
 yaycxd

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

```c
#include <stdio.h>
#include <string.h>

int main(void){
   char o[51],e[51];
   int ol,el,i;
   double l;

   scanf("%s%s",o,e);
   ol=strlen(o); el=strlen(e);

   for(l=0;l<el;l+=0){
      i=(int)l;
      if(l-i==0){printf("%c",o[i]);l+=0.5;}
      else {printf("%c",e[i]);l+=0.5;}
   }

   if(ol-l>=0.5) printf("%c",o[(int)l]);
   printf("\n");

   return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s%s"
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rdx
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -148(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -144(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -136(%rbp)
	jmp	.L2
.L6:
	movsd	-136(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -140(%rbp)
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-140(%rbp), %xmm1
	movsd	-136(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L3
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	.L3
	movl	-140(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movsd	-136(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -136(%rbp)
	jmp	.L5
.L3:
	movl	-140(%rbp), %eax
	cltq
	movzbl	-64(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movsd	-136(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -136(%rbp)
.L5:
	movsd	-136(%rbp), %xmm1
	pxor	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -136(%rbp)
.L2:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	comisd	-136(%rbp), %xmm0
	ja	.L6
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-148(%rbp), %xmm0
	subsd	-136(%rbp), %xmm0
	comisd	.LC2(%rip), %xmm0
	jb	.L7
	movsd	-136(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L7:
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.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%s"
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rdx
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -148(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -144(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -136(%rbp)
	jmp	.L2
.L6:
	movsd	-136(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -140(%rbp)
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-140(%rbp), %xmm1
	movsd	-136(%rbp), %xmm0
	subsd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jp	.L3
	pxor	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	.L3
	movl	-140(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movsd	-136(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -136(%rbp)
	jmp	.L5
.L3:
	movl	-140(%rbp), %eax
	cltq
	movzbl	-64(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movsd	-136(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -136(%rbp)
.L5:
	movsd	-136(%rbp), %xmm1
	pxor	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -136(%rbp)
.L2:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	comisd	-136(%rbp), %xmm0
	ja	.L6
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-148(%rbp), %xmm0
	subsd	-136(%rbp), %xmm0
	comisd	.LC2(%rip), %xmm0
	jb	.L7
	movsd	-136(%rbp), %xmm0
	cvttsd2sil	%xmm0, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
.L7:
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.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:
