user: Translate the below assembly code into C programming language:

```asm
<kernel>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x1,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L16
L48:
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L13
L25:
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L56
L49:
  mov    -0x10(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %eax,%edx
  mov    -0xc(%rbp),%eax
  shl    $0xa,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0x10(%rbp),%eax
  shl    $0x5,%eax
  add    %eax,%ecx
  mov    -0xc(%rbp),%eax
  shl    $0xa,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x10(%rbp),%eax
  shl    $0x5,%eax
  add    %eax,%ecx
  mov    -0xc(%rbp),%eax
  shl    $0xa,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    $0x1,%eax
  shl    $0x5,%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  add    %eax,%ecx
  mov    -0xc(%rbp),%eax
  shl    $0xa,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  sub    $0x1,%eax
  shl    $0x5,%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  add    %eax,%ecx
  mov    -0xc(%rbp),%eax
  shl    $0xa,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  add    %eax,%ecx
  mov    -0xc(%rbp),%eax
  sub    $0x1,%eax
  shl    $0xa,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  add    %eax,%ecx
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  shl    $0xa,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x10(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %eax,%edx
  mov    -0xc(%rbp),%eax
  shl    $0xa,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x14(%rbp)
L56:
  mov    $0x20,%eax
  sub    -0x8(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jl     L49
  addl   $0x1,-0x10(%rbp)
L13:
  mov    $0x20,%eax
  sub    -0x8(%rbp),%eax
  cmp    %eax,-0x10(%rbp)
  jl     L25
  addl   $0x1,-0xc(%rbp)
L16:
  mov    $0x20,%eax
  sub    -0x8(%rbp),%eax
  cmp    %eax,-0xc(%rbp)
  jl     L48
  nop
  pop    %rbp
  ret
```

assistant: ```c
void kernel(int *g1, int *g2) {
  int x, y, z;
  int halo_width = 1;
  for (z = halo_width; z < 32 - halo_width; ++z) {
    for (y = halo_width; y < 32 - halo_width; ++y) {
      for (x = halo_width; x < 32 - halo_width; ++x) {
        int v = g1[((x) + (y)*32 + (z)*32 * 32)] + g1[((x + 1) + (y)*32 + (z)*32 * 32)] + g1[((x - 1) + (y)*32 + (z)*32 * 32)] + g1[((x) + (y + 1) * 32 + (z)*32 * 32)] + g1[((x) + (y - 1) * 32 + (z)*32 * 32)] + g1[((x) + (y)*32 + (z - 1) * 32 * 32)] + g1[((x) + (y)*32 + (z + 1) * 32 * 32)];
        g2[((x) + (y)*32 + (z)*32 * 32)] = v;
      }
    }
  }
  return;
}
```