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

```asm
<func_xyz>:
  endbr64
  push   %r15
  lea    (%rsi,%rsi,2),%eax
  mov    %r9,%r15
  push   %r14
  cltq
  mov    %esi,%r14d
  push   %r13
  lea    (%rdi,%rax,8),%r13
  lea    0x18(%r9),%rax
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %r8d,%ebx
  sub    $0x58,%rsp
  mulsd  D6(%rip),%xmm1
  mov    0x90(%rsp),%ebp
  mov    %edx,0x4(%rsp)
  mov    %ecx,0x30(%rsp)
  mov    %rax,0x38(%rsp)
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm1,0x10(%rsp)
  fldl   0x10(%rsp)
  fld    %st(0)
  fld    %st(1)
  faddp  %st,%st(2)
  fxch   %st(1)
  fstpt  0x40(%rsp)
L45:
  fld    %st(0)
  movsd  0x8(%rsp),%xmm0
  mov    0x30(%rsp),%ecx
  mov    %ebx,%r8d
  fstpt  0x10(%rsp)
  faddl  0x0(%r13)
  mov    0x4(%rsp),%edx
  mov    %r14d,%esi
  mov    %r12,%rdi
  fstpl  0x0(%r13)
  call   <qual_delta@plt>
  fldt   0x10(%rsp)
  fld    %st(0)
  fsubrl 0x0(%r13)
  fstpl  0x10(%rsp)
  fldl   0x10(%rsp)
  test   %ebp,%ebp
  jle    L21
  xor    %edx,%edx
  fld1
  nopl   0x0(%rax,%rax,1)
L38:
  fdiv   %st(3),%st
  mov    %edx,%eax
  lea    0x1(%rdx),%edx
  cmp    %edx,%ebp
  jne    L38
  fstp   %st(3)
  fxch   %st(1)
  fxch   %st(2)
  fstpt  0x20(%rsp)
  movsd  0x8(%rsp),%xmm0
  mov    %ebx,%r8d
  mov    %r14d,%esi
  mov    0x4(%rsp),%edx
  mov    0x30(%rsp),%ecx
  mov    %r12,%rdi
  mov    %eax,0x34(%rsp)
  fsub   %st(1),%st
  fxch   %st(1)
  fstpt  0x10(%rsp)
  fstpl  0x0(%r13)
  call   <qual_delta@plt>
  mov    0x34(%rsp),%eax
  xor    %edx,%edx
  fldt   0x10(%rsp)
  fld    %st(0)
  faddl  0x0(%r13)
  fstpl  0x10(%rsp)
  movsd  0x10(%rsp),%xmm0
  fldt   0x20(%rsp)
  fld1
  nopl   0x0(%rax)
L23:
  mov    %edx,%ecx
  add    $0x1,%edx
  fdiv   %st(3),%st
  cmp    %eax,%ecx
  jne    L23
  fstp   %st(3)
  fxch   %st(1)
  fxch   %st(2)
  fsubrp %st,%st(1)
L7:
  fldt   0x40(%rsp)
  movsd  %xmm0,0x0(%r13)
  add    $0x8,%r15
  add    $0x8,%r13
  fdivrp %st,%st(1)
  fstpl  -0x8(%r15)
  cmp    %r15,0x38(%rsp)
  jne    L45
  fstp   %st(0)
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L21:
  fstp   %st(2)
  fxch   %st(1)
  fsub   %st(1),%st
  fxch   %st(1)
  movsd  0x8(%rsp),%xmm0
  mov    0x30(%rsp),%ecx
  mov    %ebx,%r8d
  mov    0x4(%rsp),%edx
  mov    %r14d,%esi
  mov    %r12,%rdi
  fstpt  0x10(%rsp)
  fstpl  0x0(%r13)
  call   <qual_delta@plt>
  fstp   %st(0)
  fldt   0x10(%rsp)
  fld    %st(0)
  faddl  0x0(%r13)
  fstpl  0x10(%rsp)
  movsd  0x10(%rsp),%xmm0
  fldz
  jmp    L7
```

tool_calls: name: unpack_data
arguments: data_tag: D6
datatype: byte[8]

tool: {"D6": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0xb0,0x3e]}

assistant: ```c
int func_xyz(double *vertex, int v, int v1, int v2, int v3, double dx[3], double delta, double ds, int n) {
  long double h = ds * 1e-6;
  long double q1, q2, f1, f2;
  int i, j;
  for (i = 0; i < 3; i++) {
    vertex[3 * v + i] += h;
    q1 = qual_delta(vertex, v, v1, v2, v3, delta);
    vertex[3 * v + i] -= h;
    for (f1 = 1.0, j = 0; j < n; j++)
      f1 /= q1;
    vertex[3 * v + i] -= h;
    q2 = qual_delta(vertex, v, v1, v2, v3, delta);
    vertex[3 * v + i] += h;
    for (f2 = 1.0, j = 0; j < n; j++)
      f2 /= q2;
    dx[i] = (f1 - f2) / (2.0 * h);
  }
  return 0;
}
```