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

```asm
<init_uvwp>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  mov    %r8,%rdi
  push   %r14
  push   %r13
  push   %r12
  lea    0x1(%rsi),%r12d
  push   %rbp
  lea    0x1(%rdx),%ebp
  push   %rbx
  mov    %ebp,%r8d
  sub    $0x60,%rsp
  mov    0xa8(%rsp),%rbx
  movsd  %xmm3,0x8(%rsp)
  mov    0x98(%rsp),%r13
  mov    %esi,0x48(%rsp)
  mov    0xa0(%rsp),%r14
  xor    %esi,%esi
  mov    %rbx,0x30(%rsp)
  lea    0x1(%rcx),%ebx
  movsd  %xmm2,0x10(%rsp)
  mov    %edx,0x2c(%rsp)
  mov    %r12d,%edx
  mov    %ecx,0x28(%rsp)
  xor    %ecx,%ecx
  mov    %r9,0x38(%rsp)
  xor    %r9d,%r9d
  mov    %ebx,0x4c(%rsp)
  movsd  %xmm1,0x18(%rsp)
  mov    %ebp,0x54(%rsp)
  mov    %r12d,0x50(%rsp)
  push   %rbx
  mov    %rdi,0x48(%rsp)
  call   <init_matrix2@plt>
  movsd  0x20(%rsp),%xmm1
  xor    %r9d,%r9d
  xor    %ecx,%ecx
  mov    0x40(%rsp),%rdi
  mov    %ebp,%r8d
  mov    %r12d,%edx
  xor    %esi,%esi
  movapd %xmm1,%xmm0
  mov    %ebx,(%rsp)
  call   <init_matrix2@plt>
  movsd  0x18(%rsp),%xmm2
  xor    %r9d,%r9d
  xor    %ecx,%ecx
  mov    %ebp,%r8d
  mov    %r12d,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  movapd %xmm2,%xmm0
  mov    %ebx,(%rsp)
  call   <init_matrix2@plt>
  movsd  0x10(%rsp),%xmm3
  xor    %ecx,%ecx
  xor    %esi,%esi
  xor    %r9d,%r9d
  mov    %ebp,%r8d
  mov    %r12d,%edx
  mov    %r14,%rdi
  movapd %xmm3,%xmm0
  mov    %ebx,(%rsp)
  call   <init_matrix2@plt>
  pop    %rcx
  pop    %rsi
  test   %r12d,%r12d
  js     L89
  test   %ebp,%ebp
  js     L43
  test   %ebx,%ebx
  js     L49
  mov    0x30(%rsp),%rax
  movl   $0x0,0x8(%rsp)
  mov    0x38(%rsp),%r12
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax)
L190:
  movq   $0x0,(%rsp)
L98:
  mov    (%rsp),%rax
  xor    %ebx,%ebx
  lea    0x0(,%rax,8),%rbp
  lea    -0x8(%rbp),%rax
  mov    %rax,0x18(%rsp)
  mov    %rbp,%rax
  mov    %r15,%rbp
  mov    %rax,%r15
L68:
  mov    0x0(%rbp),%rax
  mov    (%rax,%r15,1),%rax
  mov    (%rax,%rbx,4),%edi
  call   <isfluid@plt>
  test   %eax,%eax
  jne    L83
  mov    (%r12),%rdi
  mov    0x8(%rsp),%edx
  lea    0x0(,%rbx,8),%rax
  mov    (%rdi,%r15,1),%rdi
  movq   $0x0,(%rdi,%rbx,8)
  test   %edx,%edx
  je     L79
  mov    -0x8(%r12),%rdi
  mov    (%rdi,%r15,1),%rdi
  movq   $0x0,(%rdi,%rbx,8)
L79:
  mov    0x10(%rsp),%rcx
  cmpq   $0x0,(%rsp)
  mov    (%rcx),%rdi
  mov    (%rdi,%r15,1),%r8
  movq   $0x0,(%r8,%rax,1)
  je     L58
  mov    0x18(%rsp),%rsi
  mov    (%rdi,%rsi,1),%rdi
  movq   $0x0,(%rdi,%rax,1)
L58:
  mov    0x0(%r13),%rdi
  mov    (%rdi,%r15,1),%rdi
  movq   $0x0,(%rdi,%rax,1)
  test   %rbx,%rbx
  je     L214
  movq   $0x0,-0x8(%rdi,%rax,1)
L214:
  mov    (%r14),%rdi
  mov    (%rdi,%r15,1),%rdi
  movq   $0x0,(%rdi,%rax,1)
L83:
  add    $0x1,%rbx
  lea    -0x1(%rbx),%eax
  cmp    %eax,0x20(%rsp)
  jge    L68
  addq   $0x1,(%rsp)
  mov    (%rsp),%rax
  mov    %rbp,%r15
  sub    $0x1,%eax
  cmp    0x24(%rsp),%eax
  jle    L98
  mov    0x8(%rsp),%ecx
  add    $0x8,%r15
  add    $0x8,%r14
  add    $0x8,%r13
  addq   $0x8,0x10(%rsp)
  add    $0x8,%r12
  lea    0x1(%rcx),%eax
  cmp    %ecx,0x40(%rsp)
  jl     L49
  mov    %eax,0x8(%rsp)
  jmp    L190
L49:
  mov    0x28(%rsp),%rdi
  lea    D6(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L144
L101:
  pxor   %xmm1,%xmm1
  mov    0x4c(%rsp),%eax
  mov    0x40(%rsp),%r9d
  xor    %r8d,%r8d
  cvtsi2sdl 0x20(%rsp),%xmm1
  movsd  D46(%rip),%xmm2
  mov    0x38(%rsp),%r10
  pxor   %xmm3,%xmm3
  lea    0x8(,%rax,8),%rdi
  mulsd  %xmm2,%xmm1
  nopl   (%rax)
L208:
  comisd %xmm3,%xmm1
  jb     L120
  mov    (%r10,%r8,8),%rsi
  xor    %ecx,%ecx
  nopl   0x0(%rax)
L5:
  mov    (%rsi,%rcx,1),%rdx
  mov    $0x1,%eax
  nopl   0x0(%rax)
L123:
  movsd  -0x8(%rdx,%rax,8),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,-0x8(%rdx,%rax,8)
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  add    $0x1,%rax
  comisd %xmm0,%xmm1
  jae    L123
  add    $0x8,%rcx
  cmp    %rdi,%rcx
  jne    L5
L120:
  add    $0x1,%r8
  lea    -0x1(%r8),%eax
  cmp    %eax,%r9d
  jge    L208
L207:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L144:
  mov    0x28(%rsp),%rdi
  lea    D57(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L101
L169:
  mov    0x28(%rsp),%rdi
  lea    D87(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L207
  mov    0x44(%rsp),%ecx
  test   %ecx,%ecx
  js     L207
  mov    0x48(%rsp),%eax
  mov    0x30(%rsp),%rbp
  lea    0x8(%rbp,%rax,8),%r12
  movslq %ecx,%rax
  lea    0x8(,%rax,8),%r13
L33:
  xor    %ebx,%ebx
L30:
  mov    0x0(%rbp),%rax
  mov    %r13,%rdx
  xor    %esi,%esi
  mov    (%rax,%rbx,1),%rdi
  add    $0x8,%rbx
  call   <memset@plt>
  cmp    $0x50,%rbx
  jne    L30
  add    $0x8,%rbp
  cmp    %rbp,%r12
  jne    L33
  jmp    L207
L89:
  mov    0x28(%rsp),%rdi
  lea    D6(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L207
  mov    0x28(%rsp),%rdi
  lea    D57(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L207
  mov    0x28(%rsp),%rdi
  add    $0x58,%rsp
  lea    D87(%rip),%rsi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10a0 <strcmp@plt>
L43:
  mov    0x28(%rsp),%rdi
  lea    D6(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L207
  mov    0x28(%rsp),%rdi
  lea    D57(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L207
  jmp    L169
```

tool_calls: name: parse_data
arguments: data_tag: D6
datatype: string
name: parse_data
arguments: data_tag: D46
datatype: f64
name: parse_data
arguments: data_tag: D57
datatype: string
name: parse_data
arguments: data_tag: D87
datatype: string

tool: D6: step.pgm

tool: D46: 0.5

tool: D57: surface.pgm

tool: D87: drop.pgm

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 = 0; i <= imax + 1; i++) {
    for (j = 0; j <= jmax + 1; j++) {
      for (k = 0; k <= kmax + 1; k++) {
        if (!isfluid(Flag[i][j][k])) {
          U[i][j][k] = 0;
          if (i > 0)
            U[i - 1][j][k] = 0;
          V[i][j][k] = 0;
          if (j > 0)
            V[i][j - 1][k] = 0;
          W[i][j][k] = 0;
          if (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] = U[i][j][k] * 0.5;
        }
      }
    }
  } else if (strcmp(problem, "drop.pgm") == 0) {
    for (i = 0; i <= imax + 1; i++) {
      for (j = 0; j < 10; j++) {
        for (k = 0; k <= kmax + 1; k++) {
          V[i][j][k] = 0;
        }
      }
    }
  }
}
```