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 arr[5];
    scanf("%d %d %d %d %d", &arr[0], &arr[1], &arr[2], &arr[3], &arr[4]);

    int mysum = 0;
    int mindata = 10;

    for (int i = 0; i < 5; i++) {

        if (arr[i] % 10 == 0) {

            mysum += arr[i];

        } else {

            mysum += ((arr[i] / 10) + 1)*10;

            mindata = (mindata > arr[i] % 10) ? arr[i] % 10 : mindata;

        }

    }

    mysum -= 10;
    mysum += mindata;

    printf("%d", mysum);

    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	leaq	16(%rsp), %r9
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rcx
	movq	%rcx, %rdi
	imulq	$1717986919, %rcx, %rcx
	movl	%edi, %eax
	sarl	$31, %eax
	sarq	$34, %rcx
	subl	%eax, %ecx
	leal	(%rcx,%rcx,4), %eax
	movl	%edi, %ecx
	addl	%eax, %eax
	subl	%eax, %ecx
	je	.L12
	movl	%edi, %eax
	movl	$10, %esi
	cltd
	idivl	%esi
	movl	%eax, %edi
	addl	$1, %edi
	imull	$10, %edi, %edi
.L2:
	movslq	4(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%rdi,%rax), %r8d
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L4
	movl	$10, %r8d
	cltd
	idivl	%r8d
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%rdi), %r8d
.L4:
	movslq	8(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%r8,%rax), %edi
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L6
	movl	$10, %edi
	cltd
	idivl	%edi
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%r8), %edi
.L6:
	movslq	12(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%rdi,%rax), %r8d
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L8
	movl	$10, %r8d
	cltd
	idivl	%r8d
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%rdi), %r8d
.L8:
	movslq	16(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	jne	.L9
	addl	%eax, %r8d
.L10:
	xorl	%eax, %eax
	leal	-10(%rcx,%r8), %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	$10, %ecx
	jmp	.L2
.L9:
	cltd
	movl	$10, %edi
	idivl	%edi
	addl	$1, %eax
	imull	$10, %eax, %eax
	addl	%eax, %r8d
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	jmp	.L10
.L18:
	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 %d %d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	leaq	16(%rsp), %r9
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rcx
	movq	%rcx, %rdi
	imulq	$1717986919, %rcx, %rcx
	movl	%edi, %eax
	sarl	$31, %eax
	sarq	$34, %rcx
	subl	%eax, %ecx
	leal	(%rcx,%rcx,4), %eax
	movl	%edi, %ecx
	addl	%eax, %eax
	subl	%eax, %ecx
	je	.L12
	movl	%edi, %eax
	movl	$10, %esi
	cltd
	idivl	%esi
	movl	%eax, %edi
	addl	$1, %edi
	imull	$10, %edi, %edi
.L2:
	movslq	4(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%rdi,%rax), %r8d
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L4
	movl	$10, %r8d
	cltd
	idivl	%r8d
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%rdi), %r8d
.L4:
	movslq	8(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%r8,%rax), %edi
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L6
	movl	$10, %edi
	cltd
	idivl	%edi
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%r8), %edi
.L6:
	movslq	12(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%rdi,%rax), %r8d
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L8
	movl	$10, %r8d
	cltd
	idivl	%r8d
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%rdi), %r8d
.L8:
	movslq	16(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	jne	.L9
	addl	%eax, %r8d
.L10:
	xorl	%eax, %eax
	leal	-10(%rcx,%r8), %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	$10, %ecx
	jmp	.L2
.L9:
	cltd
	movl	$10, %edi
	idivl	%edi
	addl	$1, %eax
	imull	$10, %eax, %eax
	addl	%eax, %r8d
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	jmp	.L10
.L18:
	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 %d %d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	leaq	16(%rsp), %r9
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rcx
	movq	%rcx, %rdi
	imulq	$1717986919, %rcx, %rcx
	movl	%edi, %eax
	sarl	$31, %eax
	sarq	$34, %rcx
	subl	%eax, %ecx
	leal	(%rcx,%rcx,4), %eax
	movl	%edi, %ecx
	addl	%eax, %eax
	subl	%eax, %ecx
	je	.L12
	movl	%edi, %eax
	movl	$10, %esi
	cltd
	idivl	%esi
	movl	%eax, %edi
	addl	$1, %edi
	imull	$10, %edi, %edi
.L2:
	movslq	4(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%rdi,%rax), %r8d
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L4
	movl	$10, %r8d
	cltd
	idivl	%r8d
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%rdi), %r8d
.L4:
	movslq	8(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%r8,%rax), %edi
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L6
	movl	$10, %edi
	cltd
	idivl	%edi
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%r8), %edi
.L6:
	movslq	12(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%rdi,%rax), %r8d
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L8
	movl	$10, %r8d
	cltd
	idivl	%r8d
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%rdi), %r8d
.L8:
	movslq	16(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	jne	.L9
	addl	%eax, %r8d
.L10:
	xorl	%eax, %eax
	leal	-10(%rcx,%r8), %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	$10, %ecx
	jmp	.L2
.L9:
	cltd
	movl	$10, %edi
	idivl	%edi
	addl	$1, %eax
	imull	$10, %eax, %eax
	addl	%eax, %r8d
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	jmp	.L10
.L18:
	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 arr[5];
    scanf("%d %d %d %d %d", &arr[0], &arr[1], &arr[2], &arr[3], &arr[4]);

    int mysum = 0;
    int mindata = 10;

    for (int i = 0; i < 5; i++) {

        if (arr[i] % 10 == 0) {

            mysum += arr[i];

        } else {

            mysum += ((arr[i] / 10) + 1)*10;

            mindata = (mindata > arr[i] % 10) ? arr[i] % 10 : mindata;

        }

    }

    mysum -= 10;
    mysum += mindata;

    printf("%d", mysum);

    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 arr[5];
    scanf("%d %d %d %d %d", &arr[0], &arr[1], &arr[2], &arr[3], &arr[4]);

    int mysum = 0;
    int mindata = 10;

    for (int i = 0; i < 5; i++) {

        if (arr[i] % 10 == 0) {

            mysum += arr[i];

        } else {

            mysum += ((arr[i] / 10) + 1)*10;

            mindata = (mindata > arr[i] % 10) ? arr[i] % 10 : mindata;

        }

    }

    mysum -= 10;
    mysum += mindata;

    printf("%d", mysum);

    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:

123
123
161
123
123
 29
20
13
35
120
 101
86
119
108
92
 123
123
161
123
163
 29
20
9
35
120
 101
86
119
125
92
 123
123
161
123
263
 29
20
4
35
120
 101
26
119
125
92
 123
123
40
123
263

681 223 521 721 215 541 821 214 481 693
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 arr[5];
    scanf("%d %d %d %d %d", &arr[0], &arr[1], &arr[2], &arr[3], &arr[4]);

    int mysum = 0;
    int mindata = 10;

    for (int i = 0; i < 5; i++) {

        if (arr[i] % 10 == 0) {

            mysum += arr[i];

        } else {

            mysum += ((arr[i] / 10) + 1)*10;

            mindata = (mindata > arr[i] % 10) ? arr[i] % 10 : mindata;

        }

    }

    mysum -= 10;
    mysum += mindata;

    printf("%d", mysum);

    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	leaq	16(%rsp), %r9
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rcx
	movq	%rcx, %rdi
	imulq	$1717986919, %rcx, %rcx
	movl	%edi, %eax
	sarl	$31, %eax
	sarq	$34, %rcx
	subl	%eax, %ecx
	leal	(%rcx,%rcx,4), %eax
	movl	%edi, %ecx
	addl	%eax, %eax
	subl	%eax, %ecx
	je	.L12
	movl	%edi, %eax
	movl	$10, %esi
	cltd
	idivl	%esi
	movl	%eax, %edi
	addl	$1, %edi
	imull	$10, %edi, %edi
.L2:
	movslq	4(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%rdi,%rax), %r8d
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L4
	movl	$10, %r8d
	cltd
	idivl	%r8d
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%rdi), %r8d
.L4:
	movslq	8(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%r8,%rax), %edi
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L6
	movl	$10, %edi
	cltd
	idivl	%edi
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%r8), %edi
.L6:
	movslq	12(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%rdi,%rax), %r8d
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L8
	movl	$10, %r8d
	cltd
	idivl	%r8d
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%rdi), %r8d
.L8:
	movslq	16(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	jne	.L9
	addl	%eax, %r8d
.L10:
	xorl	%eax, %eax
	leal	-10(%rcx,%r8), %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	$10, %ecx
	jmp	.L2
.L9:
	cltd
	movl	$10, %edi
	idivl	%edi
	addl	$1, %eax
	imull	$10, %eax, %eax
	addl	%eax, %r8d
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	jmp	.L10
.L18:
	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 %d %d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	leaq	16(%rsp), %r9
	leaq	12(%rsp), %r8
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rcx
	movq	%rcx, %rdi
	imulq	$1717986919, %rcx, %rcx
	movl	%edi, %eax
	sarl	$31, %eax
	sarq	$34, %rcx
	subl	%eax, %ecx
	leal	(%rcx,%rcx,4), %eax
	movl	%edi, %ecx
	addl	%eax, %eax
	subl	%eax, %ecx
	je	.L12
	movl	%edi, %eax
	movl	$10, %esi
	cltd
	idivl	%esi
	movl	%eax, %edi
	addl	$1, %edi
	imull	$10, %edi, %edi
.L2:
	movslq	4(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%rdi,%rax), %r8d
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L4
	movl	$10, %r8d
	cltd
	idivl	%r8d
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%rdi), %r8d
.L4:
	movslq	8(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%r8,%rax), %edi
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L6
	movl	$10, %edi
	cltd
	idivl	%edi
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%r8), %edi
.L6:
	movslq	12(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	leal	(%rdi,%rax), %r8d
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	je	.L8
	movl	$10, %r8d
	cltd
	idivl	%r8d
	addl	$1, %eax
	imull	$10, %eax, %eax
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	leal	(%rax,%rdi), %r8d
.L8:
	movslq	16(%rsp), %rsi
	movq	%rsi, %rax
	imulq	$1717986919, %rsi, %rsi
	cltd
	sarq	$34, %rsi
	subl	%edx, %esi
	leal	(%rsi,%rsi,4), %edx
	movl	%eax, %esi
	addl	%edx, %edx
	subl	%edx, %esi
	jne	.L9
	addl	%eax, %r8d
.L10:
	xorl	%eax, %eax
	leal	-10(%rcx,%r8), %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	movl	$10, %ecx
	jmp	.L2
.L9:
	cltd
	movl	$10, %edi
	idivl	%edi
	addl	$1, %eax
	imull	$10, %eax, %eax
	addl	%eax, %r8d
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	jmp	.L10
.L18:
	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:
```