user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<init_uvwp>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x60,%rsp
  movq   %xmm1,%rbp
  movq   %xmm2,%r13
  movq   %xmm3,%r15
  mov    %rdi,%r12
  mov    %esi,0x48(%rsp)
  mov    %edx,0x38(%rsp)
  mov    %ecx,0x14(%rsp)
  mov    %r8,%r10
  mov    %r9,0x40(%rsp)
  mov    0x98(%rsp),%r14
  mov    0xa0(%rsp),%rbx
  add    $0x1,%ecx
  lea    0x1(%rdx),%edi
  lea    0x1(%rsi),%eax
  mov    %ecx,0x34(%rsp)
  push   %rcx
  mov    $0x0,%r9d
  mov    %edi,0x44(%rsp)
  mov    %edi,%r8d
  mov    $0x0,%ecx
  mov    %eax,0x54(%rsp)
  mov    %eax,%edx
  mov    $0x0,%esi
  mov    %r10,0x58(%rsp)
  mov    %r10,%rdi
  call   <init_matrix2@plt>
  mov    0x3c(%rsp),%ecx
  mov    %ecx,(%rsp)
  movq   %rbp,%xmm0
  mov    $0x0,%r9d
  mov    0x44(%rsp),%r8d
  mov    $0x0,%ecx
  mov    0x54(%rsp),%ebp
  mov    %ebp,%edx
  mov    $0x0,%esi
  mov    0x48(%rsp),%rdi
  call   <init_matrix2@plt>
  mov    0x3c(%rsp),%ecx
  mov    %ecx,(%rsp)
  movq   %r13,%xmm0
  mov    $0x0,%r9d
  mov    0x44(%rsp),%r13d
  mov    %r13d,%r8d
  mov    $0x0,%ecx
  mov    %ebp,%edx
  mov    $0x0,%esi
  mov    %r14,%rdi
  call   <init_matrix2@plt>
  mov    0x3c(%rsp),%ecx
  mov    %ecx,(%rsp)
  movq   %r15,%xmm0
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    $0x0,%ecx
  mov    %ebp,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <init_matrix2@plt>
  add    $0x10,%rsp
  test   %ebp,%ebp
  js     L90
  mov    %rbx,0x18(%rsp)
  mov    0x38(%rsp),%r13
  mov    0x48(%rsp),%r15
  movl   $0x0,0x28(%rsp)
  jmp    L182
L133:
  mov    0x18(%rsp),%rdi
  mov    (%rdi),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,(%rdx,%rax,1)
L197:
  add    $0x1,%rbx
  lea    -0x1(%rbx),%eax
  cmp    %eax,0xc(%rsp)
  jl     L85
L263:
  mov    (%r12),%rax
  mov    (%rax,%rbp,1),%rax
  mov    (%rax,%rbx,4),%edi
  call   <isfluid@plt>
  test   %eax,%eax
  jne    L197
  lea    0x0(,%rbx,8),%rax
  mov    (%r15),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,(%rdx,%rbx,8)
  cmpl   $0x0,0x28(%rsp)
  jle    L335
  mov    -0x8(%r15),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,(%rdx,%rbx,8)
L335:
  mov    0x0(%r13),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,(%rdx,%rax,1)
  cmpl   $0x0,0x10(%rsp)
  jle    L1
  mov    0x0(%r13),%rdx
  mov    0x20(%rsp),%rsi
  mov    (%rdx,%rsi,1),%rdx
  movq   $0x0,(%rdx,%rax,1)
L1:
  mov    (%r14),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,(%rdx,%rax,1)
  test   %ebx,%ebx
  jle    L133
  mov    (%r14),%rdx
  mov    (%rdx,%rbp,1),%rdx
  movq   $0x0,-0x8(%rdx,%rax,1)
  jmp    L133
L85:
  addq   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%rax
  sub    $0x1,%eax
  cmp    %eax,0x30(%rsp)
  jl     L214
