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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x10(%rbp),%rcx
  lea    -0x18(%rbp),%rdx
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movsd  -0x20(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L175
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  je     L93
L175:
  movsd  -0x18(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L186
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  je     L93
L186:
  movsd  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L3
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jne    L3
L93:
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L71
L3:
  movsd  -0x20(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L12
  movsd  -0x18(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L12
  movsd  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L12
  lea    D78(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L71
L12:
  movsd  -0x20(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jbe    L92
  movsd  -0x18(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jbe    L92
  movsd  -0x10(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jbe    L92
  lea    D73(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L71
L92:
  movsd  -0x20(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  seta   %dl
  movsd  -0x18(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  seta   %al
  xor    %edx,%eax
  test   %al,%al
  je     L105
  movsd  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L105
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L71
L105:
  movsd  -0x20(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L129
  movsd  -0x18(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  seta   %dl
  movsd  -0x10(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  seta   %al
  xor    %edx,%eax
  test   %al,%al
  je     L129
  lea    D73(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L71
L129:
  lea    D78(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L71:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L77
  call   <__stack_chk_fail@plt>
L77:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D41
type_infered: string
name: retrieve_data
arguments: data_label: D48
type_infered: string
name: retrieve_data
arguments: data_label: D76
type_infered: string
name: retrieve_data
arguments: data_label: D78
type_infered: string
name: retrieve_data
arguments: data_label: D73
type_infered: string
name: retrieve_data
arguments: data_label: D47
type_infered: string

tool: D41: Enter a, b and c, seperated by space: 

tool: D48: %lf %lf %lf

tool: D76: 0


tool: D78: +


tool: D73: -


tool: D47: -

assistant: ```c
int main() {
  double a, b, c;
  printf("Enter a, b and c, seperated by space: ");
  scanf("%lf %lf %lf", &a, &b, &c);
  if (a == 0 || b == 0 || c == 0) {
    printf("0\n");
  } else if (a > 0 && b > 0 && c > 0) {
    printf("+\n");
  } else if (a < 0 && b < 0 && c < 0) {
    printf("-\n");
  } else if ((a < 0 ^ b < 0) && c > 0) {
    printf("-");
  } else if (a > 0 && (b < 0 ^ c < 0)) {
    printf("-\n");
  } else {
    printf("+\n");
  }
  return 0;
}
```