user: 请从给定的汇编指令推导出C源代码:

```asm
<pseudoinverse>:
  endbr64
  push   %r15
  mov    %rsi,%rax
  mov    %rdi,%rcx
  mov    $0x3,%r11d
  push   %r14
  mov    $0x3,%r15d
  pxor   %xmm4,%xmm4
  pxor   %xmm2,%xmm2
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %edx,%ebx
  lea    -0x1(%rbx),%esi
  mov    %rsi,%r12
  lea    (%rsi,%rsi,2),%rsi
  sub    $0x118,%rsp
  lea    0x0(,%rsi,8),%r13
  movsd  D2(%rip),%xmm3
  mov    %fs:0x28,%rdx
  mov    %rdx,0x108(%rsp)
  xor    %edx,%edx
  lea    0x70(%rsp),%r14
  mov    %rdi,%rdx
  lea    0x18(%rdi,%r13,1),%r8
  mov    %r14,%r10
L70:
  movq   $0x0,0x10(%r10)
  movaps %xmm2,(%r10)
  cmp    $0x3,%r15d
  je     L103
  movq   $0x0,0x18(%r10)
  cmp    $0x4,%r15d
  je     L41
  movq   $0x0,0x20(%r10)
  movapd %xmm3,%xmm0
L200:
  movsd  %xmm0,0x28(%r10)
  lea    -0x3(%r11),%rdi
  mov    %r10,%r9
L94:
  test   %ebx,%ebx
  jle    L165
  movsd  (%r9),%xmm1
  mov    %rbp,%rsi
  xchg   %ax,%ax
L118:
  movsd  (%rsi),%xmm0
  mulsd  (%rsi,%rdi,8),%xmm0
  add    $0x18,%rsi
  addsd  %xmm0,%xmm1
  cmp    %r8,%rsi
  jne    L118
  movsd  %xmm1,(%r9)
L165:
  add    $0x1,%rdi
  add    $0x8,%r9
  cmp    %r11,%rdi
  jne    L94
  add    $0x30,%r10
  add    $0x1,%r15d
  add    $0x8,%rbp
  add    $0x8,%r8
  sub    $0x1,%rdi
  mov    %rdi,%r11
  jne    L70
  mov    %r14,%r8
  mov    %r14,%rsi
  xor    %edi,%edi
L87:
  movsd  (%r14),%xmm3
  movapd (%rsi),%xmm0
  movapd 0x10(%rsi),%xmm2
  movapd 0x20(%rsi),%xmm1
  unpcklpd %xmm3,%xmm3
  divpd  %xmm3,%xmm0
  divpd  %xmm3,%xmm2
  movaps %xmm0,(%rsi)
  divpd  %xmm3,%xmm1
  movaps %xmm2,0x10(%rsi)
  movaps %xmm1,0x20(%rsi)
  test   %edi,%edi
  je     L61
  movapd 0x80(%rsp),%xmm3
  movsd  (%r8),%xmm5
  unpcklpd %xmm5,%xmm5
  mulpd  %xmm5,%xmm2
  mulpd  %xmm5,%xmm1
  mulpd  %xmm5,%xmm0
  subpd  %xmm2,%xmm3
  movapd 0x90(%rsp),%xmm2
  subpd  %xmm1,%xmm2
  movapd 0x70(%rsp),%xmm1
  movaps %xmm3,0x80(%rsp)
  subpd  %xmm0,%xmm1
  movaps %xmm2,0x90(%rsp)
  movaps %xmm1,0x70(%rsp)
  cmp    $0x1,%edi
  jne    L61
L144:
  movapd 0x10(%rsi),%xmm1
  add    $0x1,%edi
  add    $0x38,%r14
  add    $0x30,%rsi
  movsd  0x60(%r8),%xmm0
  movapd -0x10(%rsi),%xmm3
  add    $0x8,%r8
  movapd 0xe0(%rsp),%xmm2
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm0,%xmm1
  mulpd  %xmm0,%xmm3
  mulpd  -0x30(%rsi),%xmm0
  subpd  %xmm1,%xmm2
  movapd 0xf0(%rsp),%xmm1
  subpd  %xmm3,%xmm1
  movapd 0xd0(%rsp),%xmm3
  movaps %xmm2,0xe0(%rsp)
  subpd  %xmm0,%xmm3
  movaps %xmm1,0xf0(%rsp)
  movaps %xmm3,0xd0(%rsp)
  cmp    $0x3,%edi
  jne    L87
  jmp    L122
L61:
  movsd  0x30(%r8),%xmm0
  movapd 0x10(%rsi),%xmm1
  movapd 0xb0(%rsp),%xmm2
  movapd 0x20(%rsi),%xmm3
  unpcklpd %xmm0,%xmm0
  mulpd  %xmm0,%xmm1
  mulpd  %xmm0,%xmm3
  mulpd  (%rsi),%xmm0
  subpd  %xmm1,%xmm2
  movapd 0xc0(%rsp),%xmm1
  subpd  %xmm3,%xmm1
  movapd 0xa0(%rsp),%xmm3
  movaps %xmm2,0xb0(%rsp)
  subpd  %xmm0,%xmm3
  movaps %xmm1,0xc0(%rsp)
  movaps %xmm3,0xa0(%rsp)
  cmp    $0x2,%edi
  jne    L144
L122:
  test   %ebx,%ebx
  jle    L169
  movsd  0x88(%rsp),%xmm2
  lea    0x2f(%rax),%rbp
  movsd  0x90(%rsp),%xmm3
  movsd  0x98(%rsp),%xmm6
  sub    %rcx,%rbp
  movsd  0xb8(%rsp),%xmm7
  movsd  0xc0(%rsp),%xmm8
  movsd  0xc8(%rsp),%xmm9
  movsd  0xe8(%rsp),%xmm10
  movsd  0xf0(%rsp),%xmm11
  movsd  0xf8(%rsp),%xmm12
  cmp    $0x5e,%rbp
  jbe    L98
  cmp    $0x4,%r12d
  jbe    L98
  movapd %xmm7,%xmm5
  mov    %ebx,%r12d
  movapd %xmm2,%xmm14
  mov    %rax,%rbp
  unpcklpd %xmm5,%xmm5
  shr    %r12d
  movapd %xmm3,%xmm13
  unpcklpd %xmm14,%xmm14
  movaps %xmm5,(%rsp)
  movapd %xmm8,%xmm5
  sub    $0x1,%r12d
  unpcklpd %xmm13,%xmm13
  unpcklpd %xmm5,%xmm5
  lea    (%r12,%r12,2),%r12
  movaps %xmm5,0x10(%rsp)
  movapd %xmm10,%xmm5
  shl    $0x4,%r12
  unpcklpd %xmm5,%xmm5
  lea    0x30(%rcx,%r12,1),%r12
  movaps %xmm5,0x20(%rsp)
  movapd %xmm11,%xmm5
  unpcklpd %xmm5,%xmm5
  movaps %xmm5,0x30(%rsp)
  movapd %xmm12,%xmm5
  unpcklpd %xmm5,%xmm5
  movaps %xmm5,0x40(%rsp)
  movapd %xmm6,%xmm5
  unpcklpd %xmm5,%xmm5
  movaps %xmm5,0x50(%rsp)
  movapd %xmm9,%xmm5
  unpcklpd %xmm5,%xmm5
  movaps %xmm5,0x60(%rsp)
  pxor   %xmm5,%xmm5
  nopw   0x0(%rax,%rax,1)
L182:
  movq   $0x0,0x0(%rbp)
  add    $0x30,%rdx
  add    $0x30,%rbp
  movq   $0x0,-0x18(%rbp)
  movupd -0x30(%rdx),%xmm15
  movapd %xmm15,%xmm0
  movhps -0x18(%rdx),%xmm0
  movapd %xmm15,%xmm1
  shufpd $0x1,%xmm15,%xmm1
  movhpd -0x10(%rdx),%xmm1
  mulpd  %xmm14,%xmm0
  mulpd  %xmm13,%xmm1
  addpd  %xmm5,%xmm0
  addpd  %xmm0,%xmm1
  movupd -0x20(%rdx),%xmm0
  unpcklpd %xmm15,%xmm0
  movhps -0x8(%rdx),%xmm0
  movq   $0x0,-0x28(%rbp)
  mulpd  0x50(%rsp),%xmm0
  movq   $0x0,-0x10(%rbp)
  addpd  %xmm1,%xmm0
  movlpd %xmm0,-0x30(%rbp)
  movhpd %xmm0,-0x18(%rbp)
  movupd -0x30(%rdx),%xmm15
  movapd %xmm15,%xmm0
  movhps -0x18(%rdx),%xmm0
  movapd %xmm15,%xmm1
  mulpd  (%rsp),%xmm0
  shufpd $0x1,%xmm15,%xmm1
  movhpd -0x10(%rdx),%xmm1
  mulpd  0x10(%rsp),%xmm1
  addpd  %xmm5,%xmm0
  addpd  %xmm0,%xmm1
  movupd -0x20(%rdx),%xmm0
  unpcklpd %xmm15,%xmm0
  movhps -0x8(%rdx),%xmm0
  movq   $0x0,-0x20(%rbp)
  mulpd  0x60(%rsp),%xmm0
  movq   $0x0,-0x8(%rbp)
  addpd  %xmm1,%xmm0
  movlpd %xmm0,-0x28(%rbp)
  movhpd %xmm0,-0x10(%rbp)
  movupd -0x20(%rdx),%xmm1
  movlpd -0x30(%rdx),%xmm1
  mulpd  0x20(%rsp),%xmm1
  addpd  %xmm5,%xmm1
  movq   %xmm1,-0x20(%rbp)
  movhps %xmm1,-0x8(%rbp)
  movupd -0x30(%rdx),%xmm0
  movupd -0x10(%rdx),%xmm15
  shufpd $0x1,%xmm15,%xmm0
  mulpd  0x30(%rsp),%xmm0
  addpd  %xmm1,%xmm0
  movq   %xmm0,-0x20(%rbp)
  movhps %xmm0,-0x8(%rbp)
  movupd -0x10(%rdx),%xmm1
  movlpd -0x20(%rdx),%xmm1
  mulpd  0x40(%rsp),%xmm1
  addpd  %xmm0,%xmm1
  movq   %xmm1,-0x20(%rbp)
  movhps %xmm1,-0x8(%rbp)
  cmp    %r12,%rdx
  jne    L182
  mov    %ebx,%edx
  and    $0xfffffffe,%edx
  and    $0x1,%ebx
  je     L169
  movslq %edx,%rdx
  lea    (%rdx,%rdx,2),%rdx
  shl    $0x3,%rdx
  add    %rdx,%rax
  add    %rdx,%rcx
  movq   $0x0,(%rax)
  mulsd  (%rcx),%xmm2
  addsd  %xmm4,%xmm2
  movsd  %xmm2,(%rax)
  mulsd  0x8(%rcx),%xmm3
  addsd  %xmm2,%xmm3
  movsd  %xmm3,(%rax)
  mulsd  0x10(%rcx),%xmm6
  movq   $0x0,0x8(%rax)
  movapd %xmm6,%xmm0
  addsd  %xmm3,%xmm0
  movsd  %xmm0,(%rax)
  mulsd  (%rcx),%xmm7
  movapd %xmm7,%xmm1
  addsd  %xmm4,%xmm1
  movsd  %xmm1,0x8(%rax)
  movsd  0x8(%rcx),%xmm0
  mulsd  %xmm8,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rcx),%xmm1
  movq   $0x0,0x10(%rax)
  mulsd  %xmm9,%xmm1
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rax)
  movsd  (%rcx),%xmm1
  mulsd  %xmm10,%xmm1
  addsd  %xmm4,%xmm1
  movsd  %xmm1,0x10(%rax)
  movsd  0x8(%rcx),%xmm0
  mulsd  %xmm11,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x10(%rax)
  movsd  0x10(%rcx),%xmm1
  mulsd  %xmm12,%xmm1
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x10(%rax)
L169:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L77
  add    $0x118,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L41:
  movsd  %xmm3,0xc0(%rsp)
  movapd %xmm4,%xmm0
  jmp    L200
L103:
  movsd  %xmm3,0x88(%rsp)
  movapd %xmm4,%xmm0
  movq   $0x0,0x20(%r10)
  jmp    L200
L98:
  lea    0x18(%rax,%r13,1),%rcx
  nopw   0x0(%rax,%rax,1)
L65:
  movq   $0x0,(%rax)
  movsd  (%rdx),%xmm1
  add    $0x18,%rax
  add    $0x18,%rdx
  mulsd  %xmm2,%xmm1
  addsd  %xmm4,%xmm1
  movsd  %xmm1,-0x18(%rax)
  movsd  -0x10(%rdx),%xmm0
  mulsd  %xmm3,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rax)
  movsd  -0x8(%rdx),%xmm1
  movq   $0x0,-0x10(%rax)
  mulsd  %xmm6,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rax)
  movsd  -0x18(%rdx),%xmm1
  mulsd  %xmm7,%xmm1
  addsd  %xmm4,%xmm1
  movsd  %xmm1,-0x10(%rax)
  movsd  -0x10(%rdx),%xmm0
  mulsd  %xmm8,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rax)
  movsd  -0x8(%rdx),%xmm1
  movq   $0x0,-0x8(%rax)
  mulsd  %xmm9,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rax)
  movsd  -0x18(%rdx),%xmm1
  mulsd  %xmm10,%xmm1
  addsd  %xmm4,%xmm1
  movsd  %xmm1,-0x8(%rax)
  movsd  -0x10(%rdx),%xmm0
  mulsd  %xmm11,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rax)
  movsd  -0x8(%rdx),%xmm1
  mulsd  %xmm12,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rcx
  jne    L65
  jmp    L169
L77:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D2
type: byte[8]

tool: {"D2": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
void pseudoinverse(double (*in)[3], double (*out)[3], int size) {
  double work[3][6], num;
  int i, j, k;
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 6; j++)
      work[i][j] = j == i + 3;
    for (j = 0; j < 3; j++)
      for (k = 0; k < size; k++)
        work[i][j] += in[k][i] * in[k][j];
  }
  for (i = 0; i < 3; i++) {
    num = work[i][i];
    for (j = 0; j < 6; j++)
      work[i][j] /= num;
    for (k = 0; k < 3; k++) {
      if (k == i)
        continue;
      num = work[k][i];
      for (j = 0; j < 6; j++)
        work[k][j] -= work[i][j] * num;
    }
  }
  for (i = 0; i < size; i++)
    for (j = 0; j < 3; j++)
      for (out[i][j] = k = 0; k < 3; k++)
        out[i][j] += work[j][k + 3] * in[i][k];
}
```