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>
#include <stdlib.h>
#include <string.h>
int main(void){
int n,h,w;
int yes=0;
int a[1005],b[1005];
scanf("%d %d %d",&n,&h,&w);

for(int count=0;count<n;count++){
scanf("%d",&a[count]);
scanf("%d",&b[count]);
}

for(int count=0;count<n;count++){
if(a[count]>=h&&b[count]>=w){yes++;}
}
printf("%d",yes);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3984, %rsp
	.cfi_def_cfa_offset 8128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L19
	leaq	16(%rsp), %r13
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r13, %rbp
	leaq	4048(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	leaq	(%r12,%rbx,4), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jg	.L4
	testl	%edx, %edx
	jle	.L5
	leal	-1(%rdx), %eax
	movl	8(%rsp), %esi
	movl	12(%rsp), %edi
	cmpl	$2, %eax
	jbe	.L14
	movl	%edx, %ecx
	movd	%esi, %xmm6
	movd	%edi, %xmm7
	xorl	%eax, %eax
	shrl	$2, %ecx
	pxor	%xmm1, %xmm1
	pshufd	$0, %xmm6, %xmm5
	pshufd	$0, %xmm7, %xmm4
	salq	$4, %rcx
	movdqa	%xmm1, %xmm3
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm5, %xmm0
	movdqa	%xmm4, %xmm2
	pcmpgtd	0(%r13,%rax), %xmm0
	pcmpgtd	(%r12,%rax), %xmm2
	addq	$16, %rax
	pcmpeqd	%xmm3, %xmm0
	pcmpeqd	%xmm3, %xmm2
	pand	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L7
	movdqa	%xmm1, %xmm0
	movl	%edx, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r8d
	testb	$3, %dl
	je	.L3
.L6:
	movslq	%eax, %rcx
	cmpl	16(%rsp,%rcx,4), %esi
	jle	.L20
.L9:
	leal	1(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L3
	movslq	%ecx, %rcx
	cmpl	16(%rsp,%rcx,4), %esi
	jle	.L21
.L10:
	addl	$2, %eax
	cmpl	%eax, %edx
	jle	.L3
	cltq
	cmpl	16(%rsp,%rax,4), %esi
	jle	.L22
.L3:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$8080, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	cmpl	%edi, 4048(%rsp,%rcx,4)
	jl	.L9
	addl	$1, %r8d
	jmp	.L9
.L21:
	cmpl	4048(%rsp,%rcx,4), %edi
	jg	.L10
	addl	$1, %r8d
	jmp	.L10
.L22:
	cmpl	4048(%rsp,%rax,4), %edi
	jg	.L3
	addl	$1, %r8d
	jmp	.L3
.L19:
	leaq	.LC1(%rip), %r14
.L5:
	xorl	%r8d, %r8d
	jmp	.L3
.L14:
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3984, %rsp
	.cfi_def_cfa_offset 8128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L19
	leaq	16(%rsp), %r13
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r13, %rbp
	leaq	4048(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	leaq	(%r12,%rbx,4), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jg	.L4
	testl	%edx, %edx
	jle	.L5
	leal	-1(%rdx), %eax
	movl	8(%rsp), %esi
	movl	12(%rsp), %edi
	cmpl	$2, %eax
	jbe	.L14
	movl	%edx, %ecx
	movd	%esi, %xmm6
	movd	%edi, %xmm7
	xorl	%eax, %eax
	shrl	$2, %ecx
	pxor	%xmm1, %xmm1
	pshufd	$0, %xmm6, %xmm5
	pshufd	$0, %xmm7, %xmm4
	salq	$4, %rcx
	movdqa	%xmm1, %xmm3
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm5, %xmm0
	movdqa	%xmm4, %xmm2
	pcmpgtd	0(%r13,%rax), %xmm0
	pcmpgtd	(%r12,%rax), %xmm2
	addq	$16, %rax
	pcmpeqd	%xmm3, %xmm0
	pcmpeqd	%xmm3, %xmm2
	pand	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L7
	movdqa	%xmm1, %xmm0
	movl	%edx, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r8d
	testb	$3, %dl
	je	.L3
.L6:
	movslq	%eax, %rcx
	cmpl	16(%rsp,%rcx,4), %esi
	jle	.L20
.L9:
	leal	1(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L3
	movslq	%ecx, %rcx
	cmpl	16(%rsp,%rcx,4), %esi
	jle	.L21
.L10:
	addl	$2, %eax
	cmpl	%eax, %edx
	jle	.L3
	cltq
	cmpl	16(%rsp,%rax,4), %esi
	jle	.L22
.L3:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$8080, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	cmpl	%edi, 4048(%rsp,%rcx,4)
	jl	.L9
	addl	$1, %r8d
	jmp	.L9
.L21:
	cmpl	4048(%rsp,%rcx,4), %edi
	jg	.L10
	addl	$1, %r8d
	jmp	.L10
.L22:
	cmpl	4048(%rsp,%rax,4), %edi
	jg	.L3
	addl	$1, %r8d
	jmp	.L3
.L19:
	leaq	.LC1(%rip), %r14
.L5:
	xorl	%r8d, %r8d
	jmp	.L3
.L14:
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3984, %rsp
	.cfi_def_cfa_offset 8128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L19
	leaq	16(%rsp), %r13
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r13, %rbp
	leaq	4048(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	leaq	(%r12,%rbx,4), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jg	.L4
	testl	%edx, %edx
	jle	.L5
	leal	-1(%rdx), %eax
	movl	8(%rsp), %esi
	movl	12(%rsp), %edi
	cmpl	$2, %eax
	jbe	.L14
	movl	%edx, %ecx
	movd	%esi, %xmm6
	movd	%edi, %xmm7
	xorl	%eax, %eax
	shrl	$2, %ecx
	pxor	%xmm1, %xmm1
	pshufd	$0, %xmm6, %xmm5
	pshufd	$0, %xmm7, %xmm4
	salq	$4, %rcx
	movdqa	%xmm1, %xmm3
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm5, %xmm0
	movdqa	%xmm4, %xmm2
	pcmpgtd	0(%r13,%rax), %xmm0
	pcmpgtd	(%r12,%rax), %xmm2
	addq	$16, %rax
	pcmpeqd	%xmm3, %xmm0
	pcmpeqd	%xmm3, %xmm2
	pand	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L7
	movdqa	%xmm1, %xmm0
	movl	%edx, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r8d
	testb	$3, %dl
	je	.L3
.L6:
	movslq	%eax, %rcx
	cmpl	16(%rsp,%rcx,4), %esi
	jle	.L20
.L9:
	leal	1(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L3
	movslq	%ecx, %rcx
	cmpl	16(%rsp,%rcx,4), %esi
	jle	.L21
.L10:
	addl	$2, %eax
	cmpl	%eax, %edx
	jle	.L3
	cltq
	cmpl	16(%rsp,%rax,4), %esi
	jle	.L22
.L3:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$8080, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	cmpl	%edi, 4048(%rsp,%rcx,4)
	jl	.L9
	addl	$1, %r8d
	jmp	.L9
.L21:
	cmpl	4048(%rsp,%rcx,4), %edi
	jg	.L10
	addl	$1, %r8d
	jmp	.L10
.L22:
	cmpl	4048(%rsp,%rax,4), %edi
	jg	.L3
	addl	$1, %r8d
	jmp	.L3
.L19:
	leaq	.LC1(%rip), %r14
.L5:
	xorl	%r8d, %r8d
	jmp	.L3
.L14:
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
int n,h,w;
int yes=0;
int a[1005],b[1005];
scanf("%d %d %d",&n,&h,&w);

for(int count=0;count<n;count++){
scanf("%d",&a[count]);
scanf("%d",&b[count]);
}

for(int count=0;count<n;count++){
if(a[count]>=h&&b[count]>=w){yes++;}
}
printf("%d",yes);
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
int n,h,w;
int yes=0;
int a[1005],b[1005];
scanf("%d %d %d",&n,&h,&w);

for(int count=0;count<n;count++){
scanf("%d",&a[count]);
scanf("%d",&b[count]);
}

for(int count=0;count<n;count++){
if(a[count]>=h&&b[count]>=w){yes++;}
}
printf("%d",yes);
}
```

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 5 2
10 3
5 2
2 5

2
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>
#include <stdlib.h>
#include <string.h>
int main(void){
int n,h,w;
int yes=0;
int a[1005],b[1005];
scanf("%d %d %d",&n,&h,&w);

for(int count=0;count<n;count++){
scanf("%d",&a[count]);
scanf("%d",&b[count]);
}

for(int count=0;count<n;count++){
if(a[count]>=h&&b[count]>=w){yes++;}
}
printf("%d",yes);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3984, %rsp
	.cfi_def_cfa_offset 8128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L19
	leaq	16(%rsp), %r13
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r13, %rbp
	leaq	4048(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	leaq	(%r12,%rbx,4), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jg	.L4
	testl	%edx, %edx
	jle	.L5
	leal	-1(%rdx), %eax
	movl	8(%rsp), %esi
	movl	12(%rsp), %edi
	cmpl	$2, %eax
	jbe	.L14
	movl	%edx, %ecx
	movd	%esi, %xmm6
	movd	%edi, %xmm7
	xorl	%eax, %eax
	shrl	$2, %ecx
	pxor	%xmm1, %xmm1
	pshufd	$0, %xmm6, %xmm5
	pshufd	$0, %xmm7, %xmm4
	salq	$4, %rcx
	movdqa	%xmm1, %xmm3
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm5, %xmm0
	movdqa	%xmm4, %xmm2
	pcmpgtd	0(%r13,%rax), %xmm0
	pcmpgtd	(%r12,%rax), %xmm2
	addq	$16, %rax
	pcmpeqd	%xmm3, %xmm0
	pcmpeqd	%xmm3, %xmm2
	pand	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L7
	movdqa	%xmm1, %xmm0
	movl	%edx, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r8d
	testb	$3, %dl
	je	.L3
.L6:
	movslq	%eax, %rcx
	cmpl	16(%rsp,%rcx,4), %esi
	jle	.L20
.L9:
	leal	1(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L3
	movslq	%ecx, %rcx
	cmpl	16(%rsp,%rcx,4), %esi
	jle	.L21
.L10:
	addl	$2, %eax
	cmpl	%eax, %edx
	jle	.L3
	cltq
	cmpl	16(%rsp,%rax,4), %esi
	jle	.L22
.L3:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$8080, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	cmpl	%edi, 4048(%rsp,%rcx,4)
	jl	.L9
	addl	$1, %r8d
	jmp	.L9
.L21:
	cmpl	4048(%rsp,%rcx,4), %edi
	jg	.L10
	addl	$1, %r8d
	jmp	.L10
.L22:
	cmpl	4048(%rsp,%rax,4), %edi
	jg	.L3
	addl	$1, %r8d
	jmp	.L3
.L19:
	leaq	.LC1(%rip), %r14
.L5:
	xorl	%r8d, %r8d
	jmp	.L3
.L14:
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3984, %rsp
	.cfi_def_cfa_offset 8128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8072(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L19
	leaq	16(%rsp), %r13
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r13, %rbp
	leaq	4048(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	leaq	(%r12,%rbx,4), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jg	.L4
	testl	%edx, %edx
	jle	.L5
	leal	-1(%rdx), %eax
	movl	8(%rsp), %esi
	movl	12(%rsp), %edi
	cmpl	$2, %eax
	jbe	.L14
	movl	%edx, %ecx
	movd	%esi, %xmm6
	movd	%edi, %xmm7
	xorl	%eax, %eax
	shrl	$2, %ecx
	pxor	%xmm1, %xmm1
	pshufd	$0, %xmm6, %xmm5
	pshufd	$0, %xmm7, %xmm4
	salq	$4, %rcx
	movdqa	%xmm1, %xmm3
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm5, %xmm0
	movdqa	%xmm4, %xmm2
	pcmpgtd	0(%r13,%rax), %xmm0
	pcmpgtd	(%r12,%rax), %xmm2
	addq	$16, %rax
	pcmpeqd	%xmm3, %xmm0
	pcmpeqd	%xmm3, %xmm2
	pand	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L7
	movdqa	%xmm1, %xmm0
	movl	%edx, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r8d
	testb	$3, %dl
	je	.L3
.L6:
	movslq	%eax, %rcx
	cmpl	16(%rsp,%rcx,4), %esi
	jle	.L20
.L9:
	leal	1(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L3
	movslq	%ecx, %rcx
	cmpl	16(%rsp,%rcx,4), %esi
	jle	.L21
.L10:
	addl	$2, %eax
	cmpl	%eax, %edx
	jle	.L3
	cltq
	cmpl	16(%rsp,%rax,4), %esi
	jle	.L22
.L3:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8072(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$8080, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	cmpl	%edi, 4048(%rsp,%rcx,4)
	jl	.L9
	addl	$1, %r8d
	jmp	.L9
.L21:
	cmpl	4048(%rsp,%rcx,4), %edi
	jg	.L10
	addl	$1, %r8d
	jmp	.L10
.L22:
	cmpl	4048(%rsp,%rax,4), %edi
	jg	.L3
	addl	$1, %r8d
	jmp	.L3
.L19:
	leaq	.LC1(%rip), %r14
.L5:
	xorl	%r8d, %r8d
	jmp	.L3
.L14:
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```