user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D51(%rip),%rdi
  lea    D55(%rip),%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    D32(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D66(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D9(%rip),%rbp
  lea    D63(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D49(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rsp,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm0
  mov    $0x1,%edi
  lea    D74(%rip),%rbp
  call   <balanceCalculator@plt>
  mov    $0x1,%esi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  mov    (%rsp),%ecx
  mov    %esi,%eax
  cltd
  idiv   %ecx
  test   %eax,%eax
  jle    L24
  mov    $0x1,%ebx
  nopw   0x0(%rax,%rax,1)
L1:
  mov    %ecx,%edi
  imul   %ebx,%edi
  cmp    $0x1,%edi
  je     L3
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm0
  call   <balanceCalculator@plt>
  mov    (%rsp),%esi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  imul   %ebx,%esi
  call   <printf@plt>
  mov    (%rsp),%ecx
  mov    0x4(%rsp),%esi
L3:
  mov    %esi,%eax
  add    $0x1,%ebx
  cltd
  idiv   %ecx
  cmp    %ebx,%eax
  jge    L1
L24:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D51
type_guessed: string
name: retrieve_data
arguments: data_tag: D55
type_guessed: string
name: retrieve_data
arguments: data_tag: D32
type_guessed: string
name: retrieve_data
arguments: data_tag: D66
type_guessed: string
name: retrieve_data
arguments: data_tag: D9
type_guessed: string
name: retrieve_data
arguments: data_tag: D63
type_guessed: string
name: retrieve_data
arguments: data_tag: D49
type_guessed: string
name: retrieve_data
arguments: data_tag: D74
type_guessed: string

tool: D51: Interest calculation program.

tool: D55: %lf

tool: D32: Starting balance? 

tool: D66: Annual interest rate percentage? 

tool: D9: %d

tool: D63: Calculate for ? years: 

tool: D49: print every ? years balance: 

tool: D74: Year %-3d  |  balance %10g


assistant: ```c
int main(int argc, const char *argv[]) {
  int N, toNYearLater;
  double start, rate, yearRate;
  printf("Interest calculation program.\n");
  printf("Starting balance? ");
  scanf("%lf", &start);
  printf("Annual interest rate percentage? ");
  scanf("%lf", &rate);
  yearRate = (1 + 0.01 * rate);
  printf("Calculate for ? years: ");
  scanf("%d", &toNYearLater);
  printf("print every ? years balance: ");
  scanf("%d", &N);
  printf("Year %-3d  |  balance %10g\n", 1, balanceCalculator(1, start, rate));
  for (int i = 1; i <= toNYearLater / N; i++) {
    if ((i * N) == 1)
      continue;
    printf("Year %-3d  |  balance %10g\n", i * N, balanceCalculator(i * N, start, rate));
  }
  return 0;
}
```