user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D28(%rip),%rbp
  push   %rbx
  mov    %rbp,%rdi
  sub    $0x1b8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1a8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  call   <scanf@plt>
  mov    0x4(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x4(%rsp)
  test   %eax,%eax
  je     L45
  lea    0xc(%rsp),%r15
  lea    0x8(%rsp),%r14
  lea    D29(%rip),%r13
  nopl   0x0(%rax)
L110:
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jle    L7
  lea    0x10(%rsp),%r12
  xor    %ebx,%ebx
  nop
L122:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  add    $0x4,%r12
  cmp    %ebx,%eax
  jg     L122
L7:
  mov    0xc(%rsp),%edi
  mov    $0x64,%esi
  cmp    %eax,%edi
  jl     L33
L121:
  lea    D5(%rip),%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x4(%rsp)
  test   %eax,%eax
  jne    L110
L45:
  mov    0x1a8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L83
  add    $0x1b8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L33:
  movslq %edi,%rdx
  sub    %edi,%eax
  mov    0x10(%rsp,%rdx,4),%ecx
  mov    %eax,%esi
  sub    $0x1,%ecx
  sub    $0x1,%esi
  je     L57
  lea    -0x2(%rax),%r8d
  cmp    $0x2,%r8d
  jbe    L30
  movd   %ecx,%xmm3
  lea    0x14(%rsp,%rdx,4),%r8
  mov    %esi,%ecx
  xor    %edx,%edx
  shr    $0x2,%ecx
  pshufd $0x0,%xmm3,%xmm2
  lea    0x10(%rsp),%r9
  shl    $0x4,%rcx
  nopl   0x0(%rax,%rax,1)
L6:
  movdqu (%r8,%rdx,1),%xmm0
  psubd  (%r9,%rdx,1),%xmm0
  add    $0x10,%rdx
  paddd  D38(%rip),%xmm0
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  por    %xmm0,%xmm2
  cmp    %rcx,%rdx
  jne    L6
  movdqa %xmm2,%xmm1
  mov    %esi,%edx
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%edx
  movdqa %xmm1,%xmm0
  pcmpgtd %xmm2,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,%ecx
  test   $0x3,%sil
  je     L57
L50:
  lea    0x1(%rdi,%rdx,1),%r8d
  movslq %edx,%r9
  movslq %r8d,%r8
  mov    0x10(%rsp,%r8,4),%r8d
  sub    0x10(%rsp,%r9,4),%r8d
  sub    $0x1,%r8d
  cmp    %r8d,%ecx
  cmovl  %r8d,%ecx
  lea    0x1(%rdx),%r8d
  cmp    %esi,%r8d
  jge    L57
  lea    0x1(%rdi,%r8,1),%r10d
  movslq %r8d,%r9
  movslq %r10d,%r10
  mov    0x10(%rsp,%r10,4),%r8d
  sub    0x10(%rsp,%r9,4),%r8d
  sub    $0x1,%r8d
  cmp    %r8d,%ecx
  cmovl  %r8d,%ecx
  add    $0x2,%edx
  cmp    %edx,%esi
  jle    L57
  lea    0x1(%rdi,%rdx,1),%esi
  movslq %edx,%rdx
  movslq %esi,%rsi
  mov    0x10(%rsp,%rsi,4),%esi
  sub    0x10(%rsp,%rdx,4),%esi
  mov    %esi,%edx
  sub    $0x1,%edx
  cmp    %edx,%ecx
  cmovl  %edx,%ecx
L57:
  cltq
  mov    $0x64,%esi
  sub    0x10(%rsp,%rax,4),%esi
  cmp    %ecx,%esi
  cmovl  %ecx,%esi
  jmp    L121
L30:
  xor    %edx,%edx
  jmp    L50
L83:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D28
data_type: string
name: extract_symbolic_data
arguments: label: D29
data_type: string
name: extract_symbolic_data
arguments: label: D5
data_type: string
name: extract_symbolic_data
arguments: label: D38
data_type: byte[16]

tool: D28: %d

tool: D29: %d%d

tool: D5: %d


tool: {"D38": [0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff]}

assistant: ```c
int main(int argc, char *argv[]) {
  int t, n, m;
  int i;
  int arr[100];
  scanf("%d", &t);
  while (t--) {
    scanf("%d%d", &n, &m);
    for (i = 0; i < n; i++)
      scanf("%d", arr + i);
    int ans = 0;
    if (n <= m)
      ans = 100;
    else {
      ans = arr[m] - 1;
      for (i = 0; i < n - m - 1; i++) {
        int days = arr[m + i + 1] - arr[i] - 1;
        ans = days > ans ? days : ans;
      }
      int days = 100 - arr[n - m];
      ans = days > ans ? days : ans;
    }
    printf("%d\n", ans);
  }
}
```