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

```asm
<equilibration>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1d8,%rsp
  movsd  D3(%rip),%xmm1
  mov    %rdi,0x1b0(%rsp)
  lea    0x1c8(%rsp),%r13
  lea    0x1c0(%rsp),%r12
  movl   $0xfa,0x1bc(%rsp)
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x1a0(%rsp)
L108:
  movl   $0xfa,0x1b8(%rsp)
L82:
  mov    0x1b0(%rsp),%rax
  movl   $0x0,0x1ac(%rsp)
  mov    %rax,0x150(%rsp)
  nopl   0x0(%rax,%rax,1)
L58:
  mov    0x1ac(%rsp),%edi
  mov    $0xaaaaaaab,%esi
  mov    %r12,%rbp
  mov    %r13,%r12
  movq   $0x0,0x198(%rsp)
  lea    0x5(%rdi),%eax
  mov    %rax,%rcx
  imul   %rsi,%rax
  shr    $0x22,%rax
  lea    (%rax,%rax,2),%edx
  mov    %ecx,%eax
  add    %edx,%edx
  sub    %edx,%eax
  lea    0x1(%rdi),%edx
  mov    %rdx,%rdi
  mov    %edx,0x1ac(%rsp)
  imul   %rsi,%rdx
  cltq
  shr    $0x22,%rdx
  lea    (%rdx,%rdx,2),%ecx
  add    %ecx,%ecx
  sub    %ecx,%edi
  mov    0x1b0(%rsp),%rcx
  movslq %edi,%rdx
  lea    (%rcx,%rdx,8),%rdx
  lea    (%rcx,%rax,8),%rax
  mov    %rdx,0x158(%rsp)
  mov    %rax,0x160(%rsp)
  xchg   %ax,%ax
L28:
  mov    0x198(%rsp),%rcx
  mov    $0xaaaaaaab,%esi
  xor    %r15d,%r15d
  lea    0x0(,%rcx,8),%rax
  lea    0x1(%rcx),%edx
  mov    %rax,0x138(%rsp)
  mov    %rdx,%rax
  imul   %rsi,%rdx
  shr    $0x22,%rdx
  lea    (%rdx,%rdx,2),%edx
  add    %edx,%edx
  sub    %edx,%eax
  lea    0x5(%rcx),%edx
  cltq
  shl    $0x3,%rax
  mov    %rax,0x140(%rsp)
  mov    %rdx,%rax
  imul   %rsi,%rdx
  shr    $0x22,%rdx
  lea    (%rdx,%rdx,2),%edx
  add    %edx,%edx
  sub    %edx,%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0x148(%rsp)
  jmp    L123
  nopl   0x0(%rax,%rax,1)
L43:
  movsd  0x128(%rsp),%xmm4
  mov    0x50(%rsp),%rax
  movsd  0x130(%rsp),%xmm3
  mov    (%rax,%r15,8),%rax
  movsd  %xmm4,(%rax)
  movsd  %xmm3,0x8(%rax)
L3:
  movsd  0x48(%rsp),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <sincos@plt>
  mov    0x10(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c8(%rsp),%xmm2
  movsd  0x1c0(%rsp),%xmm1
  movsd  (%rax),%xmm0
  movsd  %xmm2,0xd8(%rsp)
  movsd  %xmm1,0xe0(%rsp)
  call   <sincos@plt>
  mov    0x10(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm1
  movsd  0x1c8(%rsp),%xmm9
  movsd  0x8(%rax),%xmm0
  movsd  %xmm1,0x30(%rsp)
  movsd  %xmm9,0xd0(%rsp)
  call   <sincos@plt>
  mov    0x18(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm12
  movsd  0x1c8(%rsp),%xmm7
  movsd  (%rax),%xmm0
  movsd  %xmm12,0xc8(%rsp)
  movsd  %xmm7,0x68(%rsp)
  call   <sincos@plt>
  mov    0x18(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c8(%rsp),%xmm8
  movsd  0x1c0(%rsp),%xmm5
  movsd  0x8(%rax),%xmm0
  movsd  %xmm8,0xc0(%rsp)
  movsd  %xmm5,0x10(%rsp)
  call   <sincos@plt>
  mov    0x58(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm10
  movsd  0x1c8(%rsp),%xmm3
  movsd  (%rax),%xmm0
  movsd  %xmm10,0xb8(%rsp)
  movsd  %xmm3,0x38(%rsp)
  call   <sincos@plt>
  movsd  (%r14),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c8(%rsp),%xmm7
  movsd  0x1c0(%rsp),%xmm4
  movsd  %xmm7,0xb0(%rsp)
  movsd  %xmm4,0x18(%rsp)
  call   <sincos@plt>
  movsd  0x8(%r14),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm2
  movsd  0x1c8(%rsp),%xmm4
  movsd  %xmm2,0x80(%rsp)
  movsd  %xmm4,0xa8(%rsp)
  call   <sincos@plt>
  movsd  0x0(%r13),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm11
  movsd  0x1c8(%rsp),%xmm6
  movsd  %xmm11,0xa0(%rsp)
  movsd  %xmm6,0x98(%rsp)
  call   <sincos@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm0
  movsd  0x1c8(%rsp),%xmm5
  movsd  %xmm0,0x58(%rsp)
  movsd  0x8(%r13),%xmm0
  movsd  %xmm5,0x90(%rsp)
  call   <sincos@plt>
  movsd  (%rbx),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c8(%rsp),%xmm3
  mov    0x1c0(%rsp),%r13
  movsd  %xmm3,0x70(%rsp)
  call   <sincos@plt>
  movsd  0x8(%rbx),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c8(%rsp),%xmm3
  movsd  0x1c0(%rsp),%xmm15
  movsd  %xmm3,0x88(%rsp)
  movsd  %xmm15,0x78(%rsp)
  call   <sincos@plt>
  movsd  0x68(%rsp),%xmm6
  movsd  0xc8(%rsp),%xmm12
  movsd  0xd0(%rsp),%xmm9
  movsd  0x8(%rsp),%xmm2
  movsd  0xc0(%rsp),%xmm8
  movapd %xmm12,%xmm0
  movsd  0xb8(%rsp),%xmm10
  movsd  0xb0(%rsp),%xmm7
  mulsd  %xmm9,%xmm0
  movsd  0xa0(%rsp),%xmm11
  movsd  0xa8(%rsp),%xmm4
  mulsd  %xmm8,%xmm10
  movsd  0x90(%rsp),%xmm5
  movsd  0x88(%rsp),%xmm3
  mulsd  %xmm9,%xmm6
  movsd  0xe0(%rsp),%xmm1
  mulsd  0x38(%rsp),%xmm8
  mulsd  %xmm2,%xmm1
  subsd  0x20(%rsp),%xmm1
  addsd  %xmm10,%xmm0
  movapd %xmm7,%xmm10
  mulsd  %xmm11,%xmm10
  mulsd  %xmm4,%xmm11
  addsd  %xmm10,%xmm0
  movq   %r13,%xmm10
  mulsd  %xmm5,%xmm10
  addsd  %xmm11,%xmm0
  addsd  %xmm10,%xmm0
  movsd  0x1c0(%rsp),%xmm10
  mulsd  %xmm3,%xmm10
  mulsd  0x1c8(%rsp),%xmm3
  addsd  %xmm10,%xmm0
  mulsd  %xmm1,%xmm0
  movapd %xmm6,%xmm1
  movsd  0x98(%rsp),%xmm6
  addsd  %xmm8,%xmm1
  mulsd  %xmm6,%xmm7
  mulsd  %xmm6,%xmm4
  addsd  %xmm7,%xmm1
  movapd %xmm2,%xmm7
  movsd  0xd8(%rsp),%xmm2
  mulsd  %xmm7,%xmm2
  pxor   %xmm7,%xmm7
  addsd  %xmm4,%xmm1
  movsd  0x70(%rsp),%xmm4
  subsd  0x28(%rsp),%xmm2
  mulsd  %xmm5,%xmm4
  addsd  %xmm4,%xmm1
  addsd  %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  0x40(%rsp),%xmm2
  subsd  %xmm2,%xmm2
  addsd  %xmm1,%xmm0
  movsd  0x30(%rsp),%xmm1
  addsd  0x10(%rsp),%xmm1
  addsd  0x18(%rsp),%xmm1
  addsd  0x80(%rsp),%xmm1
  addsd  0x58(%rsp),%xmm1
  addsd  0x78(%rsp),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  comisd %xmm7,%xmm0
  jb     L128
  mov    0x50(%rsp),%rax
  mov    0x60(%rsp),%rcx
  movsd  (%rsp),%xmm5
  movsd  0x48(%rsp),%xmm7
  mov    (%rax,%rcx,1),%rax
  movsd  %xmm5,(%rax)
  movsd  %xmm7,0x8(%rax)
L90:
  add    $0x1,%r15
  cmp    $0x6,%r15
  je     L124
L123:
  mov    0x150(%rsp),%r14
  lea    0x0(,%r15,8),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    0x138(%rsp),%r13
  mov    %rax,0x60(%rsp)
  mov    (%r14),%rax
  mov    (%rax,%r13,1),%rax
  mov    (%rax,%r15,8),%rbx
  movsd  (%rbx),%xmm5
  movapd %xmm5,%xmm0
  movsd  %xmm5,(%rsp)
  call   <sincos@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm3
  movsd  0x1c8(%rsp),%xmm5
  movsd  %xmm3,0x40(%rsp)
  movsd  0x8(%rbx),%xmm3
  movsd  %xmm5,0x8(%rsp)
  movapd %xmm3,%xmm0
  movsd  %xmm3,0x10(%rsp)
  call   <sincos@plt>
  xor    %eax,%eax
  movsd  0x1c0(%rsp),%xmm7
  movsd  0x1c8(%rsp),%xmm3
  movsd  %xmm7,0x30(%rsp)
  movsd  %xmm3,0x38(%rsp)
  call   <rng_theta@plt>
  pxor   %xmm4,%xmm4
  mov    %rbp,%rsi
  mov    %r12,%rdi
  cvtsi2sd %eax,%xmm4
  movsd  0x10(%rsp),%xmm3
  movsd  %xmm3,0x130(%rsp)
  movapd %xmm4,%xmm6
  movapd %xmm4,%xmm0
  movsd  %xmm4,0x128(%rsp)
  unpcklpd %xmm3,%xmm6
  movaps %xmm6,0x180(%rsp)
  call   <sincos@plt>
  xor    %eax,%eax
  movsd  0x1c8(%rsp),%xmm2
  movsd  0x1c0(%rsp),%xmm5
  movsd  %xmm2,0x118(%rsp)
  movsd  %xmm5,0x120(%rsp)
  call   <rng_phi@plt>
  pxor   %xmm4,%xmm4
  mov    %rbp,%rsi
  mov    %r12,%rdi
  cvtsi2sd %eax,%xmm4
  movsd  0x8(%rsp),%xmm5
  movsd  0x30(%rsp),%xmm7
  mov    0x158(%rsp),%rax
  mulsd  %xmm5,%xmm7
  mov    (%rax),%rax
  mulsd  0x38(%rsp),%xmm5
  movapd %xmm4,%xmm6
  movsd  %xmm4,0x48(%rsp)
  movsd  (%rsp),%xmm4
  mov    (%rax,%r13,1),%rax
  unpcklpd %xmm6,%xmm4
  mov    (%rax,%r15,8),%rbx
  movsd  %xmm7,0x20(%rsp)
  movsd  %xmm5,0x28(%rsp)
  movsd  (%rbx),%xmm0
  movaps %xmm4,0x170(%rsp)
  mov    %rbx,0x10(%rsp)
  call   <sincos@plt>
  movsd  0x8(%rbx),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm1
  movsd  %xmm1,0xb8(%rsp)
  movsd  0x1c8(%rsp),%xmm1
  movsd  %xmm1,0x110(%rsp)
  call   <sincos@plt>
  mov    0x160(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c8(%rsp),%xmm4
  movsd  0x1c0(%rsp),%xmm15
  mov    (%rax),%rax
  movsd  %xmm4,0xb0(%rsp)
  movsd  %xmm15,0x108(%rsp)
  mov    (%rax,%r13,1),%rax
  mov    (%rax,%r15,8),%rbx
  movsd  (%rbx),%xmm0
  mov    %rbx,0x18(%rsp)
  call   <sincos@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm0
  movsd  0x1c8(%rsp),%xmm10
  movsd  %xmm0,0xa8(%rsp)
  movsd  0x8(%rbx),%xmm0
  movsd  %xmm10,0x100(%rsp)
  call   <sincos@plt>
  mov    (%r14),%rbx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    0x140(%rsp),%rax
  movsd  0x1c8(%rsp),%xmm15
  movsd  0x1c0(%rsp),%xmm14
  movsd  %xmm15,0xa0(%rsp)
  mov    (%rbx,%rax,1),%rax
  movsd  %xmm14,0xf8(%rsp)
  mov    (%rax,%r15,8),%r14
  movsd  (%r14),%xmm0
  mov    %r14,0x58(%rsp)
  call   <sincos@plt>
  movsd  0x8(%r14),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c8(%rsp),%xmm9
  movsd  0x1c0(%rsp),%xmm13
  movsd  %xmm9,0xf0(%rsp)
  movsd  %xmm13,0x98(%rsp)
  call   <sincos@plt>
  mov    0x148(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm13
  movsd  0x1c8(%rsp),%xmm14
  mov    (%rbx,%rax,1),%rax
  movsd  %xmm13,0xe8(%rsp)
  movsd  %xmm14,0x90(%rsp)
  mov    (%rax,%r15,8),%r14
  movsd  (%r14),%xmm0
  call   <sincos@plt>
  movsd  0x8(%r14),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c8(%rsp),%xmm8
  movsd  0x1c0(%rsp),%xmm12
  movsd  %xmm8,0xe0(%rsp)
  movsd  %xmm12,0x88(%rsp)
  call   <sincos@plt>
  mov    $0xaaaaaaab,%ecx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  lea    0x1(%r15),%eax
  mov    (%rbx,%r13,1),%rbx
  movsd  0x1c0(%rsp),%xmm12
  movsd  0x1c8(%rsp),%xmm9
  mov    %rax,%rdx
  imul   %rcx,%rax
  movsd  %xmm12,0xd8(%rsp)
  movsd  %xmm9,0x80(%rsp)
  shr    $0x22,%rax
  lea    (%rax,%rax,2),%eax
  add    %eax,%eax
  sub    %eax,%edx
  movslq %edx,%rax
  mov    (%rbx,%rax,8),%r13
  mov    %rax,0x168(%rsp)
  movsd  0x0(%r13),%xmm0
  call   <sincos@plt>
  movsd  0x8(%r13),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm8
  movsd  0x1c8(%rsp),%xmm7
  movsd  %xmm8,0x78(%rsp)
  movsd  %xmm7,0xd0(%rsp)
  call   <sincos@plt>
  lea    0x5(%r15),%eax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0xaaaaaaab,%ecx
  mov    %rax,%rdx
  mov    %rbx,0x50(%rsp)
  movsd  0x1c0(%rsp),%xmm11
  movsd  0x1c8(%rsp),%xmm10
  imul   %rcx,%rax
  movsd  %xmm11,0xc8(%rsp)
  movsd  %xmm10,0x68(%rsp)
  shr    $0x22,%rax
  lea    (%rax,%rax,2),%eax
  add    %eax,%eax
  sub    %eax,%edx
  movslq %edx,%rcx
  mov    (%rbx,%rcx,8),%rbx
  mov    %rcx,0x190(%rsp)
  movsd  (%rbx),%xmm0
  call   <sincos@plt>
  movsd  0x8(%rbx),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1c0(%rsp),%xmm6
  movsd  %xmm6,0x70(%rsp)
  movsd  0x1c8(%rsp),%xmm6
  movsd  %xmm6,0xc0(%rsp)
  call   <sincos@plt>
  pxor   %xmm3,%xmm3
  movsd  0x108(%rsp),%xmm15
  movsd  0x110(%rsp),%xmm1
  movsd  0x100(%rsp),%xmm10
  movsd  0xf8(%rsp),%xmm14
  movsd  0xf0(%rsp),%xmm9
  movapd %xmm15,%xmm0
  movsd  0xe8(%rsp),%xmm13
  movsd  0xe0(%rsp),%xmm8
  mulsd  %xmm1,%xmm0
  movsd  0xd8(%rsp),%xmm12
  movsd  0xd0(%rsp),%xmm7
  mulsd  %xmm10,%xmm14
  movsd  0xc8(%rsp),%xmm11
  mulsd  0xb0(%rsp),%xmm1
  movsd  0xc0(%rsp),%xmm6
  mulsd  0xa0(%rsp),%xmm10
  movsd  0x1c0(%rsp),%xmm4
  movsd  0x118(%rsp),%xmm2
  mulsd  %xmm9,%xmm13
  movsd  0x120(%rsp),%xmm5
  mulsd  0x90(%rsp),%xmm9
  subsd  0x40(%rsp),%xmm5
  mulsd  %xmm8,%xmm12
  addsd  %xmm14,%xmm0
  mulsd  0x80(%rsp),%xmm8
  addsd  %xmm10,%xmm1
  mulsd  %xmm7,%xmm11
  mulsd  0x68(%rsp),%xmm7
  addsd  %xmm13,%xmm0
  mulsd  %xmm6,%xmm4
  mulsd  0x1c8(%rsp),%xmm6
  addsd  %xmm9,%xmm1
  addsd  %xmm12,%xmm0
  addsd  %xmm8,%xmm1
  addsd  %xmm11,%xmm0
  movsd  0x30(%rsp),%xmm11
  addsd  %xmm7,%xmm1
  mulsd  %xmm2,%xmm11
  addsd  %xmm4,%xmm0
  subsd  0x20(%rsp),%xmm11
  addsd  %xmm6,%xmm1
  movsd  0x38(%rsp),%xmm6
  mulsd  %xmm11,%xmm0
  mulsd  %xmm2,%xmm6
  subsd  0x28(%rsp),%xmm6
  mulsd  %xmm6,%xmm1
  addsd  %xmm1,%xmm0
  movsd  0xb8(%rsp),%xmm1
  addsd  0xa8(%rsp),%xmm1
  addsd  0x98(%rsp),%xmm1
  addsd  0x88(%rsp),%xmm1
  addsd  0x78(%rsp),%xmm1
  addsd  0x70(%rsp),%xmm1
  mulsd  %xmm5,%xmm1
  addsd  %xmm1,%xmm0
  comisd %xmm3,%xmm0
  jae    L43
  mulsd  0x1a0(%rsp),%xmm0
  movsd  %xmm2,0x10(%rsp)
  call   <exp@plt>
  movsd  0x10(%rsp),%xmm2
  xor    %eax,%eax
  divsd  0x8(%rsp),%xmm2
  mulsd  %xmm0,%xmm2
  movsd  %xmm2,0x10(%rsp)
  call   <rng@plt>
  pxor   %xmm0,%xmm0
  movsd  0x10(%rsp),%xmm2
  cvtsi2sd %eax,%xmm0
  comisd %xmm0,%xmm2
  jae    L47
  mov    0x158(%rsp),%rax
  mov    0x138(%rsp),%rdi
  mov    0x60(%rsp),%rcx
  mov    0x140(%rsp),%rdx
  mov    (%rax),%rax
  mov    (%rax,%rdi,1),%rax
  mov    (%rax,%rcx,1),%rax
  mov    %rax,0x10(%rsp)
  mov    0x160(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rdi,1),%rax
  mov    (%rax,%rcx,1),%rax
  mov    %rax,0x18(%rsp)
  mov    0x150(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rdx,1),%rdx
  mov    (%rdx,%rcx,1),%rdx
  mov    %rdx,0x58(%rsp)
  mov    0x148(%rsp),%rdx
  mov    (%rax,%rdx,1),%rdx
  mov    (%rax,%rdi,1),%rax
  mov    (%rdx,%rcx,1),%r14
  mov    0x168(%rsp),%rdx
  mov    %rax,0x50(%rsp)
  mov    (%rax,%rdx,8),%r13
  mov    0x190(%rsp),%rdx
  mov    (%rax,%rdx,8),%rbx
  jmp    L3
  nopw   0x0(%rax,%rax,1)
L128:
  mulsd  0x1a0(%rsp),%xmm0
  call   <exp@plt>
  xor    %eax,%eax
  movapd %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  divsd  %xmm0,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsp)
  call   <rng@plt>
  pxor   %xmm1,%xmm1
  movsd  (%rsp),%xmm0
  cvtsi2sd %eax,%xmm1
  comisd %xmm1,%xmm0
  jb     L90
  mov    0x150(%rsp),%rax
  mov    0x60(%rsp),%rdx
  add    $0x1,%r15
  mov    0x138(%rsp),%rcx
  movapd 0x170(%rsp),%xmm5
  mov    (%rax),%rax
  mov    (%rax,%rcx,1),%rax
  mov    (%rax,%rdx,1),%rax
  movups %xmm5,(%rax)
  cmp    $0x6,%r15
  jne    L123
  nopl   (%rax)
L124:
  addq   $0x1,0x198(%rsp)
  mov    0x198(%rsp),%rax
  cmp    $0x6,%rax
  jne    L28
  addq   $0x8,0x150(%rsp)
  mov    %r12,%r13
  mov    %rbp,%r12
  cmpl   $0x6,0x1ac(%rsp)
  jne    L58
  subl   $0x1,0x1b8(%rsp)
  jne    L82
  subl   $0x1,0x1bc(%rsp)
  jne    L108
  add    $0x1d8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L47:
  mov    0x150(%rsp),%rax
  mov    0x60(%rsp),%rcx
  mov    0x138(%rsp),%rdi
  movapd 0x180(%rsp),%xmm3
  mov    (%rax),%rax
  mov    (%rax,%rdi,1),%rsi
  mov    (%rsi,%rcx,1),%rdx
  mov    %rsi,0x50(%rsp)
  movups %xmm3,(%rdx)
  mov    0x158(%rsp),%rdx
  mov    (%rdx),%rdx
  mov    (%rdx,%rdi,1),%rdx
  mov    (%rdx,%rcx,1),%rdx
  mov    %rdx,0x10(%rsp)
  mov    0x160(%rsp),%rdx
  mov    (%rdx),%rdx
  mov    (%rdx,%rdi,1),%rdx
  mov    (%rdx,%rcx,1),%rdx
  mov    %rdx,0x18(%rsp)
  mov    0x140(%rsp),%rdx
  mov    (%rax,%rdx,1),%rdx
  mov    (%rdx,%rcx,1),%rdx
  mov    %rdx,0x58(%rsp)
  mov    0x148(%rsp),%rdx
  mov    (%rax,%rdx,1),%rax
  mov    (%rax,%rcx,1),%r14
  mov    0x168(%rsp),%rax
  mov    (%rsi,%rax,8),%r13
  mov    0x190(%rsp),%rax
  mov    (%rsi,%rax,8),%rbx
  jmp    L3
```

