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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x7c(%rbp),%rax
  mov    %rax,%rsi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  jmp    L173
L88:
  lea    -0x70(%rbp),%rcx
  lea    -0x74(%rbp),%rdx
  lea    -0x78(%rbp),%rax
  mov    %rax,%rsi
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x70(%rbp),%eax
  test   %eax,%eax
  jne    L6
  mov    -0x78(%rbp),%edx
  mov    -0x74(%rbp),%eax
  imul   %edx,%eax
  cltq
  mov    %rax,-0x60(%rbp)
  jmp    L185
L6:
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L76:
  cmp    %rdx,%rsp
  je     L46
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L76
L46:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L147
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L147:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L174:
  cmp    %rdx,%rsp
  je     L83
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L174
L83:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L121
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L121:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x6c(%rbp)
  jmp    L104
L122:
  mov    -0x6c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x6c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x50(%rbp),%rax
  add    %rcx,%rax
  mov    %rax,%rsi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x6c(%rbp)
L104:
  mov    -0x70(%rbp),%eax
  cmp    %eax,-0x6c(%rbp)
  jl     L122
  mov    -0x70(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <quickSort@plt>
  mov    -0x70(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <quickSort@plt>
  mov    -0x78(%rbp),%ecx
  mov    -0x70(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <max@plt>
  add    $0x1,%eax
  mov    %eax,-0x68(%rbp)
  mov    -0x74(%rbp),%ecx
  mov    -0x70(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <max@plt>
  add    $0x1,%eax
  mov    %eax,-0x64(%rbp)
  movl   $0x1,-0x6c(%rbp)
  jmp    L52
L56:
  mov    -0x50(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x6c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  cmp    %eax,-0x68(%rbp)
  jge    L157
  mov    -0x50(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x6c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  mov    %eax,-0x68(%rbp)
L157:
  addl   $0x1,-0x6c(%rbp)
L52:
  mov    -0x70(%rbp),%eax
  cmp    %eax,-0x6c(%rbp)
  jl     L56
  movl   $0x1,-0x6c(%rbp)
  jmp    L97
L79:
  mov    -0x40(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x6c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  cmp    %eax,-0x64(%rbp)
  jge    L164
  mov    -0x40(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x6c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  mov    %eax,-0x64(%rbp)
L164:
  addl   $0x1,-0x6c(%rbp)
L97:
  mov    -0x70(%rbp),%eax
  cmp    %eax,-0x6c(%rbp)
  jl     L79
  mov    -0x68(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  imul   %edx,%eax
  cltq
  mov    %rax,-0x60(%rbp)
  mov    %rbx,%rsp
L185:
  mov    -0x60(%rbp),%rax
  mov    %rax,%rsi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L173:
  mov    -0x7c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x7c(%rbp)
  test   %eax,%eax
  jne    L88
  mov    $0x0,%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L15
  call   <__stack_chk_fail@plt>
L15:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D25
type_guessed: string
name: disassemble_data
arguments: data_label: D37
type_guessed: string
name: disassemble_data
arguments: data_label: D30
type_guessed: string
name: disassemble_data
arguments: data_label: D2
type_guessed: string

tool: D25: %d

tool: D37: %d%d%d

tool: D30: %d%d

tool: D2: %lld


assistant: ```c
int main() {
  int i, t, w, h, n;
  scanf("%d", &t);
  while (t--) {
    scanf("%d%d%d", &w, &h, &n);
    long long int ans;
    if (n == 0)
      ans = (w * h);
    else {
      int x[n], y[n];
      for (i = 0; i < n; i++) {
        scanf("%d%d", &x[i], &y[i]);
      }
      quickSort(x, 0, n - 1);
      quickSort(y, 0, n - 1);
      int diffx = max(x[0] - 1, w - x[n - 1]) + 1;
      int diffy = max(y[0] - 1, h - y[n - 1]) + 1;
      for (i = 1; i < n; i++) {
        if ((x[i] - x[i - 1]) > diffx)
          diffx = (x[i] - x[i - 1]);
      }
      for (i = 1; i < n; i++) {
        if ((y[i] - y[i - 1]) > diffy)
          diffy = (y[i] - y[i - 1]);
      }
      ans = (diffx - 1) * (diffy - 1);
    }
    printf("%lld\n", ans);
  }
  return 0;
}
```