user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    D72(%rip),%rdi
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  lea    D5(%rip),%rbx
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D14(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D27(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%ebp
  lea    0x10(%rsp),%r14
  lea    0x38(%rsp),%r15
  mov    %r14,%rbx
  lea    D92(%rip),%r13
  mov    D32(%rip),%r12
L13:
  mov    %ebp,%esi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebp
  mov    %r12,(%rbx)
  add    $0x8,%rbx
  cmp    %r15,%rbx
  jne    L13
  mov    $0xa,%edi
  call   <putchar@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L55
  mov    $0x1,%r13d
  lea    D63(%rip),%r15
  lea    D59(%rip),%r12
  jmp    L76
L64:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%r13d
  cmp    %r13d,0xc(%rsp)
  jl     L55
L76:
  mov    %r13d,%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r14,%rbp
  mov    $0x0,%ebx
L15:
  mov    %rbp,%rdx
  movsd  0x0(%rbp),%xmm0
  mov    %ebx,%eax
  add    0x8(%rsp),%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  divsd  D32(%rip),%xmm2
  divsd  D13(%rip),%xmm2
  mov    $0xc,%eax
L5:
  movapd %xmm2,%xmm1
  mulsd  %xmm0,%xmm1
  addsd  %xmm1,%xmm0
  sub    $0x1,%eax
  jne    L5
  movsd  %xmm0,(%rdx)
  mov    %r12,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  add    $0x8,%rbp
  cmp    $0x5,%ebx
  jne    L15
  jmp    L64
L55:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L70
  mov    $0x0,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L70:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D72
type_guessed: string
name: retrieve_data
arguments: tag: D5
type_guessed: string
name: retrieve_data
arguments: tag: D14
type_guessed: string
name: retrieve_data
arguments: tag: D27
type_guessed: string
name: retrieve_data
arguments: tag: D92
type_guessed: string
name: retrieve_data
arguments: tag: D32
type_guessed: f64
name: retrieve_data
arguments: tag: D63
type_guessed: string
name: retrieve_data
arguments: tag: D59
type_guessed: string
name: retrieve_data
arguments: tag: D13
type_guessed: f64

tool: D72: Enter interest rate: 

tool: D5: %d

tool: D14: Enter number of years: 

tool: D27: 
Years

tool: D92: %6d%%

tool: D32: 100

tool: D63: %3d	

tool: D59: %7.2f

tool: D13: 12

assistant: ```c
int main(void) {
  int rate, higher_rate, num_years;
  double value[5];
  printf("Enter interest rate: ");
  scanf("%d", &rate);
  printf("Enter number of years: ");
  scanf("%d", &num_years);
  printf("\nYears");
  higher_rate = rate;
  for (int i = 0; i < ((int)(sizeof(value) / sizeof(value[0]))); i += 1) {
    printf("%6d%%", higher_rate);
    higher_rate += 1;
    value[i] = 100.00;
  }
  printf("\n");
  for (int year = 1; year <= num_years; year += 1) {
    printf("%3d\t", year);
    for (int i = 0; i < ((int)(sizeof(value) / sizeof(value[0]))); i += 1) {
      for (int j = 0; j < 12; j += 1) {
        value[i] += (rate + i) / 100.0 / 12.0 * value[i];
      }
      printf("%7.2f", value[i]);
    }
    printf("\n");
  }
  return 0;
}
```