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

```asm
<initGeneric>:
  endbr64
  push   %r15
  movslq %edi,%r15
  push   %r14
  lea    0x0(,%r15,8),%r14
  push   %r13
  mov    %r14,%rdi
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x108,%rsp
  mov    0x140(%rsp),%rax
  mov    %rsi,0xb0(%rsp)
  mov    %edx,0x7c(%rsp)
  mov    0x148(%rsp),%r13
  mov    %rax,0x90(%rsp)
  mov    0x150(%rsp),%rax
  mov    %rcx,0x8(%rsp)
  mov    %rax,0x30(%rsp)
  mov    0x158(%rsp),%rax
  mov    %r8,0xb8(%rsp)
  mov    %rax,0x20(%rsp)
  mov    0x160(%rsp),%eax
  mov    %r9,0x80(%rsp)
  mov    %eax,0x10(%rsp)
  xor    %eax,%eax
  mov    %r15d,0x18(%rsp)
  mov    %r14,0x28(%rsp)
  call   <rax_malloc@plt>
  mov    %r14,%rdi
  cltq
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <rax_malloc@plt>
  mov    %r14,%rdi
  movslq %eax,%rbp
  xor    %eax,%eax
  mov    %rbp,0x48(%rsp)
  call   <rax_malloc@plt>
  mov    0x18(%rsp),%r10d
  cltq
  mov    %rax,0x50(%rsp)
  test   %r10d,%r10d
  jle    L293
  lea    -0x1(%r10),%esi
  mov    %r10d,0x60(%rsp)
  mov    %rax,%rbx
  sub    %rax,%rbp
  mov    %esi,0x18(%rsp)
  mov    %r10d,%esi
  mov    %rsi,0x58(%rsp)
  lea    0x0(,%rsi,8),%r12
  mov    %r15,0x70(%rsp)
  mov    0x38(%rsp),%r15
  mov    %r12,0x40(%rsp)
  add    %rax,%r12
  mov    %r13,0x68(%rsp)
  mov    %r14,%r13
  mov    %rax,%r14
  nopw   0x0(%rax,%rax,1)
L613:
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <rax_malloc@plt>
  mov    %r13,%rdi
  cltq
  mov    %rax,(%rbx)
  xor    %eax,%eax
  call   <rax_malloc@plt>
  mov    %r13,%rdi
  cltq
  mov    %rax,0x0(%rbp,%rbx,1)
  xor    %eax,%eax
  call   <rax_malloc@plt>
  mov    %r15,%rdx
  sub    %r14,%rdx
  cltq
  mov    %rax,(%rdx,%rbx,1)
  add    $0x8,%rbx
  cmp    %r12,%rbx
  jne    L613
  mov    0x28(%rsp),%rbx
  mov    0x60(%rsp),%r10d
  xor    %eax,%eax
  mov    %r15,%r14
  mov    0x68(%rsp),%r13
  mov    0x70(%rsp),%r15
  mov    %rbx,%rdi
  mov    %r10d,0xc0(%rsp)
  call   <rax_malloc@plt>
  mov    %rbx,%rdi
  movslq %eax,%rbp
  xor    %eax,%eax
  mov    %rbp,0xa8(%rsp)
  call   <rax_malloc@plt>
  mov    %rbx,%rdi
  cltq
  mov    %rax,0x70(%rsp)
  xor    %eax,%eax
  call   <rax_malloc@plt>
  mov    %rbx,%rdi
  cltq
  mov    %rax,0x60(%rsp)
  mov    %rax,0xa0(%rsp)
  xor    %eax,%eax
  call   <rax_malloc@plt>
  mov    %rbx,%rdi
  cltq
  mov    %rax,0x88(%rsp)
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  call   <rax_malloc@plt>
  lea    0x8(%r13),%rdx
  mov    0xc0(%rsp),%r10d
  cltq
  cmp    %rbp,%rdx
  mov    %rax,0x68(%rsp)
  mov    %rbp,%rax
  je     L36
  cmpl   $0x2,0x18(%rsp)
  jbe    L36
  mov    %r10d,%edx
  mov    %r13,%rcx
  shr    %edx
  sub    %rbp,%rcx
  shl    $0x4,%rdx
  add    %rbp,%rdx
  nop
L536:
  movupd (%rax,%rcx,1),%xmm7
  add    $0x10,%rax
  movups %xmm7,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L536
  mov    %r10d,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%r10b
  je     L528
  movsd  0x0(%r13,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
L528:
  mov    0x58(%rsp),%rax
  mov    0x40(%rsp),%r12
  mov    %r10d,%r13d
  add    0x38(%rsp),%r12
  lea    0x0(,%rax,8),%rbx
  nopl   (%rax)
L807:
  mov    (%r14),%rdi
  mov    %rbx,%rdx
  xor    %esi,%esi
  add    $0x8,%r14
  call   <memset@plt>
  cmp    %r12,%r14
  jne    L807
  mov    %r13d,%r10d
  cmp    $0x1,%r13d
  je     L425
  mov    0x18(%rsp),%edi
  mov    0x30(%rsp),%r8
  mov    %rbp,0x40(%rsp)
  xor    %ebx,%ebx
  mov    0x38(%rsp),%r14
  mov    $0x8,%r11d
  mov    $0x1,%r13d
  nopl   0x0(%rax)
L436:
  mov    %r13d,%edx
  lea    -0x1(%rdi),%r12d
  cmp    %r13d,%r10d
  jle    L343
  mov    -0x8(%r11,%r14,1),%rsi
  movslq %ebx,%rax
  lea    -0x1(%rdi),%r12d
  lea    0x8(,%rax,8),%rax
  lea    (%rsi,%r11,1),%r9
  cmp    $0x2,%r12d
  jbe    L5
  lea    (%r8,%rax,1),%rcx
  cmp    %rcx,%r9
  je     L5
  mov    %edi,%ecx
  lea    -0x8(%r8,%rax,1),%rbp
  xor    %eax,%eax
  shr    %ecx
  shl    $0x4,%rcx
  nopw   0x0(%rax,%rax,1)
L76:
  movupd 0x0(%rbp,%rax,1),%xmm5
  movups %xmm5,(%r9,%rax,1)
  add    $0x10,%rax
  cmp    %rcx,%rax
  jne    L76
  mov    %edi,%ecx
  and    $0xfffffffe,%ecx
  lea    (%rbx,%rcx,1),%eax
  add    %ecx,%edx
  cmp    %edi,%ecx
  je     L223
  cltq
  movslq %edx,%rdx
  movsd  (%r8,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rdx,8)
L223:
  add    %edi,%ebx
L343:
  add    $0x1,%r13
  add    $0x8,%r11
  mov    %r12d,%edi
  test   %r12d,%r12d
  jne    L436
  movslq 0x10(%rsp),%rax
  mov    0x8(%rsp),%rsi
  mov    0x40(%rsp),%rbp
  lea    (%rsi,%rax,8),%rsi
L8:
  mov    0x38(%rsp),%rdi
  mov    0x38(%rsp),%r11
  mov    $0x1,%r9d
  mov    (%rdi),%rax
  add    $0x8,%rdi
  movq   $0x0,(%rax)
  cmp    $0x1,%r10d
  jle    L39
  nop
L192:
  mov    (%rdi),%rcx
  lea    0x0(,%r9,8),%r8
  mov    %r11,%rax
  movq   $0x0,(%rcx,%r9,8)
  sub    %r11,%rcx
  nopl   0x0(%rax)
L513:
  mov    (%rax),%rdx
  movsd  (%rdx,%r8,1),%xmm0
  movsd  %xmm0,(%rcx,%rax,1)
  add    $0x8,%rax
  cmp    %rdi,%rax
  jne    L513
  add    $0x1,%r9
  add    $0x8,%rdi
  cmp    %r15,%r9
  jne    L192
L39:
  mov    0x58(%rsp),%r9
  mov    0x38(%rsp),%rdi
  mov    %rbp,%r14
  mov    %rbp,%rdx
  movq   $0x0,(%rsi)
  pxor   %xmm2,%xmm2
  lea    0x0(%rbp,%r9,8),%r8
  movapd %xmm2,%xmm1
  sub    %rbp,%rdi
  nopl   0x0(%rax,%rax,1)
L779:
  mov    (%rdi,%rdx,1),%rcx
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L561:
  movsd  (%rdx),%xmm0
  mulsd  (%rcx,%rax,8),%xmm0
  mulsd  0x0(%rbp,%rax,8),%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rsi)
  cmp    %r9,%rax
  jne    L561
  add    $0x8,%rdx
  cmp    %r8,%rdx
  jne    L779
  mov    0x58(%rsp),%rax
  mov    0x50(%rsp),%rcx
  lea    0x0(,%rax,8),%r11
  xor    %eax,%eax
  nopl   (%rax)
L161:
  mov    (%rax,%rcx,1),%rdx
  movq   $0x0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    %r11,%rax
  jne    L161
  cmp    $0x1,%r10d
  jle    L40
  lea    -0x2(%r10),%eax
  mov    $0xfffffffffffffff8,%r9
  xor    %edi,%edi
  xor    %r8d,%r8d
  mov    %rax,0x40(%rsp)
  mov    %r11,0xc0(%rsp)
  mov    0x50(%rsp),%r11
  nopl   0x0(%rax)
L459:
  mov    %r9,%rax
  mov    %edi,0x8(%rsp)
  mov    %r11,%r12
  movslq %r8d,%rdx
  lea    0x0(,%rdi,8),%r15
  mov    %rdi,0x10(%rsp)
  sub    %r11,%rax
  add    $0x1,%rdi
  lea    (%rax,%rdx,8),%rcx
  lea    (%r15,%r11,1),%rsi
  sub    %r9,%r12
  add    0x30(%rsp),%rcx
  mov    %rdi,%rbx
  nopl   0x0(%rax)
L130:
  movsd  (%r14),%xmm0
  mulsd  0x0(%rbp,%rbx,8),%xmm0
  lea    0x0(,%rbx,8),%r13
  movsd  (%rcx,%r12,1),%xmm1
  ucomisd %xmm0,%xmm2
  ja     L506
  sqrtsd %xmm0,%xmm0
L136:
  mulsd  %xmm1,%xmm0
  mov    (%r12),%rax
  mov    (%rsi),%rdx
  add    $0x8,%r12
  movsd  %xmm0,(%rax,%r15,1)
  add    %r13,%rax
  movsd  %xmm0,(%rdx,%r13,1)
  movsd  0x0(%rbp,%rbx,8),%xmm3
  add    %r15,%rdx
  add    $0x1,%rbx
  movsd  (%rdx),%xmm0
  mulsd  %xmm1,%xmm3
  subsd  %xmm3,%xmm0
  movsd  %xmm0,(%rdx)
  mulsd  (%r14),%xmm1
  movsd  (%rax),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  cmp    %ebx,%r10d
  jg     L130
  add    0x18(%rsp),%r8d
  mov    0x40(%rsp),%rsi
  add    $0x8,%r14
  sub    $0x8,%r9
  sub    0x8(%rsp),%r8d
  cmp    %rsi,0x10(%rsp)
  jne    L459
  mov    0xc0(%rsp),%r11
L40:
  mov    0x50(%rsp),%r12
  mov    0x70(%rsp),%rcx
  mov    %r10d,%esi
  xor    %eax,%eax
  mov    0x60(%rsp),%rdx
  mov    %r11,0x10(%rsp)
  mov    %r12,%rdi
  mov    %r10d,0x8(%rsp)
  call   <makeEigen@plt>
  mov    0x10(%rsp),%r11
  mov    0x8(%rsp),%r15d
  pxor   %xmm2,%xmm2
  lea    (%r12,%r11,1),%r13
  mov    %r11,%r14
  nopl   (%rax)
L641:
  xor    %ebx,%ebx
  nopw   0x0(%rax,%rax,1)
L360:
  movsd  0x0(%rbp,%rbx,1),%xmm0
  ucomisd %xmm0,%xmm2
  ja     L678
  mov    (%r12),%rax
  sqrtsd %xmm0,%xmm0
  add    %rbx,%rax
  add    $0x8,%rbx
  mulsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  cmp    %r14,%rbx
  jne    L360
L777:
  add    $0x8,%r12
  cmp    %r13,%r12
  jne    L641
  mov    0x60(%rsp),%rdx
  mov    0x58(%rsp),%rdi
  mov    %r14,%r11
  mov    %r15d,%r10d
  movsd  D22(%rip),%xmm1
  xor    %eax,%eax
  jmp    L255
  nopl   0x0(%rax)
L245:
  add    $0x1,%rax
  add    $0x8,%rdx
  cmp    %rdi,%rax
  je     L451
L255:
  movsd  (%rdx),%xmm0
  lea    0x0(,%rax,8),%rsi
  comisd %xmm1,%xmm0
  jbe    L245
  test   %eax,%eax
  je     L451
  mov    0x60(%rsp),%rax
  mov    0x50(%rsp),%rdi
  movsd  (%rax),%xmm1
  mov    (%rdi),%rcx
  movsd  %xmm1,(%rdx)
  mov    (%rdi,%rsi,1),%rdx
  movsd  %xmm0,(%rax)
  lea    0xf(%rdx),%rax
  sub    %rcx,%rax
  cmp    $0x1e,%rax
  jbe    L689
  cmpl   $0x1,0x18(%rsp)
  jbe    L689
  mov    %r10d,%esi
  xor    %eax,%eax
  movapd %xmm2,%xmm0
  shr    %esi
  shl    $0x4,%rsi
  nopl   0x0(%rax,%rax,1)
L857:
  movupd (%rdx,%rax,1),%xmm3
  movupd (%rcx,%rax,1),%xmm7
  addsd  %xmm3,%xmm0
  movups %xmm7,(%rdx,%rax,1)
  movups %xmm3,(%rcx,%rax,1)
  unpckhpd %xmm3,%xmm3
  add    $0x10,%rax
  addsd  %xmm3,%xmm0
  cmp    %rsi,%rax
  jne    L857
  mov    %r10d,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%r10b
  je     L20
  shl    $0x3,%rax
  add    %rax,%rdx
  add    %rcx,%rax
  movsd  (%rdx),%xmm1
  movsd  (%rax),%xmm3
  addsd  %xmm1,%xmm0
  movsd  %xmm3,(%rdx)
  movsd  %xmm1,(%rax)
L20:
  test   %r10d,%r10d
  mov    $0x1,%esi
  cmovg  %r10d,%esi
L45:
  mov    %esi,%edx
  movapd %xmm0,%xmm3
  mov    %rcx,%rax
  shr    %edx
  unpcklpd %xmm3,%xmm3
  shl    $0x4,%rdx
  add    %rcx,%rdx
  nopl   0x0(%rax,%rax,1)
L487:
  movupd (%rax),%xmm1
  add    $0x10,%rax
  divpd  %xmm3,%xmm1
  movups %xmm1,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L487
  mov    %esi,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%esi
  je     L451
L139:
  cltq
  lea    (%rcx,%rax,8),%rax
  movsd  (%rax),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
L451:
  movq   D17(%rip),%xmm3
  movsd  D26(%rip),%xmm1
  xor    %ecx,%ecx
  mov    0x68(%rsp),%r9
  mov    0x48(%rsp),%rbx
  mov    0x50(%rsp),%r8
  mov    0x60(%rsp),%rbp
  mov    0x88(%rsp),%r12
  nop
L271:
  movsd  0x0(%rbp,%rcx,1),%xmm0
  mov    (%rbx,%rcx,1),%rdi
  mov    %r8,%rax
  xorpd  %xmm3,%xmm0
  mov    %rdi,%rsi
  movsd  %xmm0,(%r9,%rcx,1)
  sub    %r8,%rsi
  nopl   (%rax)
L545:
  mov    (%rax),%rdx
  movsd  (%rdx,%rcx,1),%xmm0
  movsd  %xmm0,(%rsi,%rax,1)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L545
  movapd %xmm1,%xmm0
  divsd  (%rdi),%xmm0
  movsd  %xmm0,(%r12,%rcx,1)
  add    $0x8,%rcx
  cmp    %r11,%rcx
  jne    L271
  cmp    $0x1,%r10d
  jle    L762
  mov    0x68(%rsp),%rbp
  mov    0xb8(%rsp),%r13
  mov    $0x1,%ebx
  mov    %r10d,%r12d
  nopl   0x0(%rax,%rax,1)
L770:
  movsd  0x0(%rbp,%rbx,8),%xmm0
  xor    %edi,%edi
  comisd %xmm2,%xmm0
  movsd  %xmm0,-0x8(%r13,%rbx,8)
  seta   %dil
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <assert@plt>
  cmp    %ebx,%r12d
  pxor   %xmm2,%xmm2
  jg     L770
  mov    %r12d,%r10d
L762:
  test   %r10d,%r10d
  mov    $0x1,%eax
  mov    0x18(%rsp),%r13d
  mov    $0x8,%r11d
  cmovg  %r10d,%eax
  mov    0x48(%rsp),%r9
  mov    0x80(%rsp),%rcx
  lea    0x8(,%r13,8),%r15
  mov    %eax,%r12d
  shr    %eax
  mov    %r12d,%ebx
  lea    -0x1(%rax),%esi
  and    $0xfffffffe,%ebx
  add    $0x1,%rsi
  mov    %ebx,%ebp
  movslq %ebx,%rdi
  shl    $0x4,%rsi
  shl    $0x3,%rbp
  shl    $0x3,%rdi
  test   %r10d,%r10d
  cmovg  %r15,%r11
  xor    %r8d,%r8d
  nopw   0x0(%rax,%rax,1)
L24:
  mov    (%r9),%rdx
  lea    0x8(%rdx),%rax
  cmp    %rax,%rcx
  je     L300
  xor    %eax,%eax
  cmp    $0x3,%r10d
  jle    L300
  nopl   0x0(%rax)
L88:
  movupd (%rdx,%rax,1),%xmm4
  movups %xmm4,(%rcx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rsi
  jne    L88
  lea    (%rcx,%rbp,1),%rax
  cmp    %r12d,%ebx
  je     L276
  movsd  (%rdx,%rdi,1),%xmm0
  movsd  %xmm0,(%rax)
L276:
  add    $0x1,%r8d
  add    %r11,%rcx
  add    $0x8,%r9
  cmp    %r8d,%r10d
  jg     L24
  cmp    $0x1,%r10d
  jle    L471
  mov    0x28(%rsp),%rax
  lea    -0x2(%r10),%ebp
  mov    %r10d,0x8(%rsp)
  xor    %edi,%edi
  mov    0x88(%rsp),%r14
  mov    0x80(%rsp),%rcx
  xor    %esi,%esi
  lea    -0x8(%rax),%r12
  lea    0x0(,%r13,8),%rax
  mov    0x18(%rsp),%r13d
  mov    0x90(%rsp),%rdx
  mov    %rax,0x10(%rsp)
  lea    (%r14,%r15,1),%rax
  mov    %rbp,%r15
  lea    0x10(%rcx),%rbx
  mov    %rax,0x30(%rsp)
  mov    %r13d,%eax
  mov    %r13d,%r8d
  mov    %r13d,%r11d
  shr    %eax
  mov    %r15d,0x40(%rsp)
  and    $0xfffffffe,%r8d
  or     $0x1,%r11d
  lea    -0x1(%rax),%r9d
  mov    %r12,0x18(%rsp)
  add    $0x2,%rbp
  mov    %rcx,%r10
  add    $0x1,%r9
  mov    %rdx,%r12
  shl    $0x4,%r9
  nopl   0x0(%rax)
L246:
  mov    0x10(%rsp),%rax
  mov    %r14,%rcx
  add    $0x8,%r14
  add    %rdx,%rax
  cmp    %rax,%rcx
  setae  %r15b
  cmp    %r14,%rdx
  setae  %al
  or     %r15b,%al
  je     L42
  cmp    %rbx,%rdx
  setne  %r15b
  cmpl   $0x1,0x40(%rsp)
  seta   %al
  test   %al,%r15b
  je     L42
  movsd  (%rcx),%xmm1
  lea    -0x8(%rbx),%r15
  xor    %eax,%eax
  unpcklpd %xmm1,%xmm1
  nopl   0x0(%rax,%rax,1)
L802:
  movupd (%r15,%rax,1),%xmm0
  mulpd  %xmm1,%xmm0
  movups %xmm0,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %r9,%rax
  jne    L802
  cmp    %r8d,%r13d
  je     L581
  lea    (%rsi,%r11,1),%r15d
  lea    (%rdi,%r8,1),%eax
  movslq %r15d,%r15
  cltq
  movsd  (%r10,%r15,8),%xmm0
  mulsd  (%rcx),%xmm0
  movsd  %xmm0,(%r12,%rax,8)
L581:
  add    0x28(%rsp),%rbx
  add    0x18(%rsp),%rdx
  add    %r13d,%edi
  add    0x8(%rsp),%esi
  cmp    %r14,0x30(%rsp)
  jne    L246
  mov    0x8(%rsp),%r10d
L471:
  mov    0x7c(%rsp),%eax
  test   %eax,%eax
  jle    L288
L718:
  mov    0xb0(%rsp),%rbp
  sub    $0x1,%eax
  xor    %r14d,%r14d
  mov    %r10d,%r12d
  lea    0x4(%rbp,%rax,4),%rax
  mov    %rax,0x8(%rsp)
  lea    -0x1(%r10),%eax
  lea    0x8(,%rax,8),%rbx
  mov    %eax,0x30(%rsp)
  mov    %rax,0x40(%rsp)
  mov    %r10d,%eax
  shr    %eax
  mov    %rbx,0x10(%rsp)
  lea    -0x1(%rax),%r13d
  mov    %r10d,%eax
  and    $0xfffffffe,%eax
  add    $0x1,%r13
  movslq %eax,%r15
  mov    %eax,0x18(%rsp)
  shl    $0x4,%r13
  shl    $0x3,%r15
  mov    %r13,%rbx
  mov    %r15,%rax
  mov    %r14d,%r15d
  mov    %rbp,%r14
  mov    %rax,%rbp
  jmp    L752
  cs nopw 0x0(%rax,%rax,1)
L775:
  add    $0x4,%r14
  add    %r12d,%r15d
  cmp    0x8(%rsp),%r14
  je     L462
L752:
  mov    (%r14),%r13d
  test   %r12d,%r12d
  jle    L775
  mov    0x20(%rsp),%rsi
  movslq %r15d,%rax
  mov    0x10(%rsp),%rdx
  lea    (%rsi,%rax,8),%rcx
  xor    %esi,%esi
  mov    %rcx,%rdi
  call   <memset@plt>
  mov    %rax,%rcx
  test   %r13d,%r13d
  je     L775
  mov    0x18(%rsp),%eax
  mov    0x20(%rsp),%rsi
  mov    0x48(%rsp),%r10
  mov    0x40(%rsp),%r8
  add    %r15d,%eax
  cltq
  lea    (%rsi,%rax,8),%rdi
  xor    %eax,%eax
  jmp    L874
  nopl   (%rax)
L432:
  add    $0x1,%eax
  add    $0x8,%r10
  cmp    %eax,%r12d
  je     L775
L874:
  bt     %eax,%r13d
  jae    L432
  mov    (%r10),%rsi
  lea    0x8(%rsi),%rdx
  cmp    %rdx,%rcx
  mov    $0x0,%edx
  je     L800
  cmpl   $0x1,0x30(%rsp)
  jbe    L800
  nopw   0x0(%rax,%rax,1)
L717:
  movupd (%rsi,%rdx,1),%xmm0
  movupd (%rcx,%rdx,1),%xmm6
  addpd  %xmm6,%xmm0
  movups %xmm0,(%rcx,%rdx,1)
  add    $0x10,%rdx
  cmp    %rbx,%rdx
  jne    L717
  cmp    0x18(%rsp),%r12d
  je     L432
  movsd  (%rdi),%xmm0
  addsd  (%rsi,%rbp,1),%xmm0
  movsd  %xmm0,(%rdi)
  jmp    L432
  nopl   0x0(%rax)
L5:
  sub    %r11,%rax
  lea    (%r8,%rax,1),%rdx
  mov    %r13,%rax
  nopw   0x0(%rax,%rax,1)
L100:
  movsd  -0x8(%rdx,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r10d
  jg     L100
  jmp    L223
  nopl   0x0(%rax)
L800:
  movsd  (%rcx,%rdx,8),%xmm0
  addsd  (%rsi,%rdx,8),%xmm0
  mov    %rdx,%r9
  movsd  %xmm0,(%rcx,%rdx,8)
  add    $0x1,%rdx
  cmp    %r9,%r8
  jne    L800
  jmp    L432
  nopl   0x0(%rax,%rax,1)
L300:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L774:
  movsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r10d
  jg     L774
  jmp    L276
L42:
  mov    $0x1,%eax
  lea    -0x10(%rbx),%r15
  nopl   0x0(%rax)
L400:
  movsd  (%r15,%rax,8),%xmm0
  mulsd  (%rcx),%xmm0
  movsd  %xmm0,-0x8(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %rbp,%rax
  jne    L400
  jmp    L581
  xchg   %ax,%ax
L462:
  mov    %r12d,%r10d
  test   %r12d,%r12d
  jle    L525
  mov    0x40(%rsp),%rax
  mov    0x20(%rsp),%rsi
  xor    %ecx,%ecx
  movsd  D15(%rip),%xmm1
  mov    0x28(%rsp),%rdi
  shl    $0x3,%rax
  mov    0x7c(%rsp),%r8d
  lea    0x8(%rsi,%rax,1),%rdx
  mov    $0xfffffffffffffff8,%rsi
  sub    %rax,%rsi
  nopl   (%rax)
L899:
  lea    (%rsi,%rdx,1),%rax
  nopl   0x0(%rax)
L308:
  movsd  (%rax),%xmm0
  comisd %xmm1,%xmm0
  jbe    L573
  movsd  %xmm1,(%rax)
L573:
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L308
  add    $0x1,%ecx
  add    %rdi,%rdx
  cmp    %ecx,%r8d
  jne    L899
L643:
  mov    0x48(%rsp),%r14
  mov    0x50(%rsp),%rbx
  mov    %r10d,%eax
  mov    0x38(%rsp),%r13
  lea    (%r14,%rax,8),%rbp
  mov    %r14,%r12
  sub    %r14,%rbx
  cs nopw 0x0(%rax,%rax,1)
L441:
  mov    (%r12),%rdi
  xor    %eax,%eax
  call   <rax_free@plt>
  mov    (%rbx,%r12,1),%rdi
  xor    %eax,%eax
  call   <rax_free@plt>
  mov    %r13,%rax
  sub    %r14,%rax
  mov    (%rax,%r12,1),%rdi
  xor    %eax,%eax
  add    $0x8,%r12
  call   <rax_free@plt>
  cmp    %r12,%rbp
  jne    L441
L525:
  mov    0x38(%rsp),%rdi
  xor    %eax,%eax
  call   <rax_free@plt>
  mov    0x50(%rsp),%rdi
  xor    %eax,%eax
  call   <rax_free@plt>
  mov    0x48(%rsp),%rdi
  xor    %eax,%eax
  call   <rax_free@plt>
  mov    0xa8(%rsp),%rdi
  xor    %eax,%eax
  call   <rax_free@plt>
  mov    0x70(%rsp),%rdi
  xor    %eax,%eax
  call   <rax_free@plt>
  mov    0xa0(%rsp),%rdi
  xor    %eax,%eax
  call   <rax_free@plt>
  mov    0x98(%rsp),%rdi
  xor    %eax,%eax
  call   <rax_free@plt>
  mov    0x68(%rsp),%rdi
  xor    %eax,%eax
  add    $0x108,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10c0 <rax_free@plt>
L36:
  mov    0x40(%rsp),%rax
  mov    %r13,%rdx
  sub    %rbp,%rdx
  lea    0x0(%rbp,%rax,1),%rcx
  mov    %rbp,%rax
  nopl   (%rax)
L13:
  movsd  (%rdx,%rax,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rcx,%rax
  jne    L13
  jmp    L528
L293:
  mov    0x28(%rsp),%rbx
  xor    %eax,%eax
  mov    %r10d,0x18(%rsp)
  mov    %rbx,%rdi
  call   <rax_malloc@plt>
  mov    %rbx,%rdi
  cltq
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  call   <rax_malloc@plt>
  mov    %rbx,%rdi
  movslq %eax,%r14
  xor    %eax,%eax
  mov    %r14,0x70(%rsp)
  call   <rax_malloc@plt>
  mov    %rbx,%rdi
  movslq %eax,%r15
  xor    %eax,%eax
  mov    %r15,0xa0(%rsp)
  call   <rax_malloc@plt>
  mov    %rbx,%rdi
  cltq
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  call   <rax_malloc@plt>
  mov    0x8(%rsp),%rsi
  mov    %r14,%rcx
  mov    %r15,%rdx
  cltq
  mov    0x18(%rsp),%r10d
  mov    0x50(%rsp),%rdi
  mov    %rax,0x68(%rsp)
  movslq 0x10(%rsp),%rax
  mov    %r10d,0x8(%rsp)
  movq   $0x0,(%rsi,%rax,8)
  mov    %r10d,%esi
  xor    %eax,%eax
  call   <makeEigen@plt>
  mov    0x7c(%rsp),%eax
  mov    0x8(%rsp),%r10d
  test   %eax,%eax
  jg     L718
L288:
  test   %r10d,%r10d
  jg     L643
  jmp    L525
L689:
  xor    %eax,%eax
  movapd %xmm2,%xmm0
L55:
  movsd  (%rdx,%rax,8),%xmm1
  movsd  (%rcx,%rax,8),%xmm3
  movsd  %xmm3,(%rdx,%rax,8)
  addsd  %xmm1,%xmm0
  movsd  %xmm1,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r10d
  jg     L55
  test   %r10d,%r10d
  mov    $0x1,%esi
  cmovg  %r10d,%esi
  cmp    $0x1,%r10d
  jg     L45
  xor    %eax,%eax
  jmp    L139
L506:
  mov    %r11,0xf8(%rsp)
  mov    %r10d,0xf4(%rsp)
  mov    %rsi,0xe8(%rsp)
  mov    %r9,0xe0(%rsp)
  mov    %rdi,0xd8(%rsp)
  mov    %rcx,0xd0(%rsp)
  mov    %r8d,0xf0(%rsp)
  movsd  %xmm1,0xc8(%rsp)
  call   <sqrt@plt>
  mov    0xf8(%rsp),%r11
  mov    0xf4(%rsp),%r10d
  pxor   %xmm2,%xmm2
  mov    0xe8(%rsp),%rsi
  mov    0xe0(%rsp),%r9
  mov    0xd8(%rsp),%rdi
  mov    0xd0(%rsp),%rcx
  mov    0xf0(%rsp),%r8d
  movsd  0xc8(%rsp),%xmm1
  jmp    L136
L678:
  call   <sqrt@plt>
  mov    (%r12),%rax
  pxor   %xmm2,%xmm2
  add    %rbx,%rax
  add    $0x8,%rbx
  mulsd  (%rax),%xmm0
  cmp    %rbx,%r14
  movsd  %xmm0,(%rax)
  jne    L360
  jmp    L777
L425:
  movslq 0x10(%rsp),%rax
  mov    0x8(%rsp),%rsi
  lea    (%rsi,%rax,8),%rsi
  jmp    L8
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D22
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_tag: D17
type_guessed: f32[2]
name: extract_symbolic_data
arguments: data_tag: D26
type_guessed: f32[2]
name: extract_symbolic_data
arguments: data_tag: D15
type_guessed: f64

tool: {"D22": [0x3a,0x8c,0x30,0xe2,0x8e,0x79,0x45,0xbe]}

tool: {"D17": [0.0,-0.0]}

tool: {"D26": [0.0,1.875]}

tool: D15: 0.999999999

assistant: ```c
void initGeneric(const int n, const unsigned int *valueVector, int valueVectorLength, double *fracchanges, double *ext_EIGN, double *EV, double *EI, double *frequencies, double *ext_initialRates, double *tipVector, int model) {
  double **r, **a, **EIGV, *initialRates = ext_initialRates, *f, *e, *d, *invfreq, *EIGN, *eptr;
  int i, j, k, m, l;
  r = (double **)rax_malloc(n * sizeof(double *));
  EIGV = (double **)rax_malloc(n * sizeof(double *));
  a = (double **)rax_malloc(n * sizeof(double *));
  for (i = 0; i < n; i++) {
    a[i] = (double *)rax_malloc(n * sizeof(double));
    EIGV[i] = (double *)rax_malloc(n * sizeof(double));
    r[i] = (double *)rax_malloc(n * sizeof(double));
  }
  f = (double *)rax_malloc(n * sizeof(double));
  e = (double *)rax_malloc(n * sizeof(double));
  d = (double *)rax_malloc(n * sizeof(double));
  invfreq = (double *)rax_malloc(n * sizeof(double));
  EIGN = (double *)rax_malloc(n * sizeof(double));
  for (l = 0; l < n; l++)
    f[l] = frequencies[l];
  i = 0;
  for (j = 0; j < n; j++)
    for (k = 0; k < n; k++)
      r[j][k] = 0.0;
  for (j = 0; j < n - 1; j++)
    for (k = j + 1; k < n; k++)
      r[j][k] = initialRates[i++];
  for (j = 0; j < n; j++) {
    r[j][j] = 0.0;
    for (k = 0; k < j; k++)
      r[j][k] = r[k][j];
  }
  fracchanges[model] = 0.0;
  for (j = 0; j < n; j++)
    for (k = 0; k < n; k++)
      fracchanges[model] += f[j] * r[j][k] * f[k];
  m = 0;
  for (i = 0; i < n; i++)
    a[i][i] = 0;
  for (i = 0; i < n; i++) {
    for (j = i + 1; j < n; j++) {
      double factor = initialRates[m++];
      a[i][j] = a[j][i] = factor * sqrt(f[i] * f[j]);
      a[i][i] -= factor * f[j];
      a[j][j] -= factor * f[i];
    }
  }
  makeEigen(a, n, d, e);
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      a[i][j] *= sqrt(f[j]);
  for (i = 0; i < n; i++) {
    if (d[i] > -1e-8) {
      if (i != 0) {
        double tmp = d[i], sum = 0;
        d[i] = d[0];
        d[0] = tmp;
        for (j = 0; j < n; j++) {
          tmp = a[i][j];
          a[i][j] = a[0][j];
          sum += (a[0][j] = tmp);
        }
        for (j = 0; j < n; j++)
          a[0][j] /= sum;
      }
      break;
    }
  }
  for (i = 0; i < n; i++) {
    EIGN[i] = -d[i];
    for (j = 0; j < n; j++)
      EIGV[i][j] = a[j][i];
    invfreq[i] = 1 / EIGV[i][0];
  }
  for (l = 1; l < n; l++) {
    ext_EIGN[(l - 1)] = EIGN[l];
    assert(ext_EIGN[(l - 1)] > 0.0);
  }
  eptr = EV;
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++) {
      *eptr++ = EIGV[i][j];
    }
  for (i = 0; i < n; i++)
    for (j = 1; j < n; j++)
      EI[i * (n - 1) + (j - 1)] = EV[i * n + j] * invfreq[i];
  for (i = 0; i < valueVectorLength; i++) {
    unsigned int value = valueVector[i];
    for (j = 0; j < n; j++)
      tipVector[i * n + j] = 0;
    if (value > 0) {
      for (j = 0; j < n; j++) {
        if ((value >> j) & 1) {
          int l;
          for (l = 0; l < n; l++)
            tipVector[i * n + l] += EIGV[j][l];
        }
      }
    }
  }
  for (i = 0; i < valueVectorLength; i++) {
    for (j = 0; j < n; j++)
      if (tipVector[i * n + j] > 0.999999999)
        tipVector[i * n + j] = 0.999999999;
  }
  for (i = 0; i < n; i++) {
    rax_free(EIGV[i]);
    rax_free(a[i]);
    rax_free(r[i]);
  }
  rax_free(r);
  rax_free(a);
  rax_free(EIGV);
  rax_free(f);
  rax_free(e);
  rax_free(d);
  rax_free(invfreq);
  rax_free(EIGN);
}
```