user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<init_uvwp>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x60,%rsp
  movq   %xmm1,%r13
  movq   %xmm2,%r14
  movq   %xmm3,%rbp
  mov    %rdi,0x48(%rsp)
  mov    %esi,0x44(%rsp)
  mov    %edx,0x34(%rsp)
  mov    %ecx,0x14(%rsp)
  mov    %r8,%r10
  mov    %r9,%r12
  mov    0x98(%rsp),%r15
  lea    0x1(%rcx),%eax
  lea    0x1(%rdx),%ecx
  lea    0x1(%rsi),%ebx
  mov    %eax,0x30(%rsp)
  push   %rax
  mov    $0x0,%r9d
  mov    %ecx,0x48(%rsp)
  mov    %ecx,%r8d
  mov    $0x0,%ecx
  mov    %ebx,%edx
  mov    $0x0,%esi
  mov    %r10,0x58(%rsp)
  mov    %r10,%rdi
  call   <init_matrix2@plt>
  mov    0x38(%rsp),%eax
  mov    %eax,(%rsp)
  movq   %r13,%xmm0
  mov    $0x0,%r9d
  mov    0x48(%rsp),%r8d
  mov    $0x0,%ecx
  mov    %ebx,%edx
  mov    $0x0,%esi
  mov    %r12,%rdi
  call   <init_matrix2@plt>
  mov    0x38(%rsp),%r13d
  mov    %r13d,(%rsp)
  movq   %r14,%xmm0
  mov    $0x0,%r9d
  mov    0x48(%rsp),%r14d
  mov    %r14d,%r8d
  mov    $0x0,%ecx
  mov    %ebx,%edx
  mov    $0x0,%esi
  mov    %r15,%rdi
  call   <init_matrix2@plt>
  mov    %r13d,(%rsp)
  movq   %rbp,%xmm0
  mov    $0x0,%r9d
  mov    %r14d,%r8d
  mov    $0x0,%ecx
  mov    %ebx,%edx
  mov    $0x0,%esi
  mov    0xa8(%rsp),%rdi
  call   <init_matrix2@plt>
  add    $0x10,%rsp
  test   %ebx,%ebx
  jle    L134
  mov    0x48(%rsp),%r14
  add    $0x8,%r12
  add    $0x8,%r15
  mov    0x98(%rsp),%rsi
  add    $0x8,%rsi
  mov    %rsi,0x18(%rsp)
  mov    0x40(%rsp),%rax
  lea    0x8(%rax),%r13
  movq   $0x0,0x30(%rsp)
  jmp    L205
L221:
  add    $0x1,%rbx
  cmp    %ebx,0xc(%rsp)
  jl     L160
L94:
  mov    0x0(%r13),%rax
  mov    (%rax,%rbp,1),%rax
  mov    0x4(%rax,%rbx,4),%edi
  call   <isfluid@plt>
  test   %eax,%eax
  jne    L221
  lea    0x1(%rbx),%rax
  mov    0x8(%r14),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,(%rdx,%rax,8)
  mov    (%r14),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,(%rdx,%rax,8)
  mov    (%r12),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,(%rdx,%rax,8)
  mov    (%r12),%rdx
  mov    0x10(%rsp),%rsi
  mov    (%rdx,%rsi,1),%rdx
  movq   $0x0,(%rdx,%rax,8)
  mov    (%r15),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,(%rdx,%rax,8)
  mov    (%r15),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,-0x8(%rdx,%rax,8)
  mov    0x18(%rsp),%rsi
  mov    (%rsi),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,(%rdx,%rax,8)
  jmp    L221
L160:
  addq   $0x1,0x20(%rsp)
  mov    0x20(%rsp),%rax
  cmp    %eax,0x2c(%rsp)
  jl     L192
L38:
  cmpl   $0x0,0x28(%rsp)
  jle    L160
  mov    0x20(%rsp),%rax
  lea    0x8(,%rax,8),%rbp
  shl    $0x3,%rax
  mov    %rax,0x10(%rsp)
  mov    $0x0,%ebx
  jmp    L94
