user: What would the C source look like for the assembly code provided here:

```asm
<equilibration>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1b8,%rsp
  movsd  D1(%rip),%xmm1
  mov    %rdi,0x190(%rsp)
  lea    0x1a8(%rsp),%r13
  lea    0x1a0(%rsp),%r12
  movl   $0xfa,0x198(%rsp)
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x178(%rsp)
L90:
  movl   $0xfa,0x19c(%rsp)
L11:
  mov    0x190(%rsp),%rax
  movl   $0x0,0x18c(%rsp)
  mov    %rax,0x140(%rsp)
L13:
  mov    0x18c(%rsp),%esi
  mov    $0xaaaaaaab,%edi
  mov    %r12,%rbp
  mov    %r13,%r12
  movq   $0x0,0x180(%rsp)
  lea    0x17(%rsi),%eax
  mov    %rax,%rcx
  imul   %rdi,%rax
  shr    $0x24,%rax
  lea    (%rax,%rax,2),%edx
  mov    %ecx,%eax
  shl    $0x3,%edx
  sub    %edx,%eax
  lea    0x1(%rsi),%edx
  mov    %rdx,%rsi
  mov    %edx,0x18c(%rsp)
  imul   %rdi,%rdx
  cltq
  shr    $0x24,%rdx
  lea    (%rdx,%rdx,2),%ecx
  shl    $0x3,%ecx
  sub    %ecx,%esi
  mov    0x190(%rsp),%rcx
  movslq %esi,%rdx
  lea    (%rcx,%rdx,8),%rdx
  lea    (%rcx,%rax,8),%rax
  mov    %rdx,0x158(%rsp)
  mov    %rax,0x160(%rsp)
  nopl   0x0(%rax,%rax,1)
L14:
  mov    0x180(%rsp),%rcx
  mov    $0xaaaaaaab,%esi
  xor    %r13d,%r13d
  lea    0x0(,%rcx,8),%rax
  lea    0x1(%rcx),%edx
  mov    %rax,0x8(%rsp)
  mov    %rdx,%rax
  imul   %rsi,%rdx
  shr    $0x24,%rdx
  lea    (%rdx,%rdx,2),%edx
  shl    $0x3,%edx
  sub    %edx,%eax
  lea    0x17(%rcx),%edx
  cltq
  shl    $0x3,%rax
  mov    %rax,0x148(%rsp)
  mov    %rdx,%rax
  imul   %rsi,%rdx
  shr    $0x24,%rdx
  lea    (%rdx,%rdx,2),%edx
  shl    $0x3,%edx
  sub    %edx,%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,0x150(%rsp)
  jmp    L88
  nopw   0x0(%rax,%rax,1)
L31:
  mov    0x50(%rsp),%rax
  mov    (%rax,%r13,8),%rax
  movsd  %xmm4,(%rax)
  movsd  %xmm3,0x8(%rax)
L24:
  movsd  0x48(%rsp),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <sincos@plt>
  mov    0x10(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a8(%rsp),%xmm2
  movsd  0x1a0(%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  0x1a0(%rsp),%xmm1
  movsd  0x1a8(%rsp),%xmm9
  movsd  0x8(%rax),%xmm0
  movsd  %xmm1,0x30(%rsp)
  movsd  %xmm9,0xd0(%rsp)
  call   <sincos@plt>
  movsd  (%r15),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm12
  movsd  0x1a8(%rsp),%xmm6
  movsd  %xmm12,0xc8(%rsp)
  movsd  %xmm6,0x70(%rsp)
  call   <sincos@plt>
  movsd  0x8(%r15),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a8(%rsp),%xmm8
  movsd  0x1a0(%rsp),%xmm7
  movsd  %xmm8,0xc0(%rsp)
  movsd  %xmm7,0x10(%rsp)
  call   <sincos@plt>
  mov    0x58(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm10
  movsd  0x1a8(%rsp),%xmm5
  movsd  (%rax),%xmm0
  movsd  %xmm10,0xb8(%rsp)
  movsd  %xmm5,0x68(%rsp)
  call   <sincos@plt>
  movsd  (%r14),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a8(%rsp),%xmm7
  movsd  0x1a0(%rsp),%xmm3
  movsd  %xmm7,0xb0(%rsp)
  movsd  %xmm3,0x38(%rsp)
  call   <sincos@plt>
  movsd  0x8(%r14),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm4
  movsd  %xmm4,0x80(%rsp)
  movsd  0x1a8(%rsp),%xmm4
  movsd  %xmm4,0xa8(%rsp)
  call   <sincos@plt>
  mov    0x18(%rsp),%r15
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm11
  movsd  0x1a8(%rsp),%xmm6
  movsd  (%r15),%xmm0
  movsd  %xmm11,0xa0(%rsp)
  movsd  %xmm6,0x98(%rsp)
  call   <sincos@plt>
  movsd  0x8(%r15),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm2
  movsd  0x1a8(%rsp),%xmm5
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm5,0x90(%rsp)
  call   <sincos@plt>
  movsd  (%rbx),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a8(%rsp),%xmm3
  mov    0x1a0(%rsp),%r14
  movsd  %xmm3,0x58(%rsp)
  call   <sincos@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm0
  movsd  0x1a8(%rsp),%xmm3
  movsd  %xmm0,0x78(%rsp)
  movsd  0x8(%rbx),%xmm0
  movsd  %xmm3,0x88(%rsp)
  call   <sincos@plt>
  movsd  0x70(%rsp),%xmm6
  movsd  (%rsp),%xmm2
  movsd  0xc8(%rsp),%xmm12
  movsd  0xd0(%rsp),%xmm9
  movsd  0xc0(%rsp),%xmm8
  movsd  0xb8(%rsp),%xmm10
  movsd  0xb0(%rsp),%xmm7
  movapd %xmm12,%xmm0
  movsd  0xa0(%rsp),%xmm11
  movsd  0xa8(%rsp),%xmm4
  mulsd  %xmm8,%xmm10
  movsd  0x90(%rsp),%xmm5
  movsd  0x88(%rsp),%xmm3
  mulsd  %xmm9,%xmm0
  movsd  0xe0(%rsp),%xmm1
  mulsd  %xmm9,%xmm6
  mulsd  %xmm2,%xmm1
  subsd  0x20(%rsp),%xmm1
  mulsd  0x68(%rsp),%xmm8
  addsd  %xmm10,%xmm0
  movapd %xmm7,%xmm10
  mulsd  %xmm11,%xmm10
  mulsd  %xmm4,%xmm11
  addsd  %xmm10,%xmm0
  movq   %r14,%xmm10
  mulsd  %xmm5,%xmm10
  addsd  %xmm11,%xmm0
  addsd  %xmm10,%xmm0
  movsd  0x1a0(%rsp),%xmm10
  mulsd  %xmm3,%xmm10
  mulsd  0x1a8(%rsp),%xmm3
  addsd  %xmm10,%xmm0
  mulsd  %xmm1,%xmm0
  movapd %xmm6,%xmm1
  movsd  0x98(%rsp),%xmm6
  addsd  %xmm8,%xmm1
  mulsd  %xmm6,%xmm7
  mulsd  %xmm6,%xmm4
  pxor   %xmm6,%xmm6
  addsd  %xmm7,%xmm1
  addsd  %xmm4,%xmm1
  movsd  0x58(%rsp),%xmm4
  mulsd  %xmm5,%xmm4
  addsd  %xmm4,%xmm1
  addsd  %xmm3,%xmm1
  movapd %xmm2,%xmm3
  movsd  0xd8(%rsp),%xmm2
  mulsd  %xmm3,%xmm2
  subsd  0x28(%rsp),%xmm2
  mulsd  %xmm2,%xmm1
  movsd  0x40(%rsp),%xmm2
  subsd  %xmm2,%xmm2
  addsd  %xmm1,%xmm0
  movsd  0x30(%rsp),%xmm1
  addsd  0x10(%rsp),%xmm1
  addsd  0x38(%rsp),%xmm1
  addsd  0x80(%rsp),%xmm1
  addsd  0x18(%rsp),%xmm1
  addsd  0x78(%rsp),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  comisd %xmm6,%xmm0
  jb     L103
  mov    0x50(%rsp),%rax
  mov    0x60(%rsp),%rcx
  movsd  0x138(%rsp),%xmm7
  movsd  0x48(%rsp),%xmm5
  mov    (%rax,%rcx,1),%rax
  movsd  %xmm7,(%rax)
  movsd  %xmm5,0x8(%rax)
L26:
  add    $0x1,%r13
  cmp    $0x18,%r13
  je     L86
L88:
  mov    0x140(%rsp),%r14
  mov    0x8(%rsp),%r15
  mov    %rbp,%rsi
  mov    %r12,%rdi
  lea    0x0(,%r13,8),%rax
  mov    %rax,0x60(%rsp)
  mov    (%r14),%rax
  mov    (%rax,%r15,1),%rax
  mov    (%rax,%r13,8),%rbx
  movsd  (%rbx),%xmm4
  movsd  %xmm4,0x138(%rsp)
  movapd %xmm4,%xmm0
  call   <sincos@plt>
  movsd  0x8(%rbx),%xmm3
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a8(%rsp),%xmm5
  movsd  0x1a0(%rsp),%xmm7
  movsd  %xmm3,0x130(%rsp)
  movapd %xmm3,%xmm0
  movsd  %xmm5,(%rsp)
  movsd  %xmm7,0x40(%rsp)
  call   <sincos@plt>
  xor    %eax,%eax
  movsd  0x1a8(%rsp),%xmm7
  movsd  0x1a0(%rsp),%xmm3
  movsd  %xmm7,0x38(%rsp)
  movsd  %xmm3,0x30(%rsp)
  call   <rng_theta@plt>
  pxor   %xmm4,%xmm4
  mov    %rbp,%rsi
  mov    %r12,%rdi
  cvtsi2sd %eax,%xmm4
  movsd  %xmm4,0x128(%rsp)
  movapd %xmm4,%xmm0
  call   <sincos@plt>
  xor    %eax,%eax
  movsd  0x1a8(%rsp),%xmm2
  movsd  0x1a0(%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  (%rsp),%xmm5
  movsd  0x30(%rsp),%xmm3
  mov    0x158(%rsp),%rax
  mulsd  %xmm5,%xmm3
  mov    (%rax),%rax
  mulsd  0x38(%rsp),%xmm5
  movsd  %xmm4,0x48(%rsp)
  mov    (%rax,%r15,1),%rax
  mov    (%rax,%r13,8),%rbx
  movsd  %xmm3,0x20(%rsp)
  movsd  %xmm5,0x28(%rsp)
  movsd  (%rbx),%xmm0
  mov    %rbx,0x10(%rsp)
  call   <sincos@plt>
  movsd  0x8(%rbx),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm1
  movsd  %xmm1,0xb8(%rsp)
  movsd  0x1a8(%rsp),%xmm1
  movsd  %xmm1,0x110(%rsp)
  call   <sincos@plt>
  mov    %r15,0x8(%rsp)
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    0x160(%rsp),%rax
  movsd  0x1a8(%rsp),%xmm4
  movsd  0x1a0(%rsp),%xmm15
  movsd  %xmm4,0xb0(%rsp)
  mov    (%rax),%rax
  movsd  %xmm15,0x108(%rsp)
  mov    (%rax,%r15,1),%rax
  mov    (%rax,%r13,8),%r15
  movsd  (%r15),%xmm0
  call   <sincos@plt>
  movsd  0x8(%r15),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm2
  movsd  0x1a8(%rsp),%xmm10
  movsd  %xmm2,0xa8(%rsp)
  movsd  %xmm10,0x100(%rsp)
  call   <sincos@plt>
  mov    (%r14),%rbx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    0x148(%rsp),%rcx
  movsd  0x1a8(%rsp),%xmm0
  movsd  0x1a0(%rsp),%xmm14
  movsd  %xmm0,0xa0(%rsp)
  mov    (%rbx,%rcx,1),%rax
  movsd  %xmm14,0xf8(%rsp)
  mov    (%rax,%r13,8),%r14
  movsd  (%r14),%xmm0
  mov    %r14,0x58(%rsp)
  call   <sincos@plt>
  movsd  0x8(%r14),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm15
  movsd  0x1a8(%rsp),%xmm9
  movsd  %xmm15,0x98(%rsp)
  movsd  %xmm9,0xf0(%rsp)
  call   <sincos@plt>
  mov    0x150(%rsp),%rdx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm13
  mov    (%rbx,%rdx,1),%rax
  movsd  %xmm13,0xe8(%rsp)
  movsd  0x1a8(%rsp),%xmm13
  mov    (%rax,%r13,8),%r14
  movsd  %xmm13,0x90(%rsp)
  movsd  (%r14),%xmm0
  call   <sincos@plt>
  movsd  0x8(%r14),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm14
  movsd  0x1a8(%rsp),%xmm8
  movsd  %xmm14,0x88(%rsp)
  movsd  %xmm8,0xe0(%rsp)
  call   <sincos@plt>
  mov    0x8(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm12
  mov    $0xaaaaaaab,%ecx
  mov    (%rbx,%rax,1),%rbx
  lea    0x1(%r13),%eax
  movsd  %xmm12,0xd8(%rsp)
  mov    %rax,%rdx
  imul   %rcx,%rax
  movsd  0x1a8(%rsp),%xmm12
  movsd  %xmm12,0x80(%rsp)
  shr    $0x24,%rax
  lea    (%rax,%rax,2),%eax
  shl    $0x3,%eax
  sub    %eax,%edx
  movslq %edx,%rax
  mov    %rax,0x168(%rsp)
  mov    (%rbx,%rax,8),%rax
  movsd  (%rax),%xmm0
  mov    %rax,0x18(%rsp)
  call   <sincos@plt>
  mov    0x18(%rsp),%rax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm9
  movsd  0x1a8(%rsp),%xmm7
  movsd  0x8(%rax),%xmm0
  movsd  %xmm9,0x78(%rsp)
  movsd  %xmm7,0xd0(%rsp)
  call   <sincos@plt>
  lea    0x17(%r13),%eax
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0xaaaaaaab,%ecx
  mov    %rax,%rdx
  mov    %rbx,0x50(%rsp)
  movsd  0x1a0(%rsp),%xmm11
  movsd  0x1a8(%rsp),%xmm8
  imul   %rcx,%rax
  movsd  %xmm11,0xc8(%rsp)
  movsd  %xmm8,0x68(%rsp)
  shr    $0x24,%rax
  lea    (%rax,%rax,2),%eax
  shl    $0x3,%eax
  sub    %eax,%edx
  movslq %edx,%rcx
  mov    (%rbx,%rcx,8),%rbx
  mov    %rcx,0x170(%rsp)
  movsd  (%rbx),%xmm0
  call   <sincos@plt>
  movsd  0x8(%rbx),%xmm0
  mov    %rbp,%rsi
  mov    %r12,%rdi
  movsd  0x1a0(%rsp),%xmm10
  movsd  0x1a8(%rsp),%xmm6
  movsd  %xmm10,0x70(%rsp)
  movsd  %xmm6,0xc0(%rsp)
  call   <sincos@plt>
  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  0x1a0(%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  0x1a8(%rsp),%xmm6
  addsd  %xmm9,%xmm1
  addsd  %xmm12,%xmm0
  addsd  %xmm8,%xmm1
  addsd  %xmm11,%xmm0
  movsd  0x30(%rsp),%xmm11
  addsd  %xmm7,%xmm1
  mulsd  %xmm2,%xmm11
  pxor   %xmm7,%xmm7
  addsd  %xmm4,%xmm0
  subsd  0x20(%rsp),%xmm11
  movsd  0x128(%rsp),%xmm4
  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
  movsd  0x130(%rsp),%xmm3
  mulsd  %xmm5,%xmm1
  addsd  %xmm1,%xmm0
  comisd %xmm7,%xmm0
  jae    L31
  mulsd  0x178(%rsp),%xmm0
  movsd  %xmm4,0x30(%rsp)
  movsd  %xmm3,0x18(%rsp)
  movsd  %xmm2,0x10(%rsp)
  call   <exp@plt>
  movsd  0x10(%rsp),%xmm2
  divsd  (%rsp),%xmm2
  xor    %eax,%eax
  mulsd  %xmm0,%xmm2
  movsd  %xmm2,0x10(%rsp)
  call   <rng@plt>
  pxor   %xmm0,%xmm0
  movsd  0x10(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm3
  cvtsi2sd %eax,%xmm0
  movsd  0x30(%rsp),%xmm4
  comisd %xmm0,%xmm2
  jae    L36
  mov    0x158(%rsp),%rax
  mov    0x8(%rsp),%rdi
  mov    0x60(%rsp),%rcx
  mov    0x148(%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),%r15
  mov    0x140(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rdx,1),%rdx
  mov    (%rdx,%rcx,1),%rdx
  mov    %rdx,0x58(%rsp)
  mov    0x150(%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),%rdx
  mov    %rdx,0x18(%rsp)
  mov    0x170(%rsp),%rdx
  mov    (%rax,%rdx,8),%rbx
  jmp    L24
  nopl   0x0(%rax)
L103:
  mulsd  0x178(%rsp),%xmm0
  call   <exp@plt>
  xor    %eax,%eax
  movapd %xmm0,%xmm1
  movsd  (%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     L26
  mov    0x8(%rsp),%rdx
  movsd  0x48(%rsp),%xmm6
  add    $0x1,%r13
  mov    0x140(%rsp),%rax
  movsd  0x138(%rsp),%xmm7
  mov    (%rax),%rax
  mov    (%rax,%rdx,1),%rax
  mov    0x60(%rsp),%rdx
  mov    (%rax,%rdx,1),%rax
  movsd  %xmm7,(%rax)
  movsd  %xmm6,0x8(%rax)
  cmp    $0x18,%r13
  jne    L88
  nopl   (%rax)
L86:
  addq   $0x1,0x180(%rsp)
  mov    0x180(%rsp),%rax
  cmp    $0x18,%rax
  jne    L14
  addq   $0x8,0x140(%rsp)
  mov    %r12,%r13
  mov    %rbp,%r12
  cmpl   $0x18,0x18c(%rsp)
  jne    L13
  subl   $0x1,0x19c(%rsp)
  jne    L11
  subl   $0x1,0x198(%rsp)
  jne    L90
  add    $0x1b8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L36:
  mov    0x140(%rsp),%rax
  mov    0x8(%rsp),%rdi
  mov    0x60(%rsp),%rcx
  mov    (%rax),%rax
  mov    (%rax,%rdi,1),%rsi
  mov    (%rsi,%rcx,1),%rdx
  mov    %rsi,0x50(%rsp)
  movsd  %xmm4,(%rdx)
  movsd  %xmm3,0x8(%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),%r15
  mov    0x148(%rsp),%rdx
  mov    (%rax,%rdx,1),%rdx
  mov    (%rdx,%rcx,1),%rdx
  mov    %rdx,0x58(%rsp)
  mov    0x150(%rsp),%rdx
  mov    (%rax,%rdx,1),%rax
  mov    (%rax,%rcx,1),%r14
  mov    0x168(%rsp),%rax
  mov    (%rsi,%rax,8),%rax
  mov    %rax,0x18(%rsp)
  mov    0x170(%rsp),%rax
  mov    (%rsi,%rax,8),%rbx
  jmp    L24
```

tool_calls: name: read_data
arguments: tag: D1
datatype: f64

tool: D1: 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 < 24; sw1++) {
        for (sw2 = 0; sw2 < 24; sw2++) {
          for (sw3 = 0; sw3 < 24; sw3++) {
            i = sw1;
            j = sw2;
            k = sw3;
            ip = (i + 24 - 1) % 24;
            im = (i + 1) % 24;
            jp = (j + 24 - 1) % 24;
            jm = (j + 1) % 24;
            kp = (k + 24 - 1) % 24;
            km = (k + 1) % 24;
            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);
    }
  }
}
```