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

```asm
<test_reductions_minmax>:
  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
  mov    %rsp,%rax
L191:
  cmp    %rax,%rsp
  je     L304
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L191
L304:
  sub    $0xfa0,%rsp
  orq    $0x0,0xf98(%rsp)
  mov    %rsp,%r12
  mov    $0x0,%eax
L47:
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,(%r12,%rax,4)
  add    $0x1,%rax
  cmp    $0x3e8,%rax
  jne    L47
  mov    %r12,%r13
  lea    0xfa0(%r12),%rbx
  mov    %r12,%rax
  movss  D57(%rip),%xmm1
L227:
  minss  (%rax),%xmm1
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L227
  mov    %r12,%rax
  movss  D57(%rip),%xmm0
L211:
  minss  (%rax),%xmm0
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L211
  ucomiss %xmm0,%xmm1
  jp     L299
  jne    L299
L29:
  mov    %r12,%rax
  movss  D48(%rip),%xmm0
L31:
  maxss  (%rax),%xmm0
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L31
  mov    %r12,%rax
  movss  D48(%rip),%xmm1
L183:
  maxss  (%rax),%xmm1
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L183
  ucomiss %xmm1,%xmm0
  jp     L246
  jne    L246
L238:
  mov    %r12,%rax
  movss  D57(%rip),%xmm0
L212:
  minss  (%rax),%xmm0
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L212
  mov    %r12,%rax
  movss  D57(%rip),%xmm1
L104:
  minss  (%rax),%xmm1
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L104
  ucomiss %xmm1,%xmm0
  jp     L76
  jne    L76
L351:
  mov    %r12,%rax
  movss  D48(%rip),%xmm0
L396:
  maxss  (%rax),%xmm0
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L396
  mov    %r12,%rax
  movss  D48(%rip),%xmm1
L394:
  maxss  (%rax),%xmm1
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L394
  ucomiss %xmm1,%xmm0
  jp     L198
  jne    L198
L178:
  mov    %r12,%rax
  movss  D57(%rip),%xmm0
L404:
  minss  (%rax),%xmm0
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L404
  mov    %r12,%rax
  movss  D57(%rip),%xmm1
L197:
  minss  (%rax),%xmm1
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L197
  ucomiss %xmm1,%xmm0
  jp     L417
  jne    L417
L166:
  mov    %r12,%rax
  movss  D48(%rip),%xmm0
L240:
  maxss  (%rax),%xmm0
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L240
  mov    %r12,%rax
  movss  D48(%rip),%xmm1
L177:
  maxss  (%rax),%xmm1
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L177
  ucomiss %xmm1,%xmm0
  jp     L111
  jne    L111
L218:
  mov    %r12,%rax
  movss  D57(%rip),%xmm0
L308:
  minss  (%rax),%xmm0
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L308
  mov    %r12,%rax
  movss  D57(%rip),%xmm1
L44:
  minss  (%rax),%xmm1
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L44
  ucomiss %xmm1,%xmm0
  jp     L210
  jne    L210
L139:
  mov    %r12,%rax
  movss  D48(%rip),%xmm0
L77:
  maxss  (%rax),%xmm0
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L77
  movss  D48(%rip),%xmm1
L413:
  maxss  0x0(%r13),%xmm1
  add    $0x4,%r13
  cmp    %rbx,%r13
  jne    L413
  ucomiss %xmm1,%xmm0
  jp     L234
  jne    L234
L356:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L158
  lea    -0x18(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
L299:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L29
L246:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L238
L76:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L351
L198:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L178
L417:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L166
L111:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L218
L210:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L139
L234:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L356
L158:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D57
type: byte[4]
name: extract_symbolic_data
arguments: data_label: D48
type: byte[4]

tool: {"D57": [0x00,0x40,0x7a,0x44]}

tool: {"D48": [0x00,0x00,0x80,0xbf]}

assistant: ```c
void test_reductions_minmax(void) {
  const int n = 1000;
  int i;
  float array[n];
  for (i = 0; i < n; i++)
    array[i] = i;
  {
    float res, vres;
    res = (n + 1);
#pragma acc parallel num_gangs(ng) copy(res)

#pragma acc loop gang reduction(min : res)
    for (i = 0; i < n; i++)
      res = (((res) < ((array[i]))) ? (res) : ((array[i])));
    vres = (n + 1);
    for (i = 0; i < n; i++)
      vres = (((vres) < ((array[i]))) ? (vres) : ((array[i])));
    if (res != vres)
      abort();
  };
  {
    float res, vres;
    res = (-1);
#pragma acc parallel num_gangs(ng) copy(res)

#pragma acc loop gang reduction(max : res)
    for (i = 0; i < n; i++)
      res = (((res) > ((array[i]))) ? (res) : ((array[i])));
    vres = (-1);
    for (i = 0; i < n; i++)
      vres = (((vres) > ((array[i]))) ? (vres) : ((array[i])));
    if (res != vres)
      abort();
  };
  {
    float res, vres;
    res = (n + 1);
#pragma acc parallel num_workers(nw) copy(res)

#pragma acc loop worker reduction(min : res)
    for (i = 0; i < n; i++)
      res = (((res) < ((array[i]))) ? (res) : ((array[i])));
    vres = (n + 1);
    for (i = 0; i < n; i++)
      vres = (((vres) < ((array[i]))) ? (vres) : ((array[i])));
    if (res != vres)
      abort();
  };
  {
    float res, vres;
    res = (-1);
#pragma acc parallel num_workers(nw) copy(res)

#pragma acc loop worker reduction(max : res)
    for (i = 0; i < n; i++)
      res = (((res) > ((array[i]))) ? (res) : ((array[i])));
    vres = (-1);
    for (i = 0; i < n; i++)
      vres = (((vres) > ((array[i]))) ? (vres) : ((array[i])));
    if (res != vres)
      abort();
  };
  {
    float res, vres;
    res = (n + 1);
#pragma acc parallel vector_length(vl) copy(res)

#pragma acc loop vector reduction(min : res)
    for (i = 0; i < n; i++)
      res = (((res) < ((array[i]))) ? (res) : ((array[i])));
    vres = (n + 1);
    for (i = 0; i < n; i++)
      vres = (((vres) < ((array[i]))) ? (vres) : ((array[i])));
    if (res != vres)
      abort();
  };
  {
    float res, vres;
    res = (-1);
#pragma acc parallel vector_length(vl) copy(res)

#pragma acc loop vector reduction(max : res)
    for (i = 0; i < n; i++)
      res = (((res) > ((array[i]))) ? (res) : ((array[i])));
    vres = (-1);
    for (i = 0; i < n; i++)
      vres = (((vres) > ((array[i]))) ? (vres) : ((array[i])));
    if (res != vres)
      abort();
  };
  {
    float res, vres;
    res = (n + 1);
#pragma acc parallel num_gangs(ng) num_workers(nw) vector_length(vl) copy(res)

#pragma acc loop gang worker vector reduction(min : res)
    for (i = 0; i < n; i++)
      res = (((res) < ((array[i]))) ? (res) : ((array[i])));
    vres = (n + 1);
    for (i = 0; i < n; i++)
      vres = (((vres) < ((array[i]))) ? (vres) : ((array[i])));
    if (res != vres)
      abort();
  };
  {
    float res, vres;
    res = (-1);
#pragma acc parallel num_gangs(ng) num_workers(nw) vector_length(vl) copy(res)

#pragma acc loop gang worker vector reduction(max : res)
    for (i = 0; i < n; i++)
      res = (((res) > ((array[i]))) ? (res) : ((array[i])));
    vres = (-1);
    for (i = 0; i < n; i++)
      vres = (((vres) > ((array[i]))) ? (vres) : ((array[i])));
    if (res != vres)
      abort();
  };
}
```