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

```asm
<test_reductions>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rsi
  movl   $0xa,-0xac(%rbp)
  mov    -0xac(%rbp),%eax
  cltq
  sub    $0x1,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0xac(%rbp),%eax
  cltq
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    -0xac(%rbp),%eax
  cltq
  mov    %rax,%rcx
  mov    $0x0,%ebx
  mov    -0xac(%rbp),%eax
  cltq
  shl    $0x4,%rax
  mov    %rax,%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
L214:
  cmp    %rdx,%rsp
  je     L397
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L214
L397:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L82
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L82:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L292
L506:
  mov    -0xb0(%rbp),%eax
  add    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  %xmm1,(%rax)
  movsd  %xmm0,0x8(%rax)
  addl   $0x1,-0xb0(%rbp)
L292:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L506
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L400
L6:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0xa8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  addl   $0x1,-0xb0(%rbp)
L400:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L6
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L226
L521:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0xa0(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  addl   $0x1,-0xb0(%rbp)
L226:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L521
  movsd  -0xa8(%rbp),%xmm0
  ucomisd -0xa0(%rbp),%xmm0
  jp     L294
  movsd  -0xa8(%rbp),%xmm0
  ucomisd -0xa0(%rbp),%xmm0
  je     L243
L294:
  call   <abort@plt>
L243:
  movsd  D58(%rip),%xmm0
  movsd  %xmm0,-0x98(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L460
L36:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x98(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x98(%rbp)
  addl   $0x1,-0xb0(%rbp)
L460:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L36
  movsd  D58(%rip),%xmm0
  movsd  %xmm0,-0x90(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L252
L1:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x90(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x90(%rbp)
  addl   $0x1,-0xb0(%rbp)
L252:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L1
  movsd  -0x98(%rbp),%xmm0
  ucomisd -0x90(%rbp),%xmm0
  jp     L242
  movsd  -0x98(%rbp),%xmm0
  ucomisd -0x90(%rbp),%xmm0
  je     L323
L242:
  call   <abort@plt>
L323:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x88(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L227
L388:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x88(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x88(%rbp)
  addl   $0x1,-0xb0(%rbp)
L227:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L388
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L377
L92:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x80(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  addl   $0x1,-0xb0(%rbp)
L377:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L92
  movsd  -0x88(%rbp),%xmm0
  ucomisd -0x80(%rbp),%xmm0
  jp     L462
  movsd  -0x88(%rbp),%xmm0
  ucomisd -0x80(%rbp),%xmm0
  je     L425
L462:
  call   <abort@plt>
L425:
  movsd  D58(%rip),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L233
L370:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x78(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  addl   $0x1,-0xb0(%rbp)
L233:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L370
  movsd  D58(%rip),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L106
L39:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x70(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  addl   $0x1,-0xb0(%rbp)
L106:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L39
  movsd  -0x78(%rbp),%xmm0
  ucomisd -0x70(%rbp),%xmm0
  jp     L258
  movsd  -0x78(%rbp),%xmm0
  ucomisd -0x70(%rbp),%xmm0
  je     L121
L258:
  call   <abort@plt>
L121:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L412
L263:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x68(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  addl   $0x1,-0xb0(%rbp)
L412:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L263
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L184
L143:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x60(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  addl   $0x1,-0xb0(%rbp)
L184:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L143
  movsd  -0x68(%rbp),%xmm0
  ucomisd -0x60(%rbp),%xmm0
  jp     L239
  movsd  -0x68(%rbp),%xmm0
  ucomisd -0x60(%rbp),%xmm0
  je     L313
L239:
  call   <abort@plt>
L313:
  movsd  D58(%rip),%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L250
L410:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x58(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  addl   $0x1,-0xb0(%rbp)
L250:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L410
  movsd  D58(%rip),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L320
L102:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x50(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  addl   $0x1,-0xb0(%rbp)
L320:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L102
  movsd  -0x58(%rbp),%xmm0
  ucomisd -0x50(%rbp),%xmm0
  jp     L34
  movsd  -0x58(%rbp),%xmm0
  ucomisd -0x50(%rbp),%xmm0
  je     L512
L34:
  call   <abort@plt>
L512:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L479
L436:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x48(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  addl   $0x1,-0xb0(%rbp)
L479:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L436
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L523
L125:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x40(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  addl   $0x1,-0xb0(%rbp)
L523:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L125
  movsd  -0x48(%rbp),%xmm0
  ucomisd -0x40(%rbp),%xmm0
  jp     L71
  movsd  -0x48(%rbp),%xmm0
  ucomisd -0x40(%rbp),%xmm0
  je     L303
L71:
  call   <abort@plt>
L303:
  movsd  D58(%rip),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L152
L448:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  addl   $0x1,-0xb0(%rbp)
L152:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L448
  movsd  D58(%rip),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L354
L188:
  mov    -0x20(%rbp),%rdx
  mov    -0xb0(%rbp),%eax
  cltq
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x30(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  addl   $0x1,-0xb0(%rbp)
L354:
  mov    -0xb0(%rbp),%eax
  cmp    -0xac(%rbp),%eax
  jl     L188
  movsd  -0x38(%rbp),%xmm0
  ucomisd -0x30(%rbp),%xmm0
  jp     L464
  movsd  -0x38(%rbp),%xmm0
  ucomisd -0x30(%rbp),%xmm0
  je     L80
L464:
  call   <abort@plt>
L80:
  mov    %rsi,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L430
  call   <__stack_chk_fail@plt>
L430:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D58
type_infered: byte[8]

tool: {"D58": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

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

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

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

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

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

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

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

#pragma acc loop gang worker vector reduction(+ : res)
    for (i = 0; i < n; i++)
      res = res + (creal(array[i]));
    vres = (0);
    for (i = 0; i < n; i++)
      vres = vres + (creal(array[i]));
    if (res != vres)
      abort();
  };
  {
    double 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(* : res)
    for (i = 0; i < n; i++)
      res = res * (creal(array[i]));
    vres = (1);
    for (i = 0; i < n; i++)
      vres = vres * (creal(array[i]));
    if (res != vres)
      abort();
  };
}
```