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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  lea    -0x1000(%rsp),%rax
  cmp    %rax,%rsp
  je     L46
L25:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rax,%rsp
  jne    L25
L46:
  sub    $0xf40,%rsp
  orq    $0x0,0xf38(%rsp)
  movdqa D9(%rip),%xmm1
  movdqa D19(%rip),%xmm3
  mov    %rsp,%r13
  mov    %r13,%r12
  lea    0x1f40(%r13),%rbx
  mov    %r13,%rax
  nopw   0x0(%rax,%rax,1)
L34:
  movdqa %xmm1,%xmm0
  add    $0x20,%rax
  paddd  %xmm3,%xmm1
  cvtdq2pd %xmm0,%xmm2
  pshufd $0xee,%xmm0,%xmm0
  movups %xmm2,-0x20(%rax)
  cvtdq2pd %xmm0,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rbx,%rax
  jne    L34
  mov    %r13,%rax
  pxor   %xmm1,%xmm1
  nopl   (%rax)
L116:
  maxsd  (%rax),%xmm1
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L116
  mov    %r13,%rax
  pxor   %xmm0,%xmm0
  nopl   0x0(%rax)
L122:
  maxsd  (%rax),%xmm0
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L122
  ucomisd %xmm0,%xmm1
  jp     L48
  jne    L48
L112:
  mov    %r13,%rax
  pxor   %xmm1,%xmm1
  nopl   0x0(%rax)
L183:
  minsd  (%rax),%xmm1
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L183
  mov    %r13,%rax
  pxor   %xmm0,%xmm0
  nopl   0x0(%rax)
L9:
  minsd  (%rax),%xmm0
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L9
  ucomisd %xmm1,%xmm0
  jp     L114
  jne    L114
L70:
  movsd  D26(%rip),%xmm0
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L41:
  comisd -0x8(%r13,%rax,8),%xmm0
  jbe    L97
L137:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L120
  lea    -0x18(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
  nopl   (%rax)
L97:
  add    $0x1,%rax
  cmp    $0x3e9,%rax
  jne    L41
  nopl   0x0(%rax)
L136:
  movsd  (%r12),%xmm1
  add    $0x8,%r12
  cmp    %rbx,%r12
  jne    L136
  comisd %xmm1,%xmm0
  jbe    L137
  xor    %eax,%eax
  call   <abort@plt>
  jmp    L137
L114:
  xor    %eax,%eax
  call   <abort@plt>
  jmp    L70
L48:
  xor    %eax,%eax
  call   <abort@plt>
  jmp    L112
L120:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D9
type: byte[16]
name: parse_data
arguments: data_label: D19
type: byte[16]
name: parse_data
arguments: data_label: D26
type: byte[8]

tool: {"D9": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

tool: {"D19": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: {"D26": [0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x40]}

assistant: ```c
int main(void) {
  const int n = 1000;
  int i;
  double vresult, result, array[n];
  bool lvresult, lresult;
  for (i = 0; i < n; i++)
    array[i] = i;
  result = 0;
  vresult = 0;
#pragma acc parallel vector_length(vl) copy(result)
#pragma acc loop reduction(max : result)
  for (i = 0; i < n; i++)
    result = result > array[i] ? result : array[i];
  for (i = 0; i < n; i++)
    vresult = vresult > array[i] ? vresult : array[i];
  if (result != vresult)
    abort();
  result = 0;
  vresult = 0;
#pragma acc parallel vector_length(vl) copy(result)
#pragma acc loop reduction(min : result)
  for (i = 0; i < n; i++)
    result = result < array[i] ? result : array[i];
  for (i = 0; i < n; i++)
    vresult = vresult < array[i] ? vresult : array[i];
  if (result != vresult)
    abort();
  result = 5;
  vresult = 5;
  lresult = false;
  lvresult = false;
#pragma acc parallel vector_length(vl) copy(lresult)
#pragma acc loop reduction(&& : lresult)
  for (i = 0; i < n; i++)
    lresult = lresult && (result > array[i]);
  for (i = 0; i < n; i++)
    lvresult = lresult && (result > array[i]);
  if (lresult != lvresult)
    abort();
  result = 5;
  vresult = 5;
  lresult = false;
  lvresult = false;
#pragma acc parallel vector_length(vl) copy(lresult)
#pragma acc loop reduction(|| : lresult)
  for (i = 0; i < n; i++)
    lresult = lresult || (result > array[i]);
  for (i = 0; i < n; i++)
    lvresult = lresult || (result > array[i]);
  if (lresult != lvresult)
    abort();
  return 0;
}
```