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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x29(%rbp),%rdx
  lea    -0x2a(%rbp),%rax
  mov    %rax,%rsi
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    -0x18(%rbp),%rcx
  lea    -0x28(%rbp),%rdx
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl -0x2a(%rbp),%eax
  cmp    $0x43,%al
  jne    L35
  movzbl -0x29(%rbp),%eax
  cmp    $0x46,%al
  jne    L35
  lea    D71(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L30
L61:
  movsd  -0x20(%rbp),%xmm1
  movsd  D20(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D138(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  D34(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x20(%rbp),%rax
  movsd  -0x10(%rbp),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D131(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movsd  -0x20(%rbp),%xmm1
  movsd  -0x18(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
L30:
  movsd  -0x28(%rbp),%xmm1
  movsd  D7(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x20(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jae    L61
  jmp    L16
L35:
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L10
L9:
  movsd  -0x20(%rbp),%xmm0
  movsd  D34(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D138(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D20(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x20(%rbp),%rax
  movsd  -0x10(%rbp),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D131(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movsd  -0x20(%rbp),%xmm1
  movsd  -0x18(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
L10:
  movsd  -0x28(%rbp),%xmm1
  movsd  D7(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x20(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jae    L9
L16:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L38
  call   <__stack_chk_fail@plt>
L38:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D104
data_type: string
name: retrieve_data
arguments: data_tag: D55
data_type: string
name: retrieve_data
arguments: data_tag: D71
data_type: string
name: retrieve_data
arguments: data_tag: D20
data_type: byte[8]
name: retrieve_data
arguments: data_tag: D138
data_type: byte[8]
name: retrieve_data
arguments: data_tag: D34
data_type: byte[8]
name: retrieve_data
arguments: data_tag: D131
data_type: string
name: retrieve_data
arguments: data_tag: D7
data_type: f64
name: retrieve_data
arguments: data_tag: D84
data_type: string

tool: D104: %c->%c

tool: D55: %lf%lf%lf

tool: D71:    C  ->    F

tool: {"D20": [0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x40]}

tool: {"D138": [0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x40]}

tool: {"D34": [0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x40]}

tool: D131: %5.1lf ->%6.1lf


tool: D7: 0.01

tool: D84:    F  ->    C

assistant: ```c
int main() {
  double h, l, a, b, d;
  char c, f;
  scanf("%c->%c", &c, &f);
  scanf("%lf%lf%lf", &l, &h, &a);
  if (c == 'C' && f == 'F') {
    printf("   C  ->    F\n");
    for (; l <= h + 0.01; l = l + a) {
      b = 9 * l / 5 + 32;
      printf("%5.1lf ->%6.1lf\n", l, b);
    }
  } else {
    printf("   F  ->    C\n");
    for (; l <= h + 0.01; l = l + a) {
      b = (l - 32) * 5 / 9;
      printf("%5.1lf ->%6.1lf\n", l, b);
    }
  }
  return 0;
}
```