user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0xc3000(%rsp),%r11
L281:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L281
  sub    $0x528,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc3518(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rsi
  lea    D26(%rip),%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  test   %eax,%eax
  jne    L52
L288:
  mov    0xc3518(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L274
  mov    $0x0,%eax
  add    $0xc3528,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L52:
  lea    D26(%rip),%r12
  lea    0x10(%rsp),%rbx
  lea    0x18(%rsp),%rbp
L297:
  lea    0xc(%rsp),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L276
  mov    %rbx,%r13
  mov    $0x0,%r14d
  lea    D14(%rip),%r15
L251:
  lea    0x4(%r13),%rdx
  mov    %r13,%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%r14d
  mov    0xc(%rsp),%eax
  add    $0x8,%r13
  cmp    %r14d,%eax
  jg     L251
  test   %eax,%eax
  jle    L276
  lea    -0x2(%rax),%esi
  mov    $0x1,%r10d
  mov    $0x0,%r9d
L173:
  cmp    $0xffffffff,%esi
  je     L12
  mov    %esi,%eax
  lea    0x0(%rbp,%rax,8),%rdi
  mov    %rbx,%rax
  mov    %r10d,%r8d
  jmp    L249
L264:
  add    $0x8,%rax
  cmp    %rdi,%rax
  je     L224
L249:
  mov    (%rax),%edx
  mov    0x8(%rax),%ecx
  cmp    %ecx,%edx
  jle    L264
  mov    0x4(%rax),%r8d
  mov    %ecx,(%rax)
  mov    0xc(%rax),%ecx
  mov    %ecx,0x4(%rax)
  mov    %edx,0x8(%rax)
  mov    %r8d,0xc(%rax)
  mov    %r9d,%r8d
  jmp    L264
L224:
  test   %r8d,%r8d
  je     L242
L12:
  mov    0xc(%rsp),%edi
  mov    $0x0,%esi
  jmp    L299
L242:
  sub    $0x1,%esi
  jmp    L173
L61:
  mov    %r13d,%edx
  mov    %rbx,%rdi
  call   <sortj@plt>
  mov    0xc(%rsp),%edi
  cmp    %edi,%r13d
  jge    L180
  mov    %r13d,%esi
L299:
  movslq %esi,%rax
  lea    (%rbx,%rax,8),%rax
  mov    %esi,%r13d
L204:
  mov    %rax,%rdx
  add    $0x1,%r13d
  add    $0x8,%rax
  mov    0x8(%rdx),%ecx
  cmp    %ecx,(%rdx)
  jne    L61
  cmp    %edi,%r13d
  jl     L204
  jmp    L61
L180:
  test   %edi,%edi
  jle    L133
  mov    $0x0,%r9d
  mov    $0x0,%r8d
  jmp    L177
L142:
  movslq %edx,%rcx
  mov    (%rbx,%rax,8),%esi
  cmp    %esi,0x14(%rsp,%rcx,8)
  setge  %sil
  cmp    %eax,%edi
  setg   %cl
  add    $0x1,%rax
  test   %cl,%sil
  je     L262
L104:
  mov    %eax,%r8d
  lea    0x1(%rdx),%esi
  movslq %edx,%rcx
  movslq %esi,%r10
  mov    0x10(%rsp,%r10,8),%r11d
  cmp    %r11d,0x10(%rsp,%rcx,8)
  jne    L142
  cmp    %esi,%edi
  cmovg  %esi,%edx
  jmp    L142
L94:
  mov    %edx,%r8d
L262:
  add    $0x1,%r9d
  cmp    %r8d,%edi
  jle    L166
L177:
  lea    0x1(%r8),%edx
  movslq %r8d,%rax
  movslq %edx,%rcx
  mov    0x10(%rsp,%rcx,8),%esi
  cmp    %esi,0x14(%rsp,%rax,8)
  jl     L94
  cmp    %edx,%edi
  jle    L94
  lea    0x2(%r8),%eax
  cltq
  mov    %r8d,%edx
  jmp    L104
L133:
  mov    $0x0,%r9d
  jmp    L166
L276:
  mov    $0x0,%r9d
L166:
  mov    %r9d,%esi
  lea    D36(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  test   %eax,%eax
  je     L288
  jmp    L297
L274:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D26
data_type: string
name: parse_data
arguments: data_tag: D14
data_type: string
name: parse_data
arguments: data_tag: D36
data_type: string

tool: D26: %d

tool: D14: %d %d

tool: D36: %d


assistant: ```c
int main() {
  int t, max, min, i, rare, j, N, count, a, b, temp1, temp2;
  scanf("%d", &t);
  int arr[100001][2];
  while (t--) {
    scanf("%d", &N);
    for (i = 0; i < N; i++) {
      scanf("%d %d", &arr[i][0], &arr[i][1]);
    }
    for (i = 0; i < N; i++) {
      rare = 1;
      for (j = 0; j < N - i - 1; j++)
        if (arr[j][0] > arr[j + 1][0]) {
          temp1 = arr[j][0];
          temp2 = arr[j][1];
          arr[j][0] = arr[j + 1][0];
          arr[j][1] = arr[j + 1][1];
          arr[j + 1][0] = temp1;
          arr[j + 1][1] = temp2;
          rare = 0;
        }
      if (rare)
        break;
    }
    int temp;
    for (i = 0; i < N; i++) {
      temp = i;
      while (arr[i][0] == arr[i + 1][0] && i + 1 < N)
        i++;
      sortj(arr, temp, i + 1);
    }
    count = 0;
    for (i = 0; i < N; i++) {
      j = i + 1;
      while ((arr[i][1] >= arr[j][0]) && (j < N)) {
        j++;
        if (arr[i][0] == arr[i + 1][0] && (i + 1) < N)
          i++;
      }
      i = j - 1;
      count++;
    }
    printf("%d\n", count);
  }
  return 0;
}
```