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 n,m,xmax,ymin,i;
  scanf("%d%d%d%d",&n,&m,&xmax,&ymin);
  int a;
  for(i=0;i<n;i++){
    scanf("%d",&a);
    if(a>xmax)
      xmax=a;
  }
  for(i=0;i<m;i++){
    scanf("%d",&a);
    if(a<ymin)
      ymin=a;
  }
  if(xmax<ymin)
    puts("No War");
  else
    puts("War");
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"No War"
.LC3:
	.string	"War"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L2
.L4:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-16(%rbp), %eax
	movl	%eax, -24(%rbp)
.L3:
	addl	$1, -12(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L4
	movl	$0, -12(%rbp)
	jmp	.L5
.L7:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
.L6:
	addl	$1, -12(%rbp)
.L5:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L7
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"No War"
.LC3:
	.string	"War"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	leaq	12(%rsp), %rcx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %r8
	leaq	20(%rsp), %r12
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	12(%rsp), %eax
	jle	.L5
	movl	%eax, 12(%rsp)
	addl	$1, %ebx
	cmpl	4(%rsp), %ebx
	jl	.L2
.L7:
	movl	8(%rsp), %eax
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	testl	%eax, %eax
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	movl	16(%rsp), %edx
	cmpl	%edx, %eax
	jge	.L8
	movl	%eax, 16(%rsp)
	addl	$1, %ebx
	cmpl	8(%rsp), %ebx
	jl	.L3
	movl	%eax, %edx
.L10:
	cmpl	%edx, 12(%rsp)
	jge	.L11
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L12:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$32, %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
.L5:
	.cfi_restore_state
	addl	$1, %ebx
	cmpl	%ebx, 4(%rsp)
	jg	.L2
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jg	.L3
	jmp	.L10
.L11:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L21:
	movl	16(%rsp), %edx
	jmp	.L10
.L22:
	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%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"No War"
.LC3:
	.string	"War"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	leaq	12(%rsp), %rcx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %r8
	leaq	20(%rsp), %r12
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	12(%rsp), %eax
	jle	.L5
	movl	%eax, 12(%rsp)
	addl	$1, %ebx
	cmpl	4(%rsp), %ebx
	jl	.L2
.L7:
	movl	8(%rsp), %eax
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	testl	%eax, %eax
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	movl	16(%rsp), %edx
	cmpl	%edx, %eax
	jge	.L8
	movl	%eax, 16(%rsp)
	addl	$1, %ebx
	cmpl	8(%rsp), %ebx
	jl	.L3
	movl	%eax, %edx
.L10:
	cmpl	%edx, 12(%rsp)
	jge	.L11
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L12:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$32, %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
.L5:
	.cfi_restore_state
	addl	$1, %ebx
	cmpl	%ebx, 4(%rsp)
	jg	.L2
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %ebx
	cmpl	%ebx, 8(%rsp)
	jg	.L3
	jmp	.L10
.L11:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L21:
	movl	16(%rsp), %edx
	jmp	.L10
.L22:
	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 n,m,xmax,ymin,i;
  scanf("%d%d%d%d",&n,&m,&xmax,&ymin);
  int a;
  for(i=0;i<n;i++){
    scanf("%d",&a);
    if(a>xmax)
      xmax=a;
  }
  for(i=0;i<m;i++){
    scanf("%d",&a);
    if(a<ymin)
      ymin=a;
  }
  if(xmax<ymin)
    puts("No War");
  else
    puts("War");
  return 0;
}
3 2 10 20
8 15 15
16 22
 4 2 -48 -1
-20 -35 -91 -23
-22 75
 5 3 6 8
-10 3 1 5 -100
101 6 14
 3 2 10 40
8 15 15
16 22
 4 2 -48 -1
-20 -35 -35 -23
-22 75
 5 3 6 8
-10 0 1 5 -100
101 6 14
 3 2 10 40
8 11 15
16 22
 4 2 -48 -1
-20 -7 -35 -23
-22 75
 5 3 6 8
-1 0 1 5 -100
101 6 14
 3 2 10 40
8 1 15
16 22

No War
 War
 War
 No War
 War
 War
 No War
 War
 War
 No War

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 n,m,xmax,ymin,i;
  scanf("%d%d%d%d",&n,&m,&xmax,&ymin);
  int a;
  for(i=0;i<n;i++){
    scanf("%d",&a);
    if(a>xmax)
      xmax=a;
  }
  for(i=0;i<m;i++){
    scanf("%d",&a);
    if(a<ymin)
      ymin=a;
  }
  if(xmax<ymin)
    puts("No War");
  else
    puts("War");
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"No War"
.LC3:
	.string	"War"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L2
.L4:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-16(%rbp), %eax
	movl	%eax, -24(%rbp)
.L3:
	addl	$1, -12(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L4
	movl	$0, -12(%rbp)
	jmp	.L5
.L7:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
.L6:
	addl	$1, -12(%rbp)
.L5:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L7
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"No War"
.LC3:
	.string	"War"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L2
.L4:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-16(%rbp), %eax
	movl	%eax, -24(%rbp)
.L3:
	addl	$1, -12(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L4
	movl	$0, -12(%rbp)
	jmp	.L5
.L7:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
.L6:
	addl	$1, -12(%rbp)
.L5:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L7
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L8
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
