user: Demonstrate the C code that generates the assembly output below:

```asm
<eigen_double>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,%ecx
  mov    %edi,-0x54(%rbp)
  mov    %rsi,%r14
  mov    %rdx,%r12
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %edi,%rax
  shl    $0x3,%rax
  lea    0xf(%rax),%rdx
  mov    %rdx,%rdi
  and    $0xfffffffffffffff0,%rdi
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rsi
  sub    %rdx,%rsi
L102:
  cmp    %rsi,%rsp
  je     L134
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L102
L134:
  mov    %rdi,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L29
  orq    $0x0,-0x8(%rsp,%rdx,1)
L29:
  mov    %rsp,%r13
  add    $0xf,%rax
  mov    %rax,%rsi
  and    $0xfffffffffffffff0,%rsi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L167:
  cmp    %rdx,%rsp
  je     L77
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L167
L77:
  mov    %rsi,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L131
  orq    $0x0,-0x8(%rsp,%rax,1)
L131:
  mov    %rsp,%rbx
  imul   %ecx,%ecx
  movslq %ecx,%rax
  shl    $0x3,%rax
  lea    0xf(%rax),%rdx
  mov    %rdx,%rsi
  and    $0xfffffffffffffff0,%rsi
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rcx
  sub    %rdx,%rcx
L163:
  cmp    %rcx,%rsp
  je     L103
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L163
L103:
  mov    %rsi,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L135
  orq    $0x0,-0x8(%rsp,%rdx,1)
L135:
  mov    %rsp,-0x60(%rbp)
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffffff0,%rdx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L178:
  cmp    %rcx,%rsp
  je     L89
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L178
L89:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L38
  orq    $0x0,-0x8(%rsp,%rax,1)
L38:
  mov    %rsp,%rdi
  movl   $0xffffffff,-0x44(%rbp)
  lea    -0x54(%rbp),%r15
  lea    -0x48(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  push   %rax
  lea    -0x44(%rbp),%rcx
  mov    %rcx,-0x78(%rbp)
  push   %rcx
  lea    -0x40(%rbp),%rax
  push   %rax
  push   %r15
  mov    %rdi,-0x70(%rbp)
  push   %rdi
  push   %r15
  push   -0x60(%rbp)
  push   %rbx
  mov    %r13,%r9
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    %r15,%rdx
  lea    D23(%rip),%rsi
  mov    %rsi,%rdi
  call   <dgeev_@plt>
  cvttsd2si -0x40(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  add    $0x40,%rsp
  lea    0x0(,%rax,8),%edi
  call   <malloc@plt>
  push   -0x68(%rbp)
  push   -0x78(%rbp)
  mov    %rax,-0x68(%rbp)
  push   %rax
  push   %r15
  push   -0x70(%rbp)
  push   %r15
  push   -0x60(%rbp)
  push   %rbx
  mov    %r13,%r9
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    %r15,%rdx
  lea    D23(%rip),%rsi
  mov    %rsi,%rdi
  call   <dgeev_@plt>
  add    $0x40,%rsp
  mov    -0x68(%rbp),%rdi
  call   <free@plt>
  mov    -0x54(%rbp),%edx
  test   %edx,%edx
  jle    L19
  mov    %edx,%edx
  mov    $0x0,%eax
  pxor   %xmm0,%xmm0
  movsd  D29(%rip),%xmm4
  movapd %xmm0,%xmm3
  movapd %xmm0,%xmm1
  jmp    L78
L32:
  movapd %xmm4,%xmm2
  divsd  %xmm3,%xmm2
  movsd  %xmm2,(%r12,%rax,8)
L69:
  add    $0x1,%rax
  cmp    %rdx,%rax
  je     L19
L78:
  ucomisd (%rbx,%rax,8),%xmm0
  jp     L32
  ucomisd (%rbx,%rax,8),%xmm1
  jne    L32
  movsd  0x0(%r13,%rax,8),%xmm2
  movsd  %xmm2,(%r12,%rax,8)
  jmp    L69
L19:
  cmpl   $0x0,-0x48(%rbp)
  setg   %al
  movzbl %al,%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L116
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L116:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D23
type_infered: string
name: disassemble_data
arguments: data_tag: D29
type_infered: f64

tool: D23: Vectors

tool: D29: 1

assistant: ```c
int eigen_double(int n, double *a, double *out) {
  int j;
  int info, lwork;
  double wkopt;
  double *work;
  double wr[n], wi[n], vl[n * n], vr[n * n];
  lwork = -1;
  dgeev_("Vectors", "Vectors", &n, a, &n, wr, wi, vl, &n, vr, &n, &wkopt, &lwork, &info);
  lwork = (int)wkopt;
  work = (double *)malloc(lwork * sizeof(double));
  dgeev_("Vectors", "Vectors", &n, a, &n, wr, wi, vl, &n, vr, &n, work, &lwork, &info);
  free((void *)work);
  for (j = 0; j < n; j++) {
    if (wi[j] == (double)0.0) {
      out[j] = wr[j];
    } else {
      out[j] = (double)(1.0 / 0.0);
    }
  }
  if (info > 0) {
    return 1;
  } else {
    return 0;
  }
}
```