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

```asm
<palDmat>:
  endbr64
  push   %r15
  movsd  D23(%rip),%xmm5
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  movl   $0x0,(%r8)
  movsd  %xmm5,(%rcx)
  mov    %rcx,-0x10(%rsp)
  mov    %r8,-0x40(%rsp)
  mov    %r9,-0x38(%rsp)
  test   %edi,%edi
  jle    L308
  mov    %rsi,%r11
  movslq %edi,%rsi
  mov    %rdx,%rbx
  mov    %edi,%r10d
  shl    $0x3,%rsi
  mov    %r11,-0x30(%rsp)
  mov    %r11,%rbp
  mov    %r11,%r12
  lea    0x8(%rsi),%rax
  xor    %r9d,%r9d
  mov    %rcx,%r11
  movq   D35(%rip),%xmm4
  mov    %rax,-0x48(%rsp)
  lea    -0x1(%rdi),%eax
  movq   D6(%rip),%xmm2
  mov    %eax,-0x18(%rsp)
  mov    %edi,%eax
  movsd  D5(%rip),%xmm3
  movapd %xmm4,%xmm6
  shr    %eax
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,-0x20(%rsp)
  mov    %edi,%eax
  and    $0xfffffffe,%eax
  mov    %eax,%r13d
  mov    %eax,-0x14(%rsp)
  mov    $0xf,%eax
  sub    %rsi,%rax
  shl    $0x3,%r13
  mov    %rax,-0x28(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L187:
  movsd  0x0(%rbp),%xmm7
  lea    0x1(%r9),%eax
  mov    %r12,%r8
  mov    %r9d,%r15d
  lea    0x0(,%r9,8),%rcx
  add    %rsi,%r12
  movapd %xmm7,%xmm1
  andpd  %xmm2,%xmm1
  cmp    %eax,%edi
  jle    L62
  mov    %r12,%rdx
  mov    %r8,%r14
L251:
  movsd  (%rdx,%rcx,1),%xmm0
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jbe    L76
  movapd %xmm0,%xmm1
  mov    %rdx,%r14
  mov    %eax,%r15d
L76:
  add    $0x1,%eax
  add    %rsi,%rdx
  cmp    %eax,%edi
  jne    L251
  comisd %xmm1,%xmm3
  ja     L306
  cmp    %r9d,%r15d
  jne    L26
L176:
  movsd  (%r11),%xmm0
L67:
  mulsd  %xmm7,%xmm0
  mov    -0x38(%rsp),%rax
  mov    %r15d,(%rax,%r9,4)
  movsd  %xmm0,(%r11)
  andpd  %xmm2,%xmm0
  comisd %xmm0,%xmm3
  jbe    L144
L306:
  mov    -0x40(%rsp),%rax
  movl   $0xffffffff,(%rax)
L231:
  add    $0x1,%r9
  add    -0x48(%rsp),%rbp
  cmp    %r10,%r9
  jne    L187
  mov    -0x40(%rsp),%rax
  mov    -0x30(%rsp),%r11
  mov    (%rax),%eax
  test   %eax,%eax
  je     L287
  mov    -0x10(%rsp),%rax
  movq   $0x0,(%rax)
L308:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L26:
  mov    -0x28(%rsp),%rax
  add    %r12,%rax
  sub    %r14,%rax
  cmp    $0x1e,%rax
  mov    $0x0,%eax
  jbe    L294
  cmpl   $0x1,-0x18(%rsp)
  jbe    L294
  mov    -0x20(%rsp),%rdx
  nopw   0x0(%rax,%rax,1)
L324:
  movupd (%r8,%rax,1),%xmm0
  movupd (%r14,%rax,1),%xmm7
  movups %xmm7,(%r8,%rax,1)
  movups %xmm0,(%r14,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L324
  cmp    %edi,-0x14(%rsp)
  je     L16
  lea    (%r8,%r13,1),%rax
  add    %r13,%r14
  movsd  (%rax),%xmm0
  movsd  (%r14),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%r14)
L16:
  movslq %r15d,%rax
  movsd  (%rbx,%r9,8),%xmm0
  lea    (%rbx,%rax,8),%rax
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rbx,%r9,8)
  movsd  %xmm0,(%rax)
  movsd  (%r11),%xmm0
  xorpd  %xmm6,%xmm0
  movsd  %xmm0,(%r11)
  movsd  0x0(%rbp),%xmm7
  jmp    L67
  nopl   0x0(%rax)
L294:
  movsd  (%r8,%rax,8),%xmm0
  movsd  (%r14,%rax,8),%xmm1
  movsd  %xmm1,(%r8,%rax,8)
  movsd  %xmm0,(%r14,%rax,8)
  add    $0x1,%rax
  cmp    %r10,%rax
  jne    L294
  jmp    L16
  nopl   0x0(%rax,%rax,1)
L144:
  movapd %xmm5,%xmm0
  xor    %eax,%eax
  divsd  0x0(%rbp),%xmm0
  mov    %r9d,%r14d
  movsd  %xmm0,0x0(%rbp)
  nopl   0x0(%rax,%rax,1)
L276:
  cmp    %eax,%r9d
  je     L32
  mulsd  (%r8,%rax,8),%xmm0
  movsd  %xmm0,(%r8,%rax,8)
  movsd  0x0(%rbp),%xmm0
L32:
  add    $0x1,%rax
  cmp    %r10,%rax
  jne    L276
  movsd  (%rbx,%r9,8),%xmm7
  mov    -0x30(%rsp),%rdx
  xor    %r15d,%r15d
  mulsd  %xmm0,%xmm7
  movsd  %xmm7,(%rbx,%r9,8)
  nop
L218:
  cmp    %r15d,%r14d
  je     L167
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L136:
  cmp    %eax,%r14d
  je     L23
  movsd  (%r8,%rax,8),%xmm1
  mulsd  (%rdx,%rcx,1),%xmm1
  movsd  (%rdx,%rax,8),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
L23:
  add    $0x1,%rax
  cmp    %r10,%rax
  jne    L136
  movsd  (%rdx,%rcx,1),%xmm1
  movsd  (%rbx,%r15,8),%xmm0
  mulsd  %xmm7,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rbx,%r15,8)
L167:
  add    $0x1,%r15
  add    %rsi,%rdx
  cmp    %r10,%r15
  jne    L218
  add    -0x30(%rsp),%rcx
  xor    %eax,%eax
L122:
  cmp    %r14d,%eax
  je     L275
L70:
  movsd  0x0(%rbp),%xmm0
  add    $0x1,%eax
  xorpd  %xmm4,%xmm0
  mulsd  (%rcx),%xmm0
  movsd  %xmm0,(%rcx)
  add    %rsi,%rcx
  cmp    %eax,%edi
  je     L231
  cmp    %r14d,%eax
  jne    L70
L275:
  add    $0x1,%eax
  add    %rsi,%rcx
  cmp    %eax,%edi
  jne    L122
  jmp    L231
  nopl   0x0(%rax,%rax,1)
L62:
  comisd %xmm1,%xmm3
  ja     L306
  jmp    L176
L287:
  mov    -0x18(%rsp),%r10d
  mov    -0x38(%rsp),%rbx
  cmp    $0x1,%edi
  jne    L110
  mov    -0x38(%rsp),%rax
  movslq (%rax),%rax
  test   %eax,%eax
  je     L308
  lea    (%r11,%rax,8),%rax
  movsd  (%r11),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%r11)
  movsd  %xmm0,(%rax)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L266:
  shl    $0x3,%r9
  lea    0x0(,%rax,8),%rcx
  xor    %edx,%edx
  lea    (%r11,%r9,1),%rax
  nopl   0x0(%rax)
L203:
  mov    %rax,%r8
  movsd  (%rax),%xmm0
  add    $0x1,%edx
  sub    %r9,%r8
  movsd  (%r8,%rcx,1),%xmm1
  movsd  %xmm1,(%rax)
  add    %rsi,%rax
  movsd  %xmm0,(%r8,%rcx,1)
  cmp    %edx,%edi
  jne    L203
L35:
  lea    -0x1(%r10),%eax
  test   %r10d,%r10d
  jle    L308
  mov    %eax,%r10d
L110:
  movslq %r10d,%r9
  movslq (%rbx,%r9,4),%rax
  cmp    %r10d,%eax
  je     L35
  jmp    L266
```