tool_calls: name: parse_data
arguments: tag: D3
type_infered: f64

tool: D3: 1

assistant: ```c
void equilibration(double ****lattice, double temperature) {
  int eq, sw, sw1, sw2, sw3;
  int i, j, k, ip, im, jp, jm, kp, km;
  double theta, thetaPrime, phi, phiPrime;
  double spin1theta, spin1phi, spin2theta, spin2phi, spin3theta, spin3phi, spin4theta, spin4phi, spin5theta, spin5phi, spin6theta, spin6phi;
  double newSpin[2], currentSpin[2];
  double spinDiff[3], spinSum[3];
  double dotProduct;
  double deltaE;
  double prob;
  double randNum;
  double beta = 1.0 / temperature;
  for (eq = 0; eq < 250; eq++) {
    for (sw = 0; sw < 250; sw++) {
      for (sw1 = 0; sw1 < 6; sw1++) {
        for (sw2 = 0; sw2 < 6; sw2++) {
          for (sw3 = 0; sw3 < 6; sw3++) {
            i = sw1;
            j = sw2;
            k = sw3;
            ip = (i + 6 - 1) % 6;
            im = (i + 1) % 6;
            jp = (j + 6 - 1) % 6;
            jm = (j + 1) % 6;
            kp = (k + 6 - 1) % 6;
            km = (k + 1) % 6;
            currentSpin[0] = lattice[i][j][k][0];
            currentSpin[1] = lattice[i][j][k][1];
            newSpin[0] = rng_theta();
            newSpin[1] = rng_phi();
            theta = currentSpin[0];
            phi = currentSpin[1];
            thetaPrime = newSpin[0];
            phiPrime = phi;
            spinDiff[0] = sin(thetaPrime) * cos(phiPrime) - sin(theta) * cos(phi);
            spinDiff[1] = sin(thetaPrime) * sin(phiPrime) - sin(theta) * sin(phi);
            spinDiff[2] = cos(thetaPrime) - cos(theta);
            spin1theta = lattice[im][j][k][0];
            spin1phi = lattice[im][j][k][1];
            spin2theta = lattice[ip][j][k][0];
            spin2phi = lattice[ip][j][k][1];
            spin3theta = lattice[i][jm][k][0];
            spin3phi = lattice[i][jm][k][1];
            spin4theta = lattice[i][jp][k][0];
            spin4phi = lattice[i][jp][k][1];
            spin5theta = lattice[i][j][km][0];
            spin5phi = lattice[i][j][km][1];
            spin6theta = lattice[i][j][kp][0];
            spin6phi = lattice[i][j][kp][1];
            spinSum[0] = sin(spin1theta) * cos(spin1phi) + sin(spin2theta) * cos(spin2phi) + sin(spin3theta) * cos(spin3phi) + sin(spin4theta) * cos(spin4phi) + sin(spin5theta) * cos(spin5phi) + sin(spin6theta) * cos(spin6phi);
            spinSum[1] = sin(spin1theta) * sin(spin1phi) + sin(spin2theta) * sin(spin2phi) + sin(spin3theta) * sin(spin3phi) + sin(spin4theta) * sin(spin4phi) + sin(spin5theta) * sin(spin5phi) + sin(spin6theta) * sin(spin6phi);
            spinSum[2] = cos(spin1theta) + cos(spin2theta) + cos(spin3theta) + cos(spin4theta) + cos(spin5theta) + cos(spin6theta);
            dotProduct = spinDiff[0] * spinSum[0] + spinDiff[1] * spinSum[1] + spinDiff[2] * spinSum[2];
            deltaE = -1.0 * dotProduct;
            if (deltaE <= 0) {
              lattice[i][j][k][0] = thetaPrime;
              lattice[i][j][k][1] = phiPrime;
            } else {
              prob = (sin(thetaPrime) / sin(theta)) * exp(-beta * deltaE);
              randNum = rng();
              if (randNum <= prob) {
                lattice[i][j][k][0] = thetaPrime;
                lattice[i][j][k][1] = phiPrime;
              }
            }
            thetaPrime = theta;
            phiPrime = newSpin[1];
            spinDiff[0] = sin(thetaPrime) * cos(phiPrime) - sin(theta) * cos(phi);
            spinDiff[1] = sin(thetaPrime) * sin(phiPrime) - sin(theta) * sin(phi);
            spinDiff[2] = cos(thetaPrime) - cos(theta);
            spin1theta = lattice[im][j][k][0];
            spin1phi = lattice[im][j][k][1];
            spin2theta = lattice[ip][j][k][0];
            spin2phi = lattice[ip][j][k][1];
            spin3theta = lattice[i][jm][k][0];
            spin3phi = lattice[i][jm][k][1];
            spin4theta = lattice[i][jp][k][0];
            spin4phi = lattice[i][jp][k][1];
            spin5theta = lattice[i][j][km][0];
            spin5phi = lattice[i][j][km][1];
            spin6theta = lattice[i][j][kp][0];
            spin6phi = lattice[i][j][kp][1];
            spinSum[0] = sin(spin1theta) * cos(spin1phi) + sin(spin2theta) * cos(spin2phi) + sin(spin3theta) * cos(spin4phi) + sin(spin4theta) * cos(spin4phi) + sin(spin5theta) * cos(spin5phi) + sin(spin6theta) * cos(spin6phi);
            spinSum[1] = sin(spin1theta) * sin(spin1phi) + sin(spin2theta) * sin(spin2phi) + sin(spin3theta) * sin(spin4phi) + sin(spin4theta) * sin(spin4phi) + sin(spin5theta) * sin(spin5phi) + sin(spin6theta) * sin(spin6phi);
            spinSum[2] = cos(spin1theta) + cos(spin2theta) + cos(spin3theta) + cos(spin4theta) + cos(spin5theta) + cos(spin6theta);
            dotProduct = spinDiff[0] * spinSum[0] + spinDiff[1] * spinSum[1] + spinDiff[2] * spinSum[2];
            deltaE = -1.0 * dotProduct;
            if (deltaE <= 0) {
              lattice[i][j][k][0] = thetaPrime;
              lattice[i][j][k][1] = phiPrime;
            } else {
              prob = (sin(thetaPrime) / sin(theta)) * exp(-beta * deltaE);
              randNum = rng();
              if (randNum <= prob) {
                lattice[i][j][k][0] = thetaPrime;
                lattice[i][j][k][1] = phiPrime;
              }
            }
          }
        }
      }
    }
    if (0) {
      printf("\t\tEquilibration runs (0-%d): %d\n", 250, eq);
    }
  }
}
```