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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rsi
  lea    D29(%rip),%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  test   %eax,%eax
  je     L160
  lea    D39(%rip),%rbx
  lea    D4(%rip),%rbp
  lea    D5(%rip),%r12
  jmp    L52
L39:
  lea    D25(%rip),%rdi
  call   <printf@plt>
  jmp    L175
L194:
  lea    D1(%rip),%rdi
  call   <printf@plt>
  jmp    L175
L129:
  lea    D48(%rip),%rdi
  call   <printf@plt>
  jmp    L175
L161:
  lea    D64(%rip),%rdi
  call   <printf@plt>
  jmp    L175
L196:
  mov    %rbp,%rdi
  call   <printf@plt>
L175:
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  test   %eax,%eax
  je     L160
L52:
  lea    0x10(%rsp),%rcx
  lea    0x14(%rsp),%rdx
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%edi
  cmp    $0x32,%edi
  setg   %dl
  pxor   %xmm0,%xmm0
  cvtss2sd 0x14(%rsp),%xmm0
  movsd  D88(%rip),%xmm1
  comisd %xmm0,%xmm1
  seta   %al
  mov    0x10(%rsp),%ecx
  cmp    $0x15e0,%ecx
  setg   %sil
  mov    %eax,%r8d
  and    %dl,%r8b
  je     L26
  test   %sil,%sil
  jne    L39
L26:
  cmp    $0x15e0,%ecx
  setle  %cl
  test   %r8b,%r8b
  je     L51
  test   %cl,%cl
  jne    L194
L51:
  cmp    $0x32,%edi
  setle  %dil
  test   %sil,%dil
  je     L141
  test   %al,%al
  jne    L129
L141:
  test   %al,%al
  jne    L11
  test   %dl,%sil
  jne    L161
L11:
  cmp    %dl,%al
  je     L126
  test   %cl,%cl
  jne    L196
L126:
  or     %dl,%al
  jne    L203
  test   %sil,%sil
  jne    L196
L203:
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L175
L160:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L45
  mov    $0x0,%eax
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L45:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D29
type_guessed: string
name: read_data
arguments: tag: D39
type_guessed: string
name: read_data
arguments: tag: D4
type_guessed: string
name: read_data
arguments: tag: D5
type_guessed: string
name: read_data
arguments: tag: D25
type_guessed: string
name: read_data
arguments: tag: D1
type_guessed: string
name: read_data
arguments: tag: D48
type_guessed: string
name: read_data
arguments: tag: D64
type_guessed: string
name: read_data
arguments: tag: D88
type_guessed: f64

tool: D29: %d

tool: D39: %d %f %d

tool: D4: 6


tool: D5: 5


tool: D25: 10


tool: D1: 9


tool: D48: 8


tool: D64: 7


tool: D88: 0.7

assistant: ```c
int main() {
  int T, a, c, ca, cb, cc;
  float b;
  scanf("%d", &T);
  while (T--) {
    ca = cb = cc = 0;
    scanf("%d %f %d", &a, &b, &c);
    if (a > 50)
      ca = 1;
    if (b < 0.7)
      cb = 1;
    if (c > 5600)
      cc = 1;
    if (ca && cb && cc)
      printf("10\n");
    else if (ca && cb && !cc)
      printf("9\n");
    else if (!ca && cb && cc)
      printf("8\n");
    else if (ca && !cb && cc)
      printf("7\n");
    else if ((ca && !cb && !cc) || (!ca && cb && !cc) || (!ca && !cb && cc))
      printf("6\n");
    else
      printf("5\n");
  }
  return 0;
}
```