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    L65
L142:
  lea    D64(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
L106:
  mov    0x348(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L105
  add    $0x358,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L65:
  jle    L41
  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    D55(%rip),%r12
  lea    D72(%rip),%r15
  lea    D38(%rip),%r14
  jmp    L131
  nop
L141:
  cmp    $0x1,%ebx
  jle    L142
  mov    0x0(%rbp),%rdi
  mov    %r15,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L110
  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
L110:
  mov    0x0(%rbp),%rdi
  mov    %r14,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L124
  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
L124:
  mov    0x0(%rbp),%rdi
  lea    D51(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L7
  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
L7:
  mov    0x0(%rbp),%rdi
  lea    D41(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L69
  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
L69:
  add    $0x8,%rbp
  cmp    0x8(%rsp),%rbp
  je     L63
L131:
  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    L141
  movsd  (%rsp),%xmm1
  movslq %ebx,%rax
  add    $0x8,%rbp
  add    $0x1,%ebx
  movsd  %xmm1,0x20(%rsp,%rax,8)
  cmp    0x8(%rsp),%rbp
  jne    L131
L63:
  sub    $0x1,%ebx
  je     L146
L41:
  lea    D64(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  jmp    L106
L146:
  movsd  0x20(%rsp),%xmm0
  lea    D43(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  xor    %eax,%eax
  jmp    L106
L105:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D64
type_guessed: string
name: unpack_data
arguments: tag: D55
type_guessed: string
name: unpack_data
arguments: tag: D72
type_guessed: string
name: unpack_data
arguments: tag: D38
type_guessed: string
name: unpack_data
arguments: tag: D51
type_guessed: string
name: unpack_data
arguments: tag: D41
type_guessed: string
name: unpack_data
arguments: tag: D43
type_guessed: string

tool: D64: input para error.

tool: 

tool: D72: +

tool: D38: -

tool: D51: .

tool: D41: /

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