user: 下面的汇编指令对应的C源代码是什么:

```asm
<imgngbs>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbx
  mov    %rdx,0x18(%rsp)
  mov    %rdi,%r14
  imul   %rsi,%r14
  lea    (%r14,%r14,4),%rdi
  shl    $0x4,%rdi
  call   <malloc@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  setne  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    0x1(%rbx),%rdi
  mov    %rdi,0x8(%rbp)
  movq   $0x1,0x10(%rbp)
  mov    %rbx,0x18(%rbp)
  movq   $0x2,0x0(%rbp)
  movq   $0xffffffffffffffff,0x20(%rbp)
  lea    -0x1(%rbx),%r13
  lea    (%rbx,%r13,1),%rdx
  lea    0x0(%r13,%r13,4),%rax
  shl    $0x4,%rax
  lea    -0x1(%rdx),%rcx
  mov    %rcx,0x8(%rbp,%rax,1)
  lea    -0x2(%rbx),%r8
  mov    %r8,0x10(%rbp,%rax,1)
  mov    %rdx,0x18(%rbp,%rax,1)
  movq   $0x2,0x0(%rbp,%rax,1)
  movq   $0xffffffffffffffff,0x20(%rbp,%rax,1)
  sub    $0x1,%r12
  mov    %r12,%rsi
  imul   %rbx,%rsi
  mov    %rsi,%rax
  sub    %rbx,%rax
  lea    (%rsi,%rsi,4),%r9
  shl    $0x4,%r9
  lea    0x1(%rax),%rdx
  mov    %rdx,0x8(%rbp,%r9,1)
  lea    0x1(%rsi),%rdx
  mov    %rdx,0x10(%rbp,%r9,1)
  mov    %rax,0x18(%rbp,%r9,1)
  movq   $0x2,0x0(%rbp,%r9,1)
  movq   $0xffffffffffffffff,0x20(%rbp,%r9,1)
  lea    -0x1(%r14),%rax
  mov    %rax,%rdx
  sub    %rbx,%rdx
  lea    (%rax,%rax,4),%rax
  shl    $0x4,%rax
  lea    -0x1(%rdx),%rcx
  mov    %rcx,0x8(%rbp,%rax,1)
  sub    $0x2,%r14
  mov    %r14,0x10(%rbp,%rax,1)
  mov    %rdx,0x18(%rbp,%rax,1)
  movq   $0x2,0x0(%rbp,%rax,1)
  movq   $0xffffffffffffffff,0x20(%rbp,%rax,1)
  cmp    $0x1,%r13
  jbe    L16
  lea    0x50(%rbp),%rax
  mov    $0x1,%edx
L78:
  lea    (%rbx,%rdx,1),%r10
  lea    (%rdi,%rdx,1),%rcx
  mov    %rcx,0x8(%rax)
  lea    0x0(%r13,%rdx,1),%rcx
  mov    %rcx,0x10(%rax)
  mov    %rdx,%rcx
  add    $0x1,%rdx
  mov    %rdx,0x18(%rax)
  sub    $0x1,%rcx
  mov    %rcx,0x20(%rax)
  mov    %r10,0x28(%rax)
  movq   $0x3,(%rax)
  movq   $0xffffffffffffffff,0x30(%rax)
  add    $0x50,%rax
  cmp    %r13,%rdx
  jne    L78
  mov    %rsi,%rax
  sub    %rbx,%rax
  lea    0x2(%rax),%rdx
  lea    0x50(%rbp,%r9,1),%rax
L65:
  mov    %rdx,0x8(%rax)
  lea    -0x2(%rdx),%rcx
  mov    %rcx,0x10(%rax)
  lea    (%rbx,%rdx,1),%rcx
  mov    %rcx,0x18(%rax)
  lea    (%r8,%rdx,1),%rcx
  mov    %rcx,0x20(%rax)
  lea    -0x1(%rdx),%rcx
  mov    %rcx,0x28(%rax)
  movq   $0x3,(%rax)
  movq   $0xffffffffffffffff,0x30(%rax)
  add    $0x1,%rdx
  add    $0x50,%rax
  cmp    %rdx,%rsi
  jne    L65
L16:
  cmp    $0x1,%r12
  jbe    L42
  lea    (%rbx,%rbx,4),%rax
  shl    $0x4,%rax
  mov    %rax,0x8(%rsp)
  lea    0x0(%rbp,%rax,1),%rdx
  lea    (%rbx,%rbx,1),%r9
  mov    $0x1,%eax
  mov    $0x1,%ecx
  lea    -0x1(%r9),%r10
L84:
  lea    -0x1(%rax),%rsi
  mov    %rax,0x8(%rdx)
  lea    (%r10,%rax,1),%rdi
  add    %r9,%rax
  mov    %rax,0x10(%rdx)
  sub    %rbx,%rax
  mov    %rax,0x18(%rdx)
  mov    %rdi,0x20(%rdx)
  mov    %rsi,0x28(%rdx)
  movq   $0x3,(%rdx)
  movq   $0xffffffffffffffff,0x30(%rdx)
  add    $0x1,%rcx
  add    0x8(%rsp),%rdx
  cmp    %rcx,%r12
  jne    L84
  lea    (%rbx,%rbx,4),%rax
  shl    $0x5,%rax
  lea    -0x50(%rbp,%rax,1),%rdx
  mov    %r8,%rax
  mov    $0x1,%ecx
  lea    0x1(%r9),%r10
  mov    %r10,0x20(%rsp)
L96:
  add    $0x1,%rcx
  lea    0x1(%rax),%rsi
  mov    %rax,0x8(%rdx)
  lea    (%r10,%rax,1),%rdi
  add    %r9,%rax
  mov    %rax,0x10(%rdx)
  sub    %rbx,%rax
  mov    %rax,0x18(%rdx)
  mov    %rdi,0x20(%rdx)
  mov    %rsi,0x28(%rdx)
  movq   $0x3,(%rdx)
  movq   $0xffffffffffffffff,0x30(%rdx)
  add    0x8(%rsp),%rdx
  cmp    %rcx,%r12
  jne    L96
  mov    0x8(%rsp),%rax
  lea    0x50(%rbp,%rax,1),%r15
  mov    $0x1,%r14d
  mov    $0x2,%eax
  sub    %rbx,%rax
  mov    %rax,0x10(%rsp)
  lea    0x2(%r9),%r11
  lea    0x2(%rbx),%r10
  mov    %rbp,0x28(%rsp)
  mov    0x20(%rsp),%rbp
  jmp    L83
L68:
  mov    %rcx,%rdx
  add    $0x1,%rcx
  mov    %rdx,0x8(%rax)
  lea    0x2(%rdx),%rsi
  mov    %rsi,0x10(%rax)
  lea    (%rdx,%r9,1),%rsi
  mov    %rsi,0x18(%rax)
  lea    (%r11,%rdx,1),%rdi
  mov    %rdi,0x20(%rax)
  lea    (%r10,%rdx,1),%rdi
  mov    %rdi,0x28(%rax)
  sub    %rbx,%rsi
  mov    %rsi,0x30(%rax)
  add    %rbp,%rdx
  mov    %rdx,0x38(%rax)
  mov    %rcx,0x40(%rax)
  movq   $0x5,(%rax)
  movq   $0xffffffffffffffff,0x48(%rax)
  add    $0x50,%rax
  cmp    %r8,%rcx
  jne    L68
L103:
  add    $0x1,%r14
  add    0x8(%rsp),%r15
  add    %rbx,%r8
  cmp    %r14,%r12
  je     L17
L83:
  mov    0x10(%rsp),%rax
  lea    (%rax,%r8,1),%rcx
  mov    %r15,%rax
  cmp    $0x1,%r13
  ja     L68
  jmp    L103
L17:
  mov    0x28(%rsp),%rbp
L42:
  mov    0x18(%rsp),%rax
  mov    %rbp,(%rax)
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void imgngbs(size_t s0, size_t s1, size_t **ngbs) {
  size_t ind, i, j;
  size_t *n, numngb;
  assert((n = malloc(s0 * s1 * 10 * sizeof *n)) != NULL);
  ind = 0;
  n[ind * 10 + 1] = ind + s1 + 1;
  n[ind * 10 + 2] = ind + 1;
  n[ind * 10 + 3] = ind + s1;
  n[ind * 10] = 2;
  n[ind * 10 + 4] = -1;
  ;
  ind = s1 - 1;
  n[ind * 10 + 1] = ind + s1 - 1;
  n[ind * 10 + 2] = ind - 1;
  n[ind * 10 + 3] = ind + s1;
  n[ind * 10] = 2;
  n[ind * 10 + 4] = -1;
  ;
  ind = (s0 - 1) * s1;
  n[ind * 10 + 1] = ind - s1 + 1;
  n[ind * 10 + 2] = ind + 1;
  n[ind * 10 + 3] = ind - s1;
  n[ind * 10] = 2;
  n[ind * 10 + 4] = -1;
  ;
  ind = s0 * s1 - 1;
  n[ind * 10 + 1] = ind - s1 - 1;
  n[ind * 10 + 2] = ind - 1;
  n[ind * 10 + 3] = ind - s1;
  n[ind * 10] = 2;
  n[ind * 10 + 4] = -1;
  ;
  for (j = 1; j < s1 - 1; j++) {
    ind = j;
    n[ind * 10 + 1] = ind + s1 + 1;
    n[ind * 10 + 2] = ind + s1 - 1;
    n[ind * 10 + 3] = ind + 1;
    n[ind * 10 + 4] = ind - 1;
    n[ind * 10 + 5] = ind + s1;
    n[ind * 10] = 3;
    n[ind * 10 + 6] = -1;
    ;
  }
  for (j = 1; j < s1 - 1; j++) {
    ind = (s0 - 1) * s1 + j;
    n[ind * 10 + 1] = ind - s1 + 1;
    n[ind * 10 + 2] = ind - s1 - 1;
    n[ind * 10 + 3] = ind + 1;
    n[ind * 10 + 4] = ind - 1;
    n[ind * 10 + 5] = ind - s1;
    n[ind * 10] = 3;
    n[ind * 10 + 6] = -1;
    ;
  }
  for (i = 1; i < s0 - 1; i++) {
    ind = i * s1;
    n[ind * 10 + 1] = ind - s1 + 1;
    n[ind * 10 + 2] = ind + s1 + 1;
    n[ind * 10 + 3] = ind + 1;
    n[ind * 10 + 4] = ind + s1;
    n[ind * 10 + 5] = ind - s1;
    n[ind * 10] = 3;
    n[ind * 10 + 6] = -1;
    ;
  }
  for (i = 1; i < s0 - 1; i++) {
    ind = (i + 1) * s1 - 1;
    n[ind * 10 + 1] = ind - s1 - 1;
    n[ind * 10 + 2] = ind + s1 - 1;
    n[ind * 10 + 3] = ind - 1;
    n[ind * 10 + 4] = ind + s1;
    n[ind * 10 + 5] = ind - s1;
    n[ind * 10] = 3;
    n[ind * 10 + 6] = -1;
    ;
  }
  for (i = 1; i < s0 - 1; i++)
    for (j = 1; j < s1 - 1; j++) {
      ind = i * s1 + j;
      n[ind * 10 + 1] = ind - s1 - 1;
      n[ind * 10 + 2] = ind - s1 + 1;
      n[ind * 10 + 3] = ind + s1 - 1;
      n[ind * 10 + 4] = ind + s1 + 1;
      n[ind * 10 + 5] = ind + 1;
      n[ind * 10 + 6] = ind - 1;
      n[ind * 10 + 7] = ind + s1;
      n[ind * 10 + 8] = ind - s1;
      n[ind * 10] = 5;
      n[ind * 10 + 9] = -1;
    }
  if (0) {
    for (i = 0; i < s0; i++)
      for (j = 0; j < s1; j++) {
        printf("%lu: ", i * s1 + j);
        numngb = n[(i * s1 + j) * 10];
        ;
        do
          printf("%lu, ", n[(i * s1 + j) * 10 + numngb]);
        while (n[(i * s1 + j) * 10 + ++numngb] != (size_t)(-1));
        printf("\b\b.\n");
      }
  }
  *ngbs = n;
}
```