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

```asm
<makecomat3D>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  mov    %r8d,-0x3c(%rbp)
  mov    %r9,-0x48(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L177
L119:
  movl   $0x0,-0x1c(%rbp)
  jmp    L64
L137:
  movl   $0x0,-0x18(%rbp)
  jmp    L143
L52:
  mov    -0x20(%rbp),%eax
  imul   -0x38(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  imul   -0x3c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  jne    L146
  mov    -0x20(%rbp),%eax
  imul   -0x38(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  imul   -0x3c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x48(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x10(%rbp)
  js     L146
  mov    -0x10(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jge    L146
  cmpl   $0x0,-0xc(%rbp)
  js     L146
  mov    -0xc(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jge    L146
  cmpl   $0x0,-0x8(%rbp)
  js     L146
  mov    -0x8(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jge    L146
  mov    -0x10(%rbp),%eax
  imul   -0x38(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  imul   -0x3c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  jne    L146
  mov    -0x10(%rbp),%eax
  imul   -0x38(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  imul   -0x3c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  js     L146
  mov    -0x14(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jge    L146
  cmpl   $0x0,-0x4(%rbp)
  js     L146
  mov    -0x4(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jge    L146
  mov    -0x14(%rbp),%eax
  imul   0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
L146:
  addl   $0x1,-0x18(%rbp)
L143:
  mov    -0x18(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L52
  addl   $0x1,-0x1c(%rbp)
L64:
  mov    -0x1c(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jl     L137
  addl   $0x1,-0x20(%rbp)
L177:
  mov    -0x20(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L119
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void makecomat3D(int *input, int *mask, int xi, int yi, int zi, int *coords, int levels, int *output) {
  int x, y, z, xval, yval, zval, i, j;
  for (x = 0; x < xi; x++) {
    for (y = 0; y < yi; y++) {
      for (z = 0; z < zi; z++) {
        if (mask[(x * yi + y) * zi + z] == 1) {
          i = input[(x * yi + y) * zi + z];
          xval = x + coords[0];
          yval = y + coords[1];
          zval = z + coords[2];
          if ((xval >= 0) && (xval < xi) && (yval >= 0) && (yval < yi) && (zval >= 0) && (zval < zi)) {
            if (mask[(xval * yi + yval) * zi + zval] == 1) {
              j = input[(xval * yi + yval) * zi + zval];
              if (i >= 0 && i < levels && j >= 0 && j < levels) {
                output[i * levels + j]++;
              }
            }
          }
        }
      }
    }
  }
}
```