user: 请将以下的汇编代码转换成C语言代码:

```asm
<treatBoundary>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %rdx,%r12
  mov    %rcx,%r15
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    (%rcx),%eax
  add    $0x2,%eax
  mov    %eax,0x1c(%rsp)
  mov    0x4(%rcx),%eax
  add    $0x2,%eax
  mov    %eax,0x20(%rsp)
  mov    0x8(%rcx),%edx
  add    $0x2,%edx
  mov    %edx,0x24(%rsp)
  movl   $0x0,0x18(%rsp)
  test   %eax,%eax
  jle    L32
  movl   $0x0,(%rsp)
  lea    0x10(%rsp),%r14
L79:
  mov    (%rsp),%eax
  mov    %eax,0x14(%rsp)
  cmpl   $0x0,0x1c(%rsp)
  jle    L135
  mov    $0x0,%r13d
L29:
  mov    %r13d,0x10(%rsp)
  lea    0x1c(%rsp),%rcx
  mov    %r14,%r8
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <boundaryCell@plt>
  add    $0x1,%r13d
  cmp    %r13d,0x1c(%rsp)
  jg     L29
L135:
  addl   $0x1,(%rsp)
  mov    (%rsp),%eax
  cmp    %eax,0x20(%rsp)
  jg     L79
L32:
  mov    0x8(%r15),%eax
  test   %eax,%eax
  jle    L119
  movl   $0x1,0xc(%rsp)
  lea    0x10(%rsp),%r14
L17:
  mov    0xc(%rsp),%eax
  mov    %eax,0x18(%rsp)
  movl   $0x0,0x14(%rsp)
  cmpl   $0x0,0x1c(%rsp)
  jle    L57
  mov    $0x0,%r13d
L59:
  mov    %r13d,0x10(%rsp)
  lea    0x1c(%rsp),%rcx
  mov    %r14,%r8
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <boundaryCell@plt>
  add    $0x1,%r13d
  cmp    %r13d,0x1c(%rsp)
  jg     L59
L57:
  mov    0x4(%r15),%eax
  test   %eax,%eax
  jle    L31
  mov    $0x1,%r13d
L41:
  mov    %r13d,0x14(%rsp)
  movl   $0x0,0x10(%rsp)
  lea    0x1c(%rsp),%rax
  mov    %r14,%r8
  mov    %rax,(%rsp)
  mov    %rax,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <boundaryCell@plt>
  mov    (%r15),%esi
  lea    0x1(%rsi),%eax
  mov    %eax,0x10(%rsp)
  mov    %r14,%r8
  mov    (%rsp),%rcx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <boundaryCell@plt>
  add    $0x1,%r13d
  mov    0x4(%r15),%eax
  cmp    %r13d,%eax
  jge    L41
L31:
  add    $0x1,%eax
  mov    %eax,0x14(%rsp)
  cmpl   $0x0,0x1c(%rsp)
  jle    L100
  mov    $0x0,%r13d
L40:
  mov    %r13d,0x10(%rsp)
  lea    0x1c(%rsp),%rcx
  mov    %r14,%r8
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <boundaryCell@plt>
  add    $0x1,%r13d
  cmp    %r13d,0x1c(%rsp)
  jg     L40
L100:
  addl   $0x1,0xc(%rsp)
  mov    0xc(%rsp),%edi
  mov    0x8(%r15),%eax
  cmp    %edi,%eax
  jge    L17
L119:
  add    $0x1,%eax
  mov    %eax,0x18(%rsp)
  cmpl   $0x0,0x20(%rsp)
  jle    L8
  mov    $0x0,%r15d
  lea    0x10(%rsp),%r14
L154:
  mov    %r15d,0x14(%rsp)
  cmpl   $0x0,0x1c(%rsp)
  jle    L120
  mov    $0x0,%r13d
L21:
  mov    %r13d,0x10(%rsp)
  lea    0x1c(%rsp),%rcx
  mov    %r14,%r8
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <boundaryCell@plt>
  add    $0x1,%r13d
  cmp    %r13d,0x1c(%rsp)
  jg     L21
L120:
  add    $0x1,%r15d
  cmp    %r15d,0x20(%rsp)
  jg     L154
L8:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L140
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L140:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void treatBoundary(double *collideField, int *flagField, const double *const wallVelocity, int *length) {
  int x, y, z;
  int node[3];
  int n[3] = {length[0] + 2, length[1] + 2, length[2] + 2};
  node[2] = 2;
  node[2] = 0;
  for (y = 0; y < n[1]; ++y) {
    node[1] = y;
    for (x = 0; x < n[0]; ++x) {
      node[0] = x;
      boundaryCell(collideField, flagField, wallVelocity, n, node);
    }
  }
  for (z = 1; z <= length[2]; ++z) {
    node[2] = z;
    node[1] = 0;
    for (x = 0; x < n[0]; ++x) {
      node[0] = x;
      boundaryCell(collideField, flagField, wallVelocity, n, node);
    }
    for (y = 1; y <= length[1]; ++y) {
      node[1] = y;
      node[0] = 0;
      boundaryCell(collideField, flagField, wallVelocity, n, node);
      node[0] = length[0] + 1;
      boundaryCell(collideField, flagField, wallVelocity, n, node);
    }
    y = length[1] + 1;
    node[1] = y;
    for (x = 0; x < n[0]; ++x) {
      node[0] = x;
      boundaryCell(collideField, flagField, wallVelocity, n, node);
    }
  }
  node[2] = length[2] + 1;
  for (y = 0; y < n[1]; ++y) {
    node[1] = y;
    for (x = 0; x < n[0]; ++x) {
      node[0] = x;
      boundaryCell(collideField, flagField, wallVelocity, n, node);
    }
  }
}
```