L132:
  mov    0x10(%rsp),%rax
  lea    0x0(,%rax,8),%rbp
  lea    -0x8(%rbp),%rax
  mov    %rax,0x20(%rsp)
  mov    $0x0,%ebx
  cmpl   $0x0,0x2c(%rsp)
  jns    L263
  jmp    L85
L214:
  mov    0x28(%rsp),%ecx
  lea    0x1(%rcx),%eax
  addq   $0x8,0x18(%rsp)
  add    $0x8,%r14
  add    $0x8,%r13
  add    $0x8,%r15
  add    $0x8,%r12
  cmp    %ecx,0x40(%rsp)
  jl     L270
  mov    %eax,0x28(%rsp)
L182:
  movq   $0x0,0x10(%rsp)
  cmpl   $0x0,0x34(%rsp)
  jns    L132
  jmp    L214
L38:
  mov    (%rdi),%rcx
  mov    %rdx,%rbx
  add    (%rcx,%rsi,1),%rbx
  movapd %xmm2,%xmm0
  mulsd  (%rbx),%xmm0
  movsd  %xmm0,(%rbx)
  add    $0x1,%eax
  add    $0x8,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  comisd %xmm0,%xmm1
  jae    L38
L194:
  add    $0x8,%rsi
  cmp    %rsi,%r8
  je     L142
L11:
  mov    $0x0,%edx
  mov    $0x0,%eax
  comisd %xmm3,%xmm1
  jae    L38
  jmp    L194
L142:
  lea    0x1(%r9),%eax
  add    $0x8,%rdi
  cmp    %r9d,%r11d
  jl     L112
  mov    %eax,%r9d
L234:
  test   %r10d,%r10d
  js     L142
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0xc(%rsp),%xmm1
  mulsd  %xmm4,%xmm1
  mov    $0x0,%esi
  jmp    L11
L108:
  mov    (%rsi),%rdx
  mov    (%rdx,%rcx,1),%rdx
  movq   $0x0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%rdi
  jne    L108
L123:
  add    $0x8,%rcx
  cmp    $0x50,%rcx
  je     L253
L211:
  mov    $0x0,%eax
  test   %r9d,%r9d
  jns    L108
  jmp    L123
L253:
  add    $0x8,%rsi
  cmp    %r8,%rsi
  je     L112
L46:
  mov    $0x0,%ecx
  jmp    L211
L270:
  lea    D29(%rip),%rsi
  mov    0xa0(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L16
L72:
  mov    0x48(%rsp),%rdi
  mov    0x30(%rsp),%eax
  lea    0x1(%rax),%eax
  lea    0x8(,%rax,8),%r8
  mov    $0x0,%r9d
  movsd  D33(%rip),%xmm4
  pxor   %xmm3,%xmm3
  movapd %xmm4,%xmm2
  mov    0x34(%rsp),%r10d
  mov    0x40(%rsp),%r11d
  jmp    L234
L90:
  lea    D29(%rip),%rsi
  mov    0xa0(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L159
L112:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L159:
  lea    D16(%rip),%rsi
  mov    0xa0(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L112
  jmp    L244
L16:
  lea    D16(%rip),%rsi
  mov    0xa0(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L72
L244:
  lea    D10(%rip),%rsi
  mov    0xa0(%rsp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L112
  cmpl   $0x0,0x44(%rsp)
  js     L112
  mov    0x38(%rsp),%rcx
  mov    %rcx,%rsi
  mov    0x40(%rsp),%eax
  lea    0x1(%rax),%eax
  lea    0x8(%rcx,%rax,8),%r8
  mov    0xc(%rsp),%eax
  lea    0x1(%rax),%eax
  lea    0x8(,%rax,8),%rdi
  mov    0x2c(%rsp),%r9d
  jmp    L46
```

tool_calls: name: read_data
arguments: data_tag: D29
type_guessed: string
name: read_data
arguments: data_tag: D33
type_guessed: f64
name: read_data
arguments: data_tag: D16
type_guessed: string
name: read_data
arguments: data_tag: D10
type_guessed: string

tool: D29: step.pgm

tool: D33: 0.5

tool: D16: surface.pgm

tool: D10: 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;
        }
      }
    }
  }
}
```