user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  sub    $0x368,%rsp
  mov    $0x64,%ecx
  pxor   %xmm0,%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x358(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rdx
  movaps %xmm0,(%rsp)
  mov    %rsp,%r8
  mov    %rdx,%rdi
  movaps %xmm0,0x10(%rsp)
  movq   $0x0,0x20(%rsp)
  rep stos %rax,%es:(%rdi)
  nopw   0x0(%rax,%rax,1)
L198:
  mov    %eax,(%r8,%rax,4)
  add    $0x1,%rax
  cmp    $0xa,%rax
  jne    L198
  mov    %rdx,%rdi
  mov    %rdx,%rsi
  mov    $0x14,%ecx
  nopl   0x0(%rax)
L31:
  lea    -0x14(%rcx),%eax
  mov    %rsi,%rdx
  cs nopw 0x0(%rax,%rax,1)
L115:
  mov    %eax,(%rdx)
  add    $0x1,%eax
  add    $0x4,%rdx
  cmp    %ecx,%eax
  jne    L115
  add    $0x50,%rsi
  lea    0xa(%rax),%ecx
  cmp    $0x6e,%eax
  jne    L31
  mov    $0x1,%edx
  xor    %eax,%eax
  jmp    L77
  nopw   0x0(%rax,%rax,1)
L50:
  add    $0x1,%rax
  add    $0x1,%edx
L77:
  lea    -0x4(%rax),%esi
  mov    (%r8,%rax,4),%ecx
  cmp    $0x2,%esi
  jbe    L168
  test   %ecx,%ecx
  jne    L171
  cmp    $0xa,%edx
  jne    L50
  mov    $0xfffffffe,%r9d
  xor    %r10d,%r10d
  mov    $0xfffffffb,%esi
L58:
  mov    %r10d,%ecx
  mov    %rdi,%rdx
  mov    $0x1,%eax
  jmp    L67
  nopw   0x0(%rax,%rax,1)
L69:
  add    $0x4,%rdx
  add    $0x1,%eax
  add    $0x1,%ecx
L67:
  mov    (%rdx),%r8d
  cmp    $0x2,%r9d
  jbe    L167
  cmp    $0x3,%esi
  jbe    L93
L0:
  test   %r8d,%r8d
  jne    L177
  cmp    $0x14,%eax
  jne    L69
  add    $0x1,%esi
  add    $0x50,%rdi
  add    $0xa,%r10d
  add    $0x1,%r9d
  cmp    $0x5,%esi
  jne    L58
L98:
  mov    0x358(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L47
  mov    %r8d,%eax
  add    $0x368,%rsp
  ret
L93:
  lea    -0x2(%rax),%r11d
  cmp    $0x1,%r11d
  ja     L0
L22:
  cmp    %r8d,%ecx
  je     L69
L177:
  mov    $0x2,%r8d
  jmp    L98
L168:
  cmp    %eax,%ecx
  je     L50
L171:
  mov    $0x1,%r8d
  jmp    L98
L47:
  call   <__stack_chk_fail@plt>
L167:
  lea    -0x6(%rax),%r11d
  cmp    $0x7,%r11d
  ja     L0
  jmp    L22
```

assistant: ```c
int main() {
  int array_1d[10];
  int array_2d[10][20];
  int i, j;
  for (i = 0; i < 10; i++) {
    array_1d[i] = 0;
    for (j = 0; j < 20; j++) {
      array_2d[i][j] = 0;
    }
  }
#pragma acc data copyin(array_1d, array_2d)
  {
#pragma acc parallel loop
    for (i = 0; i < 10; i++)
      array_1d[i] = i;
#pragma acc parallel loop collapse(2)
    for (i = 0; i < 10; i++) {
      for (j = 0; j < 20; j++) {
        array_2d[i][j] = i * 10 + j;
      }
    }
#pragma acc update host(array_2d [2:3] [5:8])
#pragma acc update host(array_1d [4:3], array_2d [5:4] [1:2])
  }
  for (i = 0; i < 10; i++) {
    if (i >= 4 && i <= 6) {
      if (array_1d[i] != i)
        return 1;
    } else {
      if (array_1d[i] != 0)
        return 1;
    }
  }
  for (i = 0; i < 10; i++) {
    for (j = 0; j < 20; j++) {
      if (i >= 2 && i <= 4 && j >= 5 && j <= 12) {
        if (array_2d[i][j] != i * 10 + j)
          return 2;
      } else if (i >= 5 && i <= 8 && j >= 1 && j <= 2) {
        if (array_2d[i][j] != i * 10 + j)
          return 2;
      } else {
        if (array_2d[i][j] != 0)
          return 2;
      }
    }
  }
  return 0;
}
```