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

```c

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main(void) {
	
	int N = 10;int M = 10;
	int X, Y;
	scanf("%d %d %d %d", &N,&M,&X,&Y);

	int x[200];
	int y[200];
	for (int i = 0;i < N;i++)scanf(" %d", &x[i]);
	for (int i = 0;i < M;i++)scanf(" %d", &y[i]);

	int xmax = -100;
	int ymin = 101;
	int z;

	for (int i=0;i<N;i++)
	if (xmax < x[i]) xmax = x[i];

	for(int i=0;i<M;i++)
		if(ymin >y[i]) ymin = y[i];

	if (ymin > xmax) {

		for (z = -100; z < 100; z++) {
			if (z > X && z <= Y && xmax < z && ymin >= z) {
				printf("No War");
				return 0;
			}
		}
	}
	 printf(" War");
	
}```

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	$1664, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10, -1660(%rbp)
	movl	$10, -1656(%rbp)
	leaq	-1648(%rbp), %rsi
	leaq	-1652(%rbp), %rcx
	leaq	-1656(%rbp), %rdx
	leaq	-1660(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1644(%rbp)
	jmp	.L2
.L3:
	leaq	-1616(%rbp), %rdx
	movl	-1644(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1644(%rbp)
.L2:
	movl	-1660(%rbp), %eax
	cmpl	%eax, -1644(%rbp)
	jl	.L3
	movl	$0, -1640(%rbp)
	jmp	.L4
.L5:
	leaq	-816(%rbp), %rdx
	movl	-1640(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1640(%rbp)
.L4:
	movl	-1656(%rbp), %eax
	cmpl	%eax, -1640(%rbp)
	jl	.L5
	movl	$-100, -1636(%rbp)
	movl	$101, -1632(%rbp)
	movl	$0, -1624(%rbp)
	jmp	.L6
.L8:
	movl	-1624(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1636(%rbp)
	jge	.L7
	movl	-1624(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1636(%rbp)
.L7:
	addl	$1, -1624(%rbp)
.L6:
	movl	-1660(%rbp), %eax
	cmpl	%eax, -1624(%rbp)
	jl	.L8
	movl	$0, -1620(%rbp)
	jmp	.L9
.L11:
	movl	-1620(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, -1632(%rbp)
	jle	.L10
	movl	-1620(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -1632(%rbp)
.L10:
	addl	$1, -1620(%rbp)
.L9:
	movl	-1656(%rbp), %eax
	cmpl	%eax, -1620(%rbp)
	jl	.L11
	movl	-1632(%rbp), %eax
	cmpl	-1636(%rbp), %eax
	jle	.L12
	movl	$-100, -1628(%rbp)
	jmp	.L13
.L16:
	movl	-1652(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jle	.L14
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jg	.L14
	movl	-1636(%rbp), %eax
	cmpl	-1628(%rbp), %eax
	jge	.L14
	movl	-1632(%rbp), %eax
	cmpl	-1628(%rbp), %eax
	jl	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L15
.L14:
	addl	$1, -1628(%rbp)
.L13:
	cmpl	$99, -1628(%rbp)
	jle	.L16
.L12:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	" %d"
.LC4:
	.string	"No War"
.LC5:
	.string	" War"
	.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	.LC2(%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	$1632, %rsp
	.cfi_def_cfa_offset 1664
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	leaq	12(%rsp), %r8
	movl	$10, (%rsp)
	movl	$10, 4(%rsp)
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, (%rsp)
	jg	.L3
.L2:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	816(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L5
	movl	(%rsp), %esi
	testl	%esi, %esi
	jle	.L6
.L18:
	testl	%esi, %esi
	movl	$1, %edi
	cmovg	%esi, %edi
	cmpl	$3, %esi
	jle	.L22
	movl	%edi, %ecx
	movdqa	.LC0(%rip), %xmm0
	leaq	16(%rsp), %rdx
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	32(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	%xmm0, %xmm1
	addq	$16, %rdx
	pcmpgtd	-16(%rdx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rdx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rcx, %rdx
	jne	.L8
	movdqa	%xmm0, %xmm2
	movl	%edi, %edx
	psrldq	$8, %xmm2
	andl	$-4, %edx
	andl	$3, %edi
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %ecx
	je	.L9
.L7:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	leal	1(%rdx), %edi
	cmpl	%edi, %esi
	jle	.L9
	movslq	%edi, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	addl	$2, %edx
	cmpl	%edx, %esi
	jle	.L9
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
.L9:
	testl	%eax, %eax
	jle	.L23
.L20:
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L24
	movl	%eax, %esi
	movdqa	.LC1(%rip), %xmm2
	leaq	816(%rsp), %rdx
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	leaq	832(%rsp,%rsi), %rsi
	.p2align 4,,10
	.p2align 3
.L12:
	movdqa	%xmm2, %xmm1
	movdqa	(%rdx), %xmm0
	addq	$16, %rdx
	pcmpgtd	-16(%rdx), %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rsi
	jne	.L12
	movdqa	%xmm2, %xmm0
	movl	%eax, %edx
	psrldq	$8, %xmm0
	andl	$-4, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movd	%xmm0, %esi
	testb	$3, %al
	je	.L10
.L11:
	movslq	%edx, %rdi
	movl	816(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	leal	1(%rdx), %edi
	cmpl	%eax, %edi
	jge	.L10
	movslq	%edi, %rdi
	movl	816(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$2, %edx
	cmpl	%eax, %edx
	jge	.L10
	movslq	%edx, %rdx
	movl	816(%rsp,%rdx,4), %eax
	cmpl	%eax, %esi
	cmovg	%eax, %esi
.L10:
	cmpl	%esi, %ecx
	jge	.L14
.L19:
	movl	8(%rsp), %edx
	movl	12(%rsp), %edi
	movl	$-100, %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, %eax
	cmpl	$100, %eax
	je	.L14
.L17:
	cmpl	%eax, %edx
	jge	.L15
	cmpl	%eax, %edi
	jl	.L15
	cmpl	%eax, %ecx
	jge	.L15
	cmpl	%esi, %eax
	jg	.L15
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
.L14:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L16:
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$1632, %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
.L4:
	.cfi_restore_state
	movl	(%rsp), %esi
	testl	%esi, %esi
	jg	.L18
	movl	$101, %esi
	movl	$-100, %ecx
	jmp	.L19
.L6:
	movl	$-100, %ecx
	movl	$101, %esi
	testl	%eax, %eax
	jg	.L20
	jmp	.L19
.L22:
	xorl	%edx, %edx
	movl	$-100, %ecx
	jmp	.L7
.L23:
	movl	$101, %esi
	jmp	.L10
.L24:
	xorl	%edx, %edx
	movl	$101, %esi
	jmp	.L11
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-100
	.long	-100
	.long	-100
	.long	-100
	.align 16
.LC1:
	.long	101
	.long	101
	.long	101
	.long	101
	.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
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	" %d"
.LC4:
	.string	"No War"
.LC5:
	.string	" War"
	.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	.LC2(%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	$1632, %rsp
	.cfi_def_cfa_offset 1664
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	leaq	12(%rsp), %r8
	movl	$10, (%rsp)
	movl	$10, 4(%rsp)
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, (%rsp)
	jg	.L3
.L2:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	816(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L5
	movl	(%rsp), %esi
	testl	%esi, %esi
	jle	.L6
.L18:
	testl	%esi, %esi
	movl	$1, %edi
	cmovg	%esi, %edi
	cmpl	$3, %esi
	jle	.L22
	movl	%edi, %ecx
	movdqa	.LC0(%rip), %xmm0
	leaq	16(%rsp), %rdx
	shrl	$2, %ecx
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	32(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	%xmm0, %xmm1
	addq	$16, %rdx
	pcmpgtd	-16(%rdx), %xmm1
	pand	%xmm1, %xmm0
	pandn	-16(%rdx), %xmm1
	por	%xmm1, %xmm0
	cmpq	%rcx, %rdx
	jne	.L8
	movdqa	%xmm0, %xmm2
	movl	%edi, %edx
	psrldq	$8, %xmm2
	andl	$-4, %edx
	andl	$3, %edi
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %ecx
	je	.L9
.L7:
	movslq	%edx, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	leal	1(%rdx), %edi
	cmpl	%edi, %esi
	jle	.L9
	movslq	%edi, %rdi
	movl	16(%rsp,%rdi,4), %edi
	cmpl	%edi, %ecx
	cmovl	%edi, %ecx
	addl	$2, %edx
	cmpl	%edx, %esi
	jle	.L9
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %edx
	cmpl	%edx, %ecx
	cmovl	%edx, %ecx
.L9:
	testl	%eax, %eax
	jle	.L23
.L20:
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L24
	movl	%eax, %esi
	movdqa	.LC1(%rip), %xmm2
	leaq	816(%rsp), %rdx
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	leaq	832(%rsp,%rsi), %rsi
	.p2align 4,,10
	.p2align 3
.L12:
	movdqa	%xmm2, %xmm1
	movdqa	(%rdx), %xmm0
	addq	$16, %rdx
	pcmpgtd	-16(%rdx), %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rdx, %rsi
	jne	.L12
	movdqa	%xmm2, %xmm0
	movl	%eax, %edx
	psrldq	$8, %xmm0
	andl	$-4, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movd	%xmm0, %esi
	testb	$3, %al
	je	.L10
.L11:
	movslq	%edx, %rdi
	movl	816(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	leal	1(%rdx), %edi
	cmpl	%eax, %edi
	jge	.L10
	movslq	%edi, %rdi
	movl	816(%rsp,%rdi,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	addl	$2, %edx
	cmpl	%eax, %edx
	jge	.L10
	movslq	%edx, %rdx
	movl	816(%rsp,%rdx,4), %eax
	cmpl	%eax, %esi
	cmovg	%eax, %esi
.L10:
	cmpl	%esi, %ecx
	jge	.L14
.L19:
	movl	8(%rsp), %edx
	movl	12(%rsp), %edi
	movl	$-100, %eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, %eax
	cmpl	$100, %eax
	je	.L14
.L17:
	cmpl	%eax, %edx
	jge	.L15
	cmpl	%eax, %edi
	jl	.L15
	cmpl	%eax, %ecx
	jge	.L15
	cmpl	%esi, %eax
	jg	.L15
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L16
.L14:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L16:
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$1632, %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
.L4:
	.cfi_restore_state
	movl	(%rsp), %esi
	testl	%esi, %esi
	jg	.L18
	movl	$101, %esi
	movl	$-100, %ecx
	jmp	.L19
.L6:
	movl	$-100, %ecx
	movl	$101, %esi
	testl	%eax, %eax
	jg	.L20
	jmp	.L19
.L22:
	xorl	%edx, %edx
	movl	$-100, %ecx
	jmp	.L7
.L23:
	movl	$101, %esi
	jmp	.L10
.L24:
	xorl	%edx, %edx
	movl	$101, %esi
	jmp	.L11
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	-100
	.long	-100
	.long	-100
	.long	-100
	.align 16
.LC1:
	.long	101
	.long	101
	.long	101
	.long	101
	.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 _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main(void) {
	
	int N = 10;int M = 10;
	int X, Y;
	scanf("%d %d %d %d", &N,&M,&X,&Y);

	int x[200];
	int y[200];
	for (int i = 0;i < N;i++)scanf(" %d", &x[i]);
	for (int i = 0;i < M;i++)scanf(" %d", &y[i]);

	int xmax = -100;
	int ymin = 101;
	int z;

	for (int i=0;i<N;i++)
	if (xmax < x[i]) xmax = x[i];

	for(int i=0;i<M;i++)
		if(ymin >y[i]) ymin = y[i];

	if (ymin > xmax) {

		for (z = -100; z < 100; z++) {
			if (z > X && z <= Y && xmax < z && ymin >= z) {
				printf("No War");
				return 0;
			}
		}
	}
	 printf(" War");
	
}
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

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main(void) {
	
	int N = 10;int M = 10;
	int X, Y;
	scanf("%d %d %d %d", &N,&M,&X,&Y);

	int x[200];
	int y[200];
	for (int i = 0;i < N;i++)scanf(" %d", &x[i]);
	for (int i = 0;i < M;i++)scanf(" %d", &y[i]);

	int xmax = -100;
	int ymin = 101;
	int z;

	for (int i=0;i<N;i++)
	if (xmax < x[i]) xmax = x[i];

	for(int i=0;i<M;i++)
		if(ymin >y[i]) ymin = y[i];

	if (ymin > xmax) {

		for (z = -100; z < 100; z++) {
			if (z > X && z <= Y && xmax < z && ymin >= z) {
				printf("No War");
				return 0;
			}
		}
	}
	 printf(" War");
	
}```

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	$1664, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10, -1660(%rbp)
	movl	$10, -1656(%rbp)
	leaq	-1648(%rbp), %rsi
	leaq	-1652(%rbp), %rcx
	leaq	-1656(%rbp), %rdx
	leaq	-1660(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1644(%rbp)
	jmp	.L2
.L3:
	leaq	-1616(%rbp), %rdx
	movl	-1644(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1644(%rbp)
.L2:
	movl	-1660(%rbp), %eax
	cmpl	%eax, -1644(%rbp)
	jl	.L3
	movl	$0, -1640(%rbp)
	jmp	.L4
.L5:
	leaq	-816(%rbp), %rdx
	movl	-1640(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1640(%rbp)
.L4:
	movl	-1656(%rbp), %eax
	cmpl	%eax, -1640(%rbp)
	jl	.L5
	movl	$-100, -1636(%rbp)
	movl	$101, -1632(%rbp)
	movl	$0, -1624(%rbp)
	jmp	.L6
.L8:
	movl	-1624(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1636(%rbp)
	jge	.L7
	movl	-1624(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1636(%rbp)
.L7:
	addl	$1, -1624(%rbp)
.L6:
	movl	-1660(%rbp), %eax
	cmpl	%eax, -1624(%rbp)
	jl	.L8
	movl	$0, -1620(%rbp)
	jmp	.L9
.L11:
	movl	-1620(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, -1632(%rbp)
	jle	.L10
	movl	-1620(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -1632(%rbp)
.L10:
	addl	$1, -1620(%rbp)
.L9:
	movl	-1656(%rbp), %eax
	cmpl	%eax, -1620(%rbp)
	jl	.L11
	movl	-1632(%rbp), %eax
	cmpl	-1636(%rbp), %eax
	jle	.L12
	movl	$-100, -1628(%rbp)
	jmp	.L13
.L16:
	movl	-1652(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jle	.L14
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jg	.L14
	movl	-1636(%rbp), %eax
	cmpl	-1628(%rbp), %eax
	jge	.L14
	movl	-1632(%rbp), %eax
	cmpl	-1628(%rbp), %eax
	jl	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L15
.L14:
	addl	$1, -1628(%rbp)
.L13:
	cmpl	$99, -1628(%rbp)
	jle	.L16
.L12:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	$1664, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10, -1660(%rbp)
	movl	$10, -1656(%rbp)
	leaq	-1648(%rbp), %rsi
	leaq	-1652(%rbp), %rcx
	leaq	-1656(%rbp), %rdx
	leaq	-1660(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1644(%rbp)
	jmp	.L2
.L3:
	leaq	-1616(%rbp), %rdx
	movl	-1644(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1644(%rbp)
.L2:
	movl	-1660(%rbp), %eax
	cmpl	%eax, -1644(%rbp)
	jl	.L3
	movl	$0, -1640(%rbp)
	jmp	.L4
.L5:
	leaq	-816(%rbp), %rdx
	movl	-1640(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1640(%rbp)
.L4:
	movl	-1656(%rbp), %eax
	cmpl	%eax, -1640(%rbp)
	jl	.L5
	movl	$-100, -1636(%rbp)
	movl	$101, -1632(%rbp)
	movl	$0, -1624(%rbp)
	jmp	.L6
.L8:
	movl	-1624(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	cmpl	%eax, -1636(%rbp)
	jge	.L7
	movl	-1624(%rbp), %eax
	cltq
	movl	-1616(%rbp,%rax,4), %eax
	movl	%eax, -1636(%rbp)
.L7:
	addl	$1, -1624(%rbp)
.L6:
	movl	-1660(%rbp), %eax
	cmpl	%eax, -1624(%rbp)
	jl	.L8
	movl	$0, -1620(%rbp)
	jmp	.L9
.L11:
	movl	-1620(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	%eax, -1632(%rbp)
	jle	.L10
	movl	-1620(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	movl	%eax, -1632(%rbp)
.L10:
	addl	$1, -1620(%rbp)
.L9:
	movl	-1656(%rbp), %eax
	cmpl	%eax, -1620(%rbp)
	jl	.L11
	movl	-1632(%rbp), %eax
	cmpl	-1636(%rbp), %eax
	jle	.L12
	movl	$-100, -1628(%rbp)
	jmp	.L13
.L16:
	movl	-1652(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jle	.L14
	movl	-1648(%rbp), %eax
	cmpl	%eax, -1628(%rbp)
	jg	.L14
	movl	-1636(%rbp), %eax
	cmpl	-1628(%rbp), %eax
	jge	.L14
	movl	-1632(%rbp), %eax
	cmpl	-1628(%rbp), %eax
	jl	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L15
.L14:
	addl	$1, -1628(%rbp)
.L13:
	cmpl	$99, -1628(%rbp)
	jle	.L16
.L12:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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:
