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 uruu(int year);
int daycount(int y,int m,int d);
int main()
{
    int y1,m1,d1,y2,m2,d2;
    scanf("%d %d %d %d %d %d",&y1,&m1,&d1,&y2,&m2,&d2);
    while(y1 > 0 && m1 > 0 && d1 > 0 && y2 > 0 && m2 > 0 && d2 > 0){
        printf("%d\n",daycount(y2,m2,d2) - daycount(y1,m1,d1));
        scanf("%d %d %d %d %d %d",&y1,&m1,&d1,&y2,&m2,&d2);
    }
    return 0;
}

int uruu(int year){
    int resist = 0;
    if(year % 4 == 0 && year % 100 != 0)resist = 1;
    if(year % 400 == 0)resist = 1;
    return resist;
}

int daycount(int y,int m,int d){
	int resist=0;
    int i;
	for(i = 1;i < y;i++){
		resist+=365;
        if(uruu(i)) resist+=1;
	}
	for(i = 1;i < m;i++){
		resist+=31;
		if(i==4||i==6||i==9||i==11) resist--;
		if(i==2){
            resist-=3;
            if(uruu(y))resist++;
        }
	}
	for(i = 1;i < d;i++){
		resist+=1;
	}
	return resist;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d %d"
.LC1:
	.string	"%d\n"
	.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
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %r8
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	subq	$8, %rsp
	leaq	-28(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	jmp	.L2
.L4:
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %ecx
	movl	-36(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	daycount
	movl	%eax, %ebx
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	daycount
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	leaq	-32(%rbp), %r8
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	subq	$8, %rsp
	leaq	-28(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
.L2:
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jg	.L4
.L3:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	uruu
	.type	uruu, @function
uruu:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -4(%rbp)
	movl	-20(%rbp), %eax
	andl	$3, %eax
	testl	%eax, %eax
	jne	.L8
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L8
	movl	$1, -4(%rbp)
.L8:
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$7, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$400, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L9
	movl	$1, -4(%rbp)
.L9:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	uruu, .-uruu
	.globl	daycount
	.type	daycount, @function
daycount:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	$0, -8(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L12
.L14:
	addl	$365, -8(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	uruu
	testl	%eax, %eax
	je	.L13
	addl	$1, -8(%rbp)
.L13:
	addl	$1, -4(%rbp)
.L12:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L14
	movl	$1, -4(%rbp)
	jmp	.L15
.L19:
	addl	$31, -8(%rbp)
	cmpl	$4, -4(%rbp)
	je	.L16
	cmpl	$6, -4(%rbp)
	je	.L16
	cmpl	$9, -4(%rbp)
	je	.L16
	cmpl	$11, -4(%rbp)
	jne	.L17
.L16:
	subl	$1, -8(%rbp)
.L17:
	cmpl	$2, -4(%rbp)
	jne	.L18
	subl	$3, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	uruu
	testl	%eax, %eax
	je	.L18
	addl	$1, -8(%rbp)
.L18:
	addl	$1, -4(%rbp)
.L15:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L19
	movl	$1, -4(%rbp)
	jmp	.L20
.L21:
	addl	$1, -8(%rbp)
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L21
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	daycount, .-daycount
	.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
	.p2align 4
	.globl	uruu
	.type	uruu, @function
uruu:
.LFB24:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	testb	$3, %dil
	jne	.L2
	imull	$-1030792151, %edi, %eax
	addl	$85899344, %eax
	rorl	$2, %eax
	cmpl	$42949672, %eax
	seta	%al
	movzbl	%al, %eax
.L2:
	imull	$-1030792151, %edi, %edi
	movl	$1, %edx
	addl	$85899344, %edi
	rorl	$4, %edi
	cmpl	$10737418, %edi
	cmovbe	%edx, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	uruu, .-uruu
	.p2align 4
	.globl	daycount
	.type	daycount, @function
daycount:
.LFB25:
	.cfi_startproc
	endbr64
	movl	%edi, %ecx
	movl	%edx, %r9d
	movl	%esi, %edi
	cmpl	$1, %ecx
	jle	.L54
	movl	$1, %edx
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L55:
	addl	$1, %edx
	movl	%r8d, %eax
	cmpl	%edx, %ecx
	je	.L7
.L11:
	imull	$-1030792151, %edx, %esi
	leal	365(%rax), %r8d
	testb	$3, %dl
	jne	.L105
	movl	%esi, %r10d
	rorl	$2, %r10d
	cmpl	$42949672, %r10d
	ja	.L9
.L105:
	rorl	$4, %esi
	cmpl	$10737418, %esi
	ja	.L55
.L9:
	addl	$1, %edx
	addl	$366, %eax
	cmpl	%edx, %ecx
	jne	.L11
.L7:
	cmpl	$1, %edi
	jle	.L12
	movslq	%ecx, %rdx
	movl	%ecx, %esi
	movl	%ecx, %r8d
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %esi
	andl	$3, %r8d
	sarq	$37, %rdx
	subl	%esi, %edx
	imull	$100, %edx, %esi
	movl	%ecx, %edx
	imull	$-1030792151, %ecx, %ecx
	subl	%esi, %edx
	addl	$85899344, %ecx
	rorl	$4, %ecx
	cmpl	$10737418, %ecx
	jbe	.L13
	testl	%edx, %edx
	movl	$1, %edx
	jne	.L14
	testl	%r8d, %r8d
	je	.L15
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	je	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	cmpl	$9, %ecx
	je	.L18
	addl	$31, %eax
	cmpl	$2, %edx
	leal	-3(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
.L20:
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L16
.L18:
	addl	$30, %eax
	cmpl	$2, %edx
	leal	-3(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	jne	.L20
.L12:
	leal	-1(%rax,%r9), %edx
	cmpl	$1, %r9d
	cmovg	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%edx, %edx
	movl	$1, %edx
	jne	.L34
	testl	%r8d, %r8d
	je	.L35
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	je	.L36
	.p2align 4,,10
	.p2align 3
.L106:
	cmpl	$9, %ecx
	je	.L36
	addl	$31, %eax
.L37:
	cmpl	$2, %edx
	leal	-2(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L106
.L36:
	addl	$30, %eax
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L40:
	cmpl	$9, %ecx
	je	.L42
	addl	$31, %eax
.L41:
	cmpl	$2, %edx
	leal	-2(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
.L35:
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L40
.L42:
	addl	$30, %eax
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L107:
	cmpl	$9, %ecx
	je	.L22
	addl	$31, %eax
.L23:
	cmpl	$2, %edx
	leal	-3(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
.L15:
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L107
.L22:
	addl	$30, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L14:
	testl	%r8d, %r8d
	je	.L25
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	je	.L26
	.p2align 4,,10
	.p2align 3
.L108:
	cmpl	$9, %ecx
	je	.L26
	addl	$31, %eax
.L27:
	cmpl	$2, %edx
	leal	-3(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L108
.L26:
	addl	$30, %eax
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	$9, %ecx
	je	.L32
	addl	$31, %eax
.L31:
	cmpl	$2, %edx
	leal	-2(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
.L25:
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L30
.L32:
	addl	$30, %eax
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L34:
	testl	%r8d, %r8d
	je	.L44
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	je	.L47
	.p2align 4,,10
	.p2align 3
.L45:
	cmpl	$9, %ecx
	je	.L47
	addl	$31, %eax
.L46:
	cmpl	$2, %edx
	leal	-2(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L45
.L47:
	addl	$30, %eax
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L109:
	cmpl	$9, %ecx
	je	.L50
	addl	$31, %eax
.L51:
	cmpl	$2, %edx
	leal	-2(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
.L44:
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L109
.L50:
	addl	$30, %eax
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L54:
	xorl	%eax, %eax
	jmp	.L7
	.cfi_endproc
.LFE25:
	.size	daycount, .-daycount
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d %d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbx
	leaq	44(%rsp), %r15
	leaq	40(%rsp), %r14
	leaq	36(%rsp), %r13
	movq	%rbx, %r9
	movq	%r15, %r8
	leaq	32(%rsp), %r12
	subq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 136
	movq	%r14, %rcx
	movq	%r13, %rdx
	leaq	60(%rsp), %rax
	movq	%r12, %rsi
	movq	%rax, 32(%rsp)
	pushq	%rax
	.cfi_def_cfa_offset 144
	jmp	.L118
	.p2align 4,,10
	.p2align 3
.L111:
	.cfi_restore_state
	movl	36(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L112
	movl	40(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L112
	movl	44(%rsp), %edi
	testl	%edi, %edi
	jle	.L112
	movl	48(%rsp), %esi
	testl	%esi, %esi
	jle	.L112
	movl	52(%rsp), %edx
	testl	%edx, %edx
	jle	.L112
	movl	%r9d, 16(%rsp)
	movl	%r10d, 20(%rsp)
	call	daycount
	movl	20(%rsp), %edx
	movl	16(%rsp), %esi
	movl	%r11d, %edi
	movl	%eax, 12(%rsp)
	call	daycount
	movl	12(%rsp), %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subq	$8, %rsp
	.cfi_def_cfa_offset 136
	movq	%rbx, %r9
	movq	%r15, %r8
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
.L118:
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	48(%rsp), %r11d
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
	testl	%r11d, %r11d
	jg	.L111
	.p2align 4,,10
	.p2align 3
.L112:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L119
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L119:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	uruu
	.type	uruu, @function
uruu:
.LFB24:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	testb	$3, %dil
	jne	.L2
	imull	$-1030792151, %edi, %eax
	addl	$85899344, %eax
	rorl	$2, %eax
	cmpl	$42949672, %eax
	seta	%al
	movzbl	%al, %eax
.L2:
	imull	$-1030792151, %edi, %edi
	movl	$1, %edx
	addl	$85899344, %edi
	rorl	$4, %edi
	cmpl	$10737418, %edi
	cmovbe	%edx, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	uruu, .-uruu
	.p2align 4
	.globl	daycount
	.type	daycount, @function
daycount:
.LFB25:
	.cfi_startproc
	endbr64
	movl	%edi, %ecx
	movl	%edx, %r9d
	movl	%esi, %edi
	cmpl	$1, %ecx
	jle	.L54
	movl	$1, %edx
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L55:
	addl	$1, %edx
	movl	%r8d, %eax
	cmpl	%edx, %ecx
	je	.L7
.L11:
	imull	$-1030792151, %edx, %esi
	leal	365(%rax), %r8d
	testb	$3, %dl
	jne	.L105
	movl	%esi, %r10d
	rorl	$2, %r10d
	cmpl	$42949672, %r10d
	ja	.L9
.L105:
	rorl	$4, %esi
	cmpl	$10737418, %esi
	ja	.L55
.L9:
	addl	$1, %edx
	addl	$366, %eax
	cmpl	%edx, %ecx
	jne	.L11
.L7:
	cmpl	$1, %edi
	jle	.L12
	movslq	%ecx, %rdx
	movl	%ecx, %esi
	movl	%ecx, %r8d
	imulq	$1374389535, %rdx, %rdx
	sarl	$31, %esi
	andl	$3, %r8d
	sarq	$37, %rdx
	subl	%esi, %edx
	imull	$100, %edx, %esi
	movl	%ecx, %edx
	imull	$-1030792151, %ecx, %ecx
	subl	%esi, %edx
	addl	$85899344, %ecx
	rorl	$4, %ecx
	cmpl	$10737418, %ecx
	jbe	.L13
	testl	%edx, %edx
	movl	$1, %edx
	jne	.L14
	testl	%r8d, %r8d
	je	.L15
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	je	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	cmpl	$9, %ecx
	je	.L18
	addl	$31, %eax
	cmpl	$2, %edx
	leal	-3(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
.L20:
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L16
.L18:
	addl	$30, %eax
	cmpl	$2, %edx
	leal	-3(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	jne	.L20
.L12:
	leal	-1(%rax,%r9), %edx
	cmpl	$1, %r9d
	cmovg	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%edx, %edx
	movl	$1, %edx
	jne	.L34
	testl	%r8d, %r8d
	je	.L35
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	je	.L36
	.p2align 4,,10
	.p2align 3
.L106:
	cmpl	$9, %ecx
	je	.L36
	addl	$31, %eax
.L37:
	cmpl	$2, %edx
	leal	-2(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L106
.L36:
	addl	$30, %eax
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L40:
	cmpl	$9, %ecx
	je	.L42
	addl	$31, %eax
.L41:
	cmpl	$2, %edx
	leal	-2(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
.L35:
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L40
.L42:
	addl	$30, %eax
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L107:
	cmpl	$9, %ecx
	je	.L22
	addl	$31, %eax
.L23:
	cmpl	$2, %edx
	leal	-3(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
.L15:
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L107
.L22:
	addl	$30, %eax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L14:
	testl	%r8d, %r8d
	je	.L25
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	je	.L26
	.p2align 4,,10
	.p2align 3
.L108:
	cmpl	$9, %ecx
	je	.L26
	addl	$31, %eax
.L27:
	cmpl	$2, %edx
	leal	-3(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L108
.L26:
	addl	$30, %eax
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	$9, %ecx
	je	.L32
	addl	$31, %eax
.L31:
	cmpl	$2, %edx
	leal	-2(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
.L25:
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L30
.L32:
	addl	$30, %eax
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L34:
	testl	%r8d, %r8d
	je	.L44
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	je	.L47
	.p2align 4,,10
	.p2align 3
.L45:
	cmpl	$9, %ecx
	je	.L47
	addl	$31, %eax
.L46:
	cmpl	$2, %edx
	leal	-2(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L45
.L47:
	addl	$30, %eax
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L109:
	cmpl	$9, %ecx
	je	.L50
	addl	$31, %eax
.L51:
	cmpl	$2, %edx
	leal	-2(%rax), %ecx
	cmove	%ecx, %eax
	addl	$1, %edx
	cmpl	%edx, %edi
	je	.L12
.L44:
	movl	%edx, %ecx
	andl	$-3, %ecx
	cmpl	$4, %ecx
	jne	.L109
.L50:
	addl	$30, %eax
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L54:
	xorl	%eax, %eax
	jmp	.L7
	.cfi_endproc
.LFE25:
	.size	daycount, .-daycount
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d %d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbx
	leaq	44(%rsp), %r15
	leaq	40(%rsp), %r14
	leaq	36(%rsp), %r13
	movq	%rbx, %r9
	movq	%r15, %r8
	leaq	32(%rsp), %r12
	subq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 136
	movq	%r14, %rcx
	movq	%r13, %rdx
	leaq	60(%rsp), %rax
	movq	%r12, %rsi
	movq	%rax, 32(%rsp)
	pushq	%rax
	.cfi_def_cfa_offset 144
	jmp	.L118
	.p2align 4,,10
	.p2align 3
.L111:
	.cfi_restore_state
	movl	36(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L112
	movl	40(%rsp), %r10d
	testl	%r10d, %r10d
	jle	.L112
	movl	44(%rsp), %edi
	testl	%edi, %edi
	jle	.L112
	movl	48(%rsp), %esi
	testl	%esi, %esi
	jle	.L112
	movl	52(%rsp), %edx
	testl	%edx, %edx
	jle	.L112
	movl	%r9d, 16(%rsp)
	movl	%r10d, 20(%rsp)
	call	daycount
	movl	20(%rsp), %edx
	movl	16(%rsp), %esi
	movl	%r11d, %edi
	movl	%eax, 12(%rsp)
	call	daycount
	movl	12(%rsp), %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subq	$8, %rsp
	.cfi_def_cfa_offset 136
	movq	%rbx, %r9
	movq	%r15, %r8
	pushq	32(%rsp)
	.cfi_def_cfa_offset 144
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
.L118:
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	48(%rsp), %r11d
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
	testl	%r11d, %r11d
	jg	.L111
	.p2align 4,,10
	.p2align 3
.L112:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L119
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L119:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

#include <stdio.h>
int uruu(int year);
int daycount(int y,int m,int d);
int main()
{
    int y1,m1,d1,y2,m2,d2;
    scanf("%d %d %d %d %d %d",&y1,&m1,&d1,&y2,&m2,&d2);
    while(y1 > 0 && m1 > 0 && d1 > 0 && y2 > 0 && m2 > 0 && d2 > 0){
        printf("%d\n",daycount(y2,m2,d2) - daycount(y1,m1,d1));
        scanf("%d %d %d %d %d %d",&y1,&m1,&d1,&y2,&m2,&d2);
    }
    return 0;
}

int uruu(int year){
    int resist = 0;
    if(year % 4 == 0 && year % 100 != 0)resist = 1;
    if(year % 400 == 0)resist = 1;
    return resist;
}

int daycount(int y,int m,int d){
	int resist=0;
    int i;
	for(i = 1;i < y;i++){
		resist+=365;
        if(uruu(i)) resist+=1;
	}
	for(i = 1;i < m;i++){
		resist+=31;
		if(i==4||i==6||i==9||i==11) resist--;
		if(i==2){
            resist-=3;
            if(uruu(y))resist++;
        }
	}
	for(i = 1;i < d;i++){
		resist+=1;
	}
	return resist;
}
2006 9 2 522 9 3
2006 9 2 2006 11 11
2004 1 1 2005 1 1
2000 1 1 2006 1 1
2000 1 1 2101 1 1
-1 -1 -1 -1 -1 -1
 2006 9 2 2006 9 2
2006 9 2 2006 11 11
2004 1 1 2005 1 1
2000 1 1 2006 1 1
2000 1 1 2101 1 1
-1 -1 -1 -1 -1 -1
 2006 9 2 522 9 3
2006 9 1 2006 11 11
2004 1 1 2005 1 1
2000 1 1 2006 1 1
2000 1 1 2101 1 1
-1 -1 -1 -1 -1 -1
 2006 9 2 2006 9 2
2006 9 3 2006 11 11
2004 1 1 2005 1 1
2000 1 1 2006 1 1
2000 1 1 2101 1 1
-1 -1 -1 -1 -1 -1
 2006 9 2 522 9 3
2006 9 1 2006 11 11
2004 1 2 2005 1 1
2000 1 1 2006 1 1
2000 1 1 2101 1 1
-1 -1 -1 -1 -1 -1
 2006 9 2 522 9 3
2006 9 1 2006 11 11
2004 1 2 2005 1 1
1153 1 1 2006 1 1
2000 1 1 2101 1 1
-1 -1 -1 -1 -1 -1
 2006 9 2 522 9 3
2006 9 1 2006 11 11
2004 1 2 2005 1 1
218 1 1 2006 1 1
2000 1 1 2101 1 1
-1 -1 -1 -1 -1 -1
 2006 9 2 522 9 3
2006 9 2 2006 11 11
2004 1 1 2005 1 1
2000 1 1 2006 1 1
2703 1 1 2101 1 1
-1 -1 -1 -1 -1 -1
 2006 9 2 2006 9 2
2006 9 2 2006 11 11
2004 1 1 2005 1 1
2000 1 1 2006 1 1
963 1 1 2101 1 1
-1 -1 -1 -1 -1 -1
 2006 9 2 522 9 3
2006 9 1 2006 11 11
2004 1 1 2005 1 1
2000 1 1 2006 1 1
2000 1 1 2101 2 1
-1 -1 -1 -1 -1 -1

-542019
70
366
2192
36890
 0
70
366
2192
36890
 -542019
71
366
2192
36890
 0
69
366
2192
36890
 -542019
71
365
2192
36890
 -542019
71
365
311552
36890
 -542019
71
365
653054
36890
 -542019
70
366
2192
-219875
 0
70
366
2192
415646
 -542019
71
366
2192
36921

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 uruu(int year);
int daycount(int y,int m,int d);
int main()
{
    int y1,m1,d1,y2,m2,d2;
    scanf("%d %d %d %d %d %d",&y1,&m1,&d1,&y2,&m2,&d2);
    while(y1 > 0 && m1 > 0 && d1 > 0 && y2 > 0 && m2 > 0 && d2 > 0){
        printf("%d\n",daycount(y2,m2,d2) - daycount(y1,m1,d1));
        scanf("%d %d %d %d %d %d",&y1,&m1,&d1,&y2,&m2,&d2);
    }
    return 0;
}

int uruu(int year){
    int resist = 0;
    if(year % 4 == 0 && year % 100 != 0)resist = 1;
    if(year % 400 == 0)resist = 1;
    return resist;
}

int daycount(int y,int m,int d){
	int resist=0;
    int i;
	for(i = 1;i < y;i++){
		resist+=365;
        if(uruu(i)) resist+=1;
	}
	for(i = 1;i < m;i++){
		resist+=31;
		if(i==4||i==6||i==9||i==11) resist--;
		if(i==2){
            resist-=3;
            if(uruu(y))resist++;
        }
	}
	for(i = 1;i < d;i++){
		resist+=1;
	}
	return resist;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d %d"
.LC1:
	.string	"%d\n"
	.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
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %r8
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	subq	$8, %rsp
	leaq	-28(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	jmp	.L2
.L4:
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %ecx
	movl	-36(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	daycount
	movl	%eax, %ebx
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	daycount
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	leaq	-32(%rbp), %r8
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	subq	$8, %rsp
	leaq	-28(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
.L2:
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jg	.L4
.L3:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	uruu
	.type	uruu, @function
uruu:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -4(%rbp)
	movl	-20(%rbp), %eax
	andl	$3, %eax
	testl	%eax, %eax
	jne	.L8
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L8
	movl	$1, -4(%rbp)
.L8:
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$7, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$400, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L9
	movl	$1, -4(%rbp)
.L9:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	uruu, .-uruu
	.globl	daycount
	.type	daycount, @function
daycount:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	$0, -8(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L12
.L14:
	addl	$365, -8(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	uruu
	testl	%eax, %eax
	je	.L13
	addl	$1, -8(%rbp)
.L13:
	addl	$1, -4(%rbp)
.L12:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L14
	movl	$1, -4(%rbp)
	jmp	.L15
.L19:
	addl	$31, -8(%rbp)
	cmpl	$4, -4(%rbp)
	je	.L16
	cmpl	$6, -4(%rbp)
	je	.L16
	cmpl	$9, -4(%rbp)
	je	.L16
	cmpl	$11, -4(%rbp)
	jne	.L17
.L16:
	subl	$1, -8(%rbp)
.L17:
	cmpl	$2, -4(%rbp)
	jne	.L18
	subl	$3, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	uruu
	testl	%eax, %eax
	je	.L18
	addl	$1, -8(%rbp)
.L18:
	addl	$1, -4(%rbp)
.L15:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L19
	movl	$1, -4(%rbp)
	jmp	.L20
.L21:
	addl	$1, -8(%rbp)
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L21
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	daycount, .-daycount
	.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 %d %d"
.LC1:
	.string	"%d\n"
	.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
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %r8
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	subq	$8, %rsp
	leaq	-28(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	jmp	.L2
.L4:
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %ecx
	movl	-36(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	daycount
	movl	%eax, %ebx
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	daycount
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	leaq	-32(%rbp), %r8
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	subq	$8, %rsp
	leaq	-28(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
.L2:
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-32(%rbp), %eax
	testl	%eax, %eax
	jle	.L3
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jg	.L4
.L3:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	uruu
	.type	uruu, @function
uruu:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -4(%rbp)
	movl	-20(%rbp), %eax
	andl	$3, %eax
	testl	%eax, %eax
	jne	.L8
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L8
	movl	$1, -4(%rbp)
.L8:
	movl	-20(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$7, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$400, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L9
	movl	$1, -4(%rbp)
.L9:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	uruu, .-uruu
	.globl	daycount
	.type	daycount, @function
daycount:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	$0, -8(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L12
.L14:
	addl	$365, -8(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	uruu
	testl	%eax, %eax
	je	.L13
	addl	$1, -8(%rbp)
.L13:
	addl	$1, -4(%rbp)
.L12:
	movl	-4(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L14
	movl	$1, -4(%rbp)
	jmp	.L15
.L19:
	addl	$31, -8(%rbp)
	cmpl	$4, -4(%rbp)
	je	.L16
	cmpl	$6, -4(%rbp)
	je	.L16
	cmpl	$9, -4(%rbp)
	je	.L16
	cmpl	$11, -4(%rbp)
	jne	.L17
.L16:
	subl	$1, -8(%rbp)
.L17:
	cmpl	$2, -4(%rbp)
	jne	.L18
	subl	$3, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	uruu
	testl	%eax, %eax
	je	.L18
	addl	$1, -8(%rbp)
.L18:
	addl	$1, -4(%rbp)
.L15:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L19
	movl	$1, -4(%rbp)
	jmp	.L20
.L21:
	addl	$1, -8(%rbp)
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L21
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	daycount, .-daycount
	.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:
