user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x1c(%rbp)
L14:
  lea    D166(%rip),%rax
  mov    %rax,%rdi
  call   <system@plt>
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D134(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D93(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D123(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D148(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x1c(%rbp),%eax
  cmp    $0x2,%eax
  je     L60
  cmp    $0x2,%eax
  jg     L35
  test   %eax,%eax
  je     L32
  cmp    $0x1,%eax
  je     L25
  jmp    L35
L32:
  mov    $0x0,%edi
  call   <exit@plt>
L25:
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D142(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  -0x18(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D41(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0xc(%rbp)
  pxor   %xmm3,%xmm3
  cvtss2sd -0xc(%rbp),%xmm3
  movq   %xmm3,%rax
  movq   %rax,%xmm0
  lea    D153(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L43
L60:
  lea    D144(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D142(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  -0x14(%rbp),%xmm0
  movss  D115(%rip),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  movss  D116(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  D32(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  pxor   %xmm4,%xmm4
  cvtss2sd -0x10(%rbp),%xmm4
  movq   %xmm4,%rax
  movq   %rax,%xmm0
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L43
L35:
  lea    D158(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
L43:
  mov    $0x0,%eax
  call   <_getch@plt>
  mov    -0x1c(%rbp),%eax
  test   %eax,%eax
  jne    L14
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L86
  call   <__stack_chk_fail@plt>
L86:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D166
data_type: string
name: parse_data
arguments: label: D50
data_type: string
name: parse_data
arguments: label: D134
data_type: string
name: parse_data
arguments: label: D93
data_type: string
name: parse_data
arguments: label: D123
data_type: string
name: parse_data
arguments: label: D148
data_type: string
name: parse_data
arguments: label: D53
data_type: string
name: parse_data
arguments: label: D142
data_type: string
name: parse_data
arguments: label: D41
data_type: f64
name: parse_data
arguments: label: D153
data_type: string
name: parse_data
arguments: label: D144
data_type: string
name: parse_data
arguments: label: D115
data_type: byte[4]
name: parse_data
arguments: label: D116
data_type: byte[4]
name: parse_data
arguments: label: D32
data_type: byte[4]
name: parse_data
arguments: label: D15
data_type: string
name: parse_data
arguments: label: D158
data_type: string

tool: D166: cls

tool: D50: 0-Exit

tool: D134: 1-Area

tool: D93: 2-Temp

tool: D123: please choose : 

tool: D148: %d

tool: D53: enter r 

tool: D142: %f

tool: D41: 3.14

tool: D153: 
Area is %f 

tool: D144: enter tf 

tool: {"D115": [0x00,0x00,0x00,0x42]}

tool: {"D116": [0x00,0x00,0xa0,0x40]}

tool: {"D32": [0x00,0x00,0x10,0x41]}

tool: D15: 
tc is %f 

tool: D158: error

assistant: ```c
int main() {
  int iAns = 0;
  float a, r;
  float tf, tc;
  do {
    system("cls");
    printf("0-Exit\n");
    printf("1-Area\n");
    printf("2-Temp\n");
    printf("please choose : ");
    scanf("%d", &iAns);
    switch (iAns) {
    case 0:
      exit(0);
    case 1:
      printf("enter r ");
      scanf("%f", &r);
      a = 3.14 * r * r;
      printf("\nArea is %f ", a);
      break;
    case 2:
      printf("enter tf ");
      scanf("%f", &tf);
      tc = (5 * (tf - 32)) / 9;
      printf("\ntc is %f ", tc);
      break;
    default:
      printf("error\n");
      break;
    }
    _getch();
  } while (iAns != 0);
  return 0;
}
```