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(void){
    int N,i;
    int n = 0;
    int a[100];
    scanf("%d",&N);
    for(i = 0; i < N; i++){
        scanf("%d", &a[i]);
    }
    for(i=0; i < N; i = i + 2){
        if(a[i] % 2 == 1) n++;
    }
    printf("%d",n);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -420(%rbp)
	leaq	-428(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -424(%rbp)
	jmp	.L2
.L3:
	leaq	-416(%rbp), %rdx
	movl	-424(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -424(%rbp)
.L2:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jl	.L3
	movl	$0, -424(%rbp)
	jmp	.L4
.L6:
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L5
	addl	$1, -420(%rbp)
.L5:
	addl	$2, -424(%rbp)
.L4:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jl	.L6
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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"
	.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), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$432, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
	testl	%ecx, %ecx
	jle	.L2
	leal	-1(%rcx), %edx
	movl	%edx, %eax
	shrl	%eax
	addl	$1, %eax
	cmpl	$5, %edx
	jbe	.L13
	movdqa	16(%rsp), %xmm0
	shufps	$136, 32(%rsp), %xmm0
	movdqa	%xmm0, %xmm2
	movl	%eax, %edx
	movdqa	.LC1(%rip), %xmm1
	psrld	$31, %xmm2
	shrl	$2, %edx
	paddd	%xmm2, %xmm0
	pand	%xmm1, %xmm0
	psubd	%xmm2, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pand	%xmm1, %xmm0
	cmpl	$1, %edx
	je	.L5
	movdqa	48(%rsp), %xmm2
	shufps	$136, 64(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %edx
	je	.L5
	movdqa	80(%rsp), %xmm2
	shufps	$136, 96(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %edx
	je	.L5
	movdqa	112(%rsp), %xmm2
	shufps	$136, 128(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %edx
	je	.L5
	movdqa	144(%rsp), %xmm2
	shufps	$136, 160(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$5, %edx
	je	.L5
	movdqa	176(%rsp), %xmm2
	shufps	$136, 192(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$6, %edx
	je	.L5
	movdqa	208(%rsp), %xmm2
	shufps	$136, 224(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$7, %edx
	je	.L5
	movdqa	240(%rsp), %xmm2
	shufps	$136, 256(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$8, %edx
	je	.L5
	movdqa	272(%rsp), %xmm2
	shufps	$136, 288(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$9, %edx
	je	.L5
	movdqa	304(%rsp), %xmm2
	shufps	$136, 320(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$10, %edx
	je	.L5
	movdqa	336(%rsp), %xmm2
	shufps	$136, 352(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$11, %edx
	je	.L5
	movdqa	368(%rsp), %xmm2
	shufps	$136, 384(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm0, %xmm1
	movl	%eax, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	leal	(%rdx,%rdx), %esi
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
	cmpl	%edx, %eax
	je	.L6
.L4:
	movslq	%esi, %rax
	movl	16(%rsp,%rax,4), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	leal	2(%rsi), %eax
	cmpl	%eax, %ecx
	jle	.L6
	cltq
	movl	$2, %edi
	movl	16(%rsp,%rax,4), %eax
	cltd
	idivl	%edi
	subl	$1, %edx
	je	.L50
.L9:
	addl	$4, %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movl	$2, %ecx
	movl	16(%rsp,%rsi,4), %eax
	cltd
	idivl	%ecx
	subl	$1, %edx
	je	.L51
.L6:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	addq	$432, %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
.L50:
	.cfi_restore_state
	addl	$1, %r8d
	jmp	.L9
.L51:
	addl	$1, %r8d
	jmp	.L6
.L2:
	xorl	%r8d, %r8d
	jmp	.L6
.L13:
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	jmp	.L4
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.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), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$432, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
	testl	%ecx, %ecx
	jle	.L2
	leal	-1(%rcx), %edx
	movl	%edx, %eax
	shrl	%eax
	addl	$1, %eax
	cmpl	$5, %edx
	jbe	.L13
	movdqa	16(%rsp), %xmm0
	shufps	$136, 32(%rsp), %xmm0
	movdqa	%xmm0, %xmm2
	movl	%eax, %edx
	movdqa	.LC1(%rip), %xmm1
	psrld	$31, %xmm2
	shrl	$2, %edx
	paddd	%xmm2, %xmm0
	pand	%xmm1, %xmm0
	psubd	%xmm2, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pand	%xmm1, %xmm0
	cmpl	$1, %edx
	je	.L5
	movdqa	48(%rsp), %xmm2
	shufps	$136, 64(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %edx
	je	.L5
	movdqa	80(%rsp), %xmm2
	shufps	$136, 96(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %edx
	je	.L5
	movdqa	112(%rsp), %xmm2
	shufps	$136, 128(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %edx
	je	.L5
	movdqa	144(%rsp), %xmm2
	shufps	$136, 160(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$5, %edx
	je	.L5
	movdqa	176(%rsp), %xmm2
	shufps	$136, 192(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$6, %edx
	je	.L5
	movdqa	208(%rsp), %xmm2
	shufps	$136, 224(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$7, %edx
	je	.L5
	movdqa	240(%rsp), %xmm2
	shufps	$136, 256(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$8, %edx
	je	.L5
	movdqa	272(%rsp), %xmm2
	shufps	$136, 288(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$9, %edx
	je	.L5
	movdqa	304(%rsp), %xmm2
	shufps	$136, 320(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$10, %edx
	je	.L5
	movdqa	336(%rsp), %xmm2
	shufps	$136, 352(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$11, %edx
	je	.L5
	movdqa	368(%rsp), %xmm2
	shufps	$136, 384(%rsp), %xmm2
	movdqa	%xmm2, %xmm3
	psrld	$31, %xmm3
	paddd	%xmm3, %xmm2
	pand	%xmm1, %xmm2
	psubd	%xmm3, %xmm2
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm0, %xmm1
	movl	%eax, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	leal	(%rdx,%rdx), %esi
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
	cmpl	%edx, %eax
	je	.L6
.L4:
	movslq	%esi, %rax
	movl	16(%rsp,%rax,4), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	sete	%al
	movzbl	%al, %eax
	addl	%eax, %r8d
	leal	2(%rsi), %eax
	cmpl	%eax, %ecx
	jle	.L6
	cltq
	movl	$2, %edi
	movl	16(%rsp,%rax,4), %eax
	cltd
	idivl	%edi
	subl	$1, %edx
	je	.L50
.L9:
	addl	$4, %esi
	cmpl	%esi, %ecx
	jle	.L6
	movslq	%esi, %rsi
	movl	$2, %ecx
	movl	16(%rsp,%rsi,4), %eax
	cltd
	idivl	%ecx
	subl	$1, %edx
	je	.L51
.L6:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	addq	$432, %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
.L50:
	.cfi_restore_state
	addl	$1, %r8d
	jmp	.L9
.L51:
	addl	$1, %r8d
	jmp	.L6
.L2:
	xorl	%r8d, %r8d
	jmp	.L6
.L13:
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	jmp	.L4
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.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:

#include<stdio.h>
int main(void){
    int N,i;
    int n = 0;
    int a[100];
    scanf("%d",&N);
    for(i = 0; i < N; i++){
        scanf("%d", &a[i]);
    }
    for(i=0; i < N; i = i + 2){
        if(a[i] % 2 == 1) n++;
    }
    printf("%d",n);
}
15
13 76 46 15 50 98 93 77 31 43 44 90 6 24 14
 5
1 5 4 5 7
 5
0 4 4 5 7
 15
15 5 71 15 50 98 93 87 31 43 44 11 6 24 14
 15
15 5 71 15 87 98 135 87 0 60 44 11 6 14 19
 15
1 10 109 15 87 98 29 161 0 60 44 11 9 14 19
 15
1 3 109 15 87 98 29 161 1 60 9 11 9 14 32
 5
0 4 4 5 0
 15
1 10 145 15 87 138 51 194 1 18 77 20 9 17 93
 15
15 76 46 15 50 98 93 77 31 43 44 90 6 24 14

3 2 1 4 5 6 7 0 8 3
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(void){
    int N,i;
    int n = 0;
    int a[100];
    scanf("%d",&N);
    for(i = 0; i < N; i++){
        scanf("%d", &a[i]);
    }
    for(i=0; i < N; i = i + 2){
        if(a[i] % 2 == 1) n++;
    }
    printf("%d",n);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -420(%rbp)
	leaq	-428(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -424(%rbp)
	jmp	.L2
.L3:
	leaq	-416(%rbp), %rdx
	movl	-424(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -424(%rbp)
.L2:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jl	.L3
	movl	$0, -424(%rbp)
	jmp	.L4
.L6:
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L5
	addl	$1, -420(%rbp)
.L5:
	addl	$2, -424(%rbp)
.L4:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jl	.L6
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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"
	.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	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -420(%rbp)
	leaq	-428(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -424(%rbp)
	jmp	.L2
.L3:
	leaq	-416(%rbp), %rdx
	movl	-424(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -424(%rbp)
.L2:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jl	.L3
	movl	$0, -424(%rbp)
	jmp	.L4
.L6:
	movl	-424(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L5
	addl	$1, -420(%rbp)
.L5:
	addl	$2, -424(%rbp)
.L4:
	movl	-428(%rbp), %eax
	cmpl	%eax, -424(%rbp)
	jl	.L6
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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:
