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() {
    int cnt = 0;

    int X;
    scanf("%d", &X);

    while (100 <= X) {
        cnt++;
        X -= 100;
    }

    while (0 < cnt && 5 <= X) {
        cnt--;
        X -= 5;
    }

    while (0 < cnt && 4 <= X) {
        cnt--;
        X -= 4;
    }

    while (0 < cnt && 3 <= X) {
        cnt--;
        X -= 3;
    }

    while (0 < cnt && 2 <= X) {
        cnt--;
        X -= 2;
    }

    while (0 < cnt && 1 <= X) {
        cnt--;
        X -= 1;
    }

    if (0 <= cnt && X == 0) {
        printf("%d\n", 1);
        return 0;
    } else {
        printf("%d\n", 0);
        return 0;
    }    
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC7:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	cmpl	$99, %esi
	jle	.L3
	leal	-100(%rsi), %ecx
	movq	%rcx, %rdx
	imulq	$1374389535, %rcx, %rcx
	shrq	$37, %rcx
	addl	$1, %ecx
	cmpl	$399, %edx
	jbe	.L25
	movd	%esi, %xmm4
	movl	%ecx, %edx
	movdqa	.LC0(%rip), %xmm3
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm2
	movdqa	.LC3(%rip), %xmm7
	paddd	.LC2(%rip), %xmm2
	shrl	$2, %edx
	movdqa	.LC4(%rip), %xmm6
	movdqa	.LC5(%rip), %xmm5
	movdqa	.LC6(%rip), %xmm4
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm3, %xmm1
	movdqa	%xmm2, %xmm0
	paddd	%xmm7, %xmm3
	addl	$1, %eax
	paddd	%xmm6, %xmm2
	paddd	%xmm5, %xmm1
	paddd	%xmm4, %xmm0
	cmpl	%eax, %edx
	jne	.L5
	movl	%ecx, %edi
	pshufd	$255, %xmm0, %xmm0
	pshufd	$255, %xmm1, %xmm1
	andl	$-4, %edi
	movd	%xmm0, %edx
	movd	%xmm1, %eax
	imull	$-100, %edi, %r8d
	addl	%r8d, %esi
	cmpl	%ecx, %edi
	je	.L6
	leal	-100(%rsi), %edx
.L4:
	leal	1(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	-200(%rsi), %edx
	leal	2(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	-300(%rsi), %edx
	leal	3(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	4(%rdi), %eax
	leal	-400(%rsi), %edx
.L6:
	movl	%edx, 4(%rsp)
	xorl	%ecx, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$5, %edx
	movl	$1, %ecx
	subl	$1, %eax
	je	.L52
.L7:
	cmpl	$4, %edx
	jg	.L8
	testb	%cl, %cl
	je	.L9
	movl	%edx, 4(%rsp)
.L9:
	movl	4(%rsp), %edx
	xorl	%esi, %esi
	movl	%edx, %ecx
	testl	%eax, %eax
	jne	.L10
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	subl	$4, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L10:
	cmpl	$3, %ecx
	jg	.L12
	testb	%sil, %sil
	je	.L13
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L13:
	movl	%edx, %ecx
	xorl	%esi, %esi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	subl	$3, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L14:
	cmpl	$2, %ecx
	jg	.L15
	testb	%sil, %sil
	je	.L16
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L16:
	movl	%edx, %ecx
	xorl	%esi, %esi
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	subl	$2, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L17:
	cmpl	$1, %ecx
	jg	.L18
	testb	%sil, %sil
	je	.L19
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L19:
	movl	%edx, %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	subl	$1, %edx
	movl	$1, %eax
	cmpl	%ecx, %edx
	je	.L52
.L20:
	testl	%edx, %edx
	jg	.L21
	testb	%al, %al
	je	.L3
.L52:
	movl	%edx, 4(%rsp)
.L3:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jne	.L22
	movl	$1, %edx
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L23:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%edx, %edx
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L23
.L25:
	xorl	%edi, %edi
	jmp	.L4
.L51:
	movl	%ecx, 4(%rsp)
	jmp	.L3
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	0
	.long	-100
	.long	-200
	.long	-300
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	-400
	.long	-400
	.long	-400
	.long	-400
	.align 16
.LC5:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC6:
	.long	-100
	.long	-100
	.long	-100
	.long	-100
	.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
.LC1:
	.string	"%d"
.LC7:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	cmpl	$99, %esi
	jle	.L3
	leal	-100(%rsi), %ecx
	movq	%rcx, %rdx
	imulq	$1374389535, %rcx, %rcx
	shrq	$37, %rcx
	addl	$1, %ecx
	cmpl	$399, %edx
	jbe	.L25
	movd	%esi, %xmm4
	movl	%ecx, %edx
	movdqa	.LC0(%rip), %xmm3
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm2
	movdqa	.LC3(%rip), %xmm7
	paddd	.LC2(%rip), %xmm2
	shrl	$2, %edx
	movdqa	.LC4(%rip), %xmm6
	movdqa	.LC5(%rip), %xmm5
	movdqa	.LC6(%rip), %xmm4
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm3, %xmm1
	movdqa	%xmm2, %xmm0
	paddd	%xmm7, %xmm3
	addl	$1, %eax
	paddd	%xmm6, %xmm2
	paddd	%xmm5, %xmm1
	paddd	%xmm4, %xmm0
	cmpl	%eax, %edx
	jne	.L5
	movl	%ecx, %edi
	pshufd	$255, %xmm0, %xmm0
	pshufd	$255, %xmm1, %xmm1
	andl	$-4, %edi
	movd	%xmm0, %edx
	movd	%xmm1, %eax
	imull	$-100, %edi, %r8d
	addl	%r8d, %esi
	cmpl	%ecx, %edi
	je	.L6
	leal	-100(%rsi), %edx
.L4:
	leal	1(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	-200(%rsi), %edx
	leal	2(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	-300(%rsi), %edx
	leal	3(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	4(%rdi), %eax
	leal	-400(%rsi), %edx
.L6:
	movl	%edx, 4(%rsp)
	xorl	%ecx, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$5, %edx
	movl	$1, %ecx
	subl	$1, %eax
	je	.L52
.L7:
	cmpl	$4, %edx
	jg	.L8
	testb	%cl, %cl
	je	.L9
	movl	%edx, 4(%rsp)
.L9:
	movl	4(%rsp), %edx
	xorl	%esi, %esi
	movl	%edx, %ecx
	testl	%eax, %eax
	jne	.L10
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	subl	$4, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L10:
	cmpl	$3, %ecx
	jg	.L12
	testb	%sil, %sil
	je	.L13
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L13:
	movl	%edx, %ecx
	xorl	%esi, %esi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	subl	$3, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L14:
	cmpl	$2, %ecx
	jg	.L15
	testb	%sil, %sil
	je	.L16
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L16:
	movl	%edx, %ecx
	xorl	%esi, %esi
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	subl	$2, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L17:
	cmpl	$1, %ecx
	jg	.L18
	testb	%sil, %sil
	je	.L19
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L19:
	movl	%edx, %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	subl	$1, %edx
	movl	$1, %eax
	cmpl	%ecx, %edx
	je	.L52
.L20:
	testl	%edx, %edx
	jg	.L21
	testb	%al, %al
	je	.L3
.L52:
	movl	%edx, 4(%rsp)
.L3:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jne	.L22
	movl	$1, %edx
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L23:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%edx, %edx
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L23
.L25:
	xorl	%edi, %edi
	jmp	.L4
.L51:
	movl	%ecx, 4(%rsp)
	jmp	.L3
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	0
	.long	-100
	.long	-200
	.long	-300
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	-400
	.long	-400
	.long	-400
	.long	-400
	.align 16
.LC5:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC6:
	.long	-100
	.long	-100
	.long	-100
	.long	-100
	.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
.LC1:
	.string	"%d"
.LC7:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	cmpl	$99, %esi
	jle	.L3
	leal	-100(%rsi), %ecx
	movq	%rcx, %rdx
	imulq	$1374389535, %rcx, %rcx
	shrq	$37, %rcx
	addl	$1, %ecx
	cmpl	$399, %edx
	jbe	.L25
	movd	%esi, %xmm4
	movl	%ecx, %edx
	movdqa	.LC0(%rip), %xmm3
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm2
	movdqa	.LC3(%rip), %xmm7
	paddd	.LC2(%rip), %xmm2
	shrl	$2, %edx
	movdqa	.LC4(%rip), %xmm6
	movdqa	.LC5(%rip), %xmm5
	movdqa	.LC6(%rip), %xmm4
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm3, %xmm1
	movdqa	%xmm2, %xmm0
	paddd	%xmm7, %xmm3
	addl	$1, %eax
	paddd	%xmm6, %xmm2
	paddd	%xmm5, %xmm1
	paddd	%xmm4, %xmm0
	cmpl	%eax, %edx
	jne	.L5
	movl	%ecx, %edi
	pshufd	$255, %xmm0, %xmm0
	pshufd	$255, %xmm1, %xmm1
	andl	$-4, %edi
	movd	%xmm0, %edx
	movd	%xmm1, %eax
	imull	$-100, %edi, %r8d
	addl	%r8d, %esi
	cmpl	%ecx, %edi
	je	.L6
	leal	-100(%rsi), %edx
.L4:
	leal	1(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	-200(%rsi), %edx
	leal	2(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	-300(%rsi), %edx
	leal	3(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	4(%rdi), %eax
	leal	-400(%rsi), %edx
.L6:
	movl	%edx, 4(%rsp)
	xorl	%ecx, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$5, %edx
	movl	$1, %ecx
	subl	$1, %eax
	je	.L52
.L7:
	cmpl	$4, %edx
	jg	.L8
	testb	%cl, %cl
	je	.L9
	movl	%edx, 4(%rsp)
.L9:
	movl	4(%rsp), %edx
	xorl	%esi, %esi
	movl	%edx, %ecx
	testl	%eax, %eax
	jne	.L10
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	subl	$4, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L10:
	cmpl	$3, %ecx
	jg	.L12
	testb	%sil, %sil
	je	.L13
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L13:
	movl	%edx, %ecx
	xorl	%esi, %esi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	subl	$3, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L14:
	cmpl	$2, %ecx
	jg	.L15
	testb	%sil, %sil
	je	.L16
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L16:
	movl	%edx, %ecx
	xorl	%esi, %esi
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	subl	$2, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L17:
	cmpl	$1, %ecx
	jg	.L18
	testb	%sil, %sil
	je	.L19
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L19:
	movl	%edx, %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	subl	$1, %edx
	movl	$1, %eax
	cmpl	%ecx, %edx
	je	.L52
.L20:
	testl	%edx, %edx
	jg	.L21
	testb	%al, %al
	je	.L3
.L52:
	movl	%edx, 4(%rsp)
.L3:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jne	.L22
	movl	$1, %edx
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L23:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%edx, %edx
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L23
.L25:
	xorl	%edi, %edi
	jmp	.L4
.L51:
	movl	%ecx, 4(%rsp)
	jmp	.L3
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	0
	.long	-100
	.long	-200
	.long	-300
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	-400
	.long	-400
	.long	-400
	.long	-400
	.align 16
.LC5:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC6:
	.long	-100
	.long	-100
	.long	-100
	.long	-100
	.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() {
    int cnt = 0;

    int X;
    scanf("%d", &X);

    while (100 <= X) {
        cnt++;
        X -= 100;
    }

    while (0 < cnt && 5 <= X) {
        cnt--;
        X -= 5;
    }

    while (0 < cnt && 4 <= X) {
        cnt--;
        X -= 4;
    }

    while (0 < cnt && 3 <= X) {
        cnt--;
        X -= 3;
    }

    while (0 < cnt && 2 <= X) {
        cnt--;
        X -= 2;
    }

    while (0 < cnt && 1 <= X) {
        cnt--;
        X -= 1;
    }

    if (0 <= cnt && X == 0) {
        printf("%d\n", 1);
        return 0;
    } else {
        printf("%d\n", 0);
        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() {
    int cnt = 0;

    int X;
    scanf("%d", &X);

    while (100 <= X) {
        cnt++;
        X -= 100;
    }

    while (0 < cnt && 5 <= X) {
        cnt--;
        X -= 5;
    }

    while (0 < cnt && 4 <= X) {
        cnt--;
        X -= 4;
    }

    while (0 < cnt && 3 <= X) {
        cnt--;
        X -= 3;
    }

    while (0 < cnt && 2 <= X) {
        cnt--;
        X -= 2;
    }

    while (0 < cnt && 1 <= X) {
        cnt--;
        X -= 1;
    }

    if (0 <= cnt && X == 0) {
        printf("%d\n", 1);
        return 0;
    } else {
        printf("%d\n", 0);
        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:

386
 0
 59
 115
 10
 53
 3
 84
 4
 97

0
 1
 0
 0
 0
 0
 0
 0
 0
 0

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() {
    int cnt = 0;

    int X;
    scanf("%d", &X);

    while (100 <= X) {
        cnt++;
        X -= 100;
    }

    while (0 < cnt && 5 <= X) {
        cnt--;
        X -= 5;
    }

    while (0 < cnt && 4 <= X) {
        cnt--;
        X -= 4;
    }

    while (0 < cnt && 3 <= X) {
        cnt--;
        X -= 3;
    }

    while (0 < cnt && 2 <= X) {
        cnt--;
        X -= 2;
    }

    while (0 < cnt && 1 <= X) {
        cnt--;
        X -= 1;
    }

    if (0 <= cnt && X == 0) {
        printf("%d\n", 1);
        return 0;
    } else {
        printf("%d\n", 0);
        return 0;
    }    
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC7:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	cmpl	$99, %esi
	jle	.L3
	leal	-100(%rsi), %ecx
	movq	%rcx, %rdx
	imulq	$1374389535, %rcx, %rcx
	shrq	$37, %rcx
	addl	$1, %ecx
	cmpl	$399, %edx
	jbe	.L25
	movd	%esi, %xmm4
	movl	%ecx, %edx
	movdqa	.LC0(%rip), %xmm3
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm2
	movdqa	.LC3(%rip), %xmm7
	paddd	.LC2(%rip), %xmm2
	shrl	$2, %edx
	movdqa	.LC4(%rip), %xmm6
	movdqa	.LC5(%rip), %xmm5
	movdqa	.LC6(%rip), %xmm4
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm3, %xmm1
	movdqa	%xmm2, %xmm0
	paddd	%xmm7, %xmm3
	addl	$1, %eax
	paddd	%xmm6, %xmm2
	paddd	%xmm5, %xmm1
	paddd	%xmm4, %xmm0
	cmpl	%eax, %edx
	jne	.L5
	movl	%ecx, %edi
	pshufd	$255, %xmm0, %xmm0
	pshufd	$255, %xmm1, %xmm1
	andl	$-4, %edi
	movd	%xmm0, %edx
	movd	%xmm1, %eax
	imull	$-100, %edi, %r8d
	addl	%r8d, %esi
	cmpl	%ecx, %edi
	je	.L6
	leal	-100(%rsi), %edx
.L4:
	leal	1(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	-200(%rsi), %edx
	leal	2(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	-300(%rsi), %edx
	leal	3(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	4(%rdi), %eax
	leal	-400(%rsi), %edx
.L6:
	movl	%edx, 4(%rsp)
	xorl	%ecx, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$5, %edx
	movl	$1, %ecx
	subl	$1, %eax
	je	.L52
.L7:
	cmpl	$4, %edx
	jg	.L8
	testb	%cl, %cl
	je	.L9
	movl	%edx, 4(%rsp)
.L9:
	movl	4(%rsp), %edx
	xorl	%esi, %esi
	movl	%edx, %ecx
	testl	%eax, %eax
	jne	.L10
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	subl	$4, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L10:
	cmpl	$3, %ecx
	jg	.L12
	testb	%sil, %sil
	je	.L13
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L13:
	movl	%edx, %ecx
	xorl	%esi, %esi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	subl	$3, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L14:
	cmpl	$2, %ecx
	jg	.L15
	testb	%sil, %sil
	je	.L16
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L16:
	movl	%edx, %ecx
	xorl	%esi, %esi
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	subl	$2, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L17:
	cmpl	$1, %ecx
	jg	.L18
	testb	%sil, %sil
	je	.L19
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L19:
	movl	%edx, %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	subl	$1, %edx
	movl	$1, %eax
	cmpl	%ecx, %edx
	je	.L52
.L20:
	testl	%edx, %edx
	jg	.L21
	testb	%al, %al
	je	.L3
.L52:
	movl	%edx, 4(%rsp)
.L3:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jne	.L22
	movl	$1, %edx
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L23:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%edx, %edx
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L23
.L25:
	xorl	%edi, %edi
	jmp	.L4
.L51:
	movl	%ecx, 4(%rsp)
	jmp	.L3
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	0
	.long	-100
	.long	-200
	.long	-300
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	-400
	.long	-400
	.long	-400
	.long	-400
	.align 16
.LC5:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC6:
	.long	-100
	.long	-100
	.long	-100
	.long	-100
	.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
.LC1:
	.string	"%d"
.LC7:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	cmpl	$99, %esi
	jle	.L3
	leal	-100(%rsi), %ecx
	movq	%rcx, %rdx
	imulq	$1374389535, %rcx, %rcx
	shrq	$37, %rcx
	addl	$1, %ecx
	cmpl	$399, %edx
	jbe	.L25
	movd	%esi, %xmm4
	movl	%ecx, %edx
	movdqa	.LC0(%rip), %xmm3
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm2
	movdqa	.LC3(%rip), %xmm7
	paddd	.LC2(%rip), %xmm2
	shrl	$2, %edx
	movdqa	.LC4(%rip), %xmm6
	movdqa	.LC5(%rip), %xmm5
	movdqa	.LC6(%rip), %xmm4
	.p2align 4,,10
	.p2align 3
.L5:
	movdqa	%xmm3, %xmm1
	movdqa	%xmm2, %xmm0
	paddd	%xmm7, %xmm3
	addl	$1, %eax
	paddd	%xmm6, %xmm2
	paddd	%xmm5, %xmm1
	paddd	%xmm4, %xmm0
	cmpl	%eax, %edx
	jne	.L5
	movl	%ecx, %edi
	pshufd	$255, %xmm0, %xmm0
	pshufd	$255, %xmm1, %xmm1
	andl	$-4, %edi
	movd	%xmm0, %edx
	movd	%xmm1, %eax
	imull	$-100, %edi, %r8d
	addl	%r8d, %esi
	cmpl	%ecx, %edi
	je	.L6
	leal	-100(%rsi), %edx
.L4:
	leal	1(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	-200(%rsi), %edx
	leal	2(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	-300(%rsi), %edx
	leal	3(%rdi), %eax
	cmpl	$99, %edx
	jle	.L6
	leal	4(%rdi), %eax
	leal	-400(%rsi), %edx
.L6:
	movl	%edx, 4(%rsp)
	xorl	%ecx, %ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$5, %edx
	movl	$1, %ecx
	subl	$1, %eax
	je	.L52
.L7:
	cmpl	$4, %edx
	jg	.L8
	testb	%cl, %cl
	je	.L9
	movl	%edx, 4(%rsp)
.L9:
	movl	4(%rsp), %edx
	xorl	%esi, %esi
	movl	%edx, %ecx
	testl	%eax, %eax
	jne	.L10
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	subl	$4, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L10:
	cmpl	$3, %ecx
	jg	.L12
	testb	%sil, %sil
	je	.L13
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L13:
	movl	%edx, %ecx
	xorl	%esi, %esi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	subl	$3, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L14:
	cmpl	$2, %ecx
	jg	.L15
	testb	%sil, %sil
	je	.L16
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L16:
	movl	%edx, %ecx
	xorl	%esi, %esi
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	subl	$2, %ecx
	movl	$1, %esi
	subl	$1, %eax
	je	.L51
.L17:
	cmpl	$1, %ecx
	jg	.L18
	testb	%sil, %sil
	je	.L19
	movl	%ecx, 4(%rsp)
	movl	%ecx, %edx
.L19:
	movl	%edx, %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	subl	$1, %edx
	movl	$1, %eax
	cmpl	%ecx, %edx
	je	.L52
.L20:
	testl	%edx, %edx
	jg	.L21
	testb	%al, %al
	je	.L3
.L52:
	movl	%edx, 4(%rsp)
.L3:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jne	.L22
	movl	$1, %edx
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L23:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L54
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%edx, %edx
	leaq	.LC7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L23
.L25:
	xorl	%edi, %edi
	jmp	.L4
.L51:
	movl	%ecx, 4(%rsp)
	jmp	.L3
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	0
	.long	-100
	.long	-200
	.long	-300
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	-400
	.long	-400
	.long	-400
	.long	-400
	.align 16
.LC5:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC6:
	.long	-100
	.long	-100
	.long	-100
	.long	-100
	.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:
```