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 main(void) { 
  int num; 
  
  while(1){
      scanf("%d",&num);
      if(num == 0) {
          break;
      }
      
      int i;
      int divPlus = 1;
      
      int med = floor(sqrt(num));
      
      if(num == 1) {
          printf("deficient number\n");
      } else {
          for(i = 2; i <= med; i++){
              if(num%i == 0) {
                  divPlus+= i;
                  int quot = num / i;
                  if(i != quot) {
                      divPlus+= (num/i);
                  }
            }
          }
          if(divPlus == num) {
          printf("perfect number\n");
      }else if(divPlus < num) {
          printf("deficient number\n");
      } else {
          printf("abundant number\n");
        }
      }
      
  }
  
  return 0;
  
} ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC5:
	.string	"deficient number"
.LC6:
	.string	"perfect number"
.LC7:
	.string	"abundant number"
	.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	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L3
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L21
	sqrtsd	%xmm0, %xmm0
.L6:
	cmpl	$1, %ebx
	je	.L7
	movsd	.LC3(%rip), %xmm2
	movsd	.LC2(%rip), %xmm6
	movapd	%xmm0, %xmm1
	andpd	%xmm2, %xmm1
	ucomisd	%xmm1, %xmm6
	jbe	.L8
	cvttsd2siq	%xmm0, %rax
	pxor	%xmm1, %xmm1
	movsd	.LC4(%rip), %xmm4
	andnpd	%xmm0, %xmm2
	cvtsi2sdq	%rax, %xmm1
	movapd	%xmm1, %xmm3
	cmpnlesd	%xmm0, %xmm3
	andpd	%xmm4, %xmm3
	subsd	%xmm3, %xmm1
	orpd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
.L8:
	cvttsd2sil	%xmm0, %eax
	movl	$1, %esi
	movl	$2, %ecx
	leal	1(%rax), %edi
	cmpl	$1, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L12
	addl	%ecx, %esi
	cmpl	%ecx, %eax
	leal	(%rsi,%rax), %edx
	cmovne	%edx, %esi
.L12:
	addl	$1, %ecx
	cmpl	%ecx, %edi
	jne	.L13
	cmpl	%esi, %ebx
	je	.L24
.L10:
	cmpl	%esi, %ebx
	jg	.L7
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	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
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L21:
	call	sqrt@PLT
	jmp	.L6
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1127219200
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.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"
.LC5:
	.string	"deficient number"
.LC6:
	.string	"perfect number"
.LC7:
	.string	"abundant number"
	.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	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L3
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L21
	sqrtsd	%xmm0, %xmm0
.L6:
	cmpl	$1, %ebx
	je	.L7
	movsd	.LC3(%rip), %xmm2
	movsd	.LC2(%rip), %xmm6
	movapd	%xmm0, %xmm1
	andpd	%xmm2, %xmm1
	ucomisd	%xmm1, %xmm6
	jbe	.L8
	cvttsd2siq	%xmm0, %rax
	pxor	%xmm1, %xmm1
	movsd	.LC4(%rip), %xmm4
	andnpd	%xmm0, %xmm2
	cvtsi2sdq	%rax, %xmm1
	movapd	%xmm1, %xmm3
	cmpnlesd	%xmm0, %xmm3
	andpd	%xmm4, %xmm3
	subsd	%xmm3, %xmm1
	orpd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
.L8:
	cvttsd2sil	%xmm0, %eax
	movl	$1, %esi
	movl	$2, %ecx
	leal	1(%rax), %edi
	cmpl	$1, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L12
	addl	%ecx, %esi
	cmpl	%ecx, %eax
	leal	(%rsi,%rax), %edx
	cmovne	%edx, %esi
.L12:
	addl	$1, %ecx
	cmpl	%ecx, %edi
	jne	.L13
	cmpl	%esi, %ebx
	je	.L24
.L10:
	cmpl	%esi, %ebx
	jg	.L7
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	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
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L21:
	call	sqrt@PLT
	jmp	.L6
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1127219200
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.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"
.LC5:
	.string	"deficient number"
.LC6:
	.string	"perfect number"
.LC7:
	.string	"abundant number"
	.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	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L3
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L21
	sqrtsd	%xmm0, %xmm0
