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>
#include <math.h>

int SomarDigitos(int);

int main(void)
{
	int n;
	int min = 999999;
	int aux;

	scanf("%d", &n);

	aux = 1;
	while (aux <= n / 2) {
		min = (int)fmin(min, SomarDigitos(n - aux) + SomarDigitos(aux));
		aux++;
	}

	printf("%d\n", min);

	return 0;
}

int SomarDigitos(int N){
    // DECLARAÇÕES
    int soma = 0;
    int aux;

    // INSTRUÇÕES
    aux = N;

    while (aux > 0){
        soma += aux%10;
        aux = aux/10;
    }

    return soma;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r12d
	movl	%r12d, %ebx
	shrl	$31, %ebx
	addl	%r12d, %ebx
	sarl	%ebx
	cmpl	$1, %r12d
	jle	.L8
	subl	$1, %r12d
	movl	$1, %r13d
	movl	$999999, %r8d
	movl	$3435973837, %ebp
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edx, %eax
	movl	%edx, %edi
	imulq	%rbp, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	addl	%edi, %ecx
	cmpl	$9, %esi
	jg	.L4
.L3:
	movl	%r13d, %edx
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%edx, %eax
	imulq	%rbp, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %edx
	addl	%edx, %edi
	movl	%eax, %edx
	testl	%eax, %eax
	jne	.L5
	addl	%ecx, %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	addl	$1, %r13d
	cvtsi2sdl	%r8d, %xmm0
	subl	$1, %r12d
	cvtsi2sdl	%edi, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r8d
	cmpl	%ebx, %r13d
	jle	.L6
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	movl	$999999, %r8d
	jmp	.L2
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	SomarDigitos
	.type	SomarDigitos, @function
SomarDigitos:
.LFB24:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testl	%edi, %edi
	jle	.L16
	movl	$3435973837, %esi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edi, %eax
	movl	%edi, %ecx
	imulq	%rsi, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %edx
	addl	%edx, %edx
	subl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	addl	%ecx, %r8d
	cmpl	$9, %edx
	jg	.L18
.L16:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	SomarDigitos, .-SomarDigitos
	.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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r12d
	movl	%r12d, %ebx
	shrl	$31, %ebx
	addl	%r12d, %ebx
	sarl	%ebx
	cmpl	$1, %r12d
	jle	.L8
	subl	$1, %r12d
	movl	$1, %r13d
	movl	$999999, %r8d
	movl	$3435973837, %ebp
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edx, %eax
	movl	%edx, %edi
	imulq	%rbp, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	addl	%edi, %ecx
	cmpl	$9, %esi
	jg	.L4
.L3:
	movl	%r13d, %edx
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%edx, %eax
	imulq	%rbp, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %edx
	addl	%edx, %edi
	movl	%eax, %edx
	testl	%eax, %eax
	jne	.L5
	addl	%ecx, %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	addl	$1, %r13d
	cvtsi2sdl	%r8d, %xmm0
	subl	$1, %r12d
	cvtsi2sdl	%edi, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r8d
	cmpl	%ebx, %r13d
	jle	.L6
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	movl	$999999, %r8d
	jmp	.L2
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	SomarDigitos
	.type	SomarDigitos, @function
SomarDigitos:
.LFB24:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testl	%edi, %edi
	jle	.L16
	movl	$3435973837, %esi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edi, %eax
	movl	%edi, %ecx
	imulq	%rsi, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %edx
	addl	%edx, %edx
	subl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	addl	%ecx, %r8d
	cmpl	$9, %edx
	jg	.L18
.L16:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	SomarDigitos, .-SomarDigitos
	.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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r12d
	movl	%r12d, %ebx
	shrl	$31, %ebx
	addl	%r12d, %ebx
	sarl	%ebx
	cmpl	$1, %r12d
	jle	.L8
	subl	$1, %r12d
	movl	$1, %r13d
	movl	$999999, %r8d
	movl	$3435973837, %ebp
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edx, %eax
	movl	%edx, %edi
	imulq	%rbp, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	addl	%edi, %ecx
	cmpl	$9, %esi
	jg	.L4
.L3:
	movl	%r13d, %edx
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%edx, %eax
	imulq	%rbp, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %edx
	addl	%edx, %edi
	movl	%eax, %edx
	testl	%eax, %eax
	jne	.L5
	addl	%ecx, %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	addl	$1, %r13d
	cvtsi2sdl	%r8d, %xmm0
	subl	$1, %r12d
	cvtsi2sdl	%edi, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r8d
	cmpl	%ebx, %r13d
	jle	.L6
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	movl	$999999, %r8d
	jmp	.L2
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	SomarDigitos
	.type	SomarDigitos, @function
SomarDigitos:
.LFB24:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testl	%edi, %edi
	jle	.L16
	movl	$3435973837, %esi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edi, %eax
	movl	%edi, %ecx
	imulq	%rsi, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %edx
	addl	%edx, %edx
	subl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	addl	%ecx, %r8d
	cmpl	$9, %edx
	jg	.L18
.L16:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	SomarDigitos, .-SomarDigitos
	.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>
#include <math.h>

int SomarDigitos(int);

int main(void)
{
	int n;
	int min = 999999;
	int aux;

	scanf("%d", &n);

	aux = 1;
	while (aux <= n / 2) {
		min = (int)fmin(min, SomarDigitos(n - aux) + SomarDigitos(aux));
		aux++;
	}

	printf("%d\n", min);

	return 0;
}

int SomarDigitos(int N){
    // DECLARAÇÕES
    int soma = 0;
    int aux;

    // INSTRUÇÕES
    aux = N;

    while (aux > 0){
        soma += aux%10;
        aux = aux/10;
    }

    return soma;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <math.h>

int SomarDigitos(int);

int main(void)
{
	int n;
	int min = 999999;
	int aux;

	scanf("%d", &n);

	aux = 1;
	while (aux <= n / 2) {
		min = (int)fmin(min, SomarDigitos(n - aux) + SomarDigitos(aux));
		aux++;
	}

	printf("%d\n", min);

	return 0;
}

int SomarDigitos(int N){
    // DECLARAÇÕES
    int soma = 0;
    int aux;

    // INSTRUÇÕES
    aux = N;

    while (aux > 0){
        soma += aux%10;
        aux = aux/10;
    }

    return soma;
}
```

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:

22
 37
 36
 3
 5
 7
 26
 38
 58
 78

4
 10
 9
 3
 5
 7
 8
 11
 13
 15

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>
#include <math.h>

int SomarDigitos(int);

int main(void)
{
	int n;
	int min = 999999;
	int aux;

	scanf("%d", &n);

	aux = 1;
	while (aux <= n / 2) {
		min = (int)fmin(min, SomarDigitos(n - aux) + SomarDigitos(aux));
		aux++;
	}

	printf("%d\n", min);

	return 0;
}

int SomarDigitos(int N){
    // DECLARAÇÕES
    int soma = 0;
    int aux;

    // INSTRUÇÕES
    aux = N;

    while (aux > 0){
        soma += aux%10;
        aux = aux/10;
    }

    return soma;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r12d
	movl	%r12d, %ebx
	shrl	$31, %ebx
	addl	%r12d, %ebx
	sarl	%ebx
	cmpl	$1, %r12d
	jle	.L8
	subl	$1, %r12d
	movl	$1, %r13d
	movl	$999999, %r8d
	movl	$3435973837, %ebp
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edx, %eax
	movl	%edx, %edi
	imulq	%rbp, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	addl	%edi, %ecx
	cmpl	$9, %esi
	jg	.L4
.L3:
	movl	%r13d, %edx
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%edx, %eax
	imulq	%rbp, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %edx
	addl	%edx, %edi
	movl	%eax, %edx
	testl	%eax, %eax
	jne	.L5
	addl	%ecx, %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	addl	$1, %r13d
	cvtsi2sdl	%r8d, %xmm0
	subl	$1, %r12d
	cvtsi2sdl	%edi, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r8d
	cmpl	%ebx, %r13d
	jle	.L6
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	movl	$999999, %r8d
	jmp	.L2
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	SomarDigitos
	.type	SomarDigitos, @function
SomarDigitos:
.LFB24:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testl	%edi, %edi
	jle	.L16
	movl	$3435973837, %esi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edi, %eax
	movl	%edi, %ecx
	imulq	%rsi, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %edx
	addl	%edx, %edx
	subl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	addl	%ecx, %r8d
	cmpl	$9, %edx
	jg	.L18
.L16:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	SomarDigitos, .-SomarDigitos
	.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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r12d
	movl	%r12d, %ebx
	shrl	$31, %ebx
	addl	%r12d, %ebx
	sarl	%ebx
	cmpl	$1, %r12d
	jle	.L8
	subl	$1, %r12d
	movl	$1, %r13d
	movl	$999999, %r8d
	movl	$3435973837, %ebp
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edx, %eax
	movl	%edx, %edi
	imulq	%rbp, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %edi
	movl	%edx, %esi
	movl	%eax, %edx
	addl	%edi, %ecx
	cmpl	$9, %esi
	jg	.L4
.L3:
	movl	%r13d, %edx
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%edx, %eax
	imulq	%rbp, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %edx
	addl	%edx, %edi
	movl	%eax, %edx
	testl	%eax, %eax
	jne	.L5
	addl	%ecx, %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	addl	$1, %r13d
	cvtsi2sdl	%r8d, %xmm0
	subl	$1, %r12d
	cvtsi2sdl	%edi, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %r8d
	cmpl	%ebx, %r13d
	jle	.L6
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	movl	$999999, %r8d
	jmp	.L2
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	SomarDigitos
	.type	SomarDigitos, @function
SomarDigitos:
.LFB24:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testl	%edi, %edi
	jle	.L16
	movl	$3435973837, %esi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edi, %eax
	movl	%edi, %ecx
	imulq	%rsi, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %edx
	addl	%edx, %edx
	subl	%edx, %ecx
	movl	%edi, %edx
	movl	%eax, %edi
	addl	%ecx, %r8d
	cmpl	$9, %edx
	jg	.L18
.L16:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	SomarDigitos, .-SomarDigitos
	.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:
```