user: Converte this assembly snippet into its equivalent C code:

```asm
<make_hex_correlator>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1d8,%rsp
  mov    %rdi,0x50(%rsp)
  mov    %rsi,0x58(%rsp)
  mov    %rdx,0x30(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %r8,0x40(%rsp)
  mov    %r9,0x48(%rsp)
  mov    0x210(%rsp),%rax
  mov    %rax,0x170(%rsp)
  mov    0x218(%rsp),%rax
  mov    %rax,0x138(%rsp)
  mov    0x220(%rsp),%rax
  mov    %rax,0xa0(%rsp)
  mov    0x228(%rsp),%rax
  mov    %rax,0xa8(%rsp)
  mov    0x230(%rsp),%rax
  mov    %rax,0xe8(%rsp)
  mov    0x238(%rsp),%rax
  mov    %rax,0xb0(%rsp)
  mov    0x240(%rsp),%rax
  mov    %rax,0xb8(%rsp)
  mov    0x248(%rsp),%rax
  mov    %rax,0xf0(%rsp)
  movsd  %xmm0,0x140(%rsp)
  mov    0x250(%rsp),%rax
  mov    %rax,0x160(%rsp)
  mov    0x258(%rsp),%rax
  mov    %rax,0x168(%rsp)
  mov    0x260(%rsp),%rax
  mov    %rax,0x148(%rsp)
  mov    0x268(%rsp),%rax
  mov    %rax,0xf8(%rsp)
  mov    0x270(%rsp),%rax
  mov    %rax,0x100(%rsp)
  mov    0x278(%rsp),%rax
  mov    %rax,0x150(%rsp)
  mov    0x280(%rsp),%rax
  mov    %rax,0x158(%rsp)
  mov    0x2a0(%rsp),%ebp
  mov    0x2a8(%rsp),%r15d
  mov    0x2d0(%rsp),%eax
  mov    %fs:0x28,%rdx
  mov    %rdx,0x1c8(%rsp)
  xor    %edx,%edx
  mov    0x2b0(%rsp),%ecx
  imul   %ecx,%ecx
  mov    %ecx,0x17c(%rsp)
  test   %eax,%eax
  jle    L59
  mov    0x2b8(%rsp),%ebx
  add    %ebx,%ebx
  mov    %ebx,0x178(%rsp)
  mov    %eax,%eax
  mov    %rax,0x180(%rsp)
  movq   $0x0,0x130(%rsp)
  mov    %ecx,%eax
  mov    %rax,0x188(%rsp)
  jmp    L54
L169:
  movq   $0x0,0x28(%rsp)
  pxor   %xmm2,%xmm2
  movsd  %xmm2,0xe0(%rsp)
  movsd  %xmm2,0xd8(%rsp)
  mov    0x288(%rsp),%ebp
  mov    0x298(%rsp),%ebx
L34:
  mov    0x28(%rsp),%eax
  mov    0x2b8(%rsp),%edx
  mov    $0x0,%esi
  mov    %eax,0x24(%rsp)
  mov    %eax,%edi
  call   <index_2d@plt>
  mov    0xa0(%rsp),%rcx
  mov    (%rcx,%rax,4),%eax
  mov    %eax,0x8(%rsp)
  mov    0x2b8(%rsp),%edx
  mov    $0x0,%esi
  mov    0x24(%rsp),%edi
  call   <index_2d@plt>
  mov    0xa8(%rsp),%rdx
  mov    (%rdx,%rax,4),%ecx
  mov    %ecx,0x10(%rsp)
  mov    0x2b8(%rsp),%edx
  mov    $0x1,%esi
  mov    0x24(%rsp),%edi
  call   <index_2d@plt>
  mov    0xa0(%rsp),%rsi
  mov    (%rsi,%rax,4),%esi
  mov    %esi,0x80(%rsp)
  mov    0x2b8(%rsp),%edx
  mov    $0x1,%esi
  mov    0x24(%rsp),%edi
  call   <index_2d@plt>
  mov    0xa8(%rsp),%rdx
  mov    (%rdx,%rax,4),%edx
  mov    %edx,0x88(%rsp)
  mov    0x2b8(%rsp),%edx
  mov    $0x2,%esi
  mov    0x24(%rsp),%edi
  call   <index_2d@plt>
  mov    0xa0(%rsp),%r10
  mov    (%r10,%rax,4),%esi
  mov    %esi,0x18(%rsp)
  mov    0x2b8(%rsp),%edx
  mov    $0x2,%esi
  mov    0x24(%rsp),%edi
  call   <index_2d@plt>
  mov    0xa8(%rsp),%r10
  mov    (%r10,%rax,4),%edx
  mov    %edx,0x24(%rsp)
  mov    0xe8(%rsp),%r10
  mov    0x28(%rsp),%rdi
  movsd  (%r10,%rdi,8),%xmm2
  movsd  %xmm2,0xc0(%rsp)
  sub    $0x8,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r9d
  push   %r9
  push   %rbp
  push   %r13
  push   %r15
  mov    0xa4(%rsp),%r9d
  mov    0xa0(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x70(%rsp),%rdi
  movsd  (%rdi,%rax,8),%xmm7
  movsd  %xmm7,0x108(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r10d
  push   %r10
  push   %rbp
  push   %r13
  push   %r15
  mov    0xac(%rsp),%r9d
  mov    0xa8(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x70(%rsp),%rdi
  movsd  0x108(%rsp),%xmm7
  mulsd  (%rdi,%rax,8),%xmm7
  movsd  %xmm7,0x108(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r11d
  push   %r11
  push   %rbp
  push   %r13
  push   %r15
  mov    0xa4(%rsp),%r9d
  mov    0xa0(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x78(%rsp),%r10
  movsd  (%r10,%rax,8),%xmm6
  movsd  %xmm6,0x110(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r11d
  push   %r11
  push   %rbp
  push   %r13
  push   %r15
  mov    0xac(%rsp),%r9d
  mov    0xa8(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x78(%rsp),%r10
  movsd  0x110(%rsp),%xmm0
  mulsd  (%r10,%rax,8),%xmm0
  movsd  0x108(%rsp),%xmm7
  subsd  %xmm0,%xmm7
  movsd  %xmm7,0x108(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r11d
  push   %r11
  push   %rbp
  push   %r13
  push   %r15
  mov    0xac(%rsp),%r9d
  mov    0xa8(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x70(%rsp),%rdi
  movsd  (%rdi,%rax,8),%xmm3
  movsd  %xmm3,0x110(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r11d
  push   %r11
  push   %rbp
  push   %r13
  push   %r15
  mov    0xa4(%rsp),%r9d
  mov    0xa0(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x70(%rsp),%rdi
  movsd  0x110(%rsp),%xmm3
  mulsd  (%rdi,%rax,8),%xmm3
  movsd  %xmm3,0x110(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r11d
  push   %r11
  push   %rbp
  push   %r13
  push   %r15
  mov    0xac(%rsp),%r9d
  mov    0xa8(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x78(%rsp),%r10
  movsd  (%r10,%rax,8),%xmm2
  movsd  %xmm2,0x150(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r11d
  push   %r11
  push   %rbp
  push   %r13
  push   %r15
  mov    0xa4(%rsp),%r9d
  mov    0xa0(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x78(%rsp),%r10
  movsd  0x150(%rsp),%xmm2
  mulsd  (%r10,%rax,8),%xmm2
  movsd  0x110(%rsp),%xmm1
  subsd  %xmm2,%xmm1
  movsd  0x108(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  0x100(%rsp),%xmm0
  movsd  %xmm0,0x100(%rsp)
  mov    0x128(%rsp),%rax
  mov    0x68(%rsp),%r11
  movsd  (%rax,%r11,8),%xmm2
  movsd  %xmm2,0x108(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xa4(%rsp),%r9d
  mov    0xa0(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x70(%rsp),%rdi
  movsd  (%rdi,%rax,8),%xmm6
  movsd  %xmm6,0x110(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xac(%rsp),%r9d
  mov    0xa8(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x78(%rsp),%r10
  movsd  0x110(%rsp),%xmm6
  mulsd  (%r10,%rax,8),%xmm6
  movsd  %xmm6,0x110(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xa4(%rsp),%r9d
  mov    0xa0(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x78(%rsp),%r10
  movsd  (%r10,%rax,8),%xmm5
  movsd  %xmm5,0x150(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xac(%rsp),%r9d
  mov    0xa8(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x70(%rsp),%rdi
  movsd  0x150(%rsp),%xmm5
  mulsd  (%rdi,%rax,8),%xmm5
  addsd  0x110(%rsp),%xmm5
  movsd  %xmm5,0x110(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xac(%rsp),%r9d
  mov    0xa8(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x70(%rsp),%rdi
  movsd  (%rdi,%rax,8),%xmm3
  movsd  %xmm3,0x150(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xa4(%rsp),%r9d
  mov    0xa0(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x78(%rsp),%r10
  movsd  0x150(%rsp),%xmm3
  mulsd  (%r10,%rax,8),%xmm3
  movsd  %xmm3,0x150(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xac(%rsp),%r9d
  mov    0xa8(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x78(%rsp),%r10
  movsd  (%r10,%rax,8),%xmm2
  movsd  %xmm2,0x48(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xa4(%rsp),%r9d
  mov    0xa0(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x70(%rsp),%rdi
  movsd  0x48(%rsp),%xmm2
  mulsd  (%rdi,%rax,8),%xmm2
  movapd %xmm2,%xmm0
  addsd  0x150(%rsp),%xmm0
  movsd  0x110(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  0x108(%rsp),%xmm1
  movsd  %xmm1,0x48(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xd4(%rsp),%r9d
  mov    0xd0(%rsp),%r8d
  mov    0xc8(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x1,%edi
  call   <prop_index@plt>
  mov    0x70(%rsp),%rdi
  movsd  0x100(%rsp),%xmm7
  mulsd  (%rdi,%rax,8),%xmm7
  movsd  %xmm7,0x50(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xd4(%rsp),%r9d
  mov    0xd0(%rsp),%r8d
  mov    0xc8(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x1,%edi
  call   <prop_index@plt>
  mov    0x78(%rsp),%r10
  movsd  0x48(%rsp),%xmm1
  mulsd  (%r10,%rax,8),%xmm1
  movsd  0x50(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm5
  addsd  0x118(%rsp),%xmm5
  movsd  %xmm5,0x118(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xd4(%rsp),%r9d
  mov    0xd0(%rsp),%r8d
  mov    0xc8(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x1,%edi
  call   <prop_index@plt>
  mov    0x78(%rsp),%r10
  movsd  0x100(%rsp),%xmm7
  mulsd  (%r10,%rax,8),%xmm7
  movsd  %xmm7,0x50(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xd4(%rsp),%r9d
  mov    0xd0(%rsp),%r8d
  mov    0xc8(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x1,%edi
  call   <prop_index@plt>
  mov    0x70(%rsp),%rdi
  movsd  0x48(%rsp),%xmm0
  mulsd  (%rdi,%rax,8),%xmm0
  addsd  0x50(%rsp),%xmm0
  addsd  0x120(%rsp),%xmm0
  movsd  %xmm0,0x120(%rsp)
  addq   $0x1,0x68(%rsp)
  mov    0x68(%rsp),%r11
  add    $0x40,%rsp
  cmp    %r11,0x108(%rsp)
  jne    L34
  movq   $0x0,0x28(%rsp)
  pxor   %xmm2,%xmm2
  movsd  %xmm2,0xd0(%rsp)
  movsd  %xmm2,0xc8(%rsp)
  mov    0x288(%rsp),%ebp
  mov    0x298(%rsp),%ebx
L135:
  mov    0x28(%rsp),%eax
  mov    0x2b8(%rsp),%edx
  mov    $0x0,%esi
  mov    %eax,0x24(%rsp)
  mov    %eax,%edi
  call   <index_2d@plt>
  mov    0xb0(%rsp),%rcx
  mov    (%rcx,%rax,4),%eax
  mov    %eax,0x8(%rsp)
  mov    0x2b8(%rsp),%edx
  mov    $0x0,%esi
  mov    0x24(%rsp),%edi
  call   <index_2d@plt>
  mov    0xb8(%rsp),%rdx
  mov    (%rdx,%rax,4),%ecx
  mov    %ecx,0x10(%rsp)
  mov    0x2b8(%rsp),%edx
  mov    $0x1,%esi
  mov    0x24(%rsp),%edi
  call   <index_2d@plt>
  mov    0xb0(%rsp),%rsi
  mov    (%rsi,%rax,4),%esi
  mov    %esi,0x80(%rsp)
  mov    0x2b8(%rsp),%edx
  mov    $0x1,%esi
  mov    0x24(%rsp),%edi
  call   <index_2d@plt>
  mov    0xb8(%rsp),%rdx
  mov    (%rdx,%rax,4),%edx
  mov    %edx,0x88(%rsp)
  mov    0x2b8(%rsp),%edx
  mov    $0x2,%esi
  mov    0x24(%rsp),%edi
  call   <index_2d@plt>
  mov    0xb0(%rsp),%r11
  mov    (%r11,%rax,4),%esi
  mov    %esi,0x18(%rsp)
  mov    0x2b8(%rsp),%edx
  mov    $0x2,%esi
  mov    0x24(%rsp),%edi
  call   <index_2d@plt>
  mov    0xb8(%rsp),%r11
  mov    (%r11,%rax,4),%edx
  mov    %edx,0x24(%rsp)
  mov    0xf0(%rsp),%r11
  mov    0x28(%rsp),%rdi
  movsd  (%r11,%rdi,8),%xmm7
  movsd  %xmm7,0xc0(%rsp)
  sub    $0x8,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r9d
  push   %r9
  push   %rbp
  push   %r13
  push   %r15
  mov    0xb4(%rsp),%r9d
  mov    0xb0(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x80(%rsp),%rdi
  movsd  (%rdi,%rax,8),%xmm2
  movsd  %xmm2,0x150(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r10d
  push   %r10
  push   %rbp
  push   %r13
  push   %r15
  mov    0xbc(%rsp),%r9d
  mov    0xb8(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x80(%rsp),%rdi
  movsd  0x150(%rsp),%xmm2
  mulsd  (%rdi,%rax,8),%xmm2
  movsd  %xmm2,0x150(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r10d
  push   %r10
  push   %rbp
  push   %r13
  push   %r15
  mov    0xb4(%rsp),%r9d
  mov    0xb0(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x88(%rsp),%r11
  movsd  (%r11,%rax,8),%xmm7
  movsd  %xmm7,0x158(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r10d
  push   %r10
  push   %rbp
  push   %r13
  push   %r15
  mov    0xbc(%rsp),%r9d
  mov    0xb8(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x88(%rsp),%r11
  movsd  0x158(%rsp),%xmm0
  mulsd  (%r11,%rax,8),%xmm0
  movsd  0x150(%rsp),%xmm2
  subsd  %xmm0,%xmm2
  movsd  %xmm2,0x150(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r10d
  push   %r10
  push   %rbp
  push   %r13
  push   %r15
  mov    0xbc(%rsp),%r9d
  mov    0xb8(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x80(%rsp),%rdi
  movsd  (%rdi,%rax,8),%xmm7
  movsd  %xmm7,0x158(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r10d
  push   %r10
  push   %rbp
  push   %r13
  push   %r15
  mov    0xb4(%rsp),%r9d
  mov    0xb0(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x80(%rsp),%rdi
  movsd  0x158(%rsp),%xmm7
  mulsd  (%rdi,%rax,8),%xmm7
  movsd  %xmm7,0x158(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r10d
  push   %r10
  push   %rbp
  push   %r13
  push   %r15
  mov    0xbc(%rsp),%r9d
  mov    0xb8(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x88(%rsp),%r11
  movsd  (%r11,%rax,8),%xmm6
  movsd  %xmm6,0x160(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%r10d
  push   %r10
  push   %rbp
  push   %r13
  push   %r15
  mov    0xb4(%rsp),%r9d
  mov    0xb0(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x88(%rsp),%r11
  movsd  0x160(%rsp),%xmm6
  mulsd  (%r11,%rax,8),%xmm6
  movsd  0x158(%rsp),%xmm1
  subsd  %xmm6,%xmm1
  movsd  0x150(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  0x100(%rsp),%xmm0
  movsd  %xmm0,0x100(%rsp)
  mov    0x130(%rsp),%rax
  mov    0x68(%rsp),%r10
  movsd  (%rax,%r10,8),%xmm1
  movsd  %xmm1,0x150(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xb4(%rsp),%r9d
  mov    0xb0(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x80(%rsp),%rdi
  movsd  (%rdi,%rax,8),%xmm7
  movsd  %xmm7,0x158(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xbc(%rsp),%r9d
  mov    0xb8(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x88(%rsp),%r11
  movsd  0x158(%rsp),%xmm7
  mulsd  (%r11,%rax,8),%xmm7
  movsd  %xmm7,0x158(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xb4(%rsp),%r9d
  mov    0xb0(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x88(%rsp),%r11
  movsd  (%r11,%rax,8),%xmm3
  movsd  %xmm3,0x160(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xbc(%rsp),%r9d
  mov    0xb8(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x80(%rsp),%rdi
  movsd  0x160(%rsp),%xmm3
  mulsd  (%rdi,%rax,8),%xmm3
  movapd %xmm3,%xmm7
  addsd  0x158(%rsp),%xmm7
  movsd  %xmm7,0x158(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xbc(%rsp),%r9d
  mov    0xb8(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x80(%rsp),%rdi
  movsd  (%rdi,%rax,8),%xmm5
  movsd  %xmm5,0x160(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xb4(%rsp),%r9d
  mov    0xb0(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x88(%rsp),%r11
  movsd  0x160(%rsp),%xmm5
  mulsd  (%r11,%rax,8),%xmm5
  movsd  %xmm5,0x160(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xbc(%rsp),%r9d
  mov    0xb8(%rsp),%r8d
  mov    0x50(%rsp),%ecx
  mov    0x48(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x0,%edi
  call   <prop_index@plt>
  mov    0x88(%rsp),%r11
  movsd  (%r11,%rax,8),%xmm6
  movsd  %xmm6,0x48(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xb4(%rsp),%r9d
  mov    0xb0(%rsp),%r8d
  mov    0x64(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x2,%edi
  call   <prop_index@plt>
  mov    0x80(%rsp),%rdi
  movsd  0x48(%rsp),%xmm6
  mulsd  (%rdi,%rax,8),%xmm6
  movapd %xmm6,%xmm0
  addsd  0x160(%rsp),%xmm0
  movsd  0x158(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  0x150(%rsp),%xmm1
  movsd  %xmm1,0x48(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xdc(%rsp),%r9d
  mov    0xd8(%rsp),%r8d
  mov    0xc8(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x1,%edi
  call   <prop_index@plt>
  mov    0x80(%rsp),%rdi
  movsd  0x100(%rsp),%xmm2
  mulsd  (%rdi,%rax,8),%xmm2
  movsd  %xmm2,0x50(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xdc(%rsp),%r9d
  mov    0xd8(%rsp),%r8d
  mov    0xc8(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x1,%edi
  call   <prop_index@plt>
  mov    0x88(%rsp),%r11
  movsd  0x48(%rsp),%xmm1
  mulsd  (%r11,%rax,8),%xmm1
  movsd  0x50(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm7
  addsd  0x108(%rsp),%xmm7
  movsd  %xmm7,0x108(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xdc(%rsp),%r9d
  mov    0xd8(%rsp),%r8d
  mov    0xc8(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x1,%edi
  call   <prop_index@plt>
  mov    0x88(%rsp),%r11
  movsd  0x100(%rsp),%xmm2
  mulsd  (%r11,%rax,8),%xmm2
  movsd  %xmm2,0x50(%rsp)
  add    $0x38,%rsp
  push   %r14
  push   %r12
  push   %rbx
  mov    0x2b0(%rsp),%eax
  push   %rax
  push   %rbp
  push   %r13
  push   %r15
  mov    0xdc(%rsp),%r9d
  mov    0xd8(%rsp),%r8d
  mov    0xc8(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    0x60(%rsp),%esi
  mov    $0x1,%edi
  call   <prop_index@plt>
  mov    0x80(%rsp),%rdi
  movsd  0x48(%rsp),%xmm0
  mulsd  (%rdi,%rax,8),%xmm0
  addsd  0x50(%rsp),%xmm0
  addsd  0x110(%rsp),%xmm0
  movsd  %xmm0,0x110(%rsp)
  addq   $0x1,0x68(%rsp)
  mov    0x68(%rsp),%r10
  add    $0x40,%rsp
  cmp    %r10,0x108(%rsp)
  jne    L135
L137:
  mov    0x138(%rsp),%rax
  mov    0x130(%rsp),%rcx
  pxor   %xmm0,%xmm0
  cvtsi2sdl (%rax,%rcx,4),%xmm0
  mulsd  0x140(%rsp),%xmm0
  mov    0x148(%rsp),%rax
  mov    0x128(%rsp),%rcx
  mulsd  (%rax,%rcx,8),%xmm0
  movsd  0xd8(%rsp),%xmm6
  movapd %xmm6,%xmm1
  movsd  0xc8(%rsp),%xmm7
  mulsd  %xmm7,%xmm1
  movsd  0xe0(%rsp),%xmm5
  movapd %xmm5,%xmm2
  movsd  0xd0(%rsp),%xmm3
  mulsd  %xmm3,%xmm2
  subsd  %xmm2,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x80(%rsp)
  mulsd  %xmm3,%xmm6
  movapd %xmm6,%xmm1
  movapd %xmm5,%xmm2
  mulsd  %xmm7,%xmm2
  addsd  %xmm2,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x88(%rsp)
  cmpl   $0x0,0x2c0(%rsp)
  jle    L58
  movl   $0x0,0x8(%rsp)
  mov    %r15d,0xc0(%rsp)
  mov    0x158(%rsp),%r15
  mov    %r12d,0xc8(%rsp)
  mov    %r14d,0x24(%rsp)
  mov    0x150(%rsp),%r14
  mov    0x2c8(%rsp),%ebp
L124:
  mov    0x2c0(%rsp),%edx
  mov    0x8(%rsp),%esi
  mov    0xc0(%rsp),%r12d
  mov    %r12d,%edi
  call   <index_2d@plt>
  mov    0xf8(%rsp),%rcx
  movsd  0x80(%rsp),%xmm7
  mulsd  (%rcx,%rax,8),%xmm7
  movq   %xmm7,%rbx
  mov    0x2c0(%rsp),%edx
  mov    0x8(%rsp),%esi
  mov    %r12d,%edi
  call   <index_2d@plt>
  mov    0x100(%rsp),%rdx
  movsd  0x88(%rsp),%xmm2
  mulsd  (%rdx,%rax,8),%xmm2
  movq   %rbx,%xmm1
  subsd  %xmm2,%xmm1
  movsd  %xmm1,0x10(%rsp)
  mov    0x2c0(%rsp),%edx
  mov    0x8(%rsp),%ebx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_2d@plt>
  mov    0xf8(%rsp),%rcx
  movsd  0x88(%rsp),%xmm2
  mulsd  (%rcx,%rax,8),%xmm2
  movsd  %xmm2,0x18(%rsp)
  mov    0x2c0(%rsp),%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_2d@plt>
  mov    0x100(%rsp),%rcx
  movsd  0x80(%rsp),%xmm0
  mulsd  (%rcx,%rax,8),%xmm0
  addsd  0x18(%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  test   %ebp,%ebp
  jle    L223
  mov    $0x0,%ebx
L67:
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r13d,%edi
  call   <index_2d@plt>
  movsd  0x10(%rsp),%xmm3
  mulsd  (%r14,%rax,8),%xmm3
  movq   %xmm3,%r12
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r13d,%edi
  call   <index_2d@plt>
  movsd  0x18(%rsp),%xmm4
  mulsd  (%r15,%rax,8),%xmm4
  movq   %r12,%xmm5
  subsd  %xmm4,%xmm5
  movq   %xmm5,%r12
  mov    0x24(%rsp),%r8d
  mov    %ebp,%ecx
  mov    0x20(%rsp),%edx
  mov    %ebx,%esi
  mov    0x8(%rsp),%edi
  call   <index_3d@plt>
  mov    0x50(%rsp),%rcx
  lea    (%rcx,%rax,8),%rax
  movq   %r12,%xmm6
  addsd  (%rax),%xmm6
  movsd  %xmm6,(%rax)
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r13d,%edi
  call   <index_2d@plt>
  movsd  0x18(%rsp),%xmm4
  mulsd  (%r14,%rax,8),%xmm4
  movsd  %xmm4,0x28(%rsp)
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r13d,%edi
  call   <index_2d@plt>
  movsd  0x10(%rsp),%xmm0
  mulsd  (%r15,%rax,8),%xmm0
  addsd  0x28(%rsp),%xmm0
  movq   %xmm0,%r12
  mov    0x24(%rsp),%r8d
  mov    %ebp,%ecx
  mov    0x20(%rsp),%edx
  mov    %ebx,%esi
  mov    0x8(%rsp),%edi
  call   <index_3d@plt>
  mov    0x58(%rsp),%rcx
  lea    (%rcx,%rax,8),%rax
  movq   %r12,%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%ebx
  cmp    %ebx,%ebp
  jne    L67
L223:
  addl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%eax
  cmp    %eax,0x2c0(%rsp)
  jne    L124
  mov    0xc0(%rsp),%r15d
  mov    0xc8(%rsp),%r12d
  mov    0x24(%rsp),%r14d
L58:
  add    $0x1,%r13d
  cmp    %r13d,%r12d
  je     L182
L163:
  cmpl   $0x0,0x2b0(%rsp)
  jg     L169
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0xe0(%rsp)
  movsd  %xmm6,0xd8(%rsp)
  movsd  %xmm6,0xd0(%rsp)
  movsd  %xmm6,0xc8(%rsp)
  jmp    L137
L182:
  mov    %r14d,%r13d
  mov    %r15d,%r14d
L232:
  add    $0x1,%r14d
  cmp    %r14d,0x298(%rsp)
  je     L197
L4:
  mov    $0x0,%r15d
  test   %r12d,%r12d
  jle    L232
  mov    %r13d,%eax
  mov    %r15d,%r13d
  mov    %r14d,%r15d
  mov    %eax,%r14d
  jmp    L163
L197:
  mov    %r13d,%r14d
  mov    %r12d,%r13d
L125:
  addl   $0x1,0x20(%rsp)
  mov    0x20(%rsp),%eax
  cmp    %eax,%r14d
  je     L3
L114:
  mov    $0x0,%r15d
  cmpl   $0x0,0x298(%rsp)
  jle    L125
  mov    %r13d,%r12d
  mov    %r14d,%r13d
  mov    %r15d,%r14d
  jmp    L4
L3:
  mov    %r13d,%r15d
L102:
  addq   $0x1,0x128(%rsp)
  mov    0x128(%rsp),%rax
  cmp    %rax,0x188(%rsp)
  je     L13
L63:
  mov    0x128(%rsp),%eax
  mov    0x198(%rsp),%ebp
  mov    0x1b0(%rsp),%r12d
  mov    0x2b8(%rsp),%r8d
  mov    0x17c(%rsp),%r13d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %eax,%ebx
  mov    %eax,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x160(%rsp),%rcx
  mov    (%rcx,%rax,4),%eax
  mov    %eax,0x60(%rsp)
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x168(%rsp),%rsi
  mov    (%rsi,%rax,4),%eax
  mov    %eax,0x64(%rsp)
  mov    0x1a0(%rsp),%ebp
  mov    0x1b8(%rsp),%r12d
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x160(%rsp),%rcx
  mov    (%rcx,%rax,4),%eax
  mov    %eax,0x90(%rsp)
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x168(%rsp),%rsi
  mov    (%rsi,%rax,4),%eax
  mov    %eax,0x94(%rsp)
  mov    0x1a8(%rsp),%ebp
  mov    0x1c0(%rsp),%r12d
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x160(%rsp),%rcx
  mov    (%rcx,%rax,4),%eax
  mov    %eax,0x68(%rsp)
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x168(%rsp),%rsi
  mov    (%rsi,%rax,4),%eax
  mov    %eax,0x6c(%rsp)
  mov    0x19c(%rsp),%ebp
  mov    0x1b4(%rsp),%r12d
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x160(%rsp),%rcx
  mov    (%rcx,%rax,4),%eax
  mov    %eax,0x70(%rsp)
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x168(%rsp),%rsi
  mov    (%rsi,%rax,4),%eax
  mov    %eax,0x74(%rsp)
  mov    0x1a4(%rsp),%ebp
  mov    0x1bc(%rsp),%r12d
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x160(%rsp),%rcx
  mov    (%rcx,%rax,4),%eax
  mov    %eax,0x98(%rsp)
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x168(%rsp),%rsi
  mov    (%rsi,%rax,4),%eax
  mov    %eax,0x9c(%rsp)
  mov    0x1ac(%rsp),%ebp
  mov    0x1c4(%rsp),%r12d
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x160(%rsp),%rcx
  mov    (%rcx,%rax,4),%eax
  mov    %eax,0x78(%rsp)
  mov    0x2b8(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <index_3d@plt>
  mov    0x168(%rsp),%rsi
  mov    (%rsi,%rax,4),%eax
  mov    %eax,0x7c(%rsp)
  movl   $0x0,0x20(%rsp)
  mov    %r15d,%r13d
  test   %r14d,%r14d
  jg     L114
  jmp    L102
L13:
  mov    %r15d,%ebp
  mov    %r14d,%r15d
L85:
  addq   $0x1,0x130(%rsp)
  mov    0x130(%rsp),%rax
  cmp    %rax,0x180(%rsp)
  je     L59
L54:
  mov    0x130(%rsp),%eax
  mov    %eax,0x20(%rsp)
  mov    $0x0,%r12d
  mov    $0x0,%r13d
  mov    %ebp,0x2a0(%rsp)
  mov    0x2b8(%rsp),%ebp
L97:
  mov    0x178(%rsp),%edx
  mov    %r13d,%esi
  mov    0x20(%rsp),%edi
  call   <index_2d@plt>
  mov    0x170(%rsp),%r14
  mov    (%r14,%rax,4),%ebx
  sub    $0x1,%ebx
  lea    0x1(%r13),%esi
  mov    0x178(%rsp),%edx
  mov    0x20(%rsp),%edi
  call   <index_2d@plt>
  mov    %r14,0x170(%rsp)
  mov    (%r14,%rax,4),%eax
  lea    -0x1(%rax),%r14d
  lea    0x2(%r13),%esi
  mov    0x178(%rsp),%edx
  mov    0x20(%rsp),%edi
  call   <index_2d@plt>
  mov    0x170(%rsp),%rcx
  mov    (%rcx,%rax,4),%ecx
  sub    $0x1,%ecx
  mov    %ebx,%eax
  cltd
  idiv   %ebp
  mov    %edx,%esi
  mov    %ebx,%eax
  sub    %edx,%eax
  cltd
  idiv   %ebp
  mov    %eax,0x1b0(%rsp,%r12,1)
  mov    %r14d,%eax
  cltd
  idiv   %ebp
  mov    %edx,%edi
  mov    %r14d,%eax
  sub    %edx,%eax
  cltd
  idiv   %ebp
  mov    %eax,0x1b8(%rsp,%r12,1)
  mov    %ecx,%eax
  cltd
  idiv   %ebp
  mov    %edx,%r8d
  mov    %ecx,%eax
  sub    %edx,%eax
  cltd
  idiv   %ebp
  mov    %eax,0x1c0(%rsp,%r12,1)
  mov    %esi,0x198(%rsp,%r12,1)
  mov    %edi,0x1a0(%rsp,%r12,1)
  mov    %r8d,0x1a8(%rsp,%r12,1)
  add    %ebp,%r13d
  add    $0x4,%r12
  cmp    $0x8,%r12
  jne    L97
  mov    0x2a0(%rsp),%ebp
  cmpl   $0x0,0x17c(%rsp)
  jle    L85
  movq   $0x0,0x128(%rsp)
  mov    0x2b0(%rsp),%eax
  mov    %rax,0x108(%rsp)
  mov    %r15d,%r14d
  mov    %ebp,%r15d
  jmp    L63
L59:
  mov    0x1c8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L83
  add    $0x1d8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L83:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void make_hex_correlator(double *C_re, double *C_im, const double *B1_prop_re, const double *B1_prop_im, const double *B2_prop_re, const double *B2_prop_im, const int *perms, const int *sigs, const int *B1_src_color_weights, const int *B1_src_spin_weights, const double *B1_src_weights, const int *B2_src_color_weights, const int *B2_src_spin_weights, const double *B2_src_weights, const double overall_weight, const int *snk_color_weights, const int *snk_spin_weights, const double *snk_weights, const double *hex_src_psi_re, const double *hex_src_psi_im, const double *hex_snk_psi_re, const double *hex_snk_psi_im, const int Nc, const int Ns, const int Vsrc, const int Vsnk, const int Nt, const int Nw, const int Nq, const int NsrcHex, const int NsnkHex, const int Nperms) {
  int x, t, wnum, nperm, b, n, m, y, wnumprime;
  int iC1prime, iS1prime, jC1prime, jS1prime, kC1prime, kS1prime, iC2prime, iS2prime, jC2prime, jS2prime, kC2prime, kS2prime;
  int iC1, iS1, jC1, jS1, kC1, kS1, iC2, iS2, jC2, jS2, kC2, kS2;
  int Nb = 2;
  int Nw2 = Nw * Nw;
  double B1_prop_prod_02_re, B1_prop_prod_02_im, B1_prop_prod_re, B1_prop_prod_im, B2_prop_prod_02_re, B2_prop_prod_02_im, B2_prop_prod_re, B2_prop_prod_im;
  double prop_prod_re, prop_prod_im, new_prop_prod_re, new_prop_prod_im;
  int snk_1_nq[Nb];
  int snk_2_nq[Nb];
  int snk_3_nq[Nb];
  int snk_1_b[Nb];
  int snk_2_b[Nb];
  int snk_3_b[Nb];
  int snk_1[Nb];
  int snk_2[Nb];
  int snk_3[Nb];
  for (nperm = 0; nperm < Nperms; nperm++) {
    for (b = 0; b < Nb; b++) {
      snk_1[b] = perms[index_2d(nperm, Nq * b + 0, 2 * Nq)] - 1;
      snk_2[b] = perms[index_2d(nperm, Nq * b + 1, 2 * Nq)] - 1;
      snk_3[b] = perms[index_2d(nperm, Nq * b + 2, 2 * Nq)] - 1;
      snk_1_b[b] = (snk_1[b] - snk_1[b] % Nq) / Nq;
      snk_2_b[b] = (snk_2[b] - snk_2[b] % Nq) / Nq;
      snk_3_b[b] = (snk_3[b] - snk_3[b] % Nq) / Nq;
      snk_1_nq[b] = snk_1[b] % Nq;
      snk_2_nq[b] = snk_2[b] % Nq;
      snk_3_nq[b] = snk_3[b] % Nq;
    }
    for (wnumprime = 0; wnumprime < Nw2; wnumprime++) {
      iC1prime = snk_color_weights[index_3d(snk_1_b[0], wnumprime, snk_1_nq[0], Nw2, Nq)];
      iS1prime = snk_spin_weights[index_3d(snk_1_b[0], wnumprime, snk_1_nq[0], Nw2, Nq)];
      jC1prime = snk_color_weights[index_3d(snk_2_b[0], wnumprime, snk_2_nq[0], Nw2, Nq)];
      jS1prime = snk_spin_weights[index_3d(snk_2_b[0], wnumprime, snk_2_nq[0], Nw2, Nq)];
      kC1prime = snk_color_weights[index_3d(snk_3_b[0], wnumprime, snk_3_nq[0], Nw2, Nq)];
      kS1prime = snk_spin_weights[index_3d(snk_3_b[0], wnumprime, snk_3_nq[0], Nw2, Nq)];
      iC2prime = snk_color_weights[index_3d(snk_1_b[1], wnumprime, snk_1_nq[1], Nw2, Nq)];
      iS2prime = snk_spin_weights[index_3d(snk_1_b[1], wnumprime, snk_1_nq[1], Nw2, Nq)];
      jC2prime = snk_color_weights[index_3d(snk_2_b[1], wnumprime, snk_2_nq[1], Nw2, Nq)];
      jS2prime = snk_spin_weights[index_3d(snk_2_b[1], wnumprime, snk_2_nq[1], Nw2, Nq)];
      kC2prime = snk_color_weights[index_3d(snk_3_b[1], wnumprime, snk_3_nq[1], Nw2, Nq)];
      kS2prime = snk_spin_weights[index_3d(snk_3_b[1], wnumprime, snk_3_nq[1], Nw2, Nq)];
      for (t = 0; t < Nt; t++) {
        for (y = 0; y < Vsrc; y++) {
          for (x = 0; x < Vsnk; x++) {
            B1_prop_prod_re = 0;
            B1_prop_prod_im = 0;
            for (wnum = 0; wnum < Nw; wnum++) {
              iC1 = B1_src_color_weights[index_2d(wnum, 0, Nq)];
              iS1 = B1_src_spin_weights[index_2d(wnum, 0, Nq)];
              jC1 = B1_src_color_weights[index_2d(wnum, 1, Nq)];
              jS1 = B1_src_spin_weights[index_2d(wnum, 1, Nq)];
              kC1 = B1_src_color_weights[index_2d(wnum, 2, Nq)];
              kS1 = B1_src_spin_weights[index_2d(wnum, 2, Nq)];
              B1_prop_prod_02_re = B1_src_weights[wnum] * ((B1_prop_re[prop_index(0, t, iC1, iS1, iC1prime, iS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B1_prop_re[prop_index(2, t, kC1, kS1, kC1prime, kS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] - B1_prop_im[prop_index(0, t, iC1, iS1, iC1prime, iS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B1_prop_im[prop_index(2, t, kC1, kS1, kC1prime, kS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)]) - (B1_prop_re[prop_index(0, t, iC1, iS1, kC1prime, kS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B1_prop_re[prop_index(2, t, kC1, kS1, iC1prime, iS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] - B1_prop_im[prop_index(0, t, iC1, iS1, kC1prime, kS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B1_prop_im[prop_index(2, t, kC1, kS1, iC1prime, iS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)]));
              B1_prop_prod_02_im = B1_src_weights[wnum] * ((B1_prop_re[prop_index(0, t, iC1, iS1, iC1prime, iS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B1_prop_im[prop_index(2, t, kC1, kS1, kC1prime, kS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] + B1_prop_im[prop_index(0, t, iC1, iS1, iC1prime, iS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B1_prop_re[prop_index(2, t, kC1, kS1, kC1prime, kS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)]) - (B1_prop_re[prop_index(0, t, iC1, iS1, kC1prime, kS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B1_prop_im[prop_index(2, t, kC1, kS1, iC1prime, iS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] + B1_prop_im[prop_index(0, t, iC1, iS1, kC1prime, kS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B1_prop_re[prop_index(2, t, kC1, kS1, iC1prime, iS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)]));
              B1_prop_prod_re += B1_prop_prod_02_re * B1_prop_re[prop_index(1, t, jC1, jS1, jC1prime, jS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] - B1_prop_prod_02_im * B1_prop_im[prop_index(1, t, jC1, jS1, jC1prime, jS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)];
              B1_prop_prod_im += B1_prop_prod_02_re * B1_prop_im[prop_index(1, t, jC1, jS1, jC1prime, jS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] + B1_prop_prod_02_im * B1_prop_re[prop_index(1, t, jC1, jS1, jC1prime, jS1prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)];
            }
            B2_prop_prod_re = 0;
            B2_prop_prod_im = 0;
            for (wnum = 0; wnum < Nw; wnum++) {
              iC2 = B2_src_color_weights[index_2d(wnum, 0, Nq)];
              iS2 = B2_src_spin_weights[index_2d(wnum, 0, Nq)];
              jC2 = B2_src_color_weights[index_2d(wnum, 1, Nq)];
              jS2 = B2_src_spin_weights[index_2d(wnum, 1, Nq)];
              kC2 = B2_src_color_weights[index_2d(wnum, 2, Nq)];
              kS2 = B2_src_spin_weights[index_2d(wnum, 2, Nq)];
              B2_prop_prod_02_re = B2_src_weights[wnum] * ((B2_prop_re[prop_index(0, t, iC2, iS2, iC2prime, iS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B2_prop_re[prop_index(2, t, kC2, kS2, kC2prime, kS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] - B2_prop_im[prop_index(0, t, iC2, iS2, iC2prime, iS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B2_prop_im[prop_index(2, t, kC2, kS2, kC2prime, kS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)]) - (B2_prop_re[prop_index(0, t, iC2, iS2, kC2prime, kS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B2_prop_re[prop_index(2, t, kC2, kS2, iC2prime, iS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] - B2_prop_im[prop_index(0, t, iC2, iS2, kC2prime, kS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B2_prop_im[prop_index(2, t, kC2, kS2, iC2prime, iS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)]));
              B2_prop_prod_02_im = B2_src_weights[wnum] * ((B2_prop_re[prop_index(0, t, iC2, iS2, iC2prime, iS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B2_prop_im[prop_index(2, t, kC2, kS2, kC2prime, kS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] + B2_prop_im[prop_index(0, t, iC2, iS2, iC2prime, iS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B2_prop_re[prop_index(2, t, kC2, kS2, kC2prime, kS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)]) - (B2_prop_re[prop_index(0, t, iC2, iS2, kC2prime, kS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B2_prop_im[prop_index(2, t, kC2, kS2, iC2prime, iS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] + B2_prop_im[prop_index(0, t, iC2, iS2, kC2prime, kS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] * B2_prop_re[prop_index(2, t, kC2, kS2, iC2prime, iS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)]));
              B2_prop_prod_re += B2_prop_prod_02_re * B2_prop_re[prop_index(1, t, jC2, jS2, jC2prime, jS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] - B2_prop_prod_02_im * B2_prop_im[prop_index(1, t, jC2, jS2, jC2prime, jS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)];
              B2_prop_prod_im += B2_prop_prod_02_re * B2_prop_im[prop_index(1, t, jC2, jS2, jC2prime, jS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)] + B2_prop_prod_02_im * B2_prop_re[prop_index(1, t, jC2, jS2, jC2prime, jS2prime, y, x, Nc, Ns, Vsrc, Vsnk, Nt)];
            }
            prop_prod_re = overall_weight * sigs[nperm] * snk_weights[wnumprime] * (B1_prop_prod_re * B2_prop_prod_re - B1_prop_prod_im * B2_prop_prod_im);
            prop_prod_im = overall_weight * sigs[nperm] * snk_weights[wnumprime] * (B1_prop_prod_re * B2_prop_prod_im + B1_prop_prod_im * B2_prop_prod_re);
            for (m = 0; m < NsrcHex; m++) {
              new_prop_prod_re = hex_src_psi_re[index_2d(y, m, NsrcHex)] * prop_prod_re - hex_src_psi_im[index_2d(y, m, NsrcHex)] * prop_prod_im;
              new_prop_prod_im = hex_src_psi_re[index_2d(y, m, NsrcHex)] * prop_prod_im + hex_src_psi_im[index_2d(y, m, NsrcHex)] * prop_prod_re;
              for (n = 0; n < NsnkHex; n++) {
                C_re[index_3d(m, n, t, NsnkHex, Nt)] += hex_snk_psi_re[index_2d(x, n, NsnkHex)] * new_prop_prod_re - hex_snk_psi_im[index_2d(x, n, NsnkHex)] * new_prop_prod_im;
                C_im[index_3d(m, n, t, NsnkHex, Nt)] += hex_snk_psi_re[index_2d(x, n, NsnkHex)] * new_prop_prod_im + hex_snk_psi_im[index_2d(x, n, NsnkHex)] * new_prop_prod_re;
              }
            }
          }
        }
      }
    }
  }
}
```