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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x358,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x348(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jne    L127
L60:
  lea    D38(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
L134:
  mov    0x348(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L35
  add    $0x358,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L127:
  jle    L23
  lea    -0x2(%rdi),%eax
  lea    0x8(%rsi),%rbp
  xor    %ebx,%ebx
  lea    0x10(%rsi,%rax,8),%rax
  lea    0x18(%rsp),%r13
  mov    %rax,0x8(%rsp)
  lea    D63(%rip),%r12
  lea    D46(%rip),%r15
  lea    D11(%rip),%r14
  jmp    L11
  nop
L118:
  cmp    $0x1,%ebx
  jle    L60
  mov    0x0(%rbp),%rdi
  mov    %r15,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L87
  lea    -0x1(%rbx),%eax
  sub    $0x2,%ebx
  movslq %ebx,%rbx
  movslq %eax,%rdx
  movsd  0x20(%rsp,%rdx,8),%xmm0
  addsd  0x20(%rsp,%rbx,8),%xmm0
  movsd  %xmm0,0x20(%rsp,%rbx,8)
  mov    %eax,%ebx
L87:
  mov    0x0(%rbp),%rdi
  mov    %r14,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L126
  lea    -0x1(%rbx),%eax
  sub    $0x2,%ebx
  movslq %ebx,%rbx
  movslq %eax,%rdx
  movsd  0x20(%rsp,%rbx,8),%xmm0
  subsd  0x20(%rsp,%rdx,8),%xmm0
  movsd  %xmm0,0x20(%rsp,%rbx,8)
  mov    %eax,%ebx
L126:
  mov    0x0(%rbp),%rdi
  lea    D41(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L37
  lea    -0x1(%rbx),%eax
  sub    $0x2,%ebx
  movslq %ebx,%rbx
  movslq %eax,%rdx
  movsd  0x20(%rsp,%rdx,8),%xmm0
  mulsd  0x20(%rsp,%rbx,8),%xmm0
  movsd  %xmm0,0x20(%rsp,%rbx,8)
  mov    %eax,%ebx
L37:
  mov    0x0(%rbp),%rdi
  lea    D30(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L91
  lea    -0x1(%rbx),%eax
  sub    $0x2,%ebx
  movslq %ebx,%rbx
  movslq %eax,%rdx
  movsd  0x20(%rsp,%rbx,8),%xmm0
  divsd  0x20(%rsp,%rdx,8),%xmm0
  movsd  %xmm0,0x20(%rsp,%rbx,8)
  mov    %eax,%ebx
L91:
  add    $0x8,%rbp
  cmp    0x8(%rsp),%rbp
  je     L53
L11:
  mov    0x0(%rbp),%rdi
  mov    %r13,%rsi
  call   <strtod@plt>
  mov    0x18(%rsp),%rdi
  mov    %r12,%rsi
  movsd  %xmm0,(%rsp)
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L118
  movsd  (%rsp),%xmm1
  movslq %ebx,%rax
  add    $0x8,%rbp
  add    $0x1,%ebx
  movsd  %xmm1,0x20(%rsp,%rax,8)
  cmp    0x8(%rsp),%rbp
  jne    L11
L53:
  sub    $0x1,%ebx
  je     L132
L23:
  lea    D38(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  jmp    L134
L132:
  movsd  0x20(%rsp),%xmm0
  lea    D35(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  xor    %eax,%eax
  jmp    L134
L35:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D38
type_infered: string
name: retrieve_data
arguments: data_label: D63
type_infered: string
name: retrieve_data
arguments: data_label: D46
type_infered: string
name: retrieve_data
arguments: data_label: D11
type_infered: string
name: retrieve_data
arguments: data_label: D41
type_infered: string
name: retrieve_data
arguments: data_label: D30
type_infered: string
name: retrieve_data
arguments: data_label: D35
type_infered: string

tool: D38: input para error.

tool: 

tool: D46: +

tool: D11: -

tool: D41: .

tool: D30: /

tool: D35: result is %f


assistant: ```c
int main(int argc, char **argv) {
  double num[100];
  char *endp;
  char *blank = "";
  char op;
  int top = 0;
  int i;
  double op1, op2;
  if (argc == 1) {
    printf("input para error.\n");
    return -1;
  }
  for (i = 1; i < argc; ++i) {
    op1 = strtod(argv[i], &endp);
    if (strcmp(endp, blank) == 0) {
      num[top++] = op1;
      continue;
    }
    if (top < 2) {
      printf("input para error.\n");
      return -1;
    }
    if (strcmp(argv[i], "+") == 0) {
      op2 = num[--top];
      op1 = num[--top];
      num[top++] = op1 + op2;
    }
    if (strcmp(argv[i], "-") == 0) {
      op2 = num[--top];
      op1 = num[--top];
      num[top++] = op1 - op2;
    }
    if (strcmp(argv[i], ".") == 0) {
      op2 = num[--top];
      op1 = num[--top];
      num[top++] = op1 * op2;
    }
    if (strcmp(argv[i], "/") == 0) {
      op2 = num[--top];
      op1 = num[--top];
      num[top++] = op1 / op2;
    }
  }
  if (top == 1)
    printf("result is %f\n", num[0]);
  else
    printf("input para error.\n");
  return 0;
}
```