user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x3c(%rbp),%rsi
  lea    D3(%rip),%rdi
  call   <scanf@plt>
  mov    -0x3c(%rbp),%esi
  movslq %esi,%rdx
  shl    $0x2,%rdx
  lea    0xf(%rdx),%rax
  mov    %rax,%rdi
  and    $0xfffffffffffffff0,%rdi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L89:
  cmp    %rcx,%rsp
  je     L79
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L89
L79:
  mov    %rdi,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L4
  orq    $0x0,-0x8(%rsp,%rax,1)
L4:
  mov    %rsp,%r15
  lea    0xf(%rdx),%rax
  mov    %rax,%rdi
  and    $0xfffffffffffffff0,%rdi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L98:
  cmp    %rcx,%rsp
  je     L145
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L98
L145:
  mov    %rdi,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L122
  orq    $0x0,-0x8(%rsp,%rax,1)
L122:
  mov    %rsp,-0x48(%rbp)
  add    $0xf,%rdx
  mov    %rdx,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rax
  sub    %rdx,%rax
L96:
  cmp    %rax,%rsp
  je     L176
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L96
L176:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L151
  orq    $0x0,-0x8(%rsp,%rax,1)
L151:
  mov    %rsp,%r12
  mov    %r12,-0x50(%rbp)
  test   %esi,%esi
  jle    L14
  mov    %r15,%r14
  mov    -0x48(%rbp),%r13
  mov    $0x0,%ebx
L128:
  mov    %r12,%rcx
  mov    %r13,%rdx
  mov    %r14,%rsi
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  mov    -0x3c(%rbp),%eax
  add    $0x4,%r14
  add    $0x4,%r13
  add    $0x4,%r12
  cmp    %ebx,%eax
  jg     L128
  test   %eax,%eax
  jle    L14
  mov    $0x0,%ebx
  lea    D47(%rip),%r13
  lea    D42(%rip),%r12
  lea    D6(%rip),%r14
  jmp    L111
L235:
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L64
L196:
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L64
L243:
  mov    %r14,%rdi
  call   <printf@plt>
  jmp    L64
L70:
  mov    %r12,%rdi
  call   <printf@plt>
L64:
  add    $0x1,%rbx
  cmp    %ebx,-0x3c(%rbp)
  jle    L14
L111:
  mov    (%r15,%rbx,4),%esi
  mov    -0x48(%rbp),%rax
  mov    (%rax,%rbx,4),%eax
  mov    -0x50(%rbp),%rcx
  mov    (%rcx,%rbx,4),%edx
  cmp    %eax,%esi
  mov    %eax,%edi
  cmovge %esi,%edi
  cmp    %edi,%edx
  jg     L235
  cmp    %edx,%esi
  je     L196
  cmp    %edx,%eax
  je     L196
  cmp    %eax,%esi
  cmovg  %eax,%esi
  mov    %edi,%eax
  sub    %esi,%eax
  cmp    %edx,%eax
  je     L243
  mov    %eax,%ecx
  sub    %edx,%ecx
  test   $0x1,%cl
  jne    L70
  cmp    %edx,%eax
  jle    L70
  call   <print@plt>
  jmp    L64
L14:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L115
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L115:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D3
type_guessed: string
name: parse_data
arguments: label: D19
type_guessed: string
name: parse_data
arguments: label: D47
type_guessed: string
name: parse_data
arguments: label: D42
type_guessed: string
name: parse_data
arguments: label: D6
type_guessed: string

tool: D3: %d

tool: D19: %d%d%d

tool: D47: 1


tool: D42: -1


tool: D6: 3


assistant: ```c
int main() {
  int t;
  scanf("%d", &t);
  int A[t], B[t], C[t], i;
  int max, min, a, b, c;
  for (i = 0; i < t; i++)
    scanf("%d%d%d", &A[i], &B[i], &C[i]);
  for (i = 0; i < t; i++) {
    a = A[i];
    b = B[i];
    c = C[i];
    max = (a > b) ? a : b;
    min = (a < b) ? a : b;
    if (c > a && c > b) {
      printf("-1\n");
      continue;
    } else if (c == a || c == b) {
      printf("1\n");
      continue;
    } else if (max - min == c) {
      printf("3\n");
      continue;
    } else if ((max - min - c) % 2 == 0 && (max - min) > c) {
      print(max, min, c);
      continue;
    } else {
      printf("-1\n");
      continue;
    }
  }
  return 0;
}
```