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 argc, const char * argv[]) {
    int i,n,mi,misum = 0,y,m,d;
    
    mi = 196470;
    
    
    
    scanf("%d",&n);
    for (i = 0; i < n; i++) {
        
        scanf("%d %d %d",&y,&m,&d);
        
        misum += (y-1) * 195;
        misum += (((y-1)/3)) * 5;
        
    
        misum += (m-1) * 20;
        
        if (y%3 != 0) {
        
            misum -= (m-1)/2*1;
        
        }
        
        
        misum += d-1;

        printf("%d\n",mi-misum);
        misum = 0;
        
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.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
	leaq	.LC0(%rip), %rdi
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rax
	imull	$-1431655765, %edx, %edx
	movl	%ecx, %esi
	imulq	$1431655766, %rax, %rax
	sarl	$31, %esi
	imull	$195, %ecx, %ecx
	addl	$715827882, %edx
	shrq	$32, %rax
	subl	%esi, %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %ecx
	movl	16(%rsp), %eax
	subl	$1, %eax
	leal	(%rax,%rax,4), %esi
	leal	(%rcx,%rsi,4), %ecx
	cmpl	$1431655764, %edx
	jbe	.L3
	movl	%eax, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	$1, %ebx
	shrl	$31, %edx
	addl	%edx, %eax
	movl	$196470, %edx
	sarl	%eax
	subl	%eax, %ecx
	movl	20(%rsp), %eax
	leal	-1(%rcx,%rax), %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	8(%rsp), %ebx
	jl	.L5
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$40, %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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movl	20(%rsp), %eax
	movl	$196470, %edx
	movq	%rbp, %rsi
	addl	$1, %ebx
	movl	$1, %edi
	leal	-1(%rcx,%rax), %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L5
	jmp	.L2
.L9:
	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:
```

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"
.LC1:
	.string	"%d %d %d"
.LC2:
	.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
	leaq	.LC0(%rip), %rdi
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rax
	imull	$-1431655765, %edx, %edx
	movl	%ecx, %esi
	imulq	$1431655766, %rax, %rax
	sarl	$31, %esi
	imull	$195, %ecx, %ecx
	addl	$715827882, %edx
	shrq	$32, %rax
	subl	%esi, %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %ecx
	movl	16(%rsp), %eax
	subl	$1, %eax
	leal	(%rax,%rax,4), %esi
	leal	(%rcx,%rsi,4), %ecx
	cmpl	$1431655764, %edx
	jbe	.L3
	movl	%eax, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	$1, %ebx
	shrl	$31, %edx
	addl	%edx, %eax
	movl	$196470, %edx
	sarl	%eax
	subl	%eax, %ecx
	movl	20(%rsp), %eax
	leal	-1(%rcx,%rax), %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	8(%rsp), %ebx
	jl	.L5
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$40, %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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movl	20(%rsp), %eax
	movl	$196470, %edx
	movq	%rbp, %rsi
	addl	$1, %ebx
	movl	$1, %edi
	leal	-1(%rcx,%rax), %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L5
	jmp	.L2
.L9:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.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
	leaq	.LC0(%rip), %rdi
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rax
	imull	$-1431655765, %edx, %edx
	movl	%ecx, %esi
	imulq	$1431655766, %rax, %rax
	sarl	$31, %esi
	imull	$195, %ecx, %ecx
	addl	$715827882, %edx
	shrq	$32, %rax
	subl	%esi, %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %ecx
	movl	16(%rsp), %eax
	subl	$1, %eax
	leal	(%rax,%rax,4), %esi
	leal	(%rcx,%rsi,4), %ecx
	cmpl	$1431655764, %edx
	jbe	.L3
	movl	%eax, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	$1, %ebx
	shrl	$31, %edx
	addl	%edx, %eax
	movl	$196470, %edx
	sarl	%eax
	subl	%eax, %ecx
	movl	20(%rsp), %eax
	leal	-1(%rcx,%rax), %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	8(%rsp), %ebx
	jl	.L5
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$40, %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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movl	20(%rsp), %eax
	movl	$196470, %edx
	movq	%rbp, %rsi
	addl	$1, %ebx
	movl	$1, %edi
	leal	-1(%rcx,%rax), %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L5
	jmp	.L2
.L9:
	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:
```
```c
#include <stdio.h>

int main(int argc, const char * argv[]) {
    int i,n,mi,misum = 0,y,m,d;
    
    mi = 196470;
    
    
    
    scanf("%d",&n);
    for (i = 0; i < n; i++) {
        
        scanf("%d %d %d",&y,&m,&d);
        
        misum += (y-1) * 195;
        misum += (((y-1)/3)) * 5;
        
    
        misum += (m-1) * 20;
        
        if (y%3 != 0) {
        
            misum -= (m-1)/2*1;
        
        }
        
        
        misum += d-1;

        printf("%d\n",mi-misum);
        misum = 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 argc, const char * argv[]) {
    int i,n,mi,misum = 0,y,m,d;
    
    mi = 196470;
    
    
    
    scanf("%d",&n);
    for (i = 0; i < n; i++) {
        
        scanf("%d %d %d",&y,&m,&d);
        
        misum += (y-1) * 195;
        misum += (((y-1)/3)) * 5;
        
    
        misum += (m-1) * 20;
        
        if (y%3 != 0) {
        
            misum -= (m-1)/2*1;
        
        }
        
        
        misum += d-1;

        printf("%d\n",mi-misum);
        misum = 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:

8
1 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 2 19
696 4 19
999 10 20
 8
1 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 2 26
696 4 19
999 10 20
 8
1 1 1
344 3 1
696 4 1
182 9 5
998 8 7
344 2 19
696 4 19
999 10 20
 8
1 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 3 26
696 4 19
999 10 20
 8
1 1 2
344 3 1
696 5 1
182 9 5
998 8 7
344 2 19
696 4 19
999 10 20
 8
1 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 2 19
716 4 19
999 10 20
 8
1 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 2 26
763 4 19
999 10 20
 8
1 1 1
344 3 1
696 4 1
182 9 5
998 8 7
344 2 19
696 4 19
884 10 20
 8
0 1 1
344 3 1
696 5 1
182 9 5
998 5 7
344 3 26
696 4 19
999 10 20
 8
1 1 2
344 3 1
696 5 0
182 9 5
998 8 7
344 2 19
696 4 19
999 10 20

196470
128976
59710
160715
311
128977
59712
1
 196470
128976
59710
160715
311
128970
59712
1
 196470
128976
59730
160715
252
128977
59712
1
 196470
128976
59710
160715
311
128951
59712
1
 196469
128976
59710
160715
252
128977
59712
1
 196470
128976
59710
160715
311
128977
55778
1
 196470
128976
59710
160715
311
128970
46533
1
 196470
128976
59730
160715
252
128977
59712
22620
 196665
128976
59710
160715
311
128951
59712
1
 196469
128976
59711
160715
252
128977
59712
1

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 argc, const char * argv[]) {
    int i,n,mi,misum = 0,y,m,d;
    
    mi = 196470;
    
    
    
    scanf("%d",&n);
    for (i = 0; i < n; i++) {
        
        scanf("%d %d %d",&y,&m,&d);
        
        misum += (y-1) * 195;
        misum += (((y-1)/3)) * 5;
        
    
        misum += (m-1) * 20;
        
        if (y%3 != 0) {
        
            misum -= (m-1)/2*1;
        
        }
        
        
        misum += d-1;

        printf("%d\n",mi-misum);
        misum = 0;
        
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.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
	leaq	.LC0(%rip), %rdi
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rax
	imull	$-1431655765, %edx, %edx
	movl	%ecx, %esi
	imulq	$1431655766, %rax, %rax
	sarl	$31, %esi
	imull	$195, %ecx, %ecx
	addl	$715827882, %edx
	shrq	$32, %rax
	subl	%esi, %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %ecx
	movl	16(%rsp), %eax
	subl	$1, %eax
	leal	(%rax,%rax,4), %esi
	leal	(%rcx,%rsi,4), %ecx
	cmpl	$1431655764, %edx
	jbe	.L3
	movl	%eax, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	$1, %ebx
	shrl	$31, %edx
	addl	%edx, %eax
	movl	$196470, %edx
	sarl	%eax
	subl	%eax, %ecx
	movl	20(%rsp), %eax
	leal	-1(%rcx,%rax), %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	8(%rsp), %ebx
	jl	.L5
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$40, %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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movl	20(%rsp), %eax
	movl	$196470, %edx
	movq	%rbp, %rsi
	addl	$1, %ebx
	movl	$1, %edi
	leal	-1(%rcx,%rax), %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L5
	jmp	.L2
.L9:
	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:
```

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"
.LC1:
	.string	"%d %d %d"
.LC2:
	.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
	leaq	.LC0(%rip), %rdi
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r13
	leaq	.LC1(%rip), %r12
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rax
	imull	$-1431655765, %edx, %edx
	movl	%ecx, %esi
	imulq	$1431655766, %rax, %rax
	sarl	$31, %esi
	imull	$195, %ecx, %ecx
	addl	$715827882, %edx
	shrq	$32, %rax
	subl	%esi, %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %ecx
	movl	16(%rsp), %eax
	subl	$1, %eax
	leal	(%rax,%rax,4), %esi
	leal	(%rcx,%rsi,4), %ecx
	cmpl	$1431655764, %edx
	jbe	.L3
	movl	%eax, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	$1, %ebx
	shrl	$31, %edx
	addl	%edx, %eax
	movl	$196470, %edx
	sarl	%eax
	subl	%eax, %ecx
	movl	20(%rsp), %eax
	leal	-1(%rcx,%rax), %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	8(%rsp), %ebx
	jl	.L5
.L2:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L9
	addq	$40, %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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movl	20(%rsp), %eax
	movl	$196470, %edx
	movq	%rbp, %rsi
	addl	$1, %ebx
	movl	$1, %edi
	leal	-1(%rcx,%rax), %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L5
	jmp	.L2
.L9:
	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:
```