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

```asm
<kernel>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x1,-0x8(%rbp)
  jmp    L13
L1:
  movl   $0x1,-0xc(%rbp)
  jmp    L19
L38:
  mov    -0x8(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x8(%rbp),%eax
  shl    $0x5,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0x8(%rbp),%eax
  shl    $0x5,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0x8(%rbp),%eax
  sub    $0x1,%eax
  shl    $0x5,%eax
  mov    %eax,%ecx
  mov    -0xc(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0x8(%rbp),%eax
  add    $0x1,%eax
  shl    $0x5,%eax
  mov    %eax,%ecx
  mov    -0xc(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0xc(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x8(%rbp),%eax
  sub    $0x1,%eax
  shl    $0x5,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0x8(%rbp),%eax
  sub    $0x1,%eax
  shl    $0x5,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0xc(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x8(%rbp),%eax
  add    $0x1,%eax
  shl    $0x5,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0x8(%rbp),%eax
  add    $0x1,%eax
  shl    $0x5,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  movss  -0x4(%rbp),%xmm0
  cvttss2si %xmm0,%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0xc(%rbp)
L19:
  cmpl   $0x1e,-0xc(%rbp)
  jle    L38
  addl   $0x1,-0x8(%rbp)
L13:
  cmpl   $0x1e,-0x8(%rbp)
  jle    L1
  nop
  pop    %rbp
  ret
```

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