user: 请从给定的汇编指令推导出C源代码:

```asm
<local_w_2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x20000(%rsp),%r11
L162:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L162
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x2002c(%rbp)
  jmp    L14
L153:
  mov    -0x2002c(%rbp),%eax
  cltq
  mov    -0x2002c(%rbp),%edx
  mov    %edx,-0x20010(%rbp,%rax,4)
  addl   $0x1,-0x2002c(%rbp)
L14:
  cmpl   $0x7fff,-0x2002c(%rbp)
  jle    L153
  movl   $0x0,-0x2002c(%rbp)
  jmp    L128
L112:
  movl   $0x0,-0x20028(%rbp)
  jmp    L78
L9:
  mov    -0x20028(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  xor    -0x2002c(%rbp),%eax
  mov    %eax,-0x20014(%rbp)
  movl   $0x0,-0x20024(%rbp)
  jmp    L40
L3:
  mov    -0x2002c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x20028(%rbp),%eax
  add    %edx,%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x20024(%rbp),%eax
  add    %edx,%eax
  cltq
  mov    -0x20010(%rbp,%rax,4),%ecx
  mov    -0x20014(%rbp),%eax
  imul   -0x20024(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2002c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%esi
  mov    -0x20028(%rbp),%eax
  add    %esi,%eax
  shl    $0x5,%eax
  mov    %eax,%esi
  mov    -0x20024(%rbp),%eax
  add    %esi,%eax
  add    %ecx,%edx
  cltq
  mov    %edx,-0x20010(%rbp,%rax,4)
  addl   $0x1,-0x20024(%rbp)
L40:
  cmpl   $0x1f,-0x20024(%rbp)
  jle    L3
  mov    -0x20028(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  or     -0x2002c(%rbp),%eax
  mov    %eax,-0x20014(%rbp)
  movl   $0x0,-0x20024(%rbp)
  jmp    L114
L130:
  mov    -0x2002c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x20028(%rbp),%eax
  add    %edx,%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x20024(%rbp),%eax
  add    %edx,%eax
  cltq
  mov    -0x20010(%rbp,%rax,4),%ecx
  mov    -0x20014(%rbp),%eax
  imul   -0x20024(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2002c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%esi
  mov    -0x20028(%rbp),%eax
  add    %esi,%eax
  shl    $0x5,%eax
  mov    %eax,%esi
  mov    -0x20024(%rbp),%eax
  add    %esi,%eax
  add    %ecx,%edx
  cltq
  mov    %edx,-0x20010(%rbp,%rax,4)
  addl   $0x1,-0x20024(%rbp)
L114:
  cmpl   $0x1f,-0x20024(%rbp)
  jle    L130
  addl   $0x1,-0x20028(%rbp)
L78:
  cmpl   $0x1f,-0x20028(%rbp)
  jle    L9
  addl   $0x1,-0x2002c(%rbp)
L128:
  cmpl   $0x1f,-0x2002c(%rbp)
  jle    L112
  movl   $0x0,-0x2002c(%rbp)
  jmp    L61
L45:
  movl   $0x0,-0x20020(%rbp)
  jmp    L172
L117:
  movl   $0x0,-0x2001c(%rbp)
  jmp    L129
L106:
  mov    -0x2002c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x20020(%rbp),%eax
  add    %edx,%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x2001c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x20018(%rbp)
  mov    -0x20018(%rbp),%eax
  cltq
  mov    -0x20010(%rbp,%rax,4),%ecx
  mov    -0x20020(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  xor    -0x2002c(%rbp),%eax
  imul   -0x2001c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20018(%rbp),%eax
  lea    (%rdx,%rax,1),%esi
  mov    -0x20020(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  or     -0x2002c(%rbp),%eax
  imul   -0x2001c(%rbp),%eax
  add    %esi,%eax
  cmp    %eax,%ecx
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  addl   $0x1,-0x2001c(%rbp)
L129:
  cmpl   $0x1f,-0x2001c(%rbp)
  jle    L106
  addl   $0x1,-0x20020(%rbp)
L172:
  cmpl   $0x1f,-0x20020(%rbp)
  jle    L117
  addl   $0x1,-0x2002c(%rbp)
L61:
  cmpl   $0x1f,-0x2002c(%rbp)
  jle    L45
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L138
  call   <__stack_chk_fail@plt>
L138:
  leave
  ret
```

assistant: ```c
void local_w_2() {
  int i, arr[32 * 32 * 32];
  for (i = 0; i < 32 * 32 * 32; i++)
    arr[i] = i;
#pragma acc parallel copy(arr) num_gangs(32) num_workers(32) vector_length(32)
  {
    int j;
#pragma acc loop gang
    for (i = 0; i < 32; i++) {
#pragma acc loop worker
      for (j = 0; j < 32; j++) {
        int k;
        int x = i ^ j * 3;
#pragma acc loop vector
        for (k = 0; k < 32; k++)
          arr[i * 1024 + j * 32 + k] += x * k;
        x = i | j * 5;
#pragma acc loop vector
        for (k = 0; k < 32; k++)
          arr[i * 1024 + j * 32 + k] += x * k;
      }
    }
  }
  for (i = 0; i < 32; i++)
    for (int j = 0; j < 32; j++)
      for (int k = 0; k < 32; k++) {
        int idx = i * 1024 + j * 32 + k;
        assert(arr[idx] == idx + (i ^ j * 3) * k + (i | j * 5) * k);
      }
}
```