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

```c
#include<stdio.h>
int main(void){
	int n,m,x,y;
	int a,max=-100,min=100;
	scanf("%d %d %d %d",&n,&m,&x,&y);
	while(n){
		scanf("%d",&a);
		max=max<a?a:max;
		n--;
	}
	while(m){
		scanf("%d",&a);
		min=a<min?a:min;
		m--;
	}
	if(max<min){
		for(int i=max+1;i<=min;i++){
			if(x<i&&i<=y){n=1;}
		}
	}
	printf(n?"No War":"War");
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No War"
.LC1:
	.string	"War"
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	"%d"
	.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
	leaq	.LC2(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	movl	$-100, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, %ebx
	cmovl	%eax, %ebx
	subl	$1, 4(%rsp)
	jne	.L3
	movl	8(%rsp), %edx
	testl	%edx, %edx
	je	.L36
.L16:
	movl	$100, %ebp
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, %ebp
	cmovg	%eax, %ebp
	subl	$1, 8(%rsp)
	jne	.L5
.L4:
	cmpl	%ebp, %ebx
	jl	.L6
.L8:
	movl	4(%rsp), %eax
	leaq	.LC0(%rip), %rsi
	testl	%eax, %eax
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rsi
.L7:
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$40, %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
.L6:
	.cfi_restore_state
	leal	1(%rbx), %eax
	cmpl	%ebp, %eax
	jg	.L8
.L17:
	movl	12(%rsp), %edx
	movl	16(%rsp), %ecx
	cmpl	%eax, %edx
	jl	.L9
	movl	%ebp, %esi
	movl	$1, %r8d
	subl	%ebx, %esi
	leal	-1(%rax,%rsi), %esi
	cmpl	%edx, %esi
	cmovg	%edx, %esi
	movl	%esi, %edx
	subl	%ebx, %edx
	cmpl	%ebx, %esi
	cmovg	%edx, %r8d
	subl	$1, %edx
	cmpl	$2, %edx
	jbe	.L21
	cmpl	%ebx, %esi
	jle	.L21
	movd	%ebx, %xmm4
	movl	%r8d, %edi
	xorl	%edx, %edx
	movdqa	.LC5(%rip), %xmm3
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC6(%rip), %xmm2
	paddd	.LC4(%rip), %xmm1
	shrl	$2, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	%xmm1, %xmm0
	addl	$1, %edx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%edi, %edx
	jne	.L11
	movl	%r8d, %r9d
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %r9d
	leal	(%r9,%rax), %edi
	cmpl	%r9d, %r8d
	je	.L38
.L10:
	leal	1(%rdi), %eax
	cmpl	%esi, %eax
	jg	.L12
	leal	2(%rdi), %eax
	cmpl	%eax, %esi
	jl	.L12
	leal	3(%rdi), %eax
.L12:
	cmpl	%eax, %ebp
	jl	.L8
.L9:
	xorl	%edx, %edx
	movl	$1, %esi
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%eax, %ecx
	cmovge	%esi, %edx
	addl	$1, %eax
	cmpl	%ebp, %eax
	jle	.L14
	testb	%dl, %dl
	je	.L8
	movl	$1, 4(%rsp)
	leaq	.LC0(%rip), %rsi
	jmp	.L7
.L2:
	cmpl	$0, 8(%rsp)
	je	.L39
	movl	$-100, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC3(%rip), %r13
	jmp	.L16
.L38:
	movd	%xmm0, %eax
	jmp	.L12
.L36:
	movl	$100, %ebp
	jmp	.L4
.L21:
	movl	%eax, %edi
	jmp	.L10
.L39:
	movl	$-99, %eax
	movl	$-100, %ebx
	movl	$100, %ebp
	jmp	.L17
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC5:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC6:
	.long	1
	.long	1
	.long	1
	.long	1
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No War"
.LC1:
	.string	"War"
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	"%d"
	.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
	leaq	.LC2(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	movl	$-100, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, %ebx
	cmovl	%eax, %ebx
	subl	$1, 4(%rsp)
	jne	.L3
	movl	8(%rsp), %edx
	testl	%edx, %edx
	je	.L36
.L16:
	movl	$100, %ebp
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, %ebp
	cmovg	%eax, %ebp
	subl	$1, 8(%rsp)
	jne	.L5
.L4:
	cmpl	%ebp, %ebx
	jl	.L6
.L8:
	movl	4(%rsp), %eax
	leaq	.LC0(%rip), %rsi
	testl	%eax, %eax
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rsi
.L7:
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$40, %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
.L6:
	.cfi_restore_state
	leal	1(%rbx), %eax
	cmpl	%ebp, %eax
	jg	.L8
.L17:
	movl	12(%rsp), %edx
	movl	16(%rsp), %ecx
	cmpl	%eax, %edx
	jl	.L9
	movl	%ebp, %esi
	movl	$1, %r8d
	subl	%ebx, %esi
	leal	-1(%rax,%rsi), %esi
	cmpl	%edx, %esi
	cmovg	%edx, %esi
	movl	%esi, %edx
	subl	%ebx, %edx
	cmpl	%ebx, %esi
	cmovg	%edx, %r8d
	subl	$1, %edx
	cmpl	$2, %edx
	jbe	.L21
	cmpl	%ebx, %esi
	jle	.L21
	movd	%ebx, %xmm4
	movl	%r8d, %edi
	xorl	%edx, %edx
	movdqa	.LC5(%rip), %xmm3
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC6(%rip), %xmm2
	paddd	.LC4(%rip), %xmm1
	shrl	$2, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	%xmm1, %xmm0
	addl	$1, %edx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%edi, %edx
	jne	.L11
	movl	%r8d, %r9d
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %r9d
	leal	(%r9,%rax), %edi
	cmpl	%r9d, %r8d
	je	.L38
.L10:
	leal	1(%rdi), %eax
	cmpl	%esi, %eax
	jg	.L12
	leal	2(%rdi), %eax
	cmpl	%eax, %esi
	jl	.L12
	leal	3(%rdi), %eax
.L12:
	cmpl	%eax, %ebp
	jl	.L8
.L9:
	xorl	%edx, %edx
	movl	$1, %esi
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%eax, %ecx
	cmovge	%esi, %edx
	addl	$1, %eax
	cmpl	%ebp, %eax
	jle	.L14
	testb	%dl, %dl
	je	.L8
	movl	$1, 4(%rsp)
	leaq	.LC0(%rip), %rsi
	jmp	.L7
.L2:
	cmpl	$0, 8(%rsp)
	je	.L39
	movl	$-100, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC3(%rip), %r13
	jmp	.L16
.L38:
	movd	%xmm0, %eax
	jmp	.L12
.L36:
	movl	$100, %ebp
	jmp	.L4
.L21:
	movl	%eax, %edi
	jmp	.L10
.L39:
	movl	$-99, %eax
	movl	$-100, %ebx
	movl	$100, %ebp
	jmp	.L17
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC5:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC6:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No War"
.LC1:
	.string	"War"
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	"%d"
	.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
	leaq	.LC2(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	movl	$-100, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, %ebx
	cmovl	%eax, %ebx
	subl	$1, 4(%rsp)
	jne	.L3
	movl	8(%rsp), %edx
	testl	%edx, %edx
	je	.L36
.L16:
	movl	$100, %ebp
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, %ebp
	cmovg	%eax, %ebp
	subl	$1, 8(%rsp)
	jne	.L5
.L4:
	cmpl	%ebp, %ebx
	jl	.L6
.L8:
	movl	4(%rsp), %eax
	leaq	.LC0(%rip), %rsi
	testl	%eax, %eax
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rsi
.L7:
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$40, %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
.L6:
	.cfi_restore_state
	leal	1(%rbx), %eax
	cmpl	%ebp, %eax
	jg	.L8
.L17:
	movl	12(%rsp), %edx
	movl	16(%rsp), %ecx
	cmpl	%eax, %edx
	jl	.L9
	movl	%ebp, %esi
	movl	$1, %r8d
	subl	%ebx, %esi
	leal	-1(%rax,%rsi), %esi
	cmpl	%edx, %esi
	cmovg	%edx, %esi
	movl	%esi, %edx
	subl	%ebx, %edx
	cmpl	%ebx, %esi
	cmovg	%edx, %r8d
	subl	$1, %edx
	cmpl	$2, %edx
	jbe	.L21
	cmpl	%ebx, %esi
	jle	.L21
	movd	%ebx, %xmm4
	movl	%r8d, %edi
	xorl	%edx, %edx
	movdqa	.LC5(%rip), %xmm3
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC6(%rip), %xmm2
	paddd	.LC4(%rip), %xmm1
	shrl	$2, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	%xmm1, %xmm0
	addl	$1, %edx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%edi, %edx
	jne	.L11
	movl	%r8d, %r9d
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %r9d
	leal	(%r9,%rax), %edi
	cmpl	%r9d, %r8d
	je	.L38
.L10:
	leal	1(%rdi), %eax
	cmpl	%esi, %eax
	jg	.L12
	leal	2(%rdi), %eax
	cmpl	%eax, %esi
	jl	.L12
	leal	3(%rdi), %eax
.L12:
	cmpl	%eax, %ebp
	jl	.L8
.L9:
	xorl	%edx, %edx
	movl	$1, %esi
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%eax, %ecx
	cmovge	%esi, %edx
	addl	$1, %eax
	cmpl	%ebp, %eax
	jle	.L14
	testb	%dl, %dl
	je	.L8
	movl	$1, 4(%rsp)
	leaq	.LC0(%rip), %rsi
	jmp	.L7
.L2:
	cmpl	$0, 8(%rsp)
	je	.L39
	movl	$-100, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC3(%rip), %r13
	jmp	.L16
.L38:
	movd	%xmm0, %eax
	jmp	.L12
.L36:
	movl	$100, %ebp
	jmp	.L4
.L21:
	movl	%eax, %edi
	jmp	.L10
.L39:
	movl	$-99, %eax
	movl	$-100, %ebx
	movl	$100, %ebp
	jmp	.L17
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC5:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC6:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```
```c
#include<stdio.h>
int main(void){
	int n,m,x,y;
	int a,max=-100,min=100;
	scanf("%d %d %d %d",&n,&m,&x,&y);
	while(n){
		scanf("%d",&a);
		max=max<a?a:max;
		n--;
	}
	while(m){
		scanf("%d",&a);
		min=a<min?a:min;
		m--;
	}
	if(max<min){
		for(int i=max+1;i<=min;i++){
			if(x<i&&i<=y){n=1;}
		}
	}
	printf(n?"No War":"War");
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void){
	int n,m,x,y;
	int a,max=-100,min=100;
	scanf("%d %d %d %d",&n,&m,&x,&y);
	while(n){
		scanf("%d",&a);
		max=max<a?a:max;
		n--;
	}
	while(m){
		scanf("%d",&a);
		min=a<min?a:min;
		m--;
	}
	if(max<min){
		for(int i=max+1;i<=min;i++){
			if(x<i&&i<=y){n=1;}
		}
	}
	printf(n?"No War":"War");
	return 0;
}```

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.
Optimized Assembly Code:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void){
	int n,m,x,y;
	int a,max=-100,min=100;
	scanf("%d %d %d %d",&n,&m,&x,&y);
	while(n){
		scanf("%d",&a);
		max=max<a?a:max;
		n--;
	}
	while(m){
		scanf("%d",&a);
		min=a<min?a:min;
		m--;
	}
	if(max<min){
		for(int i=max+1;i<=min;i++){
			if(x<i&&i<=y){n=1;}
		}
	}
	printf(n?"No War":"War");
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No War"
.LC1:
	.string	"War"
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	"%d"
	.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
	leaq	.LC2(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	movl	$-100, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, %ebx
	cmovl	%eax, %ebx
	subl	$1, 4(%rsp)
	jne	.L3
	movl	8(%rsp), %edx
	testl	%edx, %edx
	je	.L36
.L16:
	movl	$100, %ebp
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, %ebp
	cmovg	%eax, %ebp
	subl	$1, 8(%rsp)
	jne	.L5
.L4:
	cmpl	%ebp, %ebx
	jl	.L6
.L8:
	movl	4(%rsp), %eax
	leaq	.LC0(%rip), %rsi
	testl	%eax, %eax
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rsi
.L7:
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$40, %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
.L6:
	.cfi_restore_state
	leal	1(%rbx), %eax
	cmpl	%ebp, %eax
	jg	.L8
.L17:
	movl	12(%rsp), %edx
	movl	16(%rsp), %ecx
	cmpl	%eax, %edx
	jl	.L9
	movl	%ebp, %esi
	movl	$1, %r8d
	subl	%ebx, %esi
	leal	-1(%rax,%rsi), %esi
	cmpl	%edx, %esi
	cmovg	%edx, %esi
	movl	%esi, %edx
	subl	%ebx, %edx
	cmpl	%ebx, %esi
	cmovg	%edx, %r8d
	subl	$1, %edx
	cmpl	$2, %edx
	jbe	.L21
	cmpl	%ebx, %esi
	jle	.L21
	movd	%ebx, %xmm4
	movl	%r8d, %edi
	xorl	%edx, %edx
	movdqa	.LC5(%rip), %xmm3
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC6(%rip), %xmm2
	paddd	.LC4(%rip), %xmm1
	shrl	$2, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	%xmm1, %xmm0
	addl	$1, %edx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%edi, %edx
	jne	.L11
	movl	%r8d, %r9d
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %r9d
	leal	(%r9,%rax), %edi
	cmpl	%r9d, %r8d
	je	.L38
.L10:
	leal	1(%rdi), %eax
	cmpl	%esi, %eax
	jg	.L12
	leal	2(%rdi), %eax
	cmpl	%eax, %esi
	jl	.L12
	leal	3(%rdi), %eax
.L12:
	cmpl	%eax, %ebp
	jl	.L8
.L9:
	xorl	%edx, %edx
	movl	$1, %esi
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%eax, %ecx
	cmovge	%esi, %edx
	addl	$1, %eax
	cmpl	%ebp, %eax
	jle	.L14
	testb	%dl, %dl
	je	.L8
	movl	$1, 4(%rsp)
	leaq	.LC0(%rip), %rsi
	jmp	.L7
.L2:
	cmpl	$0, 8(%rsp)
	je	.L39
	movl	$-100, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC3(%rip), %r13
	jmp	.L16
.L38:
	movd	%xmm0, %eax
	jmp	.L12
.L36:
	movl	$100, %ebp
	jmp	.L4
.L21:
	movl	%eax, %edi
	jmp	.L10
.L39:
	movl	$-99, %eax
	movl	$-100, %ebx
	movl	$100, %ebp
	jmp	.L17
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC5:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC6:
	.long	1
	.long	1
	.long	1
	.long	1
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No War"
.LC1:
	.string	"War"
.LC2:
	.string	"%d %d %d %d"
.LC3:
	.string	"%d"
	.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
	leaq	.LC2(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L2
	movl	$-100, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, %ebx
	cmovl	%eax, %ebx
	subl	$1, 4(%rsp)
	jne	.L3
	movl	8(%rsp), %edx
	testl	%edx, %edx
	je	.L36
.L16:
	movl	$100, %ebp
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, %ebp
	cmovg	%eax, %ebp
	subl	$1, 8(%rsp)
	jne	.L5
.L4:
	cmpl	%ebp, %ebx
	jl	.L6
.L8:
	movl	4(%rsp), %eax
	leaq	.LC0(%rip), %rsi
	testl	%eax, %eax
	leaq	.LC1(%rip), %rax
	cmove	%rax, %rsi
.L7:
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$40, %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
.L6:
	.cfi_restore_state
	leal	1(%rbx), %eax
	cmpl	%ebp, %eax
	jg	.L8
.L17:
	movl	12(%rsp), %edx
	movl	16(%rsp), %ecx
	cmpl	%eax, %edx
	jl	.L9
	movl	%ebp, %esi
	movl	$1, %r8d
	subl	%ebx, %esi
	leal	-1(%rax,%rsi), %esi
	cmpl	%edx, %esi
	cmovg	%edx, %esi
	movl	%esi, %edx
	subl	%ebx, %edx
	cmpl	%ebx, %esi
	cmovg	%edx, %r8d
	subl	$1, %edx
	cmpl	$2, %edx
	jbe	.L21
	cmpl	%ebx, %esi
	jle	.L21
	movd	%ebx, %xmm4
	movl	%r8d, %edi
	xorl	%edx, %edx
	movdqa	.LC5(%rip), %xmm3
	pshufd	$0, %xmm4, %xmm1
	movdqa	.LC6(%rip), %xmm2
	paddd	.LC4(%rip), %xmm1
	shrl	$2, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	%xmm1, %xmm0
	addl	$1, %edx
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	cmpl	%edi, %edx
	jne	.L11
	movl	%r8d, %r9d
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %r9d
	leal	(%r9,%rax), %edi
	cmpl	%r9d, %r8d
	je	.L38
.L10:
	leal	1(%rdi), %eax
	cmpl	%esi, %eax
	jg	.L12
	leal	2(%rdi), %eax
	cmpl	%eax, %esi
	jl	.L12
	leal	3(%rdi), %eax
.L12:
	cmpl	%eax, %ebp
	jl	.L8
.L9:
	xorl	%edx, %edx
	movl	$1, %esi
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%eax, %ecx
	cmovge	%esi, %edx
	addl	$1, %eax
	cmpl	%ebp, %eax
	jle	.L14
	testb	%dl, %dl
	je	.L8
	movl	$1, 4(%rsp)
	leaq	.LC0(%rip), %rsi
	jmp	.L7
.L2:
	cmpl	$0, 8(%rsp)
	je	.L39
	movl	$-100, %ebx
	leaq	20(%rsp), %r12
	leaq	.LC3(%rip), %r13
	jmp	.L16
.L38:
	movd	%xmm0, %eax
	jmp	.L12
.L36:
	movl	$100, %ebp
	jmp	.L4
.L21:
	movl	%eax, %edi
	jmp	.L10
.L39:
	movl	$-99, %eax
	movl	$-100, %ebx
	movl	$100, %ebp
	jmp	.L17
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC5:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC6:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```