user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D23(%rip),%rdi
  lea    D50(%rip),%rbp
  push   %rbx
  mov    $0x1,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    D22(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D47(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D15(%rip),%rbp
  lea    D41(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D26(%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    D34(%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    L3
  nopw   0x0(%rax,%rax,1)
L27:
  mov    %ecx,%edi
  imul   %ebx,%edi
  cmp    $0x1,%edi
  je     L10
  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    0x4(%rsp),%esi
  mov    (%rsp),%ecx
L10:
  mov    %esi,%eax
  add    $0x1,%ebx
  cltd
  idiv   %ecx
  cmp    %ebx,%eax
  jge    L27
L3:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D23
type_infered: string
name: parse_data
arguments: data_tag: D50
type_infered: string
name: parse_data
arguments: data_tag: D22
type_infered: string
name: parse_data
arguments: data_tag: D47
type_infered: string
name: parse_data
arguments: data_tag: D15
type_infered: string
name: parse_data
arguments: data_tag: D41
type_infered: string
name: parse_data
arguments: data_tag: D26
type_infered: string
name: parse_data
arguments: data_tag: D34
type_infered: string

tool: D23: Interest calculation program.

tool: D50: %lf

tool: D22: Starting balance? 

tool: D47: Annual interest rate percentage? 

tool: D15: %d

tool: D41: Calculate for ? years: 

tool: D26: print every ? years balance: 

tool: D34: 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;
}
```