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

```asm
<calculate_fgh>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x198,%rsp
  movapd %xmm0,%xmm8
  movsd  %xmm1,0x150(%rsp)
  movsd  %xmm2,0x158(%rsp)
  movsd  %xmm3,0x160(%rsp)
  movsd  %xmm4,0x128(%rsp)
  movsd  %xmm5,0x130(%rsp)
  mov    %edi,0x174(%rsp)
  mov    %esi,0x170(%rsp)
  mov    %edx,0x24(%rsp)
  mov    %rcx,0x188(%rsp)
  movsd  D232(%rip),%xmm0
  movapd %xmm0,%xmm2
  divsd  %xmm6,%xmm2
  movsd  %xmm2,0x88(%rsp)
  movapd %xmm0,%xmm2
  divsd  %xmm7,%xmm2
  movsd  %xmm2,0x90(%rsp)
  movapd %xmm0,%xmm2
  divsd  0x1d0(%rsp),%xmm2
  movsd  %xmm2,0x18(%rsp)
  divsd  %xmm8,%xmm0
  movsd  %xmm0,0x120(%rsp)
  test   %edi,%edi
  jle    L109
  mov    %rcx,%r10
  movslq %edx,%rcx
  shl    $0x3,%rcx
  mov    %rcx,0x168(%rsp)
  movslq %esi,%rcx
  lea    0x0(,%rcx,8),%rsi
  mov    %rsi,0x178(%rsp)
  mov    %r8,0x10(%rsp)
  mov    0x1e0(%rsp),%rsi
  add    $0x8,%rsi
  mov    %rsi,0x148(%rsp)
  mov    %r9,%r14
  mov    %r10,0x118(%rsp)
  mov    0x1f0(%rsp),%rax
  lea    0x8(%rax),%r15
  lea    -0x1(%rdx),%eax
  lea    0x10(,%rax,8),%rax
  mov    %rax,0x180(%rsp)
  movq   $0x1,0x138(%rsp)
  mov    %r15,%r13
  jmp    L96
L239:
  movsd  0x28(%rsp),%xmm10
  movapd %xmm10,%xmm3
  movsd  0x98(%rsp),%xmm6
  addsd  %xmm6,%xmm3
  movsd  0xf0(%rsp),%xmm4
  addsd  0x48(%rsp),%xmm4
  movsd  0x108(%rsp),%xmm2
  addsd  0x50(%rsp),%xmm2
  mov    0x1d8(%rsp),%rax
  mov    0x138(%rsp),%rsi
  mov    (%rax,%rsi,8),%rax
  mov    (%rax,%r13,1),%rax
  movapd %xmm10,%xmm5
  addsd  %xmm10,%xmm5
  movapd %xmm6,%xmm0
  subsd  %xmm5,%xmm0
  movsd  0x40(%rsp),%xmm9
  addsd  %xmm9,%xmm0
  movsd  0x88(%rsp),%xmm8
  mulsd  %xmm8,%xmm0
  mulsd  %xmm8,%xmm0
  movsd  0x60(%rsp),%xmm15
  movapd %xmm15,%xmm1
  subsd  %xmm5,%xmm1
  movsd  0xb0(%rsp),%xmm13
  addsd  %xmm13,%xmm1
  movsd  0x90(%rsp),%xmm11
  mulsd  %xmm11,%xmm1
  mulsd  %xmm11,%xmm1
  addsd  %xmm1,%xmm0
  movsd  0x70(%rsp),%xmm12
  movapd %xmm12,%xmm1
  subsd  %xmm5,%xmm1
  movsd  0xc8(%rsp),%xmm14
  addsd  %xmm14,%xmm1
  movsd  0x18(%rsp),%xmm5
  mulsd  %xmm5,%xmm1
  mulsd  %xmm5,%xmm1
  addsd  %xmm1,%xmm0
  mulsd  0x120(%rsp),%xmm0
  movapd %xmm3,%xmm1
  andpd  D87(%rip),%xmm1
  movapd %xmm10,%xmm5
  subsd  %xmm6,%xmm5
  mulsd  %xmm5,%xmm1
  movapd %xmm10,%xmm5
  addsd  %xmm9,%xmm5
  movapd %xmm5,%xmm6
  andpd  D87(%rip),%xmm6
  subsd  %xmm10,%xmm9
  mulsd  %xmm9,%xmm6
  subsd  %xmm6,%xmm1
  movsd  0x128(%rsp),%xmm9
  mulsd  %xmm9,%xmm1
  mulsd  %xmm3,%xmm3
  mulsd  %xmm5,%xmm5
  subsd  %xmm5,%xmm3
  addsd  %xmm3,%xmm1
  movsd  D57(%rip),%xmm3
  movapd %xmm8,%xmm5
  mulsd  %xmm3,%xmm5
  mulsd  %xmm5,%xmm1
  subsd  %xmm1,%xmm0
  movsd  0x30(%rsp),%xmm6
  addsd  0x78(%rsp),%xmm6
  movapd %xmm6,%xmm1
  andpd  D87(%rip),%xmm1
  movapd %xmm10,%xmm5
  subsd  %xmm15,%xmm5
  mulsd  %xmm5,%xmm1
  movapd %xmm4,%xmm7
  andpd  D87(%rip),%xmm7
  movapd %xmm7,%xmm5
  movapd %xmm13,%xmm7
  subsd  %xmm10,%xmm7
  mulsd  %xmm7,%xmm5
  subsd  %xmm5,%xmm1
  mulsd  %xmm9,%xmm1
  movapd %xmm10,%xmm5
  addsd  %xmm15,%xmm5
  mulsd  %xmm5,%xmm6
  addsd  %xmm10,%xmm13
  mulsd  %xmm13,%xmm4
  subsd  %xmm4,%xmm6
  addsd  %xmm6,%xmm1
  movapd %xmm11,%xmm4
  mulsd  %xmm3,%xmm4
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm0
  movsd  0x38(%rsp),%xmm4
  addsd  0x68(%rsp),%xmm4
  movapd %xmm4,%xmm5
  movapd %xmm4,%xmm1
  andpd  D87(%rip),%xmm1
  movapd %xmm10,%xmm4
  subsd  %xmm12,%xmm4
  mulsd  %xmm4,%xmm1
  movapd %xmm2,%xmm4
  andpd  D87(%rip),%xmm4
  movapd %xmm14,%xmm6
  subsd  %xmm10,%xmm6
  mulsd  %xmm6,%xmm4
  subsd  %xmm4,%xmm1
  mulsd  %xmm9,%xmm1
  movapd %xmm10,%xmm4
  addsd  %xmm12,%xmm4
  mulsd  %xmm4,%xmm5
  addsd  %xmm10,%xmm14
  mulsd  %xmm14,%xmm2
  movapd %xmm5,%xmm4
  subsd  %xmm2,%xmm4
  addsd  %xmm4,%xmm1
  mulsd  0x18(%rsp),%xmm3
  mulsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm0
  addsd  0x150(%rsp),%xmm0
  mulsd  0x130(%rsp),%xmm0
  addsd  %xmm10,%xmm0
  movsd  %xmm0,(%rax,%r15,8)
  jmp    L169
L264:
  movsd  0x30(%rsp),%xmm11
  movapd %xmm11,%xmm3
  movsd  0xa0(%rsp),%xmm14
  movapd %xmm14,%xmm1
  addsd  %xmm14,%xmm3
  movsd  0x60(%rsp),%xmm6
  addsd  0x28(%rsp),%xmm6
  movsd  0xe0(%rsp),%xmm5
  addsd  0x40(%rsp),%xmm5
  movsd  0x100(%rsp),%xmm2
  addsd  0x50(%rsp),%xmm2
  mov    0x148(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%r13,1),%rax
  movapd %xmm11,%xmm4
  addsd  %xmm11,%xmm4
  movsd  0x78(%rsp),%xmm15
  movapd %xmm15,%xmm0
  subsd  %xmm4,%xmm0
  movsd  0xd0(%rsp),%xmm9
  addsd  %xmm9,%xmm0
  movsd  0x88(%rsp),%xmm10
  mulsd  %xmm10,%xmm0
  mulsd  %xmm10,%xmm0
  subsd  %xmm4,%xmm1
  movsd  0x48(%rsp),%xmm8
  addsd  %xmm8,%xmm1
  movsd  0x90(%rsp),%xmm12
  mulsd  %xmm12,%xmm1
  mulsd  %xmm12,%xmm1
  addsd  %xmm1,%xmm0
  movsd  0x58(%rsp),%xmm1
  subsd  %xmm4,%xmm1
  movsd  0xb8(%rsp),%xmm13
  addsd  %xmm13,%xmm1
  movsd  0x18(%rsp),%xmm4
  mulsd  %xmm4,%xmm1
  mulsd  %xmm4,%xmm1
  addsd  %xmm1,%xmm0
  mulsd  0x120(%rsp),%xmm0
  movapd %xmm3,%xmm1
  andpd  D87(%rip),%xmm1
  movapd %xmm11,%xmm4
  subsd  %xmm14,%xmm4
  mulsd  %xmm4,%xmm1
  movapd %xmm11,%xmm4
  addsd  %xmm8,%xmm4
  movapd %xmm4,%xmm7
  andpd  D87(%rip),%xmm7
  subsd  %xmm11,%xmm8
  mulsd  %xmm8,%xmm7
  subsd  %xmm7,%xmm1
  movsd  0x128(%rsp),%xmm14
  mulsd  %xmm14,%xmm1
  mulsd  %xmm3,%xmm3
  mulsd  %xmm4,%xmm4
  subsd  %xmm4,%xmm3
  addsd  %xmm3,%xmm1
  movsd  D57(%rip),%xmm4
  movapd %xmm12,%xmm3
  mulsd  %xmm4,%xmm3
  mulsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm0
  movapd %xmm6,%xmm3
  andpd  D87(%rip),%xmm3
  movapd %xmm3,%xmm1
  movapd %xmm11,%xmm3
  subsd  %xmm15,%xmm3
  mulsd  %xmm3,%xmm1
  movapd %xmm5,%xmm3
  andpd  D87(%rip),%xmm3
  movapd %xmm9,%xmm7
  subsd  %xmm11,%xmm7
  mulsd  %xmm7,%xmm3
  subsd  %xmm3,%xmm1
  movapd %xmm1,%xmm3
  mulsd  %xmm14,%xmm3
  addsd  %xmm11,%xmm15
  movapd %xmm15,%xmm1
  mulsd  %xmm6,%xmm1
  addsd  %xmm11,%xmm9
  mulsd  %xmm9,%xmm5
  subsd  %xmm5,%xmm1
  addsd  %xmm3,%xmm1
  movapd %xmm10,%xmm3
  mulsd  %xmm4,%xmm3
  mulsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm0
  movsd  0x38(%rsp),%xmm5
  addsd  0x80(%rsp),%xmm5
  movapd %xmm5,%xmm6
  andpd  D87(%rip),%xmm6
  movapd %xmm6,%xmm1
  movapd %xmm11,%xmm3
  movsd  0x58(%rsp),%xmm7
  subsd  %xmm7,%xmm3
  mulsd  %xmm3,%xmm1
  movapd %xmm2,%xmm3
  andpd  D87(%rip),%xmm3
  movapd %xmm13,%xmm6
  subsd  %xmm11,%xmm6
  mulsd  %xmm6,%xmm3
  subsd  %xmm3,%xmm1
  mulsd  %xmm14,%xmm1
  movapd %xmm11,%xmm3
  addsd  %xmm7,%xmm3
  mulsd  %xmm3,%xmm5
  addsd  %xmm11,%xmm13
  mulsd  %xmm13,%xmm2
  subsd  %xmm2,%xmm5
  addsd  %xmm5,%xmm1
  mulsd  0x18(%rsp),%xmm4
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm0
  addsd  0x158(%rsp),%xmm0
  mulsd  0x130(%rsp),%xmm0
  addsd  %xmm11,%xmm0
  movsd  %xmm0,(%rax,%rbx,1)
  jmp    L244
L188:
  mov    0x0(%rbp),%rax
  mov    (%rax,%r13,1),%rax
  mov    (%rax,%r15,4),%edi
  mov    $0x0,%eax
  call   <getboundarytype@plt>
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  shr    $0x1e,%ecx
  lea    (%rax,%rcx,1),%edx
  and    $0x3,%edx
  sub    %ecx,%edx
  cmp    $0x1,%edx
  je     L343
  cmp    $0x2,%edx
  je     L83
  cmp    $0x1f,%eax
  jg     L128
  cmp    $0xf,%eax
  jg     L240
  cltd
  shr    $0x1c,%edx
  add    %edx,%eax
  and    $0xf,%eax
  sub    %edx,%eax
  lea    -0x8(%rax),%edx
  cmp    $0x2,%edx
  jbe    L185
  sub    $0x4,%eax
  cmp    $0x2,%eax
  jbe    L8
L305:
  add    $0x1,%r15
  cmp    %r15d,0x24(%rsp)
  jl     L4
L204:
  mov    %rbp,0x8(%rsp)
  lea    0x0(,%r15,4),%rax
  mov    %rax,(%rsp)
  mov    0x0(%rbp),%rax
  mov    (%rax,%r13,1),%rax
  mov    (%rax,%r15,4),%edi
  mov    $0x0,%eax
  call   <isfluid@plt>
  test   %eax,%eax
  je     L188
  mov    0x118(%rsp),%r10
  mov    0x8(%r10),%rsi
  mov    (%rsi,%r13,1),%rdx
  lea    0x0(,%r15,8),%rbx
  movsd  (%rdx,%r15,8),%xmm6
  movsd  %xmm6,0x28(%rsp)
  mov    0x10(%rsp),%rax
  mov    0x8(%rax),%r8
  mov    (%r8,%r13,1),%rcx
  movsd  (%rcx,%r15,8),%xmm2
  movsd  %xmm2,0x30(%rsp)
  mov    0x8(%r14),%rax
  mov    (%rax,%r13,1),%rdi
  movsd  (%rdi,%r15,8),%xmm6
  movsd  %xmm6,0x38(%rsp)
  mov    0x10(%r10),%r9
  mov    (%r9,%r13,1),%r9
  movsd  (%r9,%r15,8),%xmm2
  movsd  %xmm2,0x98(%rsp)
  mov    (%r8,%r12,1),%r9
  movsd  (%r9,%r15,8),%xmm6
  movsd  %xmm6,0xa0(%rsp)
  movsd  0x8(%rdi,%rbx,1),%xmm2
  movsd  %xmm2,0xa8(%rsp)
  mov    (%r10),%r10
  mov    (%r10,%r13,1),%r9
  movsd  (%r9,%r15,8),%xmm6
  movsd  %xmm6,0x40(%rsp)
  mov    0x110(%rsp),%r11
  mov    (%r8,%r11,1),%r8
  movsd  (%r8,%r15,8),%xmm4
  movsd  %xmm4,0x48(%rsp)
  movsd  -0x8(%rdi,%rbx,1),%xmm2
  movsd  %xmm2,0x50(%rsp)
  mov    (%rsi,%r12,1),%rdi
  movsd  (%rdi,%r15,8),%xmm6
  movsd  %xmm6,0x60(%rsp)
  movsd  0x8(%rcx,%rbx,1),%xmm4
  movsd  %xmm4,0x58(%rsp)
  mov    0x10(%r14),%rdi
  mov    (%rdi,%r13,1),%rdi
  movsd  (%rdi,%r15,8),%xmm2
  movsd  %xmm2,0x68(%rsp)
  mov    (%rsi,%r11,1),%rsi
  movsd  (%rsi,%r15,8),%xmm7
  movsd  %xmm7,0xb0(%rsp)
  movsd  -0x8(%rcx,%rbx,1),%xmm6
  movsd  %xmm6,0xb8(%rsp)
  mov    (%r14),%rcx
  mov    (%rcx,%r13,1),%rcx
  movsd  (%rcx,%r15,8),%xmm4
  movsd  %xmm4,0xc0(%rsp)
  movsd  0x8(%rdx,%rbx,1),%xmm2
  movsd  %xmm2,0x70(%rsp)
  mov    0x10(%rsp),%rsi
  mov    0x10(%rsi),%rsi
  mov    (%rsi,%r13,1),%rcx
  movsd  (%rcx,%r15,8),%xmm7
  movsd  %xmm7,0x78(%rsp)
  mov    (%rax,%r12,1),%rcx
  movsd  (%rcx,%r15,8),%xmm6
  movsd  %xmm6,0x80(%rsp)
  movsd  -0x8(%rdx,%rbx,1),%xmm4
  movsd  %xmm4,0xc8(%rsp)
  mov    0x10(%rsp),%rdx
  mov    (%rdx),%rdx
  mov    (%rdx,%r13,1),%rdx
  movsd  (%rdx,%r15,8),%xmm2
  movsd  %xmm2,0xd0(%rsp)
  mov    (%rax,%r11,1),%rax
  movsd  (%rax,%r15,8),%xmm5
  movsd  %xmm5,0xd8(%rsp)
  mov    (%r10,%r12,1),%rax
  movsd  (%rax,%r15,8),%xmm7
  movsd  %xmm7,0xe0(%rsp)
  movsd  0x8(%r9,%rbx,1),%xmm6
  movsd  %xmm6,0xe8(%rsp)
  mov    (%rsi,%r11,1),%rax
  movsd  (%rax,%r15,8),%xmm4
  movsd  %xmm4,0xf0(%rsp)
  movsd  0x8(%r8,%rbx,1),%xmm2
  movsd  %xmm2,0xf8(%rsp)
  movsd  -0x8(%rcx,%rbx,1),%xmm5
  movsd  %xmm5,0x100(%rsp)
  movsd  -0x8(%rdi,%rbx,1),%xmm7
  movsd  %xmm7,0x108(%rsp)
  mov    0x8(%rbp),%rax
  mov    (%rax,%r13,1),%rax
  mov    (%rax,%r15,4),%edi
  mov    $0x0,%eax
  call   <isfluid@plt>
  test   %eax,%eax
  jne    L239
L169:
  mov    0x8(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%r12,1),%rax
  mov    (%rsp),%rsi
  mov    (%rax,%rsi,1),%edi
  mov    $0x0,%eax
  call   <isfluid@plt>
  test   %eax,%eax
  jne    L264
L244:
  mov    0x8(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%r13,1),%rax
  mov    (%rsp),%rsi
  mov    0x4(%rax,%rsi,1),%edi
  mov    $0x0,%eax
  call   <isfluid@plt>
  test   %eax,%eax
  je     L305
  movsd  0x38(%rsp),%xmm12
  movapd %xmm12,%xmm8
  addsd  %xmm12,%xmm8
  movapd %xmm12,%xmm5
  movsd  0xa8(%rsp),%xmm9
  addsd  %xmm9,%xmm5
  movapd %xmm12,%xmm7
  movsd  0x50(%rsp),%xmm11
  addsd  %xmm11,%xmm7
  movsd  0x28(%rsp),%xmm2
  addsd  0x70(%rsp),%xmm2
  movsd  0x40(%rsp),%xmm6
  addsd  0xe8(%rsp),%xmm6
  movsd  0x30(%rsp),%xmm1
  addsd  0x58(%rsp),%xmm1
  movsd  0x48(%rsp),%xmm4
  addsd  0xf8(%rsp),%xmm4
  mov    0x1e8(%rsp),%rax
  mov    0x138(%rsp),%rsi
  mov    (%rax,%rsi,8),%rax
  mov    (%rax,%r13,1),%rax
  movsd  0x68(%rsp),%xmm14
  movapd %xmm14,%xmm0
  subsd  %xmm8,%xmm0
  movsd  0xc0(%rsp),%xmm15
  addsd  %xmm15,%xmm0
  movsd  0x88(%rsp),%xmm3
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  movsd  0x80(%rsp),%xmm10
  movapd %xmm10,%xmm3
  subsd  %xmm8,%xmm3
  movsd  0xd8(%rsp),%xmm13
  addsd  %xmm13,%xmm3
  mulsd  0x90(%rsp),%xmm3
  mulsd  0x90(%rsp),%xmm3
  addsd  %xmm3,%xmm0
  movapd %xmm9,%xmm3
  subsd  %xmm8,%xmm3
  addsd  %xmm11,%xmm3
  movsd  0x18(%rsp),%xmm8
  mulsd  %xmm8,%xmm3
  mulsd  %xmm8,%xmm3
  addsd  %xmm3,%xmm0
  mulsd  0x120(%rsp),%xmm0
  movapd %xmm5,%xmm3
  andpd  D87(%rip),%xmm3
  movapd %xmm12,%xmm8
  subsd  %xmm9,%xmm8
  mulsd  %xmm8,%xmm3
  movapd %xmm7,%xmm9
  andpd  D87(%rip),%xmm9
  subsd  %xmm12,%xmm11
  movapd %xmm11,%xmm8
  mulsd  %xmm9,%xmm8
  subsd  %xmm8,%xmm3
  movsd  0x128(%rsp),%xmm9
  mulsd  %xmm9,%xmm3
  mulsd  %xmm5,%xmm5
  mulsd  %xmm7,%xmm7
  subsd  %xmm7,%xmm5
  addsd  %xmm5,%xmm3
  movsd  0x18(%rsp),%xmm5
  mulsd  D57(%rip),%xmm5
  mulsd  %xmm5,%xmm3
  subsd  %xmm3,%xmm0
  movapd %xmm2,%xmm5
  andpd  D87(%rip),%xmm5
  movapd %xmm12,%xmm3
  subsd  %xmm14,%xmm3
  mulsd  %xmm3,%xmm5
  movapd %xmm6,%xmm7
  andpd  D87(%rip),%xmm7
  movapd %xmm7,%xmm3
  movapd %xmm15,%xmm7
  subsd  %xmm12,%xmm7
  mulsd  %xmm7,%xmm3
  subsd  %xmm3,%xmm5
  mulsd  %xmm9,%xmm5
  addsd  %xmm12,%xmm14
  mulsd  %xmm14,%xmm2
  addsd  %xmm12,%xmm15
  movapd %xmm15,%xmm3
  mulsd  %xmm6,%xmm3
  subsd  %xmm3,%xmm2
  addsd  %xmm5,%xmm2
  movsd  0x88(%rsp),%xmm3
  mulsd  D57(%rip),%xmm3
  mulsd  %xmm3,%xmm2
  subsd  %xmm2,%xmm0
  movapd %xmm1,%xmm3
  andpd  D87(%rip),%xmm3
  movapd %xmm12,%xmm2
  subsd  %xmm10,%xmm2
  mulsd  %xmm2,%xmm3
  movapd %xmm4,%xmm2
  andpd  D87(%rip),%xmm2
  movapd %xmm13,%xmm5
  subsd  %xmm12,%xmm5
  mulsd  %xmm5,%xmm2
  subsd  %xmm2,%xmm3
  mulsd  %xmm9,%xmm3
  addsd  %xmm12,%xmm10
  mulsd  %xmm10,%xmm1
  addsd  %xmm12,%xmm13
  movapd %xmm13,%xmm2
  mulsd  %xmm4,%xmm2
  subsd  %xmm2,%xmm1
  addsd  %xmm3,%xmm1
  movsd  0x90(%rsp),%xmm2
  mulsd  D57(%rip),%xmm2
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  addsd  0x160(%rsp),%xmm0
  mulsd  0x130(%rsp),%xmm0
  addsd  %xmm12,%xmm0
  movsd  %xmm0,(%rax,%rbx,1)
  jmp    L305
L343:
  mov    0x8(%r14),%rax
  mov    (%rax,%r13,1),%rax
  movsd  (%rax,%r15,8),%xmm0
  mov    0x1e8(%rsp),%rax
  mov    0x138(%rsp),%rbx
  mov    (%rax,%rbx,8),%rax
  mov    (%rax,%r13,1),%rax
  movsd  %xmm0,(%rax,%r15,8)
L4:
  mov    0x1e8(%rsp),%rax
  mov    0x138(%rsp),%rbx
  mov    (%rax,%rbx,8),%rax
  mov    (%rax,%r13,1),%rax
  mov    0x8(%r14),%rdx
  mov    (%rdx,%r13,1),%rdx
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    0x8(%r14),%rax
  mov    (%rax,%r13,1),%rax
  mov    0x168(%rsp),%rsi
  movsd  (%rax,%rsi,1),%xmm0
  mov    0x1e8(%rsp),%rax
  mov    (%rax,%rbx,8),%rax
  mov    (%rax,%r13,1),%rax
  movsd  %xmm0,(%rax,%rsi,1)
  addq   $0x1,0x140(%rsp)
  mov    0x140(%rsp),%rax
  add    $0x8,%r13
  add    $0x1,%eax
  cmp    %eax,0x170(%rsp)
  jl     L88
L147:
  cmpl   $0x0,0x24(%rsp)
  jle    L4
  lea    0x8(%r13),%r12
  mov    0x140(%rsp),%rax
  shl    $0x3,%rax
  mov    %rax,0x110(%rsp)
  mov    $0x1,%r15d
  jmp    L204
L83:
  lea    0x0(,%r15,8),%rax
  mov    0x8(%r14),%rdx
  mov    (%rdx,%r13,1),%rdx
  movsd  -0x8(%rdx,%rax,1),%xmm0
  mov    0x1e8(%rsp),%rbx
  mov    0x138(%rsp),%rsi
  mov    (%rbx,%rsi,8),%rdx
  mov    (%rdx,%r13,1),%rdx
  movsd  %xmm0,-0x8(%rdx,%rax,1)
  jmp    L4
L128:
  mov    0x118(%rsp),%rax
  mov    0x8(%rax),%rax
  mov    (%rax,%r13,1),%rax
  movsd  (%rax,%r15,8),%xmm0
  mov    0x1d8(%rsp),%rax
  mov    0x138(%rsp),%rbx
  mov    (%rax,%rbx,8),%rax
  mov    (%rax,%r13,1),%rax
  movsd  %xmm0,(%rax,%r15,8)
  jmp    L4
L240:
  mov    0x118(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%r13,1),%rax
  movsd  (%rax,%r15,8),%xmm0
  mov    0x1d8(%rsp),%rax
  mov    0x138(%rsp),%rbx
  mov    -0x8(%rax,%rbx,8),%rax
  mov    (%rax,%r13,1),%rax
  movsd  %xmm0,(%rax,%r15,8)
  jmp    L4
L185:
  mov    0x10(%rsp),%rax
  mov    0x8(%rax),%rax
  mov    (%rax,%r13,1),%rax
  movsd  (%rax,%r15,8),%xmm0
  mov    0x148(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%r13,1),%rax
  movsd  %xmm0,(%rax,%r15,8)
  jmp    L4
L8:
  mov    0x10(%rsp),%rax
  mov    0x8(%rax),%rax
  mov    0x110(%rsp),%rbx
  mov    (%rax,%rbx,1),%rax
  movsd  (%rax,%r15,8),%xmm0
  mov    0x148(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rbx,1),%rax
  movsd  %xmm0,(%rax,%r15,8)
  jmp    L4
L88:
  mov    %rbp,%r13
L135:
  cmpl   $0x0,0x24(%rsp)
  jle    L140
  mov    $0x8,%eax
  mov    0x178(%rsp),%rdx
  mov    0x180(%rsp),%r8
  mov    0x10(%rsp),%rcx
  mov    0x148(%rsp),%rsi
L85:
  mov    0x8(%rcx),%rdi
  mov    (%rdi),%rdi
  movsd  (%rdi,%rax,1),%xmm0
  mov    (%rsi),%rdi
  mov    (%rdi),%rdi
  movsd  %xmm0,(%rdi,%rax,1)
  mov    0x8(%rcx),%rdi
  mov    (%rdi,%rdx,1),%rdi
  movsd  (%rdi,%rax,1),%xmm0
  mov    (%rsi),%rdi
  mov    (%rdi,%rdx,1),%rdi
  movsd  %xmm0,(%rdi,%rax,1)
  add    $0x8,%rax
  cmp    %r8,%rax
  jne    L85
L140:
  addq   $0x1,0x138(%rsp)
  mov    0x138(%rsp),%rax
  addq   $0x8,0x10(%rsp)
  addq   $0x8,0x148(%rsp)
  add    $0x8,%r14
  addq   $0x8,0x118(%rsp)
  add    $0x8,%r13
  cmp    %eax,0x174(%rsp)
  jl     L109
L96:
  mov    $0x8,%r15d
  movq   $0x0,0x140(%rsp)
  cmpl   $0x0,0x170(%rsp)
  jle    L135
  mov    %r13,%rbp
  mov    %r15,%r13
  jmp    L147
L109:
  mov    0x170(%rsp),%eax
  test   %eax,%eax
  jle    L311
  movslq 0x174(%rsp),%rsi
  shl    $0x3,%rsi
  mov    0x188(%rsp),%r10
  lea    (%r10,%rsi,1),%r8
  add    0x1d8(%rsp),%rsi
  lea    0x1(%rax),%r9d
  shl    $0x3,%r9
  mov    0x24(%rsp),%ebx
  lea    -0x1(%rbx),%eax
  lea    0x10(,%rax,8),%rdi
  mov    $0x8,%edx
  mov    0x1d8(%rsp),%r11
  jmp    L206
L159:
  add    $0x8,%rdx
  cmp    %r9,%rdx
  je     L311
L206:
  mov    $0x8,%eax
  test   %ebx,%ebx
  jle    L159
L233:
  mov    (%r10),%rcx
  mov    (%rcx,%rdx,1),%rcx
  movsd  (%rcx,%rax,1),%xmm0
  mov    (%r11),%rcx
  mov    (%rcx,%rdx,1),%rcx
  movsd  %xmm0,(%rcx,%rax,1)
  mov    (%r8),%rcx
  mov    (%rcx,%rdx,1),%rcx
  movsd  (%rcx,%rax,1),%xmm0
  mov    (%rsi),%rcx
  mov    (%rcx,%rdx,1),%rcx
  movsd  %xmm0,(%rcx,%rax,1)
  add    $0x8,%rax
  cmp    %rdi,%rax
  jne    L233
  jmp    L159
L311:
  add    $0x198,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: tag: D232
datatype: f64
name: read_data
arguments: tag: D87
datatype: qword[2]
name: read_data
arguments: tag: D57
datatype: f64

tool: D232: 1

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

tool: D57: 0.25

assistant: ```c
void calculate_fgh(double Re, double GX, double GY, double GZ, double alpha, double dt, double dx, double dy, double dz, int imax, int jmax, int kmax, double ***U, double ***V, double ***W, double ***F, double ***G, double ***H, int ***Flag) {
  double uijk, vijk, wijk, uujk, udjk, uiuk, uidk, uiju, uijd, viuk, vidk, viju, vijd, vujk, vdjk, wiju, wijd, wujk, wdjk, wiuk, widk, uduk, udju, vudk, vidu, wiud, wujd;
  double Dx = 1 / dx, Dy = 1 / dy, Dz = 1 / dz;
  double ReInv = 1.0 / Re;
  int i, j, k, fgg;
  for (i = 1; i < imax + 1; i++) {
    for (j = 1; j < jmax + 1; j++) {
      for (k = 1; k < kmax + 1; k++) {
        if (isfluid(Flag[i][j][k])) {
          uijk = U[i][j][k];
          vijk = V[i][j][k];
          wijk = W[i][j][k];
          uujk = U[i + 1][j][k];
          viuk = V[i][j + 1][k];
          wiju = W[i][j][k + 1];
          udjk = U[i - 1][j][k];
          vidk = V[i][j - 1][k];
          wijd = W[i][j][k - 1];
          uiuk = U[i][j + 1][k];
          viju = V[i][j][k + 1];
          wujk = W[i + 1][j][k];
          uidk = U[i][j - 1][k];
          vijd = V[i][j][k - 1];
          wdjk = W[i - 1][j][k];
          uiju = U[i][j][k + 1];
          vujk = V[i + 1][j][k];
          wiuk = W[i][j + 1][k];
          uijd = U[i][j][k - 1];
          vdjk = V[i - 1][j][k];
          widk = W[i][j - 1][k];
          uduk = U[i - 1][j + 1][k];
          udju = U[i - 1][j][k + 1];
          vudk = V[i + 1][j - 1][k];
          vidu = V[i][j - 1][k + 1];
          wiud = W[i][j + 1][k - 1];
          wujd = W[i + 1][j][k - 1];
          if (isfluid(Flag[i + 1][j][k])) {
            F[i][j][k] = uijk + dt * (ReInv * ((uujk - 2 * uijk + udjk) * Dx * Dx + (uiuk - 2 * uijk + uidk) * Dy * Dy + (uiju - 2 * uijk + uijd) * Dz * Dz) - 0.25 * Dx * (pow((uijk + uujk), 2) - pow((udjk + uijk), 2) + alpha * (fabs(uijk + uujk) * (uijk - uujk) - fabs(udjk + uijk) * (udjk - uijk))) - 0.25 * Dy * ((vijk + vujk) * (uijk + uiuk) - (vidk + vudk) * (uidk + uijk) + alpha * (fabs(vijk + vujk) * (uijk - uiuk) - fabs(vidk + vudk) * (uidk - uijk))) - 0.25 * Dz * ((wijk + wujk) * (uijk + uiju) - (wijd + wujd) * (uijd + uijk) + alpha * (fabs(wijk + wujk) * (uijk - uiju) - fabs(wijd + wujd) * (uijd - uijk))) + GX);
          }
          if (isfluid(Flag[i][j + 1][k])) {
            G[i][j][k] = vijk + dt * (ReInv * ((vujk - 2 * vijk + vdjk) * Dx * Dx + (viuk - 2 * vijk + vidk) * Dy * Dy + (viju - 2 * vijk + vijd) * Dz * Dz) - 0.25 * Dy * (pow((vijk + viuk), 2) - pow((vidk + vijk), 2) + alpha * (fabs(vijk + viuk) * (vijk - viuk) - fabs(vidk + vijk) * (vidk - vijk))) - 0.25 * Dx * ((uijk + uiuk) * (vijk + vujk) - (udjk + uduk) * (vdjk + vijk) + alpha * (fabs(uijk + uiuk) * (vijk - vujk) - fabs(udjk + uduk) * (vdjk - vijk))) - 0.25 * Dz * ((wijk + wiuk) * (vijk + viju) - (wijd + wiud) * (vijd + vijk) + alpha * (fabs(wijk + wiuk) * (vijk - viju) - fabs(wijd + wiud) * (vijd - vijk))) + GY);
          }
          if (isfluid(Flag[i][j][k + 1])) {
            H[i][j][k] = wijk + dt * (ReInv * ((wujk - 2 * wijk + wdjk) * Dx * Dx + (wiuk - 2 * wijk + widk) * Dy * Dy + (wiju - 2 * wijk + wijd) * Dz * Dz) - 0.25 * Dz * (pow((wijk + wiju), 2) - pow((wijd + wijk), 2) + alpha * (fabs(wijk + wiju) * (wijk - wiju) - fabs(wijd + wijk) * (wijd - wijk))) - 0.25 * Dx * ((uijk + uiju) * (wijk + wujk) - (udjk + udju) * (wdjk + wijk) + alpha * (fabs(uijk + uiju) * (wijk - wujk) - fabs(udjk + udju) * (wdjk - wijk))) - 0.25 * Dy * ((vijk + viju) * (wijk + wiuk) - (vidk + vidu) * (widk + wijk) + alpha * (fabs(vijk + viju) * (wijk - wiuk) - fabs(vidk + vidu) * (widk - wijk))) + GZ);
          }
        } else {
          fgg = getboundarytype(Flag[i][j][k]);
          if (fgg % 4 == 1) {
            H[i][j][k] = W[i][j][k];
            break;
          } else if (fgg % 4 == 2) {
            H[i][j][k - 1] = W[i][j][k - 1];
            break;
          }
          if (fgg > 31) {
            F[i][j][k] = U[i][j][k];
            break;
          } else if (fgg > 15) {
            F[i - 1][j][k] = U[i - 1][j][k];
            break;
          }
          if ((fgg % 16 + 1) / 3 == 3) {
            G[i][j][k] = V[i][j][k];
            break;
          } else if ((fgg % 16 + 2) / 3 == 2) {
            G[i][j - 1][k] = V[i][j - 1][k];
            break;
          }
        }
      }
      H[i][j][0] = W[i][j][0];
      H[i][j][kmax] = W[i][j][kmax];
    }
    for (k = 1; k < kmax + 1; k++) {
      G[i][0][k] = V[i][0][k];
      G[i][jmax][k] = V[i][jmax][k];
    }
  }
  for (j = 1; j < jmax + 1; j++) {
    for (k = 1; k < kmax + 1; k++) {
      F[0][j][k] = U[0][j][k];
      F[imax][j][k] = U[imax][j][k];
    }
  }
}
```