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

```asm
<VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %edi,%eax
  movsd  %xmm0,0x20(%rsp)
  movsd  %xmm1,0x28(%rsp)
  movsd  %xmm2,0x78(%rsp)
  movsd  %xmm3,0x80(%rsp)
  movsd  %xmm4,0x88(%rsp)
  movsd  %xmm5,0x90(%rsp)
  movsd  %xmm6,0x98(%rsp)
  mov    %rdx,0xa0(%rsp)
  mov    %rcx,0xa8(%rsp)
  mov    %r8,0xb0(%rsp)
  mov    %r9,0x30(%rsp)
  movsd  D123(%rip),%xmm2
  movsd  %xmm2,0x70(%rsp)
  test   %esi,%esi
  je     L63
  pxor   %xmm2,%xmm2
  movsd  %xmm2,0x70(%rsp)
L63:
  test   %eax,%eax
  jle    L31
  mov    0x130(%rsp),%rbp
  mov    0x118(%rsp),%rbx
  mov    %rbx,0x38(%rsp)
  mov    0x120(%rsp),%rbx
  mov    %rbx,0x40(%rsp)
  mov    0x128(%rsp),%r13
  mov    %eax,%eax
  mov    %rax,0xb8(%rsp)
  mov    $0x0,%r12d
  mov    $0x0,%r15d
  mov    $0x0,%r14d
  mov    %r12,%rax
  mov    %r13,%r12
  mov    %rax,%r13
  jmp    L6
L12:
  call   <sqrt@plt>
  movsd  %xmm0,0x68(%rsp)
  jmp    L85
L2:
  call   <sqrt@plt>
  jmp    L70
L88:
  movsd  0x68(%rsp),%xmm6
  addsd  D159(%rip),%xmm6
  movsd  0x60(%rsp),%xmm11
  mulsd  %xmm11,%xmm6
  movapd %xmm2,%xmm5
  mulsd  %xmm0,%xmm5
  movsd  D123(%rip),%xmm4
  addsd  %xmm4,%xmm5
  movapd %xmm1,%xmm8
  xorpd  D53(%rip),%xmm8
  mov    0xa8(%rsp),%rcx
  mulsd  (%rcx),%xmm8
  movsd  0x58(%rsp),%xmm12
  movapd %xmm12,%xmm7
  mulsd  %xmm1,%xmm7
  movsd  0x78(%rsp),%xmm13
  mulsd  %xmm13,%xmm7
  mov    0x100(%rsp),%rax
  mulsd  (%rax,%r14,8),%xmm7
  mulsd  0x48(%rsp),%xmm7
  divsd  %xmm6,%xmm7
  subsd  %xmm7,%xmm8
  mulsd  %xmm1,%xmm1
  movsd  0x18(%rsp),%xmm10
  mulsd  %xmm10,%xmm1
  mulsd  %xmm3,%xmm1
  mulsd  %xmm5,%xmm1
  mulsd  0x50(%rsp),%xmm1
  addsd  %xmm1,%xmm8
  mov    0x230(%rsp),%rax
  movsd  %xmm8,(%rax,%r14,8)
  movsd  (%rbx),%xmm1
  movapd %xmm1,%xmm8
  xorpd  D53(%rip),%xmm8
  mulsd  0x8(%rcx),%xmm8
  movapd %xmm12,%xmm7
  mulsd  %xmm1,%xmm7
  mulsd  %xmm13,%xmm7
  mov    0x100(%rsp),%rax
  mulsd  (%rax,%r14,8),%xmm7
  mov    0x30(%rsp),%rdi
  mulsd  0x8(%rdi,%r15,1),%xmm7
  divsd  %xmm6,%xmm7
  subsd  %xmm7,%xmm8
  mulsd  %xmm1,%xmm1
  mulsd  %xmm10,%xmm1
  mulsd  %xmm3,%xmm1
  mulsd  %xmm5,%xmm1
  mov    0x8(%rsp),%rax
  mulsd  (%rax),%xmm1
  addsd  %xmm1,%xmm8
  mov    0x238(%rsp),%rdx
  movsd  %xmm8,(%rdx,%r14,8)
  movsd  (%rbx),%xmm1
  movapd %xmm1,%xmm8
  xorpd  D53(%rip),%xmm8
  mulsd  0x10(%rcx),%xmm8
  movapd %xmm12,%xmm7
  mulsd  %xmm1,%xmm7
  mulsd  %xmm13,%xmm7
  mov    0x100(%rsp),%rcx
  mulsd  (%rcx,%r14,8),%xmm7
  mulsd  0x10(%rdi,%r15,1),%xmm7
  divsd  %xmm6,%xmm7
  movapd %xmm8,%xmm6
  subsd  %xmm7,%xmm6
  mulsd  %xmm1,%xmm1
  mulsd  %xmm10,%xmm1
  mulsd  %xmm3,%xmm1
  mulsd  %xmm5,%xmm1
  mov    0x10(%rsp),%rsi
  mulsd  (%rsi),%xmm1
  addsd  %xmm1,%xmm6
  mov    0x240(%rsp),%rcx
  movsd  %xmm6,(%rcx,%r14,8)
  movsd  (%rbx),%xmm6
  mov    (%rsp),%rdi
  movsd  (%rdi),%xmm1
  movapd %xmm0,%xmm5
  addsd  D122(%rip),%xmm5
  mulsd  %xmm1,%xmm1
  divsd  %xmm5,%xmm1
  addsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm4,%xmm1
  mulsd  %xmm6,%xmm6
  mulsd  %xmm10,%xmm6
  mulsd  %xmm3,%xmm6
  mulsd  %xmm6,%xmm1
  mov    0x248(%rsp),%rcx
  movsd  %xmm1,(%rcx,%r14,8)
  movsd  (%rbx),%xmm7
  movsd  (%rdi),%xmm1
  mulsd  (%rax),%xmm1
  divsd  %xmm5,%xmm1
  mulsd  %xmm2,%xmm1
  pxor   %xmm6,%xmm6
  addsd  %xmm6,%xmm1
  mulsd  %xmm7,%xmm7
  mulsd  %xmm10,%xmm7
  mulsd  %xmm3,%xmm7
  mulsd  %xmm7,%xmm1
  mov    0x250(%rsp),%rdx
  movsd  %xmm1,(%rdx,%r14,8)
  movsd  (%rbx),%xmm7
  movsd  (%rdi),%xmm1
  mulsd  (%rsi),%xmm1
  divsd  %xmm5,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm6,%xmm1
  mulsd  %xmm7,%xmm7
  mulsd  %xmm10,%xmm7
  mulsd  %xmm3,%xmm7
  mulsd  %xmm7,%xmm1
  mov    0x258(%rsp),%rcx
  movsd  %xmm1,(%rcx,%r14,8)
  movsd  (%rbx),%xmm7
  movsd  (%rdi),%xmm1
  mulsd  (%rax),%xmm1
  divsd  %xmm5,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm6,%xmm1
  mulsd  %xmm7,%xmm7
  mulsd  %xmm10,%xmm7
  mulsd  %xmm3,%xmm7
  mulsd  %xmm7,%xmm1
  mov    0x260(%rsp),%rdx
  movsd  %xmm1,(%rdx,%r14,8)
  movsd  (%rbx),%xmm7
  movsd  (%rax),%xmm1
  mulsd  %xmm1,%xmm1
  divsd  %xmm5,%xmm1
  addsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm4,%xmm1
  mulsd  %xmm7,%xmm7
  mulsd  %xmm10,%xmm7
  mulsd  %xmm3,%xmm7
  mulsd  %xmm7,%xmm1
  mov    0x268(%rsp),%rcx
  movsd  %xmm1,(%rcx,%r14,8)
  movsd  (%rbx),%xmm7
  movsd  (%rsi),%xmm1
  mulsd  (%rax),%xmm1
  divsd  %xmm5,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm6,%xmm1
  mulsd  %xmm7,%xmm7
  mulsd  %xmm10,%xmm7
  mulsd  %xmm3,%xmm7
  mulsd  %xmm7,%xmm1
  mov    0x270(%rsp),%rdx
  movsd  %xmm1,(%rdx,%r14,8)
  movsd  (%rbx),%xmm7
  movsd  (%rsi),%xmm1
  mulsd  (%rdi),%xmm1
  divsd  %xmm5,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm6,%xmm1
  mulsd  %xmm7,%xmm7
  mulsd  %xmm10,%xmm7
  mulsd  %xmm3,%xmm7
  mulsd  %xmm7,%xmm1
  mov    0x278(%rsp),%rdi
  movsd  %xmm1,(%rdi,%r14,8)
  movsd  (%rbx),%xmm7
  movsd  (%rsi),%xmm1
  mulsd  (%rax),%xmm1
  divsd  %xmm5,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm6,%xmm1
  mulsd  %xmm7,%xmm7
  mulsd  %xmm10,%xmm7
  mulsd  %xmm3,%xmm7
  mulsd  %xmm7,%xmm1
  mov    0x280(%rsp),%rax
  movsd  %xmm1,(%rax,%r14,8)
  movsd  (%rbx),%xmm6
  movsd  (%rsi),%xmm1
  mulsd  %xmm1,%xmm1
  divsd  %xmm5,%xmm1
  addsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm4,%xmm1
  mulsd  %xmm6,%xmm6
  mulsd  %xmm10,%xmm6
  mulsd  %xmm3,%xmm6
  mulsd  %xmm6,%xmm1
  mov    0x288(%rsp),%rax
  movsd  %xmm1,(%rax,%r14,8)
  movsd  (%rbx),%xmm0
  mov    0x110(%rsp),%rax
  mulsd  (%rax,%r15,1),%xmm0
  divsd  %xmm11,%xmm0
  mov    0x290(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,8)
  movsd  (%rbx),%xmm0
  divsd  %xmm11,%xmm0
  mov    0x298(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  mov    0x110(%rsp),%rax
  mulsd  0x8(%rax,%r15,1),%xmm0
  divsd  %xmm11,%xmm0
  mov    0x2a0(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,8)
  movsd  (%rbx),%xmm0
  divsd  %xmm11,%xmm0
  mov    0x2a8(%rsp),%rax
  movsd  %xmm0,0x8(%rax,%r15,1)
  movsd  (%rbx),%xmm0
  mov    0x110(%rsp),%rax
  mulsd  0x10(%rax,%r15,1),%xmm0
  divsd  %xmm11,%xmm0
  mov    0x2b0(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,8)
  movsd  (%rbx),%xmm0
  divsd  %xmm11,%xmm0
  mov    0x2b8(%rsp),%rax
  movsd  %xmm0,0x10(%rax,%r15,1)
  add    $0x1,%r14
  add    $0x8,%rbp
  addq   $0x8,0x38(%rsp)
  addq   $0x8,0x40(%rsp)
  add    $0x8,%r12
  add    $0x18,%r15
  add    $0x48,%r13
  cmp    0xb8(%rsp),%r14
  je     L31
L6:
  mov    0xb0(%rsp),%rbx
  movsd  (%rbx,%r14,8),%xmm1
  movsd  0x20(%rsp),%xmm0
  mov    $0x2,%eax
  call   <smoothedHeaviside@plt>
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  %xmm2,(%rsp)
  movsd  (%rbx,%r14,8),%xmm1
  movsd  0x20(%rsp),%xmm0
  mov    $0x2,%eax
  call   <smoothedDirac@plt>
  movsd  (%rbx,%r14,8),%xmm1
  movsd  0x28(%rsp),%xmm0
  mov    $0x2,%eax
  call   <smoothedHeaviside@plt>
  pxor   %xmm3,%xmm3
  cvtsi2sd %eax,%xmm3
  movsd  %xmm3,0x8(%rsp)
  movsd  (%rbx,%r14,8),%xmm1
  movsd  0x28(%rsp),%xmm0
  mov    $0x2,%eax
  call   <smoothedDirac@plt>
  pxor   %xmm5,%xmm5
  cvtsi2sd %eax,%xmm5
  movsd  %xmm5,0x58(%rsp)
  movsd  D123(%rip),%xmm1
  movsd  (%rsp),%xmm2
  subsd  %xmm2,%xmm1
  mulsd  0x80(%rsp),%xmm1
  mulsd  0x90(%rsp),%xmm2
  addsd  %xmm2,%xmm1
  movsd  %xmm1,0x60(%rsp)
  movsd  D123(%rip),%xmm1
  movsd  0x8(%rsp),%xmm3
  subsd  %xmm3,%xmm1
  mulsd  0x88(%rsp),%xmm1
  mulsd  0x98(%rsp),%xmm3
  movapd %xmm1,%xmm4
  addsd  %xmm3,%xmm4
  movsd  %xmm4,0x18(%rsp)
  mov    %rbp,%rbx
  mov    0x38(%rsp),%rax
  mov    %rax,(%rsp)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rax),%xmm0
  mov    0x138(%rsp),%rsi
  movsd  %xmm0,(%rsi,%r14,8)
  movsd  0x0(%rbp),%xmm0
  mov    0x140(%rsp),%rsi
  movsd  %xmm0,(%rsi,%r14,8)
  mov    0x40(%rsp),%rdx
  mov    %rdx,0x8(%rsp)
  mulsd  (%rdx),%xmm0
  mov    0x148(%rsp),%rdi
  movsd  %xmm0,(%rdi,%r14,8)
  movsd  0x0(%rbp),%xmm0
  mov    0x150(%rsp),%rsi
  movsd  %xmm0,(%rsi,%r14,8)
  mov    %r12,0x10(%rsp)
  mulsd  (%r12),%xmm0
  mov    0x158(%rsp),%rdi
  movsd  %xmm0,(%rdi,%r14,8)
  movsd  0x0(%rbp),%xmm0
  mov    0x160(%rsp),%rsi
  movsd  %xmm0,(%rsi,%r14,8)
  mulsd  (%rax),%xmm0
  mov    0x168(%rsp),%rdi
  movsd  %xmm0,(%rdi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rdx),%xmm0
  movsd  %xmm0,0x8(%rdi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%r12),%xmm0
  movsd  %xmm0,0x10(%rdi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mov    0x170(%rsp),%rdi
  movsd  %xmm0,(%rdi,%r15,1)
  mov    0x178(%rsp),%rcx
  movsd  %xmm0,0x8(%rcx,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mov    0x180(%rsp),%rsi
  movsd  %xmm0,0x10(%rsi,%r15,1)
  movsd  (%rax),%xmm1
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm0
  mov    0x188(%rsp),%rdi
  movsd  %xmm0,(%rdi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rax),%xmm0
  mulsd  (%rdx),%xmm0
  movsd  %xmm0,0x8(%rdi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rax),%xmm0
  mulsd  (%r12),%xmm0
  movsd  %xmm0,0x10(%rdi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  (%rax),%xmm0
  mov    0x190(%rsp),%rdi
  movsd  %xmm0,(%rdi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rdx),%xmm0
  movsd  %xmm0,0x8(%rdi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%r12),%xmm0
  movsd  %xmm0,0x10(%rdi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rax),%xmm0
  mov    0x198(%rsp),%rdi
  movsd  %xmm0,0x8(%rdi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rax),%xmm0
  mov    0x1a0(%rsp),%rcx
  movsd  %xmm0,0x10(%rcx,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rdx),%xmm0
  mulsd  (%rax),%xmm0
  mov    0x1a8(%rsp),%rsi
  movsd  %xmm0,(%rsi,%r15,1)
  movsd  (%rdx),%xmm1
  movapd %xmm1,%xmm0
  mulsd  0x0(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rsi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rdx),%xmm0
  mulsd  (%r12),%xmm0
  movsd  %xmm0,0x10(%rsi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mov    %rdx,%rcx
  mulsd  (%rdx),%xmm0
  mov    0x1b0(%rsp),%rdx
  movsd  %xmm0,(%rdx,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rcx),%xmm0
  mov    0x1c0(%rsp),%rdx
  movsd  %xmm0,0x10(%rdx,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rax),%xmm0
  mov    0x1b8(%rsp),%rdx
  movsd  %xmm0,(%rdx,%r15,1)
  movsd  0x0(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  (%rcx),%xmm0
  movsd  %xmm0,0x8(%rdx,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%r12),%xmm0
  movsd  %xmm0,0x10(%rdx,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%r12),%xmm0
  mulsd  (%rax),%xmm0
  mov    0x1c8(%rsp),%rdx
  movsd  %xmm0,(%rdx,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%r12),%xmm0
  mulsd  (%rcx),%xmm0
  movsd  %xmm0,0x8(%rdx,%r15,1)
  movsd  (%r12),%xmm1
  movapd %xmm1,%xmm0
  mulsd  0x0(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,0x10(%rdx,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%r12),%xmm0
  mov    0x1d0(%rsp),%rdx
  movsd  %xmm0,(%rdx,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%r12),%xmm0
  mov    0x1d8(%rsp),%rsi
  movsd  %xmm0,0x8(%rsi,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rax),%xmm0
  mov    0x1e0(%rsp),%rax
  movsd  %xmm0,(%rax,%r15,1)
  movsd  0x0(%rbp),%xmm0
  mulsd  (%rcx),%xmm0
  movsd  %xmm0,0x8(%rax,%r15,1)
  movsd  0x0(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  (%r12),%xmm0
  movsd  %xmm0,0x10(%rax,%r15,1)
  movsd  0x0(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  %xmm4,%xmm0
  mov    0x1e8(%rsp),%rax
  movsd  %xmm0,(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  movsd  %xmm0,0x20(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  movsd  %xmm0,0x40(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  mov    0x200(%rsp),%rax
  movsd  %xmm0,0x18(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  mov    0x208(%rsp),%rax
  movsd  %xmm0,0x30(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  mov    0x1f0(%rsp),%rax
  movsd  %xmm0,(%rax,%r13,1)
  movsd  0x0(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  %xmm4,%xmm0
  movsd  %xmm0,0x20(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  movsd  %xmm0,0x40(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  mov    0x210(%rsp),%rax
  movsd  %xmm0,0x8(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  mov    0x218(%rsp),%rax
  movsd  %xmm0,0x38(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  mov    0x1f8(%rsp),%rax
  movsd  %xmm0,(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  movsd  %xmm0,0x20(%rax,%r13,1)
  movsd  0x0(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  %xmm4,%xmm0
  movsd  %xmm0,0x40(%rax,%r13,1)
  movapd %xmm4,%xmm0
  mulsd  0x0(%rbp),%xmm0
  mov    0x220(%rsp),%rax
  movsd  %xmm0,0x10(%rax,%r13,1)
  mulsd  0x0(%rbp),%xmm4
  mov    0x228(%rsp),%rax
  movsd  %xmm4,0x28(%rax,%r13,1)
  mov    0x30(%rsp),%rax
  movsd  (%rax,%r15,1),%xmm3
  movsd  %xmm3,0x48(%rsp)
  movsd  0x8(%rax,%r15,1),%xmm2
  movsd  0x10(%rax,%r15,1),%xmm1
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  mulsd  %xmm2,%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L12
  sqrtsd %xmm0,%xmm0
  movsd  %xmm0,0x68(%rsp)
L85:
  mov    (%rsp),%rax
  movsd  (%rax),%xmm5
  movsd  %xmm5,0x50(%rsp)
  mov    0x8(%rsp),%rax
  movsd  (%rax),%xmm2
  mov    0x10(%rsp),%rax
  movsd  (%rax),%xmm1
  movapd %xmm5,%xmm0
  mulsd  %xmm5,%xmm0
  mulsd  %xmm2,%xmm2
  addsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L2
  sqrtsd %xmm0,%xmm0
L70:
  movsd  (%rbx),%xmm1
  movsd  D123(%rip),%xmm5
  subsd  %xmm1,%xmm5
  movapd %xmm5,%xmm3
  andpd  D102(%rip),%xmm3
  pxor   %xmm2,%xmm2
  movsd  D72(%rip),%xmm4
  comisd %xmm3,%xmm4
  ja     L33
  mov    0xa0(%rsp),%rax
  movapd %xmm1,%xmm2
  mulsd  (%rax,%r14,8),%xmm2
  mulsd  D73(%rip),%xmm2
  divsd  %xmm5,%xmm2
  divsd  0x18(%rsp),%xmm2
L33:
  mulsd  0x70(%rsp),%xmm2
  movapd %xmm1,%xmm4
  andpd  D102(%rip),%xmm4
  pxor   %xmm3,%xmm3
  movsd  D72(%rip),%xmm6
  comisd %xmm4,%xmm6
  ja     L88
  mov    0xa0(%rsp),%rax
  movsd  (%rax,%r14,8),%xmm4
  movapd %xmm5,%xmm3
  mulsd  D19(%rip),%xmm3
  mulsd  %xmm5,%xmm3
  mulsd  %xmm4,%xmm4
  mulsd  %xmm1,%xmm4
  mulsd  %xmm1,%xmm4
  mulsd  %xmm1,%xmm4
  divsd  %xmm4,%xmm3
  jmp    L88
L31:
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: label: D123
data_type: f64
name: parse_data
arguments: label: D159
data_type: byte[8]
name: parse_data
arguments: label: D53
data_type: f32[4]
name: parse_data
arguments: label: D122
data_type: byte[8]
name: parse_data
arguments: label: D102
data_type: qword[2]
name: parse_data
arguments: label: D72
data_type: byte[8]
name: parse_data
arguments: label: D73
data_type: byte[8]
name: parse_data
arguments: label: D19
data_type: f64

tool: D123: 1

tool: {"D159": [0x3a,0x8c,0x30,0xe2,0x8e,0x79,0x45,0x3e]}

tool: {"D53": [0.0,-0.0,0.0,0.0]}

tool: {"D122": [0x11,0xea,0x2d,0x81,0x99,0x97,0x71,0x3d]}

tool: {"D102": [0x7fffffffffffffff,0x0000000000000000]}

tool: {"D72": [0x48,0xaf,0xbc,0x9a,0xf2,0xd7,0x7a,0x3e]}

tool: {"D73": [0x7b,0x14,0xae,0x47,0xe1,0x7a,0x84,0x3f]}

tool: D19: 180

assistant: ```c
void VolumeAveragedTwophaseNavierStokes_ST_LS_SO_3D_Evaluate(const int nPoints, const int killNonlinearDrag, const double eps_rho, const double eps_mu, const double sigma, const double rho_0, const double nu_0, const double rho_1, const double nu_1, const double *meanGrainSize, const double *g, const double *phi, const double *n, const double *kappa, const double *p, const double *grad_p, const double *u, const double *v, const double *w, const double *porosity, double *mom_u_acc, double *dmom_u_acc_u, double *mom_v_acc, double *dmom_v_acc_v, double *mom_w_acc, double *dmom_w_acc_w, double *mass_adv, double *dmass_adv_u, double *dmass_adv_v, double *dmass_adv_w, double *mom_u_adv, double *dmom_u_adv_u, double *dmom_u_adv_v, double *dmom_u_adv_w, double *mom_v_adv, double *dmom_v_adv_u, double *dmom_v_adv_v, double *dmom_v_adv_w, double *mom_w_adv, double *dmom_w_adv_u, double *dmom_w_adv_v, double *dmom_w_adv_w, double *mom_u_diff_ten, double *mom_v_diff_ten, double *mom_w_diff_ten, double *mom_uv_diff_ten, double *mom_uw_diff_ten, double *mom_vu_diff_ten, double *mom_vw_diff_ten, double *mom_wu_diff_ten, double *mom_wv_diff_ten, double *mom_u_source, double *mom_v_source, double *mom_w_source, double *dmom_u_source_u, double *dmom_u_source_v, double *dmom_u_source_w, double *dmom_v_source_u, double *dmom_v_source_v, double *dmom_v_source_w, double *dmom_w_source_u, double *dmom_w_source_v, double *dmom_w_source_w, double *mom_u_ham, double *dmom_u_ham_grad_p, double *mom_v_ham, double *dmom_v_ham_grad_p, double *mom_w_ham, double *dmom_w_ham_grad_p) {
  int k;
  double rho, nu, mu, H_rho, d_rho, H_mu, d_mu, norm_n, uc, Ftilde, Kinv;
  double nonlinearDragFactor = 1.0;
  if (killNonlinearDrag)
    nonlinearDragFactor = 0.0;
  for (k = 0; k < nPoints; k++) {
    H_rho = smoothedHeaviside(eps_rho, phi[k]);
    d_rho = smoothedDirac(eps_rho, phi[k]);
    H_mu = smoothedHeaviside(eps_mu, phi[k]);
    d_mu = smoothedDirac(eps_mu, phi[k]);
    rho = rho_0 * (1.0 - H_rho) + rho_1 * H_rho;
    nu = nu_0 * (1.0 - H_mu) + nu_1 * H_mu;
    mu = rho_0 * nu_0 * (1.0 - H_mu) + rho_1 * nu_1 * H_mu;
    mom_u_acc[k] = porosity[k] * u[k];
    dmom_u_acc_u[k] = porosity[k];
    mom_v_acc[k] = porosity[k] * v[k];
    dmom_v_acc_v[k] = porosity[k];
    mom_w_acc[k] = porosity[k] * w[k];
    dmom_w_acc_w[k] = porosity[k];
    mass_adv[k * 3 + 0] = porosity[k] * u[k];
    mass_adv[k * 3 + 1] = porosity[k] * v[k];
    mass_adv[k * 3 + 2] = porosity[k] * w[k];
    dmass_adv_u[k * 3 + 0] = porosity[k];
    dmass_adv_v[k * 3 + 1] = porosity[k];
    dmass_adv_w[k * 3 + 2] = porosity[k];
    mom_u_adv[k * 3 + 0] = porosity[k] * u[k] * u[k];
    mom_u_adv[k * 3 + 1] = porosity[k] * u[k] * v[k];
    mom_u_adv[k * 3 + 2] = porosity[k] * u[k] * w[k];
    dmom_u_adv_u[k * 3 + 0] = 2.0 * porosity[k] * u[k];
    dmom_u_adv_u[k * 3 + 1] = porosity[k] * v[k];
    dmom_u_adv_u[k * 3 + 2] = porosity[k] * w[k];
    dmom_u_adv_v[k * 3 + 1] = porosity[k] * u[k];
    dmom_u_adv_w[k * 3 + 2] = porosity[k] * u[k];
    mom_v_adv[k * 3 + 0] = porosity[k] * v[k] * u[k];
    mom_v_adv[k * 3 + 1] = porosity[k] * v[k] * v[k];
    mom_v_adv[k * 3 + 2] = porosity[k] * v[k] * w[k];
    dmom_v_adv_u[k * 3 + 0] = porosity[k] * v[k];
    dmom_v_adv_w[k * 3 + 2] = porosity[k] * v[k];
    dmom_v_adv_v[k * 3 + 0] = porosity[k] * u[k];
    dmom_v_adv_v[k * 3 + 1] = 2.0 * porosity[k] * v[k];
    dmom_v_adv_v[k * 3 + 2] = porosity[k] * w[k];
    mom_w_adv[k * 3 + 0] = porosity[k] * w[k] * u[k];
    mom_w_adv[k * 3 + 1] = porosity[k] * w[k] * v[k];
    mom_w_adv[k * 3 + 2] = porosity[k] * w[k] * w[k];
    dmom_w_adv_u[k * 3 + 0] = porosity[k] * w[k];
    dmom_w_adv_v[k * 3 + 1] = porosity[k] * w[k];
    dmom_w_adv_w[k * 3 + 0] = porosity[k] * u[k];
    dmom_w_adv_w[k * 3 + 1] = porosity[k] * v[k];
    dmom_w_adv_w[k * 3 + 2] = 2.0 * porosity[k] * w[k];
    mom_u_diff_ten[k * 9 + 0] = 2.0 * porosity[k] * nu;
    mom_u_diff_ten[k * 9 + 4] = porosity[k] * nu;
    mom_u_diff_ten[k * 9 + 8] = porosity[k] * nu;
    mom_uv_diff_ten[k * 9 + 3] = porosity[k] * nu;
    mom_uw_diff_ten[k * 9 + 6] = porosity[k] * nu;
    mom_v_diff_ten[k * 9 + 0] = porosity[k] * nu;
    mom_v_diff_ten[k * 9 + 4] = 2.0 * porosity[k] * nu;
    mom_v_diff_ten[k * 9 + 8] = porosity[k] * nu;
    mom_vu_diff_ten[k * 9 + 1] = porosity[k] * nu;
    mom_vw_diff_ten[k * 9 + 7] = porosity[k] * nu;
    mom_w_diff_ten[k * 9 + 0] = porosity[k] * nu;
    mom_w_diff_ten[k * 9 + 4] = porosity[k] * nu;
    mom_w_diff_ten[k * 9 + 8] = 2.0 * porosity[k] * nu;
    mom_wu_diff_ten[k * 9 + 2] = porosity[k] * nu;
    mom_wv_diff_ten[k * 9 + 5] = porosity[k] * nu;
    norm_n = sqrt(n[k * 3 + 0] * n[k * 3 + 0] + n[k * 3 + 1] * n[k * 3 + 1] + n[k * 3 + 2] * n[k * 3 + 2]);
    uc = sqrt(u[k] * u[k] + v[k] * v[k] + w[k] * w[k]);
    if (fabs(1.0 - porosity[k]) < 1.0e-7)
      Ftilde = 0.0;
    else
      Ftilde = porosity[k] * meanGrainSize[k] * 1.0e-2 / (1.0 - porosity[k]) / nu;
    Ftilde *= nonlinearDragFactor;
    if (fabs(porosity[k]) < 1.0e-7)
      Kinv = 0.0;
    else
      Kinv = 180.0 * (1.0 - porosity[k]) * (1.0 - porosity[k]) / (meanGrainSize[k] * meanGrainSize[k] * porosity[k] * porosity[k] * porosity[k]);
    mom_u_source[k] = -porosity[k] * g[0] - porosity[k] * d_mu * sigma * kappa[k] * n[k * 3 + 0] / (rho * (norm_n + 1.0e-8)) + porosity[k] * porosity[k] * nu * Kinv * (1.0 + Ftilde * uc) * u[k];
    mom_v_source[k] = -porosity[k] * g[1] - porosity[k] * d_mu * sigma * kappa[k] * n[k * 3 + 1] / (rho * (norm_n + 1.0e-8)) + porosity[k] * porosity[k] * nu * Kinv * (1.0 + Ftilde * uc) * v[k];
    mom_w_source[k] = -porosity[k] * g[2] - porosity[k] * d_mu * sigma * kappa[k] * n[k * 3 + 2] / (rho * (norm_n + 1.0e-8)) + porosity[k] * porosity[k] * nu * Kinv * (1.0 + Ftilde * uc) * w[k];
    dmom_u_source_u[k] = porosity[k] * porosity[k] * nu * Kinv * (1.0 + Ftilde * (uc + u[k] * u[k] / (uc + 1.0e-12)));
    dmom_u_source_v[k] = porosity[k] * porosity[k] * nu * Kinv * (0.0 + Ftilde * (u[k] * v[k] / (uc + 1.0e-12)));
    dmom_u_source_w[k] = porosity[k] * porosity[k] * nu * Kinv * (0.0 + Ftilde * (u[k] * w[k] / (uc + 1.0e-12)));
    dmom_v_source_u[k] = porosity[k] * porosity[k] * nu * Kinv * (0.0 + Ftilde * (u[k] * v[k] / (uc + 1.0e-12)));
    dmom_v_source_v[k] = porosity[k] * porosity[k] * nu * Kinv * (1.0 + Ftilde * (uc + v[k] * v[k] / (uc + 1.0e-12)));
    dmom_v_source_w[k] = porosity[k] * porosity[k] * nu * Kinv * (0.0 + Ftilde * (w[k] * v[k] / (uc + 1.0e-12)));
    dmom_w_source_u[k] = porosity[k] * porosity[k] * nu * Kinv * (0.0 + Ftilde * (w[k] * u[k] / (uc + 1.0e-12)));
    dmom_w_source_v[k] = porosity[k] * porosity[k] * nu * Kinv * (0.0 + Ftilde * (w[k] * v[k] / (uc + 1.0e-12)));
    dmom_w_source_w[k] = porosity[k] * porosity[k] * nu * Kinv * (1.0 + Ftilde * (uc + w[k] * w[k] / (uc + 1.0e-12)));
    mom_u_ham[k] = porosity[k] * grad_p[k * 3 + 0] / rho;
    dmom_u_ham_grad_p[k * 3 + 0] = porosity[k] / rho;
    mom_v_ham[k] = porosity[k] * grad_p[k * 3 + 1] / rho;
    dmom_v_ham_grad_p[k * 3 + 1] = porosity[k] / rho;
    mom_w_ham[k] = porosity[k] * grad_p[k * 3 + 2] / rho;
    dmom_w_ham_grad_p[k * 3 + 2] = porosity[k] / rho;
  }
}
```