user: 请将以下的汇编代码转换成C语言代码：

```asm
<main_double>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %edi,%ebx
  lea    D57(%rip),%rdi
  sub    $0x28,%rsp
  call   <puts@plt>
  cmp    $0x1,%ebx
  jle    L12
  lea    -0x2(%rbx),%eax
  pxor   %xmm3,%xmm3
  lea    0x8(%rbp),%r12
  lea    0x10(%rbp,%rax,8),%rax
  movsd  %xmm3,0x8(%rsp)
  lea    D27(%rip),%r15
  mov    %rax,0x18(%rsp)
  lea    D76(%rip),%r14
  lea    D1(%rip),%r13
  lea    D42(%rip),%rbp
  lea    D32(%rip),%rbx
  nopw   0x0(%rax,%rax,1)
L4:
  mov    (%r12),%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x8,%r12
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm2
  mov    -0x8(%r12),%rdi
  xor    %esi,%esi
  movsd  %xmm2,0x10(%rsp)
  call   <strtod@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  cvttsd2si %xmm0,%esi
  movsd  %xmm0,0x8(%rsp)
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm0
  mov    %r13,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  0x10(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D41(%rip),%rdi
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm1
  addsd  0x10(%rsp),%xmm1
  mov    %rbp,%rdi
  mov    $0x1,%eax
  movapd %xmm1,%xmm0
  call   <printf@plt>
  movsd  0x10(%rsp),%xmm2
  subsd  0x8(%rsp),%xmm2
  mov    %rbx,%rdi
  mov    $0x1,%eax
  movapd %xmm2,%xmm0
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm0
  mulsd  0x10(%rsp),%xmm0
  lea    D75(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  0x10(%rsp),%xmm2
  mov    $0x1,%eax
  divsd  0x8(%rsp),%xmm2
  lea    D6(%rip),%rdi
  movapd %xmm2,%xmm0
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  cmp    0x18(%rsp),%r12
  jne    L4
L12:
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D57
type: string
name: retrieve_data
arguments: data_tag: D27
type: string
name: retrieve_data
arguments: data_tag: D76
type: string
name: retrieve_data
arguments: data_tag: D1
type: string
name: retrieve_data
arguments: data_tag: D42
type: string
name: retrieve_data
arguments: data_tag: D32
type: string
name: retrieve_data
arguments: data_tag: D41
type: string
name: retrieve_data
arguments: data_tag: D75
type: string
name: retrieve_data
arguments: data_tag: D6
type: string

tool: D57: double

tool: D27: val str: %s


tool: D76: val int: %d


tool: D1: val flt: %.9f


tool: D42: +: %.9f


tool: D32: -: %.9f


tool: D41: last: %.9f


tool: D75: *: %.9f


tool: D6: /: %.9f


assistant: ```c
int main_double(int argc, char *argv[]) {
  int i;
  double last = 0.0;
  double x;
  printf("double\n");
  for (i = 1; i < argc; ++i) {
    printf("val str: %s\n", argv[i]);
    x = strtod(argv[i], 0);
    printf("val int"
           ": %d\n",
           (int)(x));
    printf("val flt"
           ": %."
           "9"
           "f\n",
           (double)(x));
    printf("last"
           ": %."
           "9"
           "f\n",
           (double)(last));
    printf("+"
           ": %."
           "9"
           "f\n",
           (double)(last + x));
    printf("-"
           ": %."
           "9"
           "f\n",
           (double)(last - x));
    printf("*"
           ": %."
           "9"
           "f\n",
           (double)(last * x));
    printf("/"
           ": %."
           "9"
           "f\n",
           (double)(last / x));
    printf("\n");
    last = x;
  }
  return 0;
}
```