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

```asm
<main>:
  endbr64
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    D89(%rip),%rdi
  call   <printf@plt>
  lea    D138(%rip),%rdi
  call   <printf@plt>
  lea    0x3e(%rsp),%rsi
  lea    D169(%rip),%rdi
  call   <scanf@plt>
  lea    D5(%rip),%rdi
  call   <printf@plt>
  cmpb   $0x75,0x3e(%rsp)
  jne    L40
  movw   $0x0,0x20(%rsp)
L29:
  lea    D149(%rip),%rdi
  call   <printf@plt>
  lea    0x3e(%rsp),%rsi
  lea    D169(%rip),%rdi
  call   <scanf@plt>
  lea    D5(%rip),%rdi
  call   <printf@plt>
  cmpb   $0x75,0x3e(%rsp)
  jne    L62
  movw   $0x0,0x22(%rsp)
L76:
  lea    D166(%rip),%rdi
  call   <printf@plt>
  lea    0x3e(%rsp),%rsi
  lea    D169(%rip),%rdi
  call   <scanf@plt>
  lea    D5(%rip),%rdi
  call   <printf@plt>
  cmpb   $0x75,0x3e(%rsp)
  jne    L44
  movw   $0x0,0x24(%rsp)
L63:
  lea    D142(%rip),%rdi
  call   <printf@plt>
  lea    0x3e(%rsp),%rsi
  lea    D169(%rip),%rdi
  call   <scanf@plt>
  lea    D5(%rip),%rdi
  call   <printf@plt>
  cmpb   $0x75,0x3e(%rsp)
  jne    L26
  movw   $0x0,0x26(%rsp)
L30:
  lea    D39(%rip),%rdi
  call   <printf@plt>
  lea    0x3e(%rsp),%rsi
  lea    D169(%rip),%rdi
  call   <scanf@plt>
  lea    D5(%rip),%rdi
  call   <printf@plt>
  cmpb   $0x75,0x3e(%rsp)
  jne    L42
  movw   $0x0,0x28(%rsp)
L120:
  lea    D73(%rip),%rdi
  call   <printf@plt>
  lea    0x3e(%rsp),%rsi
  lea    D169(%rip),%rdi
  call   <scanf@plt>
  lea    D5(%rip),%rdi
  call   <printf@plt>
  cmpb   $0x75,0x3e(%rsp)
  jne    L85
  movw   $0x0,0x2a(%rsp)
L34:
  lea    0x20(%rsp),%rdi
  movss  0x1c(%rsp),%xmm5
  movss  0x18(%rsp),%xmm4
  movss  0x14(%rsp),%xmm3
  movss  0x10(%rsp),%xmm2
  movss  0xc(%rsp),%xmm1
  movss  0x8(%rsp),%xmm0
  call   <chooseEquation@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L65
  mov    $0x0,%eax
  add    $0x58,%rsp
  ret
L40:
  movw   $0x1,0x20(%rsp)
  lea    0x3e(%rsp),%rdi
  call   <atof@plt>
  movss  %xmm0,0x8(%rsp)
  jmp    L29
L62:
  movw   $0x1,0x22(%rsp)
  lea    0x3e(%rsp),%rdi
  call   <atof@plt>
  movss  %xmm0,0xc(%rsp)
  jmp    L76
L44:
  movw   $0x1,0x24(%rsp)
  lea    0x3e(%rsp),%rdi
  call   <atof@plt>
  movss  %xmm0,0x10(%rsp)
  jmp    L63
L26:
  movw   $0x1,0x26(%rsp)
  lea    0x3e(%rsp),%rdi
  call   <atof@plt>
  movss  %xmm0,0x14(%rsp)
  jmp    L30
L42:
  movw   $0x1,0x28(%rsp)
  lea    0x3e(%rsp),%rdi
  call   <atof@plt>
  movss  %xmm0,0x18(%rsp)
  jmp    L120
L85:
  movw   $0x1,0x2a(%rsp)
  lea    0x3e(%rsp),%rdi
  call   <atof@plt>
  movss  %xmm0,0x1c(%rsp)
  jmp    L34
L65:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D89
datatype: string
name: extract_symbolic_data
arguments: data_label: D138
datatype: string
name: extract_symbolic_data
arguments: data_label: D169
datatype: string
name: extract_symbolic_data
arguments: data_label: D5
datatype: string
name: extract_symbolic_data
arguments: data_label: D149
datatype: string
name: extract_symbolic_data
arguments: data_label: D166
datatype: string
name: extract_symbolic_data
arguments: data_label: D142
datatype: string
name: extract_symbolic_data
arguments: data_label: D39
datatype: string
name: extract_symbolic_data
arguments: data_label: D73
datatype: string

tool: D89: If you don't know a value, enter u.


tool: D138: Please enter the acceleration: 

tool: D169: %s

tool: D5: 


tool: D149: Please enter the displacement: 

tool: D166: Please enter the average velocity: 

tool: D142: Please enter the initial velocity: 

tool: D39: Please enter the final velocity: 

tool: D73: Please enter the time: 

assistant: ```c
int main() {
  float a;
  char str[10];
  short u[10];
  printf("If you don't know a value, enter u.\n");
  printf("Please enter the acceleration: ");
  scanf("%s", str);
  printf("\n");
  if (str[0] == 'u') {
    u[0] = 0;
  } else {
    u[0] = 1;
    a = atof(str);
  }
  float x;
  float va;
  float vi;
  float vf;
  float t;
  printf("Please enter the displacement: ");
  scanf("%s", str);
  printf("\n");
  if (str[0] == 'u') {
    u[1] = 0;
  } else {
    u[1] = 1;
    x = atof(str);
  }
  printf("Please enter the average velocity: ");
  scanf("%s", str);
  printf("\n");
  if (str[0] == 'u') {
    u[2] = 0;
  } else {
    u[2] = 1;
    va = atof(str);
  }
  printf("Please enter the initial velocity: ");
  scanf("%s", str);
  printf("\n");
  if (str[0] == 'u') {
    u[3] = 0;
  } else {
    u[3] = 1;
    vi = atof(str);
  }
  printf("Please enter the final velocity: ");
  scanf("%s", str);
  printf("\n");
  if (str[0] == 'u') {
    u[4] = 0;
  } else {
    u[4] = 1;
    vf = atof(str);
  }
  printf("Please enter the time: ");
  scanf("%s", str);
  printf("\n");
  if (str[0] == 'u') {
    u[5] = 0;
  } else {
    u[5] = 1;
    t = atof(str);
  }
  chooseEquation(a, x, va, vi, vf, t, u);
  return 0;
}
```