user: 请将以下的汇编代码转换成C语言代码：

```asm
<calculate_fgh>:
  endbr64
  push   %r15
  movapd %xmm0,%xmm8
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x188,%rsp
  movsd  D94(%rip),%xmm0
  movsd  %xmm4,0x120(%rsp)
  movapd %xmm0,%xmm4
  mov    %edi,0x16c(%rsp)
  divsd  %xmm6,%xmm4
  mov    %esi,0x168(%rsp)
  mov    %edx,0x140(%rsp)
  mov    %rcx,0x178(%rsp)
  movsd  %xmm1,0x148(%rsp)
  movsd  %xmm2,0x150(%rsp)
  movsd  %xmm3,0x158(%rsp)
  movsd  %xmm5,0x128(%rsp)
  movsd  %xmm4,0x80(%rsp)
  movapd %xmm0,%xmm4
  divsd  %xmm7,%xmm4
  movsd  %xmm4,0x88(%rsp)
  movapd %xmm0,%xmm4
  divsd  0x1c0(%rsp),%xmm4
  divsd  %xmm8,%xmm0
  movsd  %xmm4,0x18(%rsp)
  movsd  %xmm0,0x118(%rsp)
  test   %edi,%edi
  jle    L130
  mov    %rcx,%r11
  movslq %edx,%rcx
  mov    %r8,0x10(%rsp)
  mov    %r9,%r15
  mov    0x1d8(%rsp),%rax
  shl    $0x3,%rcx
  mov    %r11,0x110(%rsp)
  mov    %rcx,0x160(%rsp)
  movslq %esi,%rcx
  add    $0x8,%rax
  shl    $0x3,%rcx
  movq   $0x1,0x130(%rsp)
  mov    %rax,0x138(%rsp)
  mov    0x1e0(%rsp),%rax
  mov    %rcx,0x170(%rsp)
  lea    0x8(%rax),%r14
  mov    %r14,%r13
L293:
  mov    0x168(%rsp),%eax
  mov    $0x8,%ebp
  mov    %r13,%r14
  movl   $0x1,0x144(%rsp)
  test   %eax,%eax
  jle    L131
  nopl   0x0(%rax)
L9:
  mov    0x140(%rsp),%ecx
  test   %ecx,%ecx
  jle    L182
  lea    -0x8(%rbp),%rax
  lea    0x8(%rbp),%r12
  mov    $0x1,%ebx
  mov    %r14,%r13
  mov    %rax,0x108(%rsp)
  jmp    L307
  nopl   0x0(%rax)
L266:
  mov    0x110(%rsp),%rdx
  mov    0x10(%rsp),%rax
  lea    0x0(,%rbx,8),%r14
  mov    0x8(%rdx),%rdi
  mov    0x8(%rax),%r9
  mov    0x10(%rdx),%r10
  mov    0x8(%r15),%rax
  mov    (%rdi,%rbp,1),%rcx
  mov    (%r9,%rbp,1),%rsi
  mov    (%rax,%rbp,1),%r8
  mov    (%r10,%rbp,1),%r10
  movsd  (%rcx,%rbx,8),%xmm6
  movsd  (%rsi,%rbx,8),%xmm2
  mov    (%rdx),%r11
  mov    0x108(%rsp),%rdx
  movsd  %xmm6,0x20(%rsp)
  movsd  (%r8,%rbx,8),%xmm6
  movsd  %xmm2,0x28(%rsp)
  movsd  (%r10,%rbx,8),%xmm2
  mov    (%r9,%r12,1),%r10
  movsd  %xmm6,0x30(%rsp)
  mov    (%r9,%rdx,1),%r9
  movsd  %xmm2,0x90(%rsp)
  movsd  (%r10,%rbx,8),%xmm6
  movsd  0x8(%r8,%r14,1),%xmm2
  mov    (%r11,%rbp,1),%r10
  movsd  (%r9,%rbx,8),%xmm4
  movsd  %xmm6,0x98(%rsp)
  movsd  %xmm2,0xa0(%rsp)
  movsd  (%r10,%rbx,8),%xmm6
  movsd  -0x8(%r8,%r14,1),%xmm2
  movsd  %xmm4,0x40(%rsp)
  movsd  %xmm6,0x38(%rsp)
  movsd  %xmm2,0x48(%rsp)
  mov    (%rdi,%r12,1),%r8
  movsd  0x8(%rsi,%r14,1),%xmm4
  mov    (%rdi,%rdx,1),%rdi
  movsd  (%r8,%rbx,8),%xmm6
  movsd  %xmm4,0x50(%rsp)
  mov    0x10(%r15),%r8
  movsd  (%rdi,%rbx,8),%xmm7
  movsd  %xmm6,0x58(%rsp)
  movsd  -0x8(%rsi,%r14,1),%xmm6
  mov    (%r15),%rsi
  movsd  %xmm7,0xa8(%rsp)
  mov    (%r8,%rbp,1),%r8
  movsd  %xmm6,0xb0(%rsp)
  mov    (%rsi,%rbp,1),%rsi
  movsd  (%r8,%rbx,8),%xmm2
  movsd  (%rsi,%rbx,8),%xmm4
  mov    0x10(%rsp),%rsi
  movsd  %xmm2,0x60(%rsp)
  movsd  0x8(%rcx,%r14,1),%xmm2
  movsd  %xmm4,0xb8(%rsp)
  mov    0x10(%rsi),%rdi
  movsd  -0x8(%rcx,%r14,1),%xmm4
  mov    0x10(%rsp),%rcx
  movsd  %xmm2,0x68(%rsp)
  movsd  %xmm4,0xc0(%rsp)
  mov    (%rdi,%rbp,1),%rsi
  mov    (%rcx),%rcx
  movsd  (%rsi,%rbx,8),%xmm7
  mov    (%rax,%r12,1),%rsi
  movsd  (%rsi,%rbx,8),%xmm6
  movsd  %xmm7,0x70(%rsp)
  movsd  %xmm6,0x78(%rsp)
  mov    (%rcx,%rbp,1),%rcx
  mov    (%rax,%rdx,1),%rax
  movsd  0x8(%r10,%r14,1),%xmm6
  movsd  (%rax,%rbx,8),%xmm5
  mov    (%r11,%r12,1),%rax
  movsd  %xmm6,0xe0(%rsp)
  movsd  (%rcx,%rbx,8),%xmm2
  movsd  %xmm5,0xd0(%rsp)
  movsd  (%rax,%rbx,8),%xmm7
  mov    (%rdi,%rdx,1),%rax
  movsd  %xmm2,0xc8(%rsp)
  movsd  -0x8(%rsi,%r14,1),%xmm5
  movsd  0x8(%r9,%r14,1),%xmm2
  movsd  %xmm7,0xd8(%rsp)
  movsd  (%rax,%rbx,8),%xmm4
  mov    0x8(%r13),%rax
  movsd  %xmm2,0xf0(%rsp)
  movsd  -0x8(%r8,%r14,1),%xmm7
  movsd  %xmm4,0xe8(%rsp)
  mov    (%rax,%rbp,1),%rax
  movsd  %xmm5,0xf8(%rsp)
  movsd  %xmm7,0x100(%rsp)
  mov    (%rax,%rbx,4),%edi
  xor    %eax,%eax
  call   <isfluid@plt>
  test   %eax,%eax
  jne    L19
L221:
  mov    0x0(%r13),%rax
  mov    0x8(%rsp),%rcx
  mov    (%rax,%r12,1),%rax
  mov    (%rax,%rcx,1),%edi
  xor    %eax,%eax
  call   <isfluid@plt>
  test   %eax,%eax
  jne    L220
L92:
  mov    0x0(%r13),%rax
  mov    0x8(%rsp),%rcx
  mov    (%rax,%rbp,1),%rax
  mov    0x4(%rax,%rcx,1),%edi
  xor    %eax,%eax
  call   <isfluid@plt>
  test   %eax,%eax
  jne    L148
L196:
  add    $0x1,%rbx
  cmp    %ebx,0x140(%rsp)
  jl     L263
L307:
  lea    0x0(,%rbx,4),%rax
  mov    %rax,0x8(%rsp)
  mov    0x0(%r13),%rax
  mov    (%rax,%rbp,1),%rax
  mov    (%rax,%rbx,4),%edi
  xor    %eax,%eax
  call   <isfluid@plt>
  test   %eax,%eax
  jne    L266
  mov    0x0(%r13),%rax
  mov    (%rax,%rbp,1),%rax
  mov    (%rax,%rbx,4),%edi
  xor    %eax,%eax
  call   <getboundarytype@plt>
  mov    %eax,%esi
  sar    $0x1f,%esi
  mov    %esi,%edi
  shr    $0x1e,%edi
  lea    (%rax,%rdi,1),%ecx
  and    $0x3,%ecx
  sub    %edi,%ecx
  cmp    $0x1,%ecx
  je     L214
  cmp    $0x2,%ecx
  je     L174
  cmp    $0x1f,%eax
  jg     L186
  cmp    $0xf,%eax
  jg     L240
  shr    $0x1c,%esi
  add    %esi,%eax
  and    $0xf,%eax
  sub    %esi,%eax
  lea    -0x8(%rax),%ecx
  cmp    $0x2,%ecx
  jbe    L219
  sub    $0x4,%eax
  cmp    $0x2,%eax
  ja     L196
  mov    0x10(%rsp),%rax
  mov    0x108(%rsp),%rcx
  mov    %r13,%r14
  mov    0x130(%rsp),%rsi
  mov    0x8(%rax),%rax
  mov    (%rax,%rcx,1),%rax
  movsd  (%rax,%rbx,8),%xmm0
  mov    0x1d0(%rsp),%rax
  mov    (%rax,%rsi,8),%rax
  mov    (%rax,%rcx,1),%rax
  movsd  %xmm0,(%rax,%rbx,8)
  nopw   0x0(%rax,%rax,1)
L324:
  mov    0x8(%r15),%rax
  mov    (%rax,%rbp,1),%rcx
  mov    0x138(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rbp,1),%rax
L243:
  movsd  (%rcx),%xmm0
  mov    0x160(%rsp),%rsi
  mov    %r12,%rbp
  addl   $0x1,0x144(%rsp)
  movsd  %xmm0,(%rax)
  movsd  (%rcx,%rsi,1),%xmm0
  movsd  %xmm0,(%rax,%rsi,1)
  mov    0x144(%rsp),%eax
  cmp    %eax,0x168(%rsp)
  jge    L9
  mov    %r14,%r13
L131:
  mov    0x140(%rsp),%edx
  test   %edx,%edx
  jle    L57
  mov    0x10(%rsp),%rax
  mov    0x130(%rsp),%rsi
  mov    0x8(%rax),%rcx
  mov    0x1d0(%rsp),%rax
  mov    (%rax,%rsi,8),%rax
  mov    0x170(%rsp),%rsi
  mov    (%rcx),%r9
  mov    (%rcx,%rsi,1),%rdi
  mov    (%rax),%r8
  mov    (%rax,%rsi,1),%rsi
  mov    0x140(%rsp),%eax
  lea    0x1(%rax),%ecx
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L149:
  movsd  (%r9,%rax,8),%xmm0
  movsd  %xmm0,(%r8,%rax,8)
  movsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L149
L57:
  addq   $0x8,0x10(%rsp)
  add    $0x8,%r15
  add    $0x8,%r13
  addq   $0x1,0x130(%rsp)
  mov    0x130(%rsp),%rax
  addq   $0x8,0x138(%rsp)
  addq   $0x8,0x110(%rsp)
  cmp    %eax,0x16c(%rsp)
  jge    L293
L130:
  mov    0x168(%rsp),%eax
  test   %eax,%eax
  jle    L78
  mov    0x140(%rsp),%ebp
  movslq 0x16c(%rsp),%r10
  lea    0x1(%rax),%ebx
  mov    $0x8,%r9d
  mov    0x178(%rsp),%r12
  mov    0x1c8(%rsp),%r13
  shl    $0x3,%rbx
  shl    $0x3,%r10
  lea    0x1(%rbp),%r8d
  lea    (%r12,%r10,1),%r11
  add    0x1c8(%rsp),%r10
L72:
  test   %ebp,%ebp
  jle    L231
  mov    (%r12),%rax
  mov    (%rax,%r9,1),%rdi
  mov    0x0(%r13),%rax
  mov    (%rax,%r9,1),%rsi
  mov    (%r11),%rax
  mov    (%rax,%r9,1),%rcx
  mov    (%r10),%rax
  mov    (%rax,%r9,1),%rdx
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L287:
  movsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  movsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r8
  jne    L287
L231:
  add    $0x8,%r9
  cmp    %r9,%rbx
  jne    L72
L78:
  add    $0x188,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L148:
  movsd  0x30(%rsp),%xmm12
  movsd  0x60(%rsp),%xmm14
  add    $0x1,%rbx
  movsd  0xb8(%rsp),%xmm15
  movsd  0x20(%rsp),%xmm2
  movapd %xmm12,%xmm8
  movapd %xmm14,%xmm0
  movsd  0x80(%rsp),%xmm3
  movsd  0x78(%rsp),%xmm10
  addsd  %xmm12,%xmm8
  movsd  0x48(%rsp),%xmm11
  movsd  0xd0(%rsp),%xmm13
  movapd %xmm12,%xmm5
  movsd  0xa0(%rsp),%xmm9
  movapd %xmm12,%xmm7
  addsd  0x68(%rsp),%xmm2
  addsd  %xmm11,%xmm7
  movsd  0x38(%rsp),%xmm6
  addsd  0xe0(%rsp),%xmm6
  subsd  %xmm8,%xmm0
  addsd  %xmm9,%xmm5
  mov    0x138(%rsp),%rax
  movsd  0x28(%rsp),%xmm1
  addsd  0x50(%rsp),%xmm1
  movsd  0x40(%rsp),%xmm4
  addsd  0xf0(%rsp),%xmm4
  mov    (%rax),%rax
  addsd  %xmm15,%xmm0
  mov    (%rax,%rbp,1),%rax
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  movapd %xmm10,%xmm3
  subsd  %xmm8,%xmm3
  addsd  %xmm13,%xmm3
  mulsd  0x88(%rsp),%xmm3
  mulsd  0x88(%rsp),%xmm3
  addsd  %xmm3,%xmm0
  movapd %xmm9,%xmm3
  subsd  %xmm8,%xmm3
  movsd  0x18(%rsp),%xmm8
  addsd  %xmm11,%xmm3
  subsd  %xmm12,%xmm11
  mulsd  %xmm8,%xmm3
  mulsd  %xmm8,%xmm3
  movapd %xmm12,%xmm8
  subsd  %xmm9,%xmm8
  movapd %xmm7,%xmm9
  andpd  D157(%rip),%xmm9
  mulsd  %xmm7,%xmm7
  addsd  %xmm3,%xmm0
  movapd %xmm5,%xmm3
  andpd  D157(%rip),%xmm3
  mulsd  %xmm5,%xmm5
  mulsd  %xmm8,%xmm3
  movapd %xmm11,%xmm8
  mulsd  %xmm9,%xmm8
  movsd  0x120(%rsp),%xmm9
  mulsd  0x118(%rsp),%xmm0
  subsd  %xmm7,%xmm5
  movapd %xmm6,%xmm7
  andpd  D157(%rip),%xmm7
  subsd  %xmm8,%xmm3
  mulsd  %xmm9,%xmm3
  addsd  %xmm5,%xmm3
  movsd  D28(%rip),%xmm5
  mulsd  0x18(%rsp),%xmm5
  mulsd  %xmm5,%xmm3
  movapd %xmm2,%xmm5
  andpd  D157(%rip),%xmm5
  subsd  %xmm3,%xmm0
  movapd %xmm12,%xmm3
  subsd  %xmm14,%xmm3
  addsd  %xmm12,%xmm14
  mulsd  %xmm3,%xmm5
  movapd %xmm7,%xmm3
  movapd %xmm15,%xmm7
  subsd  %xmm12,%xmm7
  addsd  %xmm12,%xmm15
  mulsd  %xmm14,%xmm2
  mulsd  %xmm7,%xmm3
  subsd  %xmm3,%xmm5
  movapd %xmm15,%xmm3
  mulsd  %xmm6,%xmm3
  mulsd  %xmm9,%xmm5
  subsd  %xmm3,%xmm2
  movapd %xmm1,%xmm3
  addsd  %xmm5,%xmm2
  movsd  D28(%rip),%xmm5
  mulsd  0x80(%rsp),%xmm5
  andpd  D157(%rip),%xmm3
  mulsd  %xmm5,%xmm2
  movapd %xmm13,%xmm5
  addsd  %xmm12,%xmm13
  subsd  %xmm12,%xmm5
  subsd  %xmm2,%xmm0
  movapd %xmm12,%xmm2
  subsd  %xmm10,%xmm2
  addsd  %xmm12,%xmm10
  mulsd  %xmm2,%xmm3
  movapd %xmm4,%xmm2
  andpd  D157(%rip),%xmm2
  mulsd  %xmm10,%xmm1
  mulsd  %xmm5,%xmm2
  subsd  %xmm2,%xmm3
  movapd %xmm13,%xmm2
  mulsd  %xmm4,%xmm2
  mulsd  %xmm9,%xmm3
  subsd  %xmm2,%xmm1
  movsd  D28(%rip),%xmm2
  mulsd  0x88(%rsp),%xmm2
  addsd  %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  addsd  0x158(%rsp),%xmm0
  mulsd  0x128(%rsp),%xmm0
  addsd  %xmm12,%xmm0
  movsd  %xmm0,(%rax,%r14,1)
  cmp    %ebx,0x140(%rsp)
  jge    L307
  nop
L263:
  mov    %r13,%r14
  jmp    L324
  nopl   0x0(%rax,%rax,1)
L220:
  movsd  0x28(%rsp),%xmm11
  movsd  0x58(%rsp),%xmm6
  movsd  0x98(%rsp),%xmm14
  movsd  0x70(%rsp),%xmm15
  movapd %xmm11,%xmm4
  movapd %xmm11,%xmm3
  movsd  0xc8(%rsp),%xmm9
  movsd  0x40(%rsp),%xmm8
  addsd  %xmm11,%xmm4
  movapd %xmm14,%xmm1
  movapd %xmm15,%xmm0
  movsd  0x80(%rsp),%xmm10
  movsd  0x88(%rsp),%xmm12
  addsd  %xmm14,%xmm3
  movsd  0xb0(%rsp),%xmm13
  addsd  0x20(%rsp),%xmm6
  mov    0x1d0(%rsp),%rax
  subsd  %xmm4,%xmm0
  subsd  %xmm4,%xmm1
  movsd  0xd8(%rsp),%xmm5
  movsd  0xf8(%rsp),%xmm2
  addsd  0x38(%rsp),%xmm5
  addsd  0x48(%rsp),%xmm2
  mov    0x130(%rsp),%rsi
  addsd  %xmm9,%xmm0
  addsd  %xmm8,%xmm1
  mov    (%rax,%rsi,8),%rax
  mulsd  %xmm10,%xmm0
  mov    (%rax,%rbp,1),%rax
  mulsd  %xmm12,%xmm1
  mulsd  %xmm10,%xmm0
  mulsd  %xmm12,%xmm1
  addsd  %xmm1,%xmm0
  movsd  0x50(%rsp),%xmm1
  subsd  %xmm4,%xmm1
  movsd  0x18(%rsp),%xmm4
  addsd  %xmm13,%xmm1
  mulsd  %xmm4,%xmm1
  mulsd  %xmm4,%xmm1
  movapd %xmm11,%xmm4
  subsd  %xmm14,%xmm4
  movsd  0x120(%rsp),%xmm14
  addsd  %xmm1,%xmm0
  movapd %xmm3,%xmm1
  andpd  D157(%rip),%xmm1
  mulsd  %xmm3,%xmm3
  mulsd  %xmm4,%xmm1
  movapd %xmm11,%xmm4
  mulsd  0x118(%rsp),%xmm0
  addsd  %xmm8,%xmm4
  subsd  %xmm11,%xmm8
  movapd %xmm4,%xmm7
  andpd  D157(%rip),%xmm7
  mulsd  %xmm4,%xmm4
  mulsd  %xmm8,%xmm7
  subsd  %xmm4,%xmm3
  movsd  D28(%rip),%xmm4
  subsd  %xmm7,%xmm1
  movapd %xmm9,%xmm7
  addsd  %xmm11,%xmm9
  subsd  %xmm11,%xmm7
  mulsd  %xmm14,%xmm1
  addsd  %xmm3,%xmm1
  movapd %xmm12,%xmm3
  mulsd  %xmm4,%xmm3
  mulsd  %xmm3,%xmm1
  movapd %xmm6,%xmm3
  andpd  D157(%rip),%xmm3
  subsd  %xmm1,%xmm0
  movapd %xmm3,%xmm1
  movapd %xmm11,%xmm3
  subsd  %xmm15,%xmm3
  addsd  %xmm11,%xmm15
  mulsd  %xmm3,%xmm1
  movapd %xmm5,%xmm3
  andpd  D157(%rip),%xmm3
  mulsd  %xmm9,%xmm5
  mulsd  %xmm7,%xmm3
  movsd  0x50(%rsp),%xmm7
  subsd  %xmm3,%xmm1
  movapd %xmm1,%xmm3
  movapd %xmm15,%xmm1
  mulsd  %xmm6,%xmm1
  mulsd  %xmm14,%xmm3
  subsd  %xmm5,%xmm1
  movsd  0x30(%rsp),%xmm5
  addsd  0x78(%rsp),%xmm5
  addsd  %xmm3,%xmm1
  movapd %xmm10,%xmm3
  movapd %xmm5,%xmm6
  mulsd  %xmm4,%xmm3
  andpd  D157(%rip),%xmm6
  mulsd  %xmm3,%xmm1
  movapd %xmm11,%xmm3
  subsd  %xmm7,%xmm3
  subsd  %xmm1,%xmm0
  movapd %xmm6,%xmm1
  movapd %xmm13,%xmm6
  subsd  %xmm11,%xmm6
  mulsd  %xmm3,%xmm1
  movapd %xmm2,%xmm3
  andpd  D157(%rip),%xmm3
  addsd  %xmm11,%xmm13
  mulsd  0x18(%rsp),%xmm4
  mulsd  %xmm6,%xmm3
  mulsd  %xmm13,%xmm2
  subsd  %xmm3,%xmm1
  movapd %xmm11,%xmm3
  addsd  %xmm7,%xmm3
  mulsd  %xmm14,%xmm1
  mulsd  %xmm3,%xmm5
  subsd  %xmm2,%xmm5
  addsd  %xmm5,%xmm1
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm0
  addsd  0x150(%rsp),%xmm0
  mulsd  0x128(%rsp),%xmm0
  addsd  %xmm11,%xmm0
  movsd  %xmm0,(%rax,%r14,1)
  jmp    L92
  nopl   0x0(%rax,%rax,1)
L19:
  movsd  0x20(%rsp),%xmm10
  movsd  0x58(%rsp),%xmm15
  movsd  0x90(%rsp),%xmm6
  movsd  0x38(%rsp),%xmm9
  movapd %xmm10,%xmm5
  movapd %xmm15,%xmm1
  movsd  0xa8(%rsp),%xmm13
  movsd  0x80(%rsp),%xmm8
  addsd  %xmm10,%xmm5
  movapd %xmm6,%xmm0
  movsd  0x88(%rsp),%xmm11
  movsd  0x68(%rsp),%xmm12
  movsd  0xc0(%rsp),%xmm14
  movapd %xmm10,%xmm3
  movsd  0xe8(%rsp),%xmm4
  addsd  %xmm6,%xmm3
  addsd  0x40(%rsp),%xmm4
  movsd  0x100(%rsp),%xmm2
  subsd  %xmm5,%xmm0
  subsd  %xmm5,%xmm1
  mov    0x1c8(%rsp),%rax
  mov    0x130(%rsp),%rcx
  addsd  0x48(%rsp),%xmm2
  movapd %xmm4,%xmm7
  andpd  D157(%rip),%xmm7
  mov    (%rax,%rcx,8),%rax
  addsd  %xmm9,%xmm0
  addsd  %xmm13,%xmm1
  mov    (%rax,%rbp,1),%rax
  mulsd  %xmm8,%xmm0
  mulsd  %xmm11,%xmm1
  mulsd  %xmm8,%xmm0
  mulsd  %xmm11,%xmm1
  addsd  %xmm1,%xmm0
  movapd %xmm12,%xmm1
  subsd  %xmm5,%xmm1
  movsd  0x18(%rsp),%xmm5
  addsd  %xmm14,%xmm1
  mulsd  %xmm5,%xmm1
  mulsd  %xmm5,%xmm1
  movapd %xmm10,%xmm5
  subsd  %xmm6,%xmm5
  addsd  %xmm1,%xmm0
  movapd %xmm3,%xmm1
  andpd  D157(%rip),%xmm1
  mulsd  %xmm3,%xmm3
  mulsd  %xmm5,%xmm1
  movapd %xmm10,%xmm5
  mulsd  0x118(%rsp),%xmm0
  addsd  %xmm9,%xmm5
  subsd  %xmm10,%xmm9
  movapd %xmm5,%xmm6
  andpd  D157(%rip),%xmm6
  mulsd  %xmm5,%xmm5
  mulsd  %xmm9,%xmm6
  movsd  0x120(%rsp),%xmm9
  subsd  %xmm5,%xmm3
  movapd %xmm8,%xmm5
  subsd  %xmm6,%xmm1
  movsd  0x28(%rsp),%xmm6
  addsd  0x70(%rsp),%xmm6
  mulsd  %xmm9,%xmm1
  addsd  %xmm3,%xmm1
  movsd  D28(%rip),%xmm3
  mulsd  %xmm3,%xmm5
  mulsd  %xmm5,%xmm1
  movapd %xmm10,%xmm5
  subsd  %xmm15,%xmm5
  subsd  %xmm1,%xmm0
  movapd %xmm6,%xmm1
  andpd  D157(%rip),%xmm1
  mulsd  %xmm5,%xmm1
  movapd %xmm7,%xmm5
  movapd %xmm13,%xmm7
  subsd  %xmm10,%xmm7
  addsd  %xmm10,%xmm13
  mulsd  %xmm7,%xmm5
  mulsd  %xmm13,%xmm4
  subsd  %xmm5,%xmm1
  movapd %xmm10,%xmm5
  addsd  %xmm15,%xmm5
  mulsd  %xmm9,%xmm1
  mulsd  %xmm5,%xmm6
  subsd  %xmm4,%xmm6
  movapd %xmm11,%xmm4
  mulsd  %xmm3,%xmm4
  mulsd  0x18(%rsp),%xmm3
  addsd  %xmm6,%xmm1
  movapd %xmm14,%xmm6
  addsd  %xmm10,%xmm14
  subsd  %xmm10,%xmm6
  mulsd  %xmm4,%xmm1
  movsd  0x30(%rsp),%xmm4
  addsd  0x60(%rsp),%xmm4
  movapd %xmm4,%xmm5
  subsd  %xmm1,%xmm0
  movapd %xmm4,%xmm1
  movapd %xmm10,%xmm4
  subsd  %xmm12,%xmm4
  andpd  D157(%rip),%xmm1
  mulsd  %xmm4,%xmm1
  movapd %xmm2,%xmm4
  andpd  D157(%rip),%xmm4
  mulsd  %xmm14,%xmm2
  mulsd  %xmm6,%xmm4
  subsd  %xmm4,%xmm1
  movapd %xmm10,%xmm4
  addsd  %xmm12,%xmm4
  mulsd  %xmm9,%xmm1
  mulsd  %xmm4,%xmm5
  movapd %xmm5,%xmm4
  subsd  %xmm2,%xmm4
  addsd  %xmm4,%xmm1
  mulsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm0
  addsd  0x148(%rsp),%xmm0
  mulsd  0x128(%rsp),%xmm0
  addsd  %xmm10,%xmm0
  movsd  %xmm0,(%rax,%rbx,8)
  jmp    L221
L214:
  mov    0x8(%r15),%rax
  mov    %r13,%r14
  mov    (%rax,%rbp,1),%rcx
  mov    0x138(%rsp),%rax
  mov    (%rax),%rax
  movsd  (%rcx,%rbx,8),%xmm0
  mov    (%rax,%rbp,1),%rax
  movsd  %xmm0,(%rax,%rbx,8)
  jmp    L243
L174:
  mov    0x8(%r15),%rax
  shl    $0x3,%rbx
  mov    %r13,%r14
  mov    (%rax,%rbp,1),%rcx
  mov    0x138(%rsp),%rax
  mov    (%rax),%rax
  movsd  -0x8(%rcx,%rbx,1),%xmm0
  mov    (%rax,%rbp,1),%rax
  movsd  %xmm0,-0x8(%rax,%rbx,1)
  jmp    L243
L186:
  mov    0x110(%rsp),%rax
  mov    0x130(%rsp),%rcx
  mov    %r13,%r14
  mov    0x8(%rax),%rax
  mov    (%rax,%rbp,1),%rax
  movsd  (%rax,%rbx,8),%xmm0
  mov    0x1c8(%rsp),%rax
  mov    (%rax,%rcx,8),%rax
  mov    (%rax,%rbp,1),%rax
  movsd  %xmm0,(%rax,%rbx,8)
  jmp    L324
L240:
  mov    0x110(%rsp),%rax
  mov    0x130(%rsp),%rcx
  mov    %r13,%r14
  mov    (%rax),%rax
  mov    (%rax,%rbp,1),%rax
  movsd  (%rax,%rbx,8),%xmm0
  mov    0x1c8(%rsp),%rax
  mov    -0x8(%rax,%rcx,8),%rax
  mov    (%rax,%rbp,1),%rax
  movsd  %xmm0,(%rax,%rbx,8)
  jmp    L324
L219:
  mov    0x10(%rsp),%rax
  mov    0x130(%rsp),%rcx
  mov    %r13,%r14
  mov    0x8(%rax),%rax
  mov    (%rax,%rbp,1),%rax
  movsd  (%rax,%rbx,8),%xmm0
  mov    0x1d0(%rsp),%rax
  mov    (%rax,%rcx,8),%rax
  mov    (%rax,%rbp,1),%rax
  movsd  %xmm0,(%rax,%rbx,8)
  jmp    L324
L182:
  mov    0x8(%r15),%rax
  lea    0x8(%rbp),%r12
  mov    (%rax,%rbp,1),%rcx
  mov    0x138(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rbp,1),%rax
  jmp    L243
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D94
data_type: f64
name: extract_symbolic_data
arguments: data_tag: D157
data_type: qword[2]
name: extract_symbolic_data
arguments: data_tag: D28
data_type: f64

tool: D94: 1

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

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