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

```asm
<conservativeHeadRichardsMualemVanGenuchtenHetEvaluateV2withUpwindAndHarm>:
  endbr64
  movapd %xmm0,%xmm6
  push   %r15
  mov    %r8d,%eax
  mov    %esi,%r15d
  mulsd  %xmm0,%xmm6
  push   %r14
  imul   %r8d,%eax
  movapd %xmm0,%xmm3
  push   %r13
  push   %r12
  push   %rbp
  mov    %ecx,%ebp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x128,%rsp
  mov    %edi,0x94(%rsp)
  mov    0x178(%rsp),%r12
  mov    %r8d,0x1c(%rsp)
  mov    0x210(%rsp),%r14
  mov    %r9d,0xf0(%rsp)
  mov    %eax,0x90(%rsp)
  movsd  %xmm1,0x8(%rsp)
  movsd  %xmm6,0x118(%rsp)
  test   %edi,%edi
  jle    L172
  mov    %esi,%edi
  xor    %eax,%eax
  movsd  %xmm0,0x10(%rsp)
  call   <assert@plt>
  movsd  0x10(%rsp),%xmm3
L172:
  test   %ebx,%ebx
  jle    L142
  mov    0x170(%rsp),%rax
  mov    0x90(%rsp),%edx
  movl   $0x0,0x110(%rsp)
  mov    0x170(%rsp),%rsi
  movl   $0x0,0x70(%rsp)
  mov    %rax,0xd0(%rsp)
  mov    %edx,%eax
  imul   %ebp,%eax
  mov    %rsi,0xc0(%rsp)
  movl   $0x0,0xe8(%rsp)
  mov    %r14,0x210(%rsp)
  mov    %eax,0xf4(%rsp)
  lea    -0x1(%rbx),%eax
  lea    0x4(%rsi,%rax,4),%rax
  mov    %r12,0x178(%rsp)
  mov    %r15d,%r12d
  mov    %rax,0xf8(%rsp)
  mov    %ebp,%eax
  shr    %eax
  movsd  %xmm3,0x68(%rsp)
  sub    $0x1,%eax
  mov    %rax,0x108(%rsp)
  mov    %ebp,%eax
  and    $0xfffffffe,%eax
  mov    %eax,0x114(%rsp)
  movslq %edx,%rax
  lea    0x0(,%rax,8),%rbx
  mov    %rbx,0x88(%rsp)
  nopw   0x0(%rax,%rax,1)
L397:
  mov    0xc0(%rsp),%rax
  mov    (%rax),%ecx
  test   %ebp,%ebp
  jle    L153
  cmp    $0x1,%ebp
  je     L290
  mov    0x108(%rsp),%rdx
  movslq 0x70(%rsp),%rsi
  pxor   %xmm6,%xmm6
  mov    0x1c0(%rsp),%rax
  movsd  %xmm6,0x38(%rsp)
  movapd %xmm6,%xmm3
  add    $0x1,%rdx
  lea    (%rax,%rsi,8),%rax
  shl    $0x4,%rdx
  add    %rax,%rdx
  nopl   (%rax)
L182:
  movsd  (%rax),%xmm0
  add    $0x10,%rax
  addsd  %xmm0,%xmm3
  movsd  -0x8(%rax),%xmm0
  addsd  %xmm0,%xmm3
  cmp    %rax,%rdx
  jne    L182
  mov    0x114(%rsp),%eax
  cmp    %eax,%ebp
  je     L375
L352:
  mov    0x1c0(%rsp),%rdx
  add    0x70(%rsp),%eax
  cltq
  addsd  (%rdx,%rax,8),%xmm3
L375:
  movslq 0xe8(%rsp),%rax
  mov    %rax,0xe0(%rsp)
  test   %r12d,%r12d
  je     L83
  mov    0x1e8(%rsp),%rdx
  movq   $0x0,(%rdx,%rax,8)
  mov    0x1f0(%rsp),%rdx
  movq   $0x0,(%rdx,%rax,8)
L83:
  movslq %ecx,%rax
  shl    $0x3,%rsi
  mov    %r12d,%r14d
  xor    %r13d,%r13d
  mov    0x188(%rsp),%rdx
  shl    $0x3,%rax
  mov    0x208(%rsp),%r15
  movsd  %xmm3,0x100(%rsp)
  add    %rax,%rdx
  mov    %rdx,0xc8(%rsp)
  mov    0x190(%rsp),%rdx
  add    %rax,%rdx
  mov    %rdx,0x40(%rsp)
  mov    0x198(%rsp),%rdx
  add    %rax,%rdx
  add    0x180(%rsp),%rax
  mov    %rax,0xd8(%rsp)
  mov    0xe0(%rsp),%rax
  mov    %rdx,0x48(%rsp)
  mov    0x1e8(%rsp),%rdx
  shl    $0x3,%rax
  add    %rax,%rdx
  add    0x1f0(%rsp),%rax
  mov    %rax,0x80(%rsp)
  mov    0x1a8(%rsp),%rax
  mov    %rdx,0x78(%rsp)
  movslq 0x110(%rsp),%rdx
  add    %rsi,%rax
  mov    %rax,0x60(%rsp)
  mov    0x1c8(%rsp),%rax
  shl    $0x3,%rdx
  add    %rdx,%r15
  add    0x210(%rsp),%rdx
  add    %rsi,%rax
  mov    %r15,%r12
  mov    %rax,0x58(%rsp)
  mov    0x1d0(%rsp),%rax
  add    %rsi,%rax
  add    0x1c0(%rsp),%rsi
  mov    %rax,0x50(%rsp)
  mov    %ebp,%eax
  mov    %rbx,%rbp
  mov    %rdx,%rbx
  mov    %rsi,0x98(%rsp)
  mov    %eax,%r15d
  jmp    L365
L376:
  mov    D108(%rip),%rax
  addsd  %xmm9,%xmm4
  movsd  %xmm5,0x30(%rsp)
  movq   %rax,%xmm1
  mov    D127(%rip),%rax
  movq   %rax,%xmm3
L318:
  mulsd  0x8(%rsp),%xmm2
  movsd  %xmm1,0x28(%rsp)
  movsd  %xmm3,0x20(%rsp)
  movsd  %xmm4,0x10(%rsp)
  movapd %xmm2,%xmm0
  call   <exp@plt>
  mulsd  0x68(%rsp),%xmm0
  mov    0x58(%rsp),%rax
  movsd  0x10(%rsp),%xmm4
  movsd  0x20(%rsp),%xmm3
  movsd  0x28(%rsp),%xmm1
  movapd %xmm4,%xmm2
  mulsd  %xmm0,%xmm2
  movsd  %xmm2,(%rax,%r13,8)
  movsd  0x30(%rsp),%xmm2
  mov    0x50(%rsp),%rax
  mulsd  %xmm0,%xmm2
  mulsd  0x8(%rsp),%xmm0
  mulsd  %xmm4,%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax,%r13,8)
  movsd  %xmm3,(%r12)
  movsd  %xmm1,(%rbx)
  test   %r14d,%r14d
  je     L220
  mov    0x98(%rsp),%rax
  mov    0x78(%rsp),%rdx
  mulsd  (%rax,%r13,8),%xmm3
  addsd  (%rdx),%xmm3
  movsd  %xmm3,(%rdx)
  mulsd  (%rax,%r13,8),%xmm1
  mov    0x80(%rsp),%rax
  addsd  (%rax),%xmm1
  movsd  %xmm1,(%rax)
L220:
  add    $0x1,%r13
  add    %rbp,%r12
  add    %rbp,%rbx
  cmp    %r13d,%r15d
  jle    L136
L365:
  mov    0x60(%rsp),%rax
  movsd  0x38(%rsp),%xmm5
  movsd  (%rax,%r13,8),%xmm2
  mov    0x40(%rsp),%rax
  comisd %xmm2,%xmm5
  movsd  (%rax),%xmm4
  mov    0x48(%rsp),%rax
  movsd  (%rax),%xmm9
  jbe    L376
  mov    0xc8(%rsp),%rax
  movapd %xmm2,%xmm5
  xorpd  D108(%rip),%xmm5
  movsd  %xmm9,0xb8(%rsp)
  movsd  %xmm4,0xb0(%rsp)
  movsd  %xmm2,0xa8(%rsp)
  movsd  (%rax),%xmm12
  mov    0xd8(%rsp),%rax
  movsd  (%rax),%xmm3
  movapd %xmm12,%xmm1
  movsd  %xmm12,0x20(%rsp)
  subsd  D112(%rip),%xmm1
  movsd  %xmm3,0xa0(%rsp)
  mulsd  %xmm3,%xmm5
  movapd %xmm5,%xmm0
  movsd  %xmm5,0x10(%rsp)
  call   <pow@plt>
  movsd  0x10(%rsp),%xmm5
  movsd  0x20(%rsp),%xmm12
  movsd  %xmm0,0x30(%rsp)
  movsd  D127(%rip),%xmm1
  movapd %xmm5,%xmm10
  mulsd  %xmm0,%xmm10
  movsd  D127(%rip),%xmm0
  divsd  %xmm12,%xmm0
  mulsd  %xmm10,%xmm5
  movsd  %xmm10,0x28(%rsp)
  addsd  D127(%rip),%xmm5
  movsd  %xmm5,0x10(%rsp)
  subsd  %xmm0,%xmm1
  xorpd  D108(%rip),%xmm1
  movapd %xmm5,%xmm0
  call   <pow@plt>
  movsd  0x10(%rsp),%xmm5
  movsd  0x20(%rsp),%xmm12
  movapd %xmm0,%xmm1
  movsd  0x28(%rsp),%xmm10
  movsd  D127(%rip),%xmm8
  divsd  %xmm5,%xmm1
  movsd  0xa0(%rsp),%xmm3
  movsd  0x30(%rsp),%xmm11
  subsd  %xmm12,%xmm8
  subsd  D127(%rip),%xmm12
  movsd  0xb8(%rsp),%xmm9
  movsd  D127(%rip),%xmm6
  movsd  0xb0(%rsp),%xmm4
  movsd  0xa8(%rsp),%xmm2
  mulsd  %xmm3,%xmm8
  xorpd  D108(%rip),%xmm3
  mulsd  %xmm12,%xmm3
  movapd %xmm3,%xmm5
  movsd  0x38(%rsp),%xmm3
  mulsd  %xmm11,%xmm5
  ucomisd %xmm0,%xmm3
  mulsd  %xmm0,%xmm5
  mulsd  %xmm1,%xmm8
  movapd %xmm10,%xmm1
  mulsd  %xmm0,%xmm1
  mulsd  %xmm10,%xmm8
  subsd  %xmm1,%xmm6
  movapd %xmm9,%xmm1
  mulsd  %xmm0,%xmm1
  movapd %xmm6,%xmm7
  mulsd  %xmm8,%xmm10
  mulsd  %xmm8,%xmm9
  mulsd  %xmm6,%xmm7
  addsd  %xmm1,%xmm4
  subsd  %xmm10,%xmm5
  movsd  %xmm9,0x30(%rsp)
  ja     L183
  sqrtsd %xmm0,%xmm0
L381:
  movsd  D73(%rip),%xmm1
  movapd %xmm7,%xmm3
  mulsd  %xmm0,%xmm3
  divsd  %xmm0,%xmm1
  addsd  %xmm0,%xmm0
  mulsd  %xmm6,%xmm0
  mulsd  %xmm5,%xmm0
  mulsd  %xmm8,%xmm1
  mulsd  %xmm7,%xmm1
  addsd  %xmm0,%xmm1
  xorpd  D108(%rip),%xmm1
  jmp    L318
  nopl   0x0(%rax,%rax,1)
L136:
  movsd  0x100(%rsp),%xmm3
  mov    %rbp,%rbx
  mov    %r14d,%r12d
  mov    %r15d,%ebp
  test   %r14d,%r14d
  je     L47
L331:
  mov    0xe0(%rsp),%rax
  mov    0x1e8(%rsp),%rdx
  shl    $0x3,%rax
  add    %rax,%rdx
  add    0x1f0(%rsp),%rax
  movsd  (%rdx),%xmm0
  divsd  %xmm3,%xmm0
  movsd  %xmm0,(%rdx)
  movsd  (%rax),%xmm0
  divsd  %xmm3,%xmm0
  movsd  %xmm0,(%rax)
L47:
  mov    0x90(%rsp),%esi
  add    %ebp,0x70(%rsp)
  addq   $0x4,0xc0(%rsp)
  mov    0xc0(%rsp),%rax
  add    %esi,0xe8(%rsp)
  mov    0xf4(%rsp),%esi
  add    %esi,0x110(%rsp)
  cmp    0xf8(%rsp),%rax
  jne    L397
  movsd  0x68(%rsp),%xmm3
  mov    0x178(%rsp),%r12
  mov    0x210(%rsp),%r14
  test   %ebp,%ebp
  jle    L142
  movslq %ebp,%rax
  mov    0x1c(%rsp),%r11d
  movl   $0x0,0xd8(%rsp)
  pxor   %xmm4,%xmm4
  shl    $0x2,%rax
  movl   $0x0,0xe0(%rsp)
  movsd  D146(%rip),%xmm5
  mov    %rax,0x100(%rsp)
  lea    -0x1(%rbp),%eax
  movslq %r11d,%rsi
  mov    %r11d,%ebx
  and    $0xfffffffe,%ebx
  imul   %esi,%ebp
  lea    0x0(,%rax,4),%r8
  mov    0x168(%rsp),%rax
  lea    0x0(,%rsi,8),%rcx
  movsd  0x118(%rsp),%xmm6
  lea    0x4(%rax,%r8,1),%rax
  lea    0x8(%rcx),%rdi
  mov    %rax,0x78(%rsp)
  mov    %r11d,%eax
  shr    %eax
  mov    %ebp,0x110(%rsp)
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,0x70(%rsp)
  mov    %r11d,%eax
  lea    -0x1(%rax),%r10
  xor    %eax,%eax
  mov    %r10,%rdx
  mov    %rax,%r15
  mov    %r10,0xb8(%rsp)
  imul   %rdi,%rdx
  test   %rdi,%rdi
  cmovns %rdx,%rax
  cmovs  %rdx,%r15
  mov    %r11d,%edx
  mov    %rax,0xa8(%rsp)
  imul   %ebx,%r11d
  lea    (%r12,%r10,8),%rax
  mov    %rax,0x60(%rsp)
  lea    0x1(%rsi),%rax
  shl    $0x4,%rax
  mov    %r15,0xb0(%rsp)
  mov    %rdi,%r15
  mov    %rax,%r10
  movslq %ebx,%rax
  mov    %r11d,0x20(%rsp)
  mov    %r14,%r11
  lea    (%r12,%rax,8),%rbp
  mov    $0xfffffffffffffffc,%rax
  mov    0x208(%rsp),%r14
  mov    %r10,%r13
  sub    %r8,%rax
  mov    %ebx,%r10d
  mov    %rax,0x108(%rsp)
  lea    -0x1(%rdx),%eax
  mov    0x208(%rsp),%rdx
  mov    %eax,0xc0(%rsp)
  lea    0x8(%rdx,%rcx,1),%rdx
  mov    %rax,0xe8(%rsp)
  mov    %rdx,0xc8(%rsp)
  nopl   (%rax)
L104:
  mov    0xd0(%rsp),%rax
  mov    0x1a0(%rsp),%rdx
  mov    %r14,0x208(%rsp)
  mov    %r13,%r14
  mov    %r11,0x210(%rsp)
  mov    0x208(%rsp),%r13
  mov    %rbp,%r11
  movslq (%rax),%rax
  mov    0x210(%rsp),%rbp
  lea    (%rdx,%rax,8),%rax
  mov    %rax,0x80(%rsp)
  mov    0x108(%rsp),%rax
  add    0x78(%rsp),%rax
  mov    %rax,0x28(%rsp)
  movslq 0xe0(%rsp),%rax
  mov    %rax,%rdx
  shl    $0x3,%rax
  mov    %rax,0x8(%rsp)
  lea    0x8(%r12),%rax
  mov    %rax,0x98(%rsp)
  lea    0x10(%r12),%rax
  mov    %rax,0xa0(%rsp)
  mov    %edx,0x10(%rsp)
  mov    0xd8(%rsp),%edx
  nopl   0x0(%rax,%rax,1)
L45:
  mov    0x28(%rsp),%rax
  mov    0x80(%rsp),%rsi
  mov    (%rax),%eax
  movsd  (%rsi),%xmm1
  mov    0x160(%rsp),%rsi
  lea    (%rax,%rax,1),%r9d
  movapd %xmm1,%xmm0
  movslq %r9d,%r9
  mov    0x4(%rsi,%r9,4),%esi
  test   %esi,%esi
  js     L391
  mov    0x170(%rsp),%rbx
  movslq %esi,%rcx
  movslq (%rbx,%rcx,4),%rcx
  mov    0x1a0(%rsp),%rbx
  movsd  (%rbx,%rcx,8),%xmm0
L391:
  movapd %xmm1,%xmm7
  mov    0x1c(%rsp),%ebx
  addsd  %xmm1,%xmm7
  mulsd  %xmm0,%xmm7
  addsd  %xmm1,%xmm0
  addsd  %xmm5,%xmm0
  divsd  %xmm0,%xmm7
  test   %ebx,%ebx
  jle    L190
  imul   0xf0(%rsp),%eax
  movapd %xmm6,%xmm2
  movapd %xmm3,%xmm9
  mulsd  %xmm7,%xmm2
  mulsd  %xmm7,%xmm9
  imul   %ebx,%eax
  cmp    $0x1,%ebx
  je     L347
  mov    0x1b0(%rsp),%rbx
  movslq %edx,%rcx
  movapd %xmm2,%xmm11
  movapd %xmm9,%xmm10
  unpcklpd %xmm11,%xmm11
  unpcklpd %xmm10,%xmm10
  movapd %xmm4,%xmm8
  lea    (%rbx,%rcx,8),%r8
  mov    0x1b8(%rsp),%rbx
  movslq %eax,%rcx
  movapd %xmm4,%xmm1
  lea    (%rbx,%rcx,8),%rdi
  mov    0x70(%rsp),%rbx
  xor    %ecx,%ecx
  nopw   0x0(%rax,%rax,1)
L70:
  movupd (%r12,%rcx,1),%xmm0
  movupd (%r8,%rcx,1),%xmm12
  movupd (%rdi,%rcx,1),%xmm13
  add    $0x10,%rcx
  mulpd  %xmm11,%xmm0
  mulpd  %xmm10,%xmm12
  subpd  %xmm12,%xmm0
  mulpd  %xmm13,%xmm0
  addsd  %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  cmp    %rcx,%rbx
  jne    L70
  mov    %r10d,%edi
  cmp    %r10d,0x1c(%rsp)
  je     L278
L30:
  movslq %edi,%rcx
  mov    0x1b0(%rsp),%rbx
  add    %edi,%eax
  mulsd  (%r12,%rcx,8),%xmm2
  lea    (%rdx,%rdi,1),%ecx
  cltq
  movslq %ecx,%rcx
  mulsd  (%rbx,%rcx,8),%xmm9
  mov    0x1b8(%rsp),%rbx
  movapd %xmm2,%xmm0
  subsd  %xmm9,%xmm0
  mulsd  (%rbx,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
L278:
  comisd %xmm8,%xmm1
  jb     L378
L190:
  mov    0x160(%rsp),%rax
  mov    0x94(%rsp),%edi
  mov    (%rax,%r9,4),%esi
  mov    0x8(%rsp),%rax
  movsd  0x0(%r13,%rax,1),%xmm0
  movsd  0x0(%rbp,%rax,1),%xmm1
  test   %edi,%edi
  jle    L382
L148:
  imul   0x90(%rsp),%esi
  mov    0x1e8(%rsp),%rax
  movslq %esi,%rsi
  movsd  (%rax,%rsi,8),%xmm0
L382:
  mov    0x1c(%rsp),%ecx
  test   %ecx,%ecx
  jle    L90
L127:
  mov    0x8(%rsp),%rbx
  movslq %edx,%r8
  movapd %xmm6,%xmm8
  movapd %xmm6,%xmm9
  mov    0xb0(%rsp),%r9
  mov    0xa8(%rsp),%rdi
  mulsd  %xmm0,%xmm8
  lea    0x0(%rbp,%rbx,1),%rax
  mov    0x1f8(%rsp),%rsi
  mulsd  %xmm1,%xmm9
  mov    %rax,0x58(%rsp)
  mulsd  %xmm3,%xmm0
  add    %rbx,%r9
  add    %rbx,%rdi
  mov    0xb8(%rsp),%rax
  mulsd  %xmm3,%xmm1
  lea    (%rax,%r8,1),%rcx
  lea    0x0(%r13,%r9,1),%rax
  shl    $0x3,%r8
  add    %rbp,%r9
  mov    %rax,0x40(%rsp)
  shl    $0x3,%rcx
  lea    0x0(%r13,%rdi,1),%rax
  add    %rbp,%rdi
  mov    %rdi,0x30(%rsp)
  add    %rcx,%rsi
  add    0x200(%rsp),%rcx
  mov    %rsi,0x48(%rsp)
  mov    0xc8(%rsp),%rdi
  mulsd  %xmm7,%xmm8
  mov    %rcx,0x50(%rsp)
  mov    0x1f8(%rsp),%rsi
  mulsd  %xmm7,%xmm9
  mov    0x200(%rsp),%rcx
  mov    %rax,0x38(%rsp)
  mulsd  %xmm7,%xmm0
  add    %rbx,%rdi
  mulsd  %xmm7,%xmm1
  add    %r8,%rsi
  add    %r8,%rcx
  cmp    0x58(%rsp),%rdi
  setne  %dil
  cmpl   $0x4,0xc0(%rsp)
  seta   %bl
  and    %ebx,%edi
  cmp    %rax,%r12
  mov    0x40(%rsp),%rax
  seta   %bl
  cmp    %rax,0x60(%rsp)
  setb   0x68(%rsp)
  movzbl 0x68(%rsp),%eax
  or     %eax,%ebx
  and    %edi,%ebx
  cmp    0x60(%rsp),%r9
  seta   %dil
  cmp    0x30(%rsp),%r12
  seta   0x68(%rsp)
  movzbl 0x68(%rsp),%eax
  or     %eax,%edi
  mov    0x40(%rsp),%rax
  and    %ebx,%edi
  cmp    0x98(%rsp),%rcx
  setne  %bl
  and    %ebx,%edi
  mov    0x1f8(%rsp),%rbx
  lea    0x8(%rbx,%r8,1),%rbx
  cmp    %rbx,%rcx
  setne  %bl
  and    %ebx,%edi
  mov    0x1f8(%rsp),%rbx
  lea    0x10(%rbx,%r8,1),%r8
  cmp    %r8,%r12
  setae  %r8b
  cmp    0xa0(%rsp),%rsi
  setae  %bl
  or     %ebx,%r8d
  and    %edi,%r8d
  cmp    0x38(%rsp),%rsi
  seta   %dil
  cmp    0x48(%rsp),%rax
  seta   %bl
  or     %ebx,%edi
  and    %r8d,%edi
  cmp    0x38(%rsp),%rcx
  seta   %r8b
  cmp    %rax,0x50(%rsp)
  mov    0x30(%rsp),%rax
  setb   %bl
  or     %ebx,%r8d
  and    %edi,%r8d
  cmp    %rsi,%rax
  setb   %dil
  cmp    0x48(%rsp),%r9
  seta   %bl
  or     %ebx,%edi
  test   %dil,%r8b
  je     L29
  cmp    %rcx,%rax
  setb   %dil
  cmp    0x50(%rsp),%r9
  seta   %r8b
  or     %dil,%r8b
  je     L29
  mov    0x8(%rsp),%rbx
  movapd %xmm8,%xmm10
  movapd %xmm9,%xmm7
  xor    %edi,%edi
  mov    0x70(%rsp),%r9
  mov    0x58(%rsp),%rax
  unpcklpd %xmm10,%xmm10
  unpcklpd %xmm7,%xmm7
  lea    0x0(%r13,%rbx,1),%r8
  nopl   0x0(%rax)
L116:
  movupd (%r12,%rdi,1),%xmm2
  mulpd  %xmm10,%xmm2
  movups %xmm2,(%rsi,%rdi,1)
  movupd (%r12,%rdi,1),%xmm2
  mulpd  %xmm7,%xmm2
  movups %xmm2,(%rcx,%rdi,1)
  add    $0x10,%rdi
  movsd  %xmm0,(%r8)
  movsd  %xmm0,(%r8,%r15,1)
  add    %r14,%r8
  movsd  %xmm1,(%rax)
  movsd  %xmm1,(%rax,%r15,1)
  add    %r14,%rax
  cmp    %rdi,%r9
  jne    L116
  cmp    %r10d,0x1c(%rsp)
  je     L90
  mulsd  (%r11),%xmm8
  mov    0x1f8(%rsp),%rsi
  lea    (%rdx,%r10,1),%eax
  cltq
  movsd  %xmm8,(%rsi,%rax,8)
  mulsd  (%r11),%xmm9
  mov    0x200(%rsp),%rsi
  movsd  %xmm9,(%rsi,%rax,8)
  mov    0x10(%rsp),%eax
  add    0x20(%rsp),%eax
  add    %r10d,%eax
  cltq
  movsd  %xmm0,0x0(%r13,%rax,8)
  movsd  %xmm1,0x0(%rbp,%rax,8)
L90:
  mov    0x88(%rsp),%rbx
  addq   $0x4,0x28(%rsp)
  add    %rbx,0x8(%rsp)
  mov    0x28(%rsp),%rax
  mov    0x90(%rsp),%ebx
  add    0x1c(%rsp),%edx
  add    %ebx,0x10(%rsp)
  cmp    %rax,0x78(%rsp)
  jne    L45
  mov    %r13,0x208(%rsp)
  mov    0xf4(%rsp),%esi
  mov    %r14,%r13
  mov    %rbp,0x210(%rsp)
  mov    0x208(%rsp),%r14
  mov    %r11,%rbp
  add    %esi,0xe0(%rsp)
  mov    0x210(%rsp),%r11
  mov    0x100(%rsp),%rsi
  add    %rsi,0x78(%rsp)
  addq   $0x4,0xd0(%rsp)
  mov    0x110(%rsp),%esi
  mov    0xd0(%rsp),%rax
  add    %esi,0xd8(%rsp)
  cmp    0xf8(%rsp),%rax
  jne    L104
L142:
  add    $0x128,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L378:
  test   %esi,%esi
  js     L190
  mov    0x8(%rsp),%rax
  movsd  0x0(%r13,%rax,1),%xmm0
  movsd  0x0(%rbp,%rax,1),%xmm1
  mov    0x94(%rsp),%eax
  test   %eax,%eax
  jg     L148
  jmp    L127
  xchg   %ax,%ax
L29:
  mov    0x8(%rsp),%rdi
  mov    0xe8(%rsp),%r9
  xor    %eax,%eax
  nop
L241:
  movsd  (%r12,%rax,8),%xmm2
  mov    %rax,%r8
  mulsd  %xmm8,%xmm2
  movsd  %xmm2,(%rsi,%rax,8)
  movsd  (%r12,%rax,8),%xmm2
  mulsd  %xmm9,%xmm2
  movsd  %xmm2,(%rcx,%rax,8)
  add    $0x1,%rax
  movsd  %xmm0,0x0(%r13,%rdi,1)
  movsd  %xmm1,0x0(%rbp,%rdi,1)
  add    %r15,%rdi
  cmp    %r8,%r9
  jne    L241
  jmp    L90
L347:
  movapd %xmm4,%xmm8
  movapd %xmm4,%xmm1
  xor    %edi,%edi
  jmp    L30
L153:
  test   %r12d,%r12d
  je     L47
  movslq 0xe8(%rsp),%rax
  mov    0x1e8(%rsp),%rdx
  pxor   %xmm3,%xmm3
  movq   $0x0,(%rdx,%rax,8)
  mov    0x1f0(%rsp),%rdx
  mov    %rax,0xe0(%rsp)
  movq   $0x0,(%rdx,%rax,8)
  jmp    L331
L290:
  pxor   %xmm6,%xmm6
  movslq 0x70(%rsp),%rsi
  xor    %eax,%eax
  movsd  %xmm6,0x38(%rsp)
  movapd %xmm6,%xmm3
  jmp    L352
L183:
  movsd  %xmm5,0xb0(%rsp)
  movsd  %xmm7,0xa8(%rsp)
  movsd  %xmm6,0xa0(%rsp)
  movsd  %xmm8,0x28(%rsp)
  movsd  %xmm4,0x20(%rsp)
  movsd  %xmm2,0x10(%rsp)
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm8
  movsd  0xb0(%rsp),%xmm5
  movsd  0xa8(%rsp),%xmm7
  movsd  0x20(%rsp),%xmm4
  movsd  0xa0(%rsp),%xmm6
  movsd  0x10(%rsp),%xmm2
  jmp    L381
```

tool_calls: name: retrieve_data
arguments: tag: D108
type_guessed: f32[4]
name: retrieve_data
arguments: tag: D127
type_guessed: f64
name: retrieve_data
arguments: tag: D112
type_guessed: f64
name: retrieve_data
arguments: tag: D73
type_guessed: f64
name: retrieve_data
arguments: tag: D146
type_guessed: byte[8]

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

tool: D127: 1

tool: D112: 2

tool: D73: 0.5

tool: {"D146": [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;
      }
    }
  }
}
```