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

```asm
<gwv_np_4>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x20000(%rsp),%r11
L102:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L102
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x20020(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x2001c(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x20018(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x20014(%rbp)
  movl   $0x0,-0x20028(%rbp)
  jmp    L47
L35:
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x20028(%rbp),%xmm0
  mov    -0x20028(%rbp),%eax
  cltq
  movss  %xmm0,-0x20010(%rbp,%rax,4)
  addl   $0x1,-0x20028(%rbp)
L47:
  cmpl   $0x7fff,-0x20028(%rbp)
  jle    L35
  movl   $0x0,-0x20024(%rbp)
  jmp    L12
L170:
  movl   $0x0,-0x20028(%rbp)
  jmp    L121
L4:
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  movss  -0x20020(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x20020(%rbp)
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  comiss -0x2001c(%rbp),%xmm0
  jbe    L30
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  movss  %xmm0,-0x2001c(%rbp)
L30:
  addl   $0x1,-0x20028(%rbp)
L121:
  cmpl   $0x3ff,-0x20028(%rbp)
  jle    L4
  movl   $0x0,-0x20028(%rbp)
  jmp    L66
L67:
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    $0x3ff,%eax
  sub    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  movss  -0x20020(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x20020(%rbp)
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    $0x3ff,%eax
  sub    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  comiss -0x2001c(%rbp),%xmm0
  jbe    L164
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    $0x3ff,%eax
  sub    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  movss  %xmm0,-0x2001c(%rbp)
L164:
  addl   $0x1,-0x20028(%rbp)
L66:
  cmpl   $0x3ff,-0x20028(%rbp)
  jle    L67
  addl   $0x1,-0x20024(%rbp)
L12:
  cmpl   $0x1f,-0x20024(%rbp)
  jle    L170
  movl   $0x0,-0x20024(%rbp)
  jmp    L55
L141:
  movl   $0x0,-0x20028(%rbp)
  jmp    L90
L29:
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  movss  -0x20018(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x20018(%rbp)
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    $0x3ff,%eax
  sub    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  movss  -0x20018(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x20018(%rbp)
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  comiss -0x20014(%rbp),%xmm0
  jbe    L24
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  movss  %xmm0,-0x20014(%rbp)
L24:
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    $0x3ff,%eax
  sub    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  comiss -0x20014(%rbp),%xmm0
  jbe    L80
  mov    -0x20024(%rbp),%eax
  shl    $0xa,%eax
  mov    %eax,%edx
  mov    $0x3ff,%eax
  sub    -0x20028(%rbp),%eax
  add    %edx,%eax
  cltq
  movss  -0x20010(%rbp,%rax,4),%xmm0
  movss  %xmm0,-0x20014(%rbp)
L80:
  addl   $0x1,-0x20028(%rbp)
L90:
  cmpl   $0x3ff,-0x20028(%rbp)
  jle    L29
  addl   $0x1,-0x20024(%rbp)
L55:
  cmpl   $0x1f,-0x20024(%rbp)
  jle    L141
  movss  -0x20020(%rbp),%xmm0
  ucomiss -0x20018(%rbp),%xmm0
  setnp  %al
  mov    $0x0,%edx
  movss  -0x20020(%rbp),%xmm0
  ucomiss -0x20018(%rbp),%xmm0
  cmovne %edx,%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  movss  -0x2001c(%rbp),%xmm0
  ucomiss -0x20014(%rbp),%xmm0
  setnp  %al
  mov    $0x0,%edx
  movss  -0x2001c(%rbp),%xmm0
  ucomiss -0x20014(%rbp),%xmm0
  cmovne %edx,%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L53
  call   <__stack_chk_fail@plt>
L53:
  leave
  ret
```

assistant: ```c
void gwv_np_4() {
  int i, j;
  float arr[32768];
  float res = 0, mres = 0, hres = 0, hmres = 0;
  for (i = 0; i < 32768; i++)
    arr[i] = i;
#pragma acc parallel num_gangs(32) num_workers(32) vector_length(32)
  {
#pragma acc loop gang reduction(+ : res) reduction(max : mres)
    for (j = 0; j < 32; j++) {
#pragma acc loop worker vector reduction(+ : res) reduction(max : mres)
      for (i = 0; i < 1024; i++) {
        res += arr[j * 1024 + i];
        if (arr[j * 1024 + i] > mres)
          mres = arr[j * 1024 + i];
      }
#pragma acc loop worker vector reduction(+ : res) reduction(max : mres)
      for (i = 0; i < 1024; i++) {
        res += arr[j * 1024 + (1023 - i)];
        if (arr[j * 1024 + (1023 - i)] > mres)
          mres = arr[j * 1024 + (1023 - i)];
      }
    }
  }
  for (j = 0; j < 32; j++)
    for (i = 0; i < 1024; i++) {
      hres += arr[j * 1024 + i];
      hres += arr[j * 1024 + (1023 - i)];
      if (arr[j * 1024 + i] > hmres)
        hmres = arr[j * 1024 + i];
      if (arr[j * 1024 + (1023 - i)] > hmres)
        hmres = arr[j * 1024 + (1023 - i)];
    }
  assert(res == hres);
  assert(mres == hmres);
}
```