.L6:
	cmpl	$1, %ebx
	je	.L7
	movsd	.LC3(%rip), %xmm2
	movsd	.LC2(%rip), %xmm6
	movapd	%xmm0, %xmm1
	andpd	%xmm2, %xmm1
	ucomisd	%xmm1, %xmm6
	jbe	.L8
	cvttsd2siq	%xmm0, %rax
	pxor	%xmm1, %xmm1
	movsd	.LC4(%rip), %xmm4
	andnpd	%xmm0, %xmm2
	cvtsi2sdq	%rax, %xmm1
	movapd	%xmm1, %xmm3
	cmpnlesd	%xmm0, %xmm3
	andpd	%xmm4, %xmm3
	subsd	%xmm3, %xmm1
	orpd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
.L8:
	cvttsd2sil	%xmm0, %eax
	movl	$1, %esi
	movl	$2, %ecx
	leal	1(%rax), %edi
	cmpl	$1, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L12
	addl	%ecx, %esi
	cmpl	%ecx, %eax
	leal	(%rsi,%rax), %edx
	cmovne	%edx, %esi
.L12:
	addl	$1, %ecx
	cmpl	%ecx, %edi
	jne	.L13
	cmpl	%esi, %ebx
	je	.L24
.L10:
	cmpl	%esi, %ebx
	jg	.L7
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	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
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L21:
	call	sqrt@PLT
	jmp	.L6
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1127219200
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.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 main(void) { 
  int num; 
  
  while(1){
      scanf("%d",&num);
      if(num == 0) {
          break;
      }
      
      int i;
      int divPlus = 1;
      
      int med = floor(sqrt(num));
      
      if(num == 1) {
          printf("deficient number\n");
      } else {
          for(i = 2; i <= med; i++){
              if(num%i == 0) {
                  divPlus+= i;
                  int quot = num / i;
                  if(i != quot) {
                      divPlus+= (num/i);
                  }
            }
          }
          if(divPlus == num) {
          printf("perfect number\n");
      }else if(divPlus < num) {
          printf("deficient number\n");
      } else {
          printf("abundant number\n");
        }
      }
      
  }
  
  return 0;
  
} ```
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 main(void) { 
  int num; 
  
  while(1){
      scanf("%d",&num);
      if(num == 0) {
          break;
      }
      
      int i;
      int divPlus = 1;
      
      int med = floor(sqrt(num));
      
      if(num == 1) {
          printf("deficient number\n");
      } else {
          for(i = 2; i <= med; i++){
              if(num%i == 0) {
                  divPlus+= i;
                  int quot = num / i;
                  if(i != quot) {
                      divPlus+= (num/i);
                  }
            }
          }
          if(divPlus == num) {
          printf("perfect number\n");
      }else if(divPlus < num) {
          printf("deficient number\n");
      } else {
          printf("abundant number\n");
        }
      }
      
  }
  
  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:

1
2
3
4
6
12
16
28
33550336
99999998
99999999
100001000
0
 1
2
5
4
6
12
16
28
820514
99999998
99999999
100001100
0
 1
2
5
4
6
12
18
28
820514
99999998
99999999
100001100
0
 1
1
5
0
6
12
16
28
33550336
99999998
99999999
100001100
0
 1
1
5
4
6
12
18
4
820514
99999998
99999999
100001100
0
 1
2
3
6
6
12
29
28
33550336
99999998
99999999
100001000
0
 1
1
5
4
6
12
18
4
820514
99999998
699564
100001100
0
 1
2
3
6
6
12
29
28
27350355
99999998
99999999
100001000
0
 1
2
5
3
7
12
16
28
33550336
119648219
124798312
100001000
0
 1
2
1
3
6
12
16
28
256736
48969127
99999999
100001100
0

deficient number
deficient number
deficient number
deficient number
perfect number
abundant number
deficient number
perfect number
perfect number
deficient number
deficient number
abundant number
 deficient number
deficient number
deficient number
deficient number
perfect number
abundant number
deficient number
perfect number
deficient number
deficient number
deficient number
abundant number
 deficient number
deficient number
deficient number
deficient number
perfect number
abundant number
abundant number
perfect number
deficient number
deficient number
deficient number
abundant number
 deficient number
deficient number
deficient number
 deficient number
deficient number
deficient number
deficient number
perfect number
abundant number
abundant number
deficient number
deficient number
deficient number
deficient number
abundant number
 deficient number
deficient number
deficient number
perfect number
perfect number
abundant number
deficient number
perfect number
perfect number
deficient number
deficient number
abundant number
 deficient number
deficient number
deficient number
deficient number
perfect number
abundant number
abundant number
deficient number
deficient number
deficient number
abundant number
abundant number
 deficient number
deficient number
deficient number
perfect number
perfect number
abundant number
deficient number
perfect number
deficient number
deficient number
deficient number
abundant number
 deficient number
deficient number
deficient number
deficient number
deficient number
abundant number
deficient number
perfect number
perfect number
deficient number
deficient number
abundant number
 deficient number
deficient number
deficient number
deficient number
perfect number
abundant number
deficient number
perfect number
abundant number
deficient number
deficient number
abundant number

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 main(void) { 
  int num; 
  
  while(1){
      scanf("%d",&num);
      if(num == 0) {
          break;
      }
      
      int i;
      int divPlus = 1;
      
      int med = floor(sqrt(num));
      
      if(num == 1) {
          printf("deficient number\n");
      } else {
          for(i = 2; i <= med; i++){
              if(num%i == 0) {
                  divPlus+= i;
                  int quot = num / i;
                  if(i != quot) {
                      divPlus+= (num/i);
                  }
            }
          }
          if(divPlus == num) {
          printf("perfect number\n");
      }else if(divPlus < num) {
          printf("deficient number\n");
      } else {
          printf("abundant number\n");
        }
      }
      
  }
  
  return 0;
  
} ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC5:
	.string	"deficient number"
.LC6:
	.string	"perfect number"
.LC7:
	.string	"abundant number"
	.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	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L3
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L21
	sqrtsd	%xmm0, %xmm0
.L6:
	cmpl	$1, %ebx
	je	.L7
	movsd	.LC3(%rip), %xmm2
	movsd	.LC2(%rip), %xmm6
	movapd	%xmm0, %xmm1
	andpd	%xmm2, %xmm1
	ucomisd	%xmm1, %xmm6
	jbe	.L8
	cvttsd2siq	%xmm0, %rax
	pxor	%xmm1, %xmm1
	movsd	.LC4(%rip), %xmm4
	andnpd	%xmm0, %xmm2
	cvtsi2sdq	%rax, %xmm1
	movapd	%xmm1, %xmm3
	cmpnlesd	%xmm0, %xmm3
	andpd	%xmm4, %xmm3
	subsd	%xmm3, %xmm1
	orpd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
.L8:
	cvttsd2sil	%xmm0, %eax
	movl	$1, %esi
	movl	$2, %ecx
	leal	1(%rax), %edi
	cmpl	$1, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L12
	addl	%ecx, %esi
	cmpl	%ecx, %eax
	leal	(%rsi,%rax), %edx
	cmovne	%edx, %esi
.L12:
	addl	$1, %ecx
	cmpl	%ecx, %edi
	jne	.L13
	cmpl	%esi, %ebx
	je	.L24
.L10:
	cmpl	%esi, %ebx
	jg	.L7
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	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
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L21:
	call	sqrt@PLT
	jmp	.L6
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1127219200
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.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"
.LC5:
	.string	"deficient number"
.LC6:
	.string	"perfect number"
.LC7:
	.string	"abundant number"
	.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	.LC5(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L3
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L21
	sqrtsd	%xmm0, %xmm0
.L6:
	cmpl	$1, %ebx
	je	.L7
	movsd	.LC3(%rip), %xmm2
	movsd	.LC2(%rip), %xmm6
	movapd	%xmm0, %xmm1
	andpd	%xmm2, %xmm1
	ucomisd	%xmm1, %xmm6
	jbe	.L8
	cvttsd2siq	%xmm0, %rax
	pxor	%xmm1, %xmm1
	movsd	.LC4(%rip), %xmm4
	andnpd	%xmm0, %xmm2
	cvtsi2sdq	%rax, %xmm1
	movapd	%xmm1, %xmm3
	cmpnlesd	%xmm0, %xmm3
	andpd	%xmm4, %xmm3
	subsd	%xmm3, %xmm1
	orpd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
.L8:
	cvttsd2sil	%xmm0, %eax
	movl	$1, %esi
	movl	$2, %ecx
	leal	1(%rax), %edi
	cmpl	$1, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L12
	addl	%ecx, %esi
	cmpl	%ecx, %eax
	leal	(%rsi,%rax), %edx
	cmovne	%edx, %esi
.L12:
	addl	$1, %ecx
	cmpl	%ecx, %edi
	jne	.L13
	cmpl	%esi, %ebx
	je	.L24
.L10:
	cmpl	%esi, %ebx
	jg	.L7
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	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
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L2
.L21:
	call	sqrt@PLT
	jmp	.L6
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1127219200
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.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:
```