user: 请从给定的汇编指令推导出C源代码:

```asm
<conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %esi,-0x28(%rbp)
  mov    %edx,-0x2c(%rbp)
  mov    %ecx,-0x30(%rbp)
  mov    %r8d,-0x34(%rbp)
  mov    %r9d,-0x38(%rbp)
  movsd  %xmm0,-0x40(%rbp)
  movsd  %xmm1,-0x48(%rbp)
  mov    -0x34(%rbp),%eax
  imul   %eax,%eax
  mov    %eax,-0x10(%rbp)
  movsd  -0x40(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  jle    L248
  mov    -0x28(%rbp),%eax
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <assert@plt>
L248:
  movl   $0x0,-0x20(%rbp)
  jmp    L44
L140:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0xc(%rbp)
  pxor   %xmm4,%xmm4
  movsd  %xmm4,-0x50(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L20
L138:
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  addl   $0x1,-0x1c(%rbp)
L20:
  mov    -0x1c(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L138
  cmpl   $0x0,-0x28(%rbp)
  je     L54
  mov    -0x20(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x98(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x20(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xa0(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
L54:
  movl   $0x0,-0x1c(%rbp)
  jmp    L6
L224:
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movq   D145(%rip),%xmm1
  movapd %xmm0,%xmm3
  xorpd  %xmm1,%xmm3
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  movsd  D159(%rip),%xmm0
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  D159(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  movapd %xmm1,%xmm6
  pxor   %xmm0,%xmm0
  comisd %xmm0,%xmm3
  jbe    L145
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm5
  mulsd  %xmm3,%xmm5
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  D50(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  movsd  %xmm5,-0x60(%rbp)
  movapd %xmm5,%xmm0
  call   <pow@plt>
  movapd %xmm0,%xmm3
  movsd  %xmm3,-0x68(%rbp)
  movsd  -0x60(%rbp),%xmm5
  mulsd  %xmm5,%xmm3
  movsd  %xmm3,-0x60(%rbp)
  mulsd  %xmm3,%xmm5
  movsd  D159(%rip),%xmm0
  movapd %xmm0,%xmm6
  addsd  %xmm5,%xmm6
  movq   D145(%rip),%xmm0
  movsd  -0x58(%rbp),%xmm2
  xorpd  %xmm0,%xmm2
  movapd %xmm2,%xmm0
  movapd %xmm0,%xmm1
  movsd  %xmm6,-0x58(%rbp)
  movapd %xmm6,%xmm0
  call   <pow@plt>
  movapd %xmm0,%xmm6
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  movsd  D159(%rip),%xmm0
  subsd  %xmm2,%xmm0
  mulsd  %xmm0,%xmm1
  movapd %xmm6,%xmm5
  divsd  -0x58(%rbp),%xmm5
  movapd %xmm5,%xmm0
  mulsd  %xmm1,%xmm0
  movapd %xmm0,%xmm7
  movsd  -0x60(%rbp),%xmm3
  mulsd  %xmm3,%xmm7
  movapd %xmm3,%xmm1
  mulsd  %xmm6,%xmm1
  movsd  D159(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm5
  movsd  %xmm0,-0x80(%rbp)
  mulsd  %xmm0,%xmm5
  movsd  %xmm5,-0x88(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movq   D145(%rip),%xmm1
  xorpd  %xmm0,%xmm1
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  D159(%rip),%xmm2
  subsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  -0x68(%rbp),%xmm0
  mulsd  %xmm6,%xmm0
  mulsd  %xmm7,%xmm3
  movapd %xmm3,%xmm1
  movapd %xmm0,%xmm4
  subsd  %xmm1,%xmm4
  movsd  %xmm4,-0x90(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm6,%xmm1
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,-0x58(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm2
  movsd  %xmm7,-0x70(%rbp)
  mulsd  %xmm7,%xmm2
  movsd  %xmm2,-0x60(%rbp)
  movapd %xmm6,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm4
  movapd %xmm4,%xmm7
  movsd  -0x88(%rbp),%xmm5
  mulsd  %xmm5,%xmm7
  movsd  %xmm7,-0x68(%rbp)
  movsd  D1(%rip),%xmm0
  divsd  %xmm4,%xmm0
  mulsd  -0x70(%rbp),%xmm0
  movapd %xmm5,%xmm1
  mulsd  %xmm0,%xmm1
  addsd  %xmm4,%xmm4
  movapd %xmm4,%xmm0
  mulsd  -0x80(%rbp),%xmm0
  mulsd  -0x90(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,-0x70(%rbp)
  jmp    L220
L145:
  movapd %xmm6,%xmm3
  movsd  %xmm3,-0x58(%rbp)
  pxor   %xmm5,%xmm5
  movsd  %xmm5,-0x60(%rbp)
  movsd  D159(%rip),%xmm7
  movsd  %xmm7,-0x68(%rbp)
  pxor   %xmm4,%xmm4
  movsd  %xmm4,-0x70(%rbp)
L220:
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm7
  mulsd  -0x40(%rbp),%xmm7
  movapd %xmm7,%xmm6
  mulsd  -0x48(%rbp),%xmm6
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x78(%rbp),%rax
  add    %rdx,%rax
  movapd %xmm7,%xmm0
  movsd  -0x58(%rbp),%xmm3
  mulsd  %xmm3,%xmm0
  movsd  %xmm0,(%rax)
  movq   D145(%rip),%xmm0
  xorpd  %xmm7,%xmm0
  movsd  -0x60(%rbp),%xmm1
  mulsd  %xmm0,%xmm1
  mulsd  %xmm3,%xmm6
  movapd %xmm6,%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x80(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  imul   -0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xb8(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x68(%rbp),%xmm5
  movsd  %xmm5,(%rax)
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  imul   -0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xc0(%rbp),%rax
  add    %rdx,%rax
  movq   D145(%rip),%xmm0
  movsd  -0x70(%rbp),%xmm2
  xorpd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  cmpl   $0x0,-0x28(%rbp)
  je     L152
  mov    -0x20(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x98(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm5,%xmm0
  mov    -0x20(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x98(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x20(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xa0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movq   D145(%rip),%xmm0
  xorpd  %xmm0,%xmm2
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  mov    -0x20(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xa0(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L152:
  addl   $0x1,-0x1c(%rbp)
L6:
  mov    -0x1c(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L224
  cmpl   $0x0,-0x28(%rbp)
  je     L239
  mov    -0x20(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x98(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x20(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x98(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x50(%rbp),%xmm7
  divsd  %xmm7,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x20(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xa0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x20(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xa0(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm7,%xmm0
  movsd  %xmm0,(%rax)
L239:
  addl   $0x1,-0x20(%rbp)
L44:
  mov    -0x20(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L140
  movl   $0x0,-0x20(%rbp)
  jmp    L56
L247:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L33
L158:
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  movapd %xmm2,%xmm4
  movapd %xmm2,%xmm5
  mov    -0x4(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  js     L32
  mov    -0x4(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movapd %xmm3,%xmm5
L32:
  movapd %xmm4,%xmm2
  movapd %xmm2,%xmm0
  addsd  %xmm2,%xmm0
  movapd %xmm5,%xmm6
  mulsd  %xmm6,%xmm0
  addsd  %xmm6,%xmm2
  movsd  D86(%rip),%xmm1
  addsd  %xmm2,%xmm1
  divsd  %xmm1,%xmm0
  movapd %xmm0,%xmm8
  pxor   %xmm5,%xmm5
  movapd %xmm5,%xmm7
  movl   $0x0,-0x18(%rbp)
  jmp    L9
L213:
  movsd  -0x78(%rbp),%xmm1
  movapd %xmm8,%xmm5
  mulsd  %xmm5,%xmm1
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  -0x40(%rbp),%xmm5
  movapd %xmm5,%xmm2
  mov    -0x8(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mulsd  %xmm1,%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  mov    -0x4(%rbp),%eax
  imul   -0x38(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x68(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm7,%xmm0
  movapd %xmm0,%xmm7
  addl   $0x1,-0x18(%rbp)
L9:
  mov    -0x18(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L213
  pxor   %xmm0,%xmm0
  movapd %xmm7,%xmm2
  comisd %xmm0,%xmm2
  jae    L13
  mov    -0x4(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L91
L13:
  mov    -0x4(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L174
L91:
  mov    -0x4(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
L174:
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  imul   -0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xb8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm4
  movapd %xmm4,%xmm2
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  imul   -0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xc0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm6
  movapd %xmm6,%xmm5
  cmpl   $0x0,-0x24(%rbp)
  jle    L205
  mov    -0x14(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x98(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm3
  movapd %xmm3,%xmm2
L205:
  movl   $0x0,-0x18(%rbp)
  jmp    L144
L215:
  movsd  -0x78(%rbp),%xmm3
  movapd %xmm3,%xmm0
  movapd %xmm2,%xmm7
  mulsd  %xmm7,%xmm0
  movapd %xmm0,%xmm1
  movapd %xmm8,%xmm4
  mulsd  %xmm4,%xmm1
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xa8(%rbp),%rax
  add    %rdx,%rax
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  movapd %xmm5,%xmm6
  mulsd  %xmm6,%xmm3
  movapd %xmm3,%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm4,%xmm1
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xb0(%rbp),%rax
  add    %rdx,%rax
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mulsd  -0x40(%rbp),%xmm7
  movapd %xmm7,%xmm0
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  imul   -0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%eax
  imul   -0x34(%rbp),%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xb8(%rbp),%rax
  add    %rdx,%rax
  mulsd  %xmm4,%xmm0
  movsd  %xmm0,(%rax)
  mulsd  -0x40(%rbp),%xmm6
  movapd %xmm6,%xmm0
  mov    -0x20(%rbp),%eax
  imul   -0x30(%rbp),%eax
  imul   -0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%eax
  imul   -0x34(%rbp),%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0xc0(%rbp),%rax
  add    %rdx,%rax
  mulsd  %xmm4,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x18(%rbp)
L144:
  mov    -0x18(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L215
  addl   $0x1,-0x1c(%rbp)
L33:
  mov    -0x1c(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L158
  addl   $0x1,-0x20(%rbp)
L56:
  mov    -0x20(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L247
  nop
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D145
type_guessed: f32[2]
name: retrieve_data
arguments: data_label: D159
type_guessed: f64
name: retrieve_data
arguments: data_label: D50
type_guessed: f64
name: retrieve_data
arguments: data_label: D1
type_guessed: f64
name: retrieve_data
arguments: data_label: D86
type_guessed: byte[8]

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

tool: D159: 1

tool: D50: 2

tool: D1: 0.5

tool: {"D86": [0xa7,0x8e,0xa8,0x99,0xc2,0x57,0xf3,0x3a]}

assistant: ```c
void conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm(const int upwindFlag, const int computeAverages, const int nSimplex, const int nPointsPerSimplex, const int nSpace, const int nQuadraturePoints_elementBoundary, const int *elementBoundaryElementsArray, const int *quadraturePointToElementBoundary, const int *materialTypes, const double rho, const double beta, const double *gravity, const double *alpha, const double *n_vg, const double *thetaR, const double *thetaSR, const double *KWs, const double *u, const double *gradu, const double *n_global, const double *dV, double *mass, double *dmass, double *f_avg, double *df_avg, double *a_avg, double *da_avg, double *f, double *df, double *a, double *da) {
  int i, j, k, I, matID;
  const int nSpace2 = nSpace * nSpace;
  register double psiC, pcBar, pcBar_n, pcBar_nM1, pcBar_nM2, onePlus_pcBar_n, sBar, sqrt_sBar, DsBar_DpsiC, thetaW, DthetaW_DpsiC, vBar, vBar2, DvBar_DpsiC, KWr, DKWr_DpsiC, rho2 = rho * rho, thetaS, rhom, drhom, m;
  int eN_upwind, ebN_global;
  register double drive, KWs_harm, KWs_left, KWs_right, krw_val, dkrw_val, vol;
  if (upwindFlag > 0)
    assert(computeAverages);
  for (i = 0; i < nSimplex; i++) {
    matID = materialTypes[i];
    vol = 0.0;
    for (j = 0; j < nPointsPerSimplex; j++)
      vol += dV[i * nPointsPerSimplex + j];
    if (computeAverages) {
      a_avg[i * nSpace2 + 0 * nSpace + 0] = 0.0;
      da_avg[i * nSpace2 + 0 * nSpace + 0] = 0.0;
    }
    for (j = 0; j < nPointsPerSimplex; j++) {
      k = i * nPointsPerSimplex + j;
      psiC = -u[k];
      m = 1.0 - 1.0 / n_vg[matID];
      thetaS = thetaR[matID] + thetaSR[matID];
      if (psiC > 0.0) {
        pcBar = alpha[matID] * psiC;
        pcBar_nM2 = pow(pcBar, n_vg[matID] - 2);
        pcBar_nM1 = pcBar_nM2 * pcBar;
        pcBar_n = pcBar_nM1 * pcBar;
        onePlus_pcBar_n = 1.0 + pcBar_n;
        sBar = pow(onePlus_pcBar_n, -m);
        DsBar_DpsiC = alpha[matID] * (1.0 - n_vg[matID]) * (sBar / onePlus_pcBar_n) * pcBar_nM1;
        vBar = 1.0 - pcBar_nM1 * sBar;
        vBar2 = vBar * vBar;
        DvBar_DpsiC = -alpha[matID] * (n_vg[matID] - 1.0) * pcBar_nM2 * sBar - pcBar_nM1 * DsBar_DpsiC;
        thetaW = thetaSR[matID] * sBar + thetaR[matID];
        DthetaW_DpsiC = thetaSR[matID] * DsBar_DpsiC;
        sqrt_sBar = sqrt(sBar);
        KWr = sqrt_sBar * vBar2;
        DKWr_DpsiC = ((0.5 / sqrt_sBar) * DsBar_DpsiC * vBar2 + 2.0 * sqrt_sBar * vBar * DvBar_DpsiC);
      } else {
        thetaW = thetaS;
        DthetaW_DpsiC = 0.0;
        KWr = 1.0;
        DKWr_DpsiC = 0.0;
      }
      rhom = rho * exp(beta * u[k]);
      drhom = beta * rhom;
      mass[k] = rhom * thetaW;
      dmass[k] = -rhom * DthetaW_DpsiC + drhom * thetaW;
      a[i * nPointsPerSimplex * nSpace2 + j * nSpace2 + 0 * nSpace + 0] = KWr;
      da[i * nPointsPerSimplex * nSpace2 + j * nSpace2 + 0 * nSpace + 0] = -DKWr_DpsiC;
      if (computeAverages) {
        a_avg[i * nSpace2 + 0 * nSpace + 0] += KWr * dV[k];
        da_avg[i * nSpace2 + 0 * nSpace + 0] += -DKWr_DpsiC * dV[k];
      }
    }
    if (computeAverages) {
      a_avg[i * nSpace2 + 0 * nSpace + 0] /= vol;
      da_avg[i * nSpace2 + 0 * nSpace + 0] /= vol;
    }
  }
  for (i = 0; i < nSimplex; i++) {
    matID = materialTypes[i];
    for (j = 0; j < nPointsPerSimplex; j++) {
      k = i * nPointsPerSimplex + j;
      ebN_global = quadraturePointToElementBoundary[k];
      KWs_left = KWs[matID];
      KWs_right = KWs_left;
      if (elementBoundaryElementsArray[ebN_global * 2 + 1] >= 0)
        KWs_right = KWs[materialTypes[elementBoundaryElementsArray[ebN_global * 2 + 1]]];
      KWs_harm = 2.0 * KWs_left * KWs_right / (KWs_left + KWs_right + 1.0e-24);
      drive = 0.0;
      for (I = 0; I < nSpace; I++) {
        drive += (rho2 * KWs_harm * gravity[I] - rho * KWs_harm * gradu[k * nSpace + I]) * n_global[ebN_global * nQuadraturePoints_elementBoundary * nSpace + 0 * nSpace + I];
      }
      if (drive >= 0.0 || elementBoundaryElementsArray[ebN_global * 2 + 1] < 0)
        eN_upwind = elementBoundaryElementsArray[ebN_global * 2 + 0];
      else
        eN_upwind = elementBoundaryElementsArray[ebN_global * 2 + 1];
      krw_val = a[i * nPointsPerSimplex * nSpace2 + j * nSpace2 + 0 * nSpace + 0];
      dkrw_val = da[i * nPointsPerSimplex * nSpace2 + j * nSpace2 + 0 * nSpace + 0];
      if (upwindFlag > 0) {
        krw_val = a_avg[eN_upwind * nSpace2 + 0 * nSpace + 0];
      }
      for (I = 0; I < nSpace; I++) {
        f[k * nSpace + I] = rho2 * krw_val * KWs_harm * gravity[I];
        df[k * nSpace + I] = rho2 * dkrw_val * KWs_harm * gravity[I];
        a[i * nPointsPerSimplex * nSpace2 + j * nSpace2 + I * nSpace + I] = rho * krw_val * KWs_harm;
        da[i * nPointsPerSimplex * nSpace2 + j * nSpace2 + I * nSpace + I] = rho * dkrw_val * KWs_harm;
      }
    }
  }
}
```