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 digit_sum(int n){
	int sum;
	sum = 0;
	if (n < 10){
		return (n);
	}
	sum = sum + digit_sum(n / 10) + n % 10;
	return (sum);
}
int main(void){
	int N, A, B;
	int sum;
	int sumsum;
	int i;

	scanf("%d%d%d", &N, &A, &B);
	sumsum = 0;
	i = 0;
	while (i <= N){
		sum = digit_sum(i);
		//printf("sum: %d, i: %d\n", sum, i);
		if ((sum >= A) && (sum <= B)){
			sumsum += i;
			//printf("sumsum: %d\n", sumsum);
		}
		i++;
	}
	printf("%d\n", sumsum);
	return (0);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	digit_sum
	.type	digit_sum, @function
digit_sum:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%ecx, %ecx
	movl	$3435973837, %r8d
	cmpl	$9, %edi
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%edi, %edi
	movq	%rdi, %rax
	imulq	%r8, %rdi
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %esi
	shrq	$35, %rdi
	sarq	$34, %rdx
	subl	%esi, %edx
	movl	%eax, %esi
	leal	(%rdx,%rdx,4), %edx
	addl	%edx, %edx
	subl	%edx, %esi
	addl	%esi, %ecx
	cmpl	$99, %eax
	jg	.L2
	leal	(%rdi,%rcx), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	digit_sum, .-digit_sum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	js	.L17
	movl	16(%rsp), %r11d
	movl	20(%rsp), %ebx
	addl	$1, %r10d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$3435973837, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%esi, %edx
	cmpl	%edx, %r11d
	jg	.L13
	leal	(%r9,%r8), %eax
	cmpl	%edx, %ebx
	cmovge	%eax, %r9d
.L13:
	addl	$1, %r8d
	cmpl	%r8d, %r10d
	je	.L10
	movl	%r8d, %edx
	xorl	%esi, %esi
	cmpl	$9, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%edx, %edx
	movq	%rdx, %rcx
	imulq	%rdi, %rdx
	movslq	%ecx, %rax
	movl	%ecx, %ebp
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ebp
	shrq	$35, %rdx
	sarq	$34, %rax
	subl	%ebp, %eax
	movl	%ecx, %ebp
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	subl	%eax, %ebp
	addl	%ebp, %esi
	cmpl	$99, %ecx
	jg	.L15
	jmp	.L11
.L17:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	digit_sum
	.type	digit_sum, @function
digit_sum:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%ecx, %ecx
	movl	$3435973837, %r8d
	cmpl	$9, %edi
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%edi, %edi
	movq	%rdi, %rax
	imulq	%r8, %rdi
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %esi
	shrq	$35, %rdi
	sarq	$34, %rdx
	subl	%esi, %edx
	movl	%eax, %esi
	leal	(%rdx,%rdx,4), %edx
	addl	%edx, %edx
	subl	%edx, %esi
	addl	%esi, %ecx
	cmpl	$99, %eax
	jg	.L2
	leal	(%rdi,%rcx), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	digit_sum, .-digit_sum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	js	.L17
	movl	16(%rsp), %r11d
	movl	20(%rsp), %ebx
	addl	$1, %r10d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$3435973837, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%esi, %edx
	cmpl	%edx, %r11d
	jg	.L13
	leal	(%r9,%r8), %eax
	cmpl	%edx, %ebx
	cmovge	%eax, %r9d
.L13:
	addl	$1, %r8d
	cmpl	%r8d, %r10d
	je	.L10
	movl	%r8d, %edx
	xorl	%esi, %esi
	cmpl	$9, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%edx, %edx
	movq	%rdx, %rcx
	imulq	%rdi, %rdx
	movslq	%ecx, %rax
	movl	%ecx, %ebp
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ebp
	shrq	$35, %rdx
	sarq	$34, %rax
	subl	%ebp, %eax
	movl	%ecx, %ebp
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	subl	%eax, %ebp
	addl	%ebp, %esi
	cmpl	$99, %ecx
	jg	.L15
	jmp	.L11
.L17:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	digit_sum
	.type	digit_sum, @function
digit_sum:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%ecx, %ecx
	movl	$3435973837, %r8d
	cmpl	$9, %edi
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%edi, %edi
	movq	%rdi, %rax
	imulq	%r8, %rdi
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %esi
	shrq	$35, %rdi
	sarq	$34, %rdx
	subl	%esi, %edx
	movl	%eax, %esi
	leal	(%rdx,%rdx,4), %edx
	addl	%edx, %edx
	subl	%edx, %esi
	addl	%esi, %ecx
	cmpl	$99, %eax
	jg	.L2
	leal	(%rdi,%rcx), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	digit_sum, .-digit_sum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	js	.L17
	movl	16(%rsp), %r11d
	movl	20(%rsp), %ebx
	addl	$1, %r10d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$3435973837, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%esi, %edx
	cmpl	%edx, %r11d
	jg	.L13
	leal	(%r9,%r8), %eax
	cmpl	%edx, %ebx
	cmovge	%eax, %r9d
.L13:
	addl	$1, %r8d
	cmpl	%r8d, %r10d
	je	.L10
	movl	%r8d, %edx
	xorl	%esi, %esi
	cmpl	$9, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%edx, %edx
	movq	%rdx, %rcx
	imulq	%rdi, %rdx
	movslq	%ecx, %rax
	movl	%ecx, %ebp
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ebp
	shrq	$35, %rdx
	sarq	$34, %rax
	subl	%ebp, %eax
	movl	%ecx, %ebp
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	subl	%eax, %ebp
	addl	%ebp, %esi
	cmpl	$99, %ecx
	jg	.L15
	jmp	.L11
.L17:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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 digit_sum(int n){
	int sum;
	sum = 0;
	if (n < 10){
		return (n);
	}
	sum = sum + digit_sum(n / 10) + n % 10;
	return (sum);
}
int main(void){
	int N, A, B;
	int sum;
	int sumsum;
	int i;

	scanf("%d%d%d", &N, &A, &B);
	sumsum = 0;
	i = 0;
	while (i <= N){
		sum = digit_sum(i);
		//printf("sum: %d, i: %d\n", sum, i);
		if ((sum >= A) && (sum <= B)){
			sumsum += i;
			//printf("sumsum: %d\n", sumsum);
		}
		i++;
	}
	printf("%d\n", sumsum);
	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 digit_sum(int n){
	int sum;
	sum = 0;
	if (n < 10){
		return (n);
	}
	sum = sum + digit_sum(n / 10) + n % 10;
	return (sum);
}
int main(void){
	int N, A, B;
	int sum;
	int sumsum;
	int i;

	scanf("%d%d%d", &N, &A, &B);
	sumsum = 0;
	i = 0;
	while (i <= N){
		sum = digit_sum(i);
		//printf("sum: %d, i: %d\n", sum, i);
		if ((sum >= A) && (sum <= B)){
			sumsum += i;
			//printf("sumsum: %d\n", sumsum);
		}
		i++;
	}
	printf("%d\n", sumsum);
	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:

10 1 0
 20 2 6
 100 4 12
 20 3 6
 100 5 12
 20 1 6
 37 2 6
 101 3 12
 37 1 6
 37 1 9

0
 105
 3146
 72
 3036
 116
 321
 3212
 332
 590

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 digit_sum(int n){
	int sum;
	sum = 0;
	if (n < 10){
		return (n);
	}
	sum = sum + digit_sum(n / 10) + n % 10;
	return (sum);
}
int main(void){
	int N, A, B;
	int sum;
	int sumsum;
	int i;

	scanf("%d%d%d", &N, &A, &B);
	sumsum = 0;
	i = 0;
	while (i <= N){
		sum = digit_sum(i);
		//printf("sum: %d, i: %d\n", sum, i);
		if ((sum >= A) && (sum <= B)){
			sumsum += i;
			//printf("sumsum: %d\n", sumsum);
		}
		i++;
	}
	printf("%d\n", sumsum);
	return (0);
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	digit_sum
	.type	digit_sum, @function
digit_sum:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%ecx, %ecx
	movl	$3435973837, %r8d
	cmpl	$9, %edi
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%edi, %edi
	movq	%rdi, %rax
	imulq	%r8, %rdi
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %esi
	shrq	$35, %rdi
	sarq	$34, %rdx
	subl	%esi, %edx
	movl	%eax, %esi
	leal	(%rdx,%rdx,4), %edx
	addl	%edx, %edx
	subl	%edx, %esi
	addl	%esi, %ecx
	cmpl	$99, %eax
	jg	.L2
	leal	(%rdi,%rcx), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	digit_sum, .-digit_sum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	js	.L17
	movl	16(%rsp), %r11d
	movl	20(%rsp), %ebx
	addl	$1, %r10d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$3435973837, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%esi, %edx
	cmpl	%edx, %r11d
	jg	.L13
	leal	(%r9,%r8), %eax
	cmpl	%edx, %ebx
	cmovge	%eax, %r9d
.L13:
	addl	$1, %r8d
	cmpl	%r8d, %r10d
	je	.L10
	movl	%r8d, %edx
	xorl	%esi, %esi
	cmpl	$9, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%edx, %edx
	movq	%rdx, %rcx
	imulq	%rdi, %rdx
	movslq	%ecx, %rax
	movl	%ecx, %ebp
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ebp
	shrq	$35, %rdx
	sarq	$34, %rax
	subl	%ebp, %eax
	movl	%ecx, %ebp
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	subl	%eax, %ebp
	addl	%ebp, %esi
	cmpl	$99, %ecx
	jg	.L15
	jmp	.L11
.L17:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	digit_sum
	.type	digit_sum, @function
digit_sum:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%ecx, %ecx
	movl	$3435973837, %r8d
	cmpl	$9, %edi
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%edi, %edi
	movq	%rdi, %rax
	imulq	%r8, %rdi
	movslq	%eax, %rdx
	movl	%eax, %esi
	imulq	$1717986919, %rdx, %rdx
	sarl	$31, %esi
	shrq	$35, %rdi
	sarq	$34, %rdx
	subl	%esi, %edx
	movl	%eax, %esi
	leal	(%rdx,%rdx,4), %edx
	addl	%edx, %edx
	subl	%edx, %esi
	addl	%esi, %ecx
	cmpl	$99, %eax
	jg	.L2
	leal	(%rdi,%rcx), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	digit_sum, .-digit_sum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r10d
	testl	%r10d, %r10d
	js	.L17
	movl	16(%rsp), %r11d
	movl	20(%rsp), %ebx
	addl	$1, %r10d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$3435973837, %edi
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%esi, %edx
	cmpl	%edx, %r11d
	jg	.L13
	leal	(%r9,%r8), %eax
	cmpl	%edx, %ebx
	cmovge	%eax, %r9d
.L13:
	addl	$1, %r8d
	cmpl	%r8d, %r10d
	je	.L10
	movl	%r8d, %edx
	xorl	%esi, %esi
	cmpl	$9, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%edx, %edx
	movq	%rdx, %rcx
	imulq	%rdi, %rdx
	movslq	%ecx, %rax
	movl	%ecx, %ebp
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ebp
	shrq	$35, %rdx
	sarq	$34, %rax
	subl	%ebp, %eax
	movl	%ecx, %ebp
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	subl	%eax, %ebp
	addl	%ebp, %esi
	cmpl	$99, %ecx
	jg	.L15
	jmp	.L11
.L17:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
```