L192:
  addq   $0x1,0x30(%rsp)
  mov    0x30(%rsp),%rax
  add    $0x8,%r14
  add    $0x8,%r12
  add    $0x8,%r15
  addq   $0x8,0x18(%rsp)
  add    $0x8,%r13
  cmp    %eax,0x3c(%rsp)
  jl     L182
L205:
  movq   $0x0,0x20(%rsp)
  cmpl   $0x0,0x38(%rsp)
  jg     L38
  jmp    L192
L134:
  lea    D42(%rip),%rsi
  mov    0xa0(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L21
L80:
  test   %ebx,%ebx
  js     L97
  jmp    L176
L21:
  lea    D14(%rip),%rsi
  mov    0xa0(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L97
  jmp    L80
L57:
  mov    (%rdi),%rcx
  mov    (%rcx,%rsi,1),%rcx
  movq   $0x0,(%rcx,%rdx,1)
  add    $0x1,%eax
  add    $0x8,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  comisd %xmm0,%xmm1
  jae    L57
L86:
  add    $0x8,%rsi
  cmp    %rsi,%r8
  je     L181
L68:
  mov    $0x0,%edx
  mov    $0x0,%eax
  comisd %xmm2,%xmm1
  jae    L57
  jmp    L86
L181:
  lea    0x1(%r9),%eax
  add    $0x8,%rdi
  cmp    %r9d,%r11d
  jl     L97
  mov    %eax,%r9d
L202:
  test   %r10d,%r10d
  js     L181
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0xc(%rsp),%xmm1
  mulsd  %xmm3,%xmm1
  mov    $0x0,%esi
  jmp    L68
L182:
  lea    D42(%rip),%rsi
  mov    0xa0(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L179
L176:
  mov    0x48(%rsp),%rdi
  mov    0x2c(%rsp),%eax
  lea    0x1(%rax),%eax
  lea    0x8(,%rax,8),%r8
  mov    $0x0,%r9d
  movsd  D0(%rip),%xmm3
  pxor   %xmm2,%xmm2
  mov    0x38(%rsp),%r10d
  mov    0x3c(%rsp),%r11d
  jmp    L202
L179:
  lea    D14(%rip),%rsi
  mov    0xa0(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L176
L97:
  mov    0xc(%rsp),%r8d
  mov    0x2c(%rsp),%ecx
  mov    0x3c(%rsp),%edx
  mov    0x40(%rsp),%rsi
  mov    0x98(%rsp),%rdi
  call   <boundaryvalues_pressure@plt>
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: label: D42
datatype: string
name: unpack_data
arguments: label: D14
datatype: string
name: unpack_data
arguments: label: D0
datatype: f64

tool: D42: step.pgm

tool: D14: surface.pgm

tool: D0: 0.5

assistant: ```c
void init_uvwp(double UI, double VI, double WI, double PI, int ***Flag, int imax, int jmax, int kmax, double ***U, double ***V, double ***W, double ***P, char *problem) {
  int i, j, k;
  init_matrix2(U, 0, imax + 1, 0, jmax + 1, 0, kmax + 1, UI);
  init_matrix2(V, 0, imax + 1, 0, jmax + 1, 0, kmax + 1, VI);
  init_matrix2(W, 0, imax + 1, 0, jmax + 1, 0, kmax + 1, WI);
  init_matrix2(P, 0, imax + 1, 0, jmax + 1, 0, kmax + 1, PI);
  for (i = 1; i <= imax + 1; i++) {
    for (j = 1; j <= jmax + 1; j++) {
      for (k = 1; k <= kmax + 1; k++) {
        if (!isfluid(Flag[i][j][k])) {
          U[i][j][k] = 0;
          U[i - 1][j][k] = 0;
          V[i][j][k] = 0;
          V[i][j - 1][k] = 0;
          W[i][j][k] = 0;
          W[i][j][k - 1] = 0;
          P[i][j][k] = 0;
        }
      }
    }
  }
  if (strcmp(problem, "step.pgm") == 0 || strcmp(problem, "surface.pgm") == 0) {
    for (i = 0; i <= imax + 1; i++) {
      for (j = 0; j <= jmax + 1; j++) {
        for (k = 0; k <= kmax * 0.5; k++) {
          U[i][j][k] = 0;
        }
      }
    }
  }
  boundaryvalues_pressure(P, Flag, imax, jmax, kmax);
}
```