user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  sub    $0xb8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  movabs $0x616320616572410a,%rax
  movabs $0x302e30207620636c,%rdx
  mov    %rax,0x20(%rsp)
  mov    %rdx,0x28(%rsp)
  movabs $0x75203a31090a3a31,%rax
  movabs $0x6174636572206573,%rdx
  mov    %rax,0x30(%rsp)
  mov    %rdx,0x38(%rsp)
  movabs $0x6d2072616c75676e,%rax
  movabs $0x3a32090a2e687461,%rdx
  mov    %rax,0x40(%rsp)
  mov    %rdx,0x48(%rsp)
  movabs $0x786f622065737520,%rax
  movabs $0x6874616d20687369,%rdx
  mov    %rax,0x50(%rsp)
  mov    %rdx,0x58(%rsp)
  movabs $0x7375203a33090a2e,%rax
  movabs $0x6c75637269632065,%rdx
  mov    %rax,0x60(%rsp)
  mov    %rdx,0x68(%rsp)
  movabs $0x2e6874616d207261,%rax
  movabs $0x657375203a34090a,%rdx
  mov    %rax,0x70(%rsp)
  mov    %rdx,0x78(%rsp)
  movabs $0x75676e6169727420,%rax
  movabs $0x6874616d2072616c,%rdx
  mov    %rax,0x80(%rsp)
  mov    %rdx,0x88(%rsp)
  movabs $0x6562203a35090a2e,%rax
  movabs $0x6c7566706c656820,%rdx
  mov    %rax,0x90(%rsp)
  mov    %rdx,0x98(%rsp)
  movw   $0xa,0xa0(%rsp)
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x10(%rsp)
  movl   $0x0,0x14(%rsp)
  movl   $0x0,0x18(%rsp)
  movl   $0x0,0x1c(%rsp)
  lea    D49(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  lea    D127(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x1c(%rsp),%eax
  cmp    $0x1,%eax
  je     L73
  cmp    $0x2,%eax
  je     L88
  cmp    $0x3,%eax
  je     L18
  cmp    $0x4,%eax
  je     L79
  cmp    $0x5,%eax
  je     L60
  lea    0x20(%rsp),%rdi
  call   <puts@plt>
L23:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L34
  mov    $0x0,%eax
  add    $0xb8,%rsp
  ret
L73:
  lea    D105(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rsi
  lea    D54(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd 0x10(%rsp),%xmm1
  mov    $0x2,%eax
  call   <calcRectArea@plt>
  mov    %eax,%esi
  lea    D91(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L23
L88:
  lea    D130(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D122(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  mov    $0x1,%eax
  call   <calcBoxArea@plt>
  mov    %eax,%esi
  lea    D91(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L23
L18:
  lea    D89(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  lea    D122(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0x14(%rsp),%xmm0
  mov    $0x1,%eax
  call   <calcCirArea@plt>
  mov    %eax,%esi
  lea    D91(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L23
L79:
  lea    D13(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rdx
  lea    0x18(%rsp),%rsi
  lea    D54(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0x18(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd 0x10(%rsp),%xmm1
  mov    $0x2,%eax
  call   <calcTriArea@plt>
  mov    %eax,%esi
  lea    D91(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L23
L60:
  lea    0x20(%rsp),%rdi
  call   <puts@plt>
  jmp    L23
L34:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D49
datatype: string
name: retrieve_data
arguments: data_label: D127
datatype: string
name: retrieve_data
arguments: data_label: D105
datatype: string
name: retrieve_data
arguments: data_label: D54
datatype: string
name: retrieve_data
arguments: data_label: D91
datatype: string
name: retrieve_data
arguments: data_label: D130
datatype: string
name: retrieve_data
arguments: data_label: D122
datatype: string
name: retrieve_data
arguments: data_label: D89
datatype: string
name: retrieve_data
arguments: data_label: D13
datatype: string

tool: D49: Enter object: 

tool: D127: %d

tool: D105: Enter length, height: 

tool: D54: %f, %f

tool: D91: Area = %f


tool: D130: Enter length: 

tool: D122: %f

tool: D89: Enter radius: 

tool: D13: Enter base, height: 

assistant: ```c
int main(void) {
  char help[] = "\nArea calc v 0.01:\n\t1: use rectangular math.\n\t2: use boxish math.\n\t3: use circular math.\n\t4: use triangular math.\n\t5: be helpful\n";
  float l, h, r, b;
  int opType;
  l = 0;
  h = 0;
  r = 0;
  b = 0;
  opType = 0;
  printf("Enter object: ");
  scanf("%d", &opType);
  if (opType == 1) {
    printf("Enter length, height: ");
    scanf("%f, %f", &l, &h);
    printf("Area = %f\n", calcRectArea(l, h));
    return 0;
  } else if (opType == 2) {
    printf("Enter length: ");
    scanf("%f", &l);
    printf("Area = %f\n", calcBoxArea(l));
    return 0;
  } else if (opType == 3) {
    printf("Enter radius: ");
    scanf("%f", &r);
    printf("Area = %f\n", calcCirArea(r));
    return 0;
  } else if (opType == 4) {
    printf("Enter base, height: ");
    scanf("%f, %f", &b, &h);
    printf("Area = %f\n", calcTriArea(b, h));
    return 0;
  } else if (opType == 5) {
    printf("%s\n", help);
    return 0;
  } else {
    printf("%s\n", help);
    return 0;
  }
}
```