tool_calls: name: parse_data
arguments: data_tag: D23
type: f64
name: parse_data
arguments: data_tag: D35
type: f32[2]
name: parse_data
arguments: data_tag: D6
type: qword
name: parse_data
arguments: data_tag: D5
type: byte[8]

tool: D23: 1

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

tool: D6: 9223372036854775807

tool: {"D5": [0x23,0x42,0x92,0x0c,0xa1,0x9c,0xc7,0x3b]}

assistant: ```c
void palDmat(int n, double *a, double *y, double *d, int *jf, int *iw) {
  const double SFA = 1e-20;
  int k;
  double *aoff;
  *jf = 0;
  *d = 1.0;
  for (k = 0, aoff = a; k < n; k++, aoff += n) {
    int imx;
    double *aoff2 = aoff;
    double amx = fabs(aoff[k]);
    imx = k;
    if (k != n) {
      int i;
      double *apos2;
      for (i = k + 1, apos2 = aoff + n; i < n; i++, apos2 += n) {
        double t = fabs(apos2[k]);
        if (t > amx) {
          amx = t;
          imx = i;
          aoff2 = apos2;
        }
      }
    }
    if (amx < SFA) {
      *jf = -1;
    } else {
      if (imx != k) {
        double t;
        int j;
        for (j = 0; j < n; j++) {
          t = aoff[j];
          aoff[j] = aoff2[j];
          aoff2[j] = t;
        }
        t = y[k];
        y[k] = y[imx];
        y[imx] = t;
        *d = -*d;
      }
      iw[k] = imx;
      *d *= aoff[k];
      if (fabs(*d) < SFA) {
        *jf = -1;
      } else {
        double yk;
        double *apos2;
        int i, j;
        aoff[k] = 1.0 / aoff[k];
        for (j = 0; j < n; j++) {
          if (j != k) {
            aoff[j] *= aoff[k];
          }
        }
        yk = y[k] * aoff[k];
        y[k] = yk;
        for (i = 0, apos2 = a; i < n; i++, apos2 += n) {
          if (i != k) {
            for (j = 0; j < n; j++) {
              if (j != k) {
                apos2[j] -= apos2[k] * aoff[j];
              }
            }
            y[i] -= apos2[k] * yk;
          }
        }
        for (i = 0, apos2 = a; i < n; i++, apos2 += n) {
          if (i != k) {
            apos2[k] *= -aoff[k];
          }
        }
      }
    }
  }
  if (*jf != 0) {
    *d = 0.0;
  } else {
    for (k = n; k-- > 0;) {
      int ki = iw[k];
      if (k != ki) {
        int i;
        double *apos = a;
        for (i = 0; i < n; i++, apos += n) {
          double t = apos[k];
          apos[k] = apos[ki];
          apos[ki] = t;
        }
      }
    }
  }
}
```