user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x370,%rsp
  mov    %edi,-0x364(%rbp)
  mov    %rsi,-0x370(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D73(%rip),%rax
  mov    %rax,-0x348(%rbp)
  movl   $0x0,-0x358(%rbp)
  cmpl   $0x1,-0x364(%rbp)
  jne    L65
  lea    D86(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L39
L65:
  movl   $0x1,-0x354(%rbp)
  jmp    L72
L118:
  mov    -0x354(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x370(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    -0x350(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtod@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x340(%rbp)
  mov    -0x350(%rbp),%rax
  mov    -0x348(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L86
  mov    -0x358(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x358(%rbp)
  cltq
  movsd  -0x340(%rbp),%xmm0
  movsd  %xmm0,-0x330(%rbp,%rax,8)
  jmp    L91
L86:
  cmpl   $0x1,-0x358(%rbp)
  jg     L111
  lea    D86(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L39
L111:
  mov    -0x354(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x370(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    D88(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L71
  subl   $0x1,-0x358(%rbp)
  mov    -0x358(%rbp),%eax
  cltq
  movsd  -0x330(%rbp,%rax,8),%xmm0
  movsd  %xmm0,-0x338(%rbp)
  subl   $0x1,-0x358(%rbp)
  mov    -0x358(%rbp),%eax
  cltq
  movsd  -0x330(%rbp,%rax,8),%xmm0
  movsd  %xmm0,-0x340(%rbp)
  mov    -0x358(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x358(%rbp)
  movsd  -0x340(%rbp),%xmm0
  addsd  -0x338(%rbp),%xmm0
  cltq
  movsd  %xmm0,-0x330(%rbp,%rax,8)
L71:
  mov    -0x354(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x370(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    D40(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L114
  subl   $0x1,-0x358(%rbp)
  mov    -0x358(%rbp),%eax
  cltq
  movsd  -0x330(%rbp,%rax,8),%xmm0
  movsd  %xmm0,-0x338(%rbp)
  subl   $0x1,-0x358(%rbp)
  mov    -0x358(%rbp),%eax
  cltq
  movsd  -0x330(%rbp,%rax,8),%xmm0
  movsd  %xmm0,-0x340(%rbp)
  mov    -0x358(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x358(%rbp)
  movsd  -0x340(%rbp),%xmm0
  subsd  -0x338(%rbp),%xmm0
  cltq
  movsd  %xmm0,-0x330(%rbp,%rax,8)
L114:
  mov    -0x354(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x370(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    D83(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L23
  subl   $0x1,-0x358(%rbp)
  mov    -0x358(%rbp),%eax
  cltq
  movsd  -0x330(%rbp,%rax,8),%xmm0
  movsd  %xmm0,-0x338(%rbp)
  subl   $0x1,-0x358(%rbp)
  mov    -0x358(%rbp),%eax
  cltq
  movsd  -0x330(%rbp,%rax,8),%xmm0
  movsd  %xmm0,-0x340(%rbp)
  mov    -0x358(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x358(%rbp)
  movsd  -0x340(%rbp),%xmm0
  mulsd  -0x338(%rbp),%xmm0
  cltq
  movsd  %xmm0,-0x330(%rbp,%rax,8)
L23:
  mov    -0x354(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x370(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    D43(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L91
  subl   $0x1,-0x358(%rbp)
  mov    -0x358(%rbp),%eax
  cltq
  movsd  -0x330(%rbp,%rax,8),%xmm0
  movsd  %xmm0,-0x338(%rbp)
  subl   $0x1,-0x358(%rbp)
  mov    -0x358(%rbp),%eax
  cltq
  movsd  -0x330(%rbp,%rax,8),%xmm0
  movsd  %xmm0,-0x340(%rbp)
  mov    -0x358(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x358(%rbp)
  movsd  -0x340(%rbp),%xmm0
  divsd  -0x338(%rbp),%xmm0
  cltq
  movsd  %xmm0,-0x330(%rbp,%rax,8)
L91:
  addl   $0x1,-0x354(%rbp)
L72:
  mov    -0x354(%rbp),%eax
  cmp    -0x364(%rbp),%eax
  jl     L118
  cmpl   $0x1,-0x358(%rbp)
  jne    L20
  mov    -0x330(%rbp),%rax
  movq   %rax,%xmm0
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L129
L20:
  lea    D86(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L129:
  mov    $0x0,%eax
L39:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L6
  call   <__stack_chk_fail@plt>
L6:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D73
type_infered: string
name: disassemble_data
arguments: label: D86
type_infered: string
name: disassemble_data
arguments: label: D88
type_infered: string
name: disassemble_data
arguments: label: D40
type_infered: string
name: disassemble_data
arguments: label: D83
type_infered: string
name: disassemble_data
arguments: label: D43
type_infered: string
name: disassemble_data
arguments: label: D30
type_infered: string

tool: 

tool: D86: input para error.

tool: D88: +

tool: D40: -

tool: D83: .

tool: D43: /

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