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

```asm
<lkep_drift3>:
  endbr64
  push   %r14
  pxor   %xmm6,%xmm6
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0xe8,%rsp
  movsd  0x8(%rdi),%xmm5
  movsd  0x10(%rdi),%xmm4
  movsd  %xmm1,0x20(%rsp)
  movsd  (%rdi),%xmm1
  movsd  %xmm0,0x10(%rsp)
  movapd %xmm5,%xmm2
  mov    %fs:0x28,%rax
  mov    %rax,0xd8(%rsp)
  xor    %eax,%eax
  mulsd  %xmm5,%xmm2
  movapd %xmm1,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  movapd %xmm4,%xmm2
  mulsd  %xmm4,%xmm2
  addsd  %xmm2,%xmm0
  ucomisd %xmm0,%xmm6
  ja     L7
  sqrtsd %xmm0,%xmm0
  movsd  %xmm0,0x8(%rsp)
L6:
  movsd  (%r12),%xmm0
  movsd  0x8(%r12),%xmm3
  movsd  0x10(%r12),%xmm2
  movsd  0x10(%rsp),%xmm7
  mulsd  %xmm3,%xmm5
  mulsd  %xmm0,%xmm1
  movapd %xmm7,%xmm6
  mulsd  %xmm0,%xmm0
  addsd  %xmm7,%xmm6
  divsd  0x8(%rsp),%xmm6
  mulsd  %xmm3,%xmm3
  mulsd  %xmm2,%xmm4
  mulsd  %xmm2,%xmm2
  addsd  %xmm5,%xmm1
  pxor   %xmm5,%xmm5
  addsd  %xmm3,%xmm0
  addsd  %xmm4,%xmm1
  addsd  %xmm2,%xmm0
  movsd  %xmm1,0x18(%rsp)
  subsd  %xmm0,%xmm6
  comisd %xmm5,%xmm6
  ja     L24
  movsd  D170(%rip),%xmm7
  movq   $0x0,0x90(%rsp)
  movsd  %xmm7,0x88(%rsp)
L28:
  movsd  D81(%rip),%xmm0
  mulsd  0x8(%rsp),%xmm0
  mov    $0xe,%ebx
  movsd  0x20(%rsp),%xmm7
  divsd  %xmm0,%xmm7
  jmp    L167
  nopl   0x0(%rax,%rax,1)
L139:
  movapd %xmm6,%xmm11
  movsd  D61(%rip),%xmm2
  movsd  D76(%rip),%xmm9
  movsd  %xmm6,0x48(%rsp)
  addsd  %xmm6,%xmm11
  movsd  %xmm7,0x78(%rsp)
  movsd  D76(%rip),%xmm14
  subsd  %xmm0,%xmm9
  mulsd  %xmm7,%xmm11
  movsd  %xmm9,0x38(%rsp)
  divsd  %xmm1,%xmm11
  divsd  %xmm1,%xmm11
  movapd %xmm0,%xmm1
  addsd  %xmm0,%xmm1
  subsd  %xmm1,%xmm14
  movapd %xmm9,%xmm1
  addsd  %xmm9,%xmm1
  movsd  %xmm14,0x40(%rsp)
  mulsd  %xmm7,%xmm1
  mulsd  %xmm1,%xmm2
  movsd  %xmm1,0x30(%rsp)
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm2
  movsd  %xmm11,0x80(%rsp)
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm2
  movsd  %xmm2,0x28(%rsp)
  call   <G_func2@plt>
  movsd  0x40(%rsp),%xmm14
  movsd  0x30(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm7
  movsd  0x18(%rsp),%xmm6
  movapd %xmm14,%xmm3
  movapd %xmm1,%xmm8
  movsd  0x10(%rsp),%xmm15
  movsd  0x28(%rsp),%xmm2
  addsd  %xmm14,%xmm3
  addsd  %xmm1,%xmm8
  movapd %xmm7,%xmm5
  movsd  0x38(%rsp),%xmm9
  mulsd  %xmm0,%xmm2
  movapd %xmm7,%xmm4
  movsd  D81(%rip),%xmm12
  addsd  0x90(%rsp),%xmm2
  movsd  %xmm9,0x68(%rsp)
  mulsd  %xmm3,%xmm14
  subsd  D76(%rip),%xmm14
  mulsd  %xmm1,%xmm3
  mulsd  %xmm1,%xmm8
  movapd %xmm6,%xmm1
  mulsd  %xmm9,%xmm12
  mulsd  %xmm14,%xmm5
  movsd  %xmm14,0x70(%rsp)
  mulsd  %xmm3,%xmm1
  movsd  %xmm3,0x58(%rsp)
  mulsd  %xmm3,%xmm4
  movsd  %xmm8,0x50(%rsp)
  movapd %xmm12,%xmm10
  movsd  %xmm12,0x40(%rsp)
  addsd  %xmm1,%xmm5
  movapd %xmm15,%xmm1
  mulsd  %xmm8,%xmm1
  addsd  %xmm1,%xmm5
  movapd %xmm6,%xmm1
  movsd  0x48(%rsp),%xmm6
  mulsd  %xmm8,%xmm1
  mulsd  %xmm6,%xmm2
  movsd  %xmm6,0x60(%rsp)
  mulsd  %xmm5,%xmm10
  movsd  %xmm5,0x38(%rsp)
  movsd  D167(%rip),%xmm5
  addsd  %xmm1,%xmm4
  movapd %xmm3,%xmm1
  mulsd  %xmm8,%xmm1
  movsd  %xmm10,0x28(%rsp)
  movsd  %xmm4,0x98(%rsp)
  movapd %xmm1,%xmm0
  divsd  D111(%rip),%xmm0
  addsd  %xmm0,%xmm2
  movapd %xmm10,%xmm0
  mulsd  %xmm15,%xmm2
  addsd  %xmm4,%xmm2
  movapd %xmm2,%xmm13
  subsd  0x20(%rsp),%xmm13
  movsd  %xmm2,0x48(%rsp)
  mulsd  %xmm13,%xmm5
  movsd  %xmm13,0x30(%rsp)
  movq   %xmm5,%r14
  call   <dsignum@plt>
  movsd  0x60(%rsp),%xmm6
  pxor   %xmm7,%xmm7
  movsd  0x28(%rsp),%xmm10
  movapd %xmm0,%xmm4
  movsd  0x8(%rsp),%xmm0
  movsd  D103(%rip),%xmm3
  movsd  0x10(%rsp),%xmm1
  movsd  0x70(%rsp),%xmm14
  mulsd  %xmm6,%xmm0
  movsd  0x40(%rsp),%xmm12
  movsd  0x68(%rsp),%xmm9
  mulsd  %xmm10,%xmm3
  movsd  0x38(%rsp),%xmm5
  movsd  0x80(%rsp),%xmm11
  mulsd  0x18(%rsp),%xmm14
  movsd  0x30(%rsp),%xmm13
  mulsd  %xmm5,%xmm11
  movsd  0x48(%rsp),%xmm2
  movsd  0x50(%rsp),%xmm8
  mulsd  D185(%rip),%xmm13
  subsd  %xmm0,%xmm1
  movapd %xmm3,%xmm15
  movsd  0x58(%rsp),%xmm3
  mulsd  %xmm10,%xmm15
  mulsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  addsd  %xmm14,%xmm0
  mulsd  %xmm12,%xmm0
  mulsd  %xmm9,%xmm0
  subsd  %xmm11,%xmm0
  mulsd  D81(%rip),%xmm0
  mulsd  %xmm13,%xmm0
  subsd  %xmm0,%xmm15
  movapd %xmm15,%xmm0
  andpd  D116(%rip),%xmm0
  ucomisd %xmm0,%xmm7
  movsd  0x78(%rsp),%xmm7
  ja     L185
  sqrtsd %xmm0,%xmm0
L168:
  mulsd  %xmm0,%xmm4
  movq   %r14,%xmm0
  addsd  %xmm10,%xmm4
  divsd  %xmm4,%xmm0
  movsd  0x20(%rsp),%xmm4
  addsd  %xmm0,%xmm7
  movapd %xmm4,%xmm0
  subsd  %xmm2,%xmm0
  divsd  %xmm4,%xmm0
  andpd  D116(%rip),%xmm0
  comisd D156(%rip),%xmm0
  jbe    L95
L167:
  movapd %xmm7,%xmm0
  movsd  D76(%rip),%xmm1
  mulsd  %xmm6,%xmm0
  mulsd  %xmm7,%xmm0
  addsd  %xmm0,%xmm1
  divsd  %xmm1,%xmm0
  comisd 0x88(%rsp),%xmm0
  ja     L103
  sub    $0x1,%ebx
  jne    L139
L103:
  mov    $0xffffffff,%eax
L54:
  mov    0xd8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L183
  add    $0xe8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L24:
  mulsd  D205(%rip),%xmm7
  movapd %xmm6,%xmm1
  mulsd  %xmm6,%xmm1
  movapd %xmm7,%xmm2
  mulsd  %xmm6,%xmm1
  ucomisd %xmm1,%xmm5
  ja     L187
  movapd %xmm1,%xmm0
  sqrtsd %xmm0,%xmm0
L61:
  movsd  D170(%rip),%xmm7
  divsd  %xmm0,%xmm2
  movsd  %xmm1,0x30(%rsp)
  movsd  %xmm6,0x28(%rsp)
  movsd  %xmm7,0x88(%rsp)
  movapd %xmm7,%xmm0
  movsd  0x18(%rsp),%xmm7
  movapd %xmm7,%xmm3
  addsd  %xmm7,%xmm3
  divsd  %xmm6,%xmm3
  mulsd  %xmm2,%xmm0
  addsd  0x20(%rsp),%xmm0
  subsd  %xmm3,%xmm0
  divsd  %xmm2,%xmm0
  call   <floor@plt>
  movsd  0x28(%rsp),%xmm6
  movsd  0x30(%rsp),%xmm1
  pxor   %xmm7,%xmm7
  add    %eax,%eax
  pxor   %xmm2,%xmm2
  mulsd  %xmm6,%xmm1
  cvtsi2sd %eax,%xmm2
  mulsd  D25(%rip),%xmm2
  mulsd  %xmm6,%xmm1
  ucomisd %xmm1,%xmm7
  ja     L57
  sqrtsd %xmm1,%xmm1
L195:
  divsd  %xmm1,%xmm2
  movsd  %xmm2,0x90(%rsp)
  jmp    L28
  nopw   0x0(%rax,%rax,1)
L95:
  movsd  0x10(%rsp),%xmm7
  movsd  0x8(%rsp),%xmm2
  xor    %eax,%eax
  lea    0xa0(%rsp),%rdx
  movsd  D76(%rip),%xmm6
  lea    0xc0(%rsp),%rcx
  movapd %xmm7,%xmm0
  movapd %xmm7,%xmm4
  xorpd  D71(%rip),%xmm4
  divsd  %xmm2,%xmm0
  mulsd  %xmm3,%xmm4
  mulsd  %xmm5,%xmm2
  divsd  %xmm5,%xmm7
  mulsd  %xmm8,%xmm0
  subsd  %xmm0,%xmm6
  movsd  D76(%rip),%xmm0
  divsd  %xmm2,%xmm4
  movapd %xmm7,%xmm1
  movsd  0x98(%rsp),%xmm7
  mulsd  %xmm8,%xmm1
  subsd  %xmm1,%xmm0
L60:
  movsd  0x0(%rbp,%rax,1),%xmm1
  movsd  (%r12,%rax,1),%xmm2
  movapd %xmm7,%xmm3
  mulsd  %xmm2,%xmm3
  movapd %xmm1,%xmm5
  mulsd  %xmm6,%xmm5
  mulsd  %xmm4,%xmm1
  mulsd  %xmm0,%xmm2
  addsd  %xmm5,%xmm3
  addsd  %xmm2,%xmm1
  movsd  %xmm3,(%rdx,%rax,1)
  movsd  %xmm1,(%rcx,%rax,1)
  add    $0x8,%rax
  cmp    $0x18,%rax
  jne    L60
  lea    0x17(%rbp),%rax
  sub    %r12,%rax
  cmp    $0x2e,%rax
  jbe    L113
  movdqa (%rdx),%xmm6
  mov    0x10(%rdx),%rax
  movups %xmm6,0x0(%rbp)
  movdqa (%rcx),%xmm6
  mov    %rax,0x10(%rbp)
  mov    0x10(%rcx),%rax
  movups %xmm6,(%r12)
  mov    %rax,0x10(%r12)
  xor    %eax,%eax
  jmp    L54
L113:
  xor    %eax,%eax
L163:
  movsd  (%rdx,%rax,1),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,1)
  movsd  (%rcx,%rax,1),%xmm0
  movsd  %xmm0,(%r12,%rax,1)
  add    $0x8,%rax
  cmp    $0x18,%rax
  jne    L163
  xor    %eax,%eax
  jmp    L54
L185:
  movsd  %xmm5,0x60(%rsp)
  movsd  %xmm8,0x58(%rsp)
  movsd  %xmm3,0x50(%rsp)
  movsd  %xmm6,0x48(%rsp)
  movsd  %xmm7,0x40(%rsp)
  movsd  %xmm10,0x38(%rsp)
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm4,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x60(%rsp),%xmm5
  movsd  0x58(%rsp),%xmm8
  movsd  0x50(%rsp),%xmm3
  movsd  0x48(%rsp),%xmm6
  movsd  0x40(%rsp),%xmm7
  movsd  0x38(%rsp),%xmm10
  movsd  0x30(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm4
  jmp    L168
L7:
  movsd  %xmm4,0x30(%rsp)
  movsd  %xmm5,0x28(%rsp)
  movsd  %xmm1,0x18(%rsp)
  call   <sqrt@plt>
  movsd  0x30(%rsp),%xmm4
  movsd  0x28(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm1
  movsd  %xmm0,0x8(%rsp)
  jmp    L6
L183:
  call   <__stack_chk_fail@plt>
L187:
  movapd %xmm1,%xmm0
  movsd  %xmm6,0x38(%rsp)
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm1,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x38(%rsp),%xmm6
  movsd  0x30(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm1
  jmp    L61
L57:
  movapd %xmm1,%xmm0
  movsd  %xmm6,0x30(%rsp)
  movsd  %xmm2,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x30(%rsp),%xmm6
  movsd  0x28(%rsp),%xmm2
  movapd %xmm0,%xmm1
  jmp    L195
```

tool_calls: name: retrieve_data
arguments: data_tag: D170
type_infered: f64
name: retrieve_data
arguments: data_tag: D81
type_infered: f32[2]
name: retrieve_data
arguments: data_tag: D61
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D76
type_infered: f32[2]
name: retrieve_data
arguments: data_tag: D167
type_infered: f32[2]
name: retrieve_data
arguments: data_tag: D111
type_infered: f64
name: retrieve_data
arguments: data_tag: D103
type_infered: f64
name: retrieve_data
arguments: data_tag: D185
type_infered: f32[2]
name: retrieve_data
arguments: data_tag: D116
type_infered: qword[2]
name: retrieve_data
arguments: data_tag: D156
type_infered: byte[16]
name: retrieve_data
arguments: data_tag: D205
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D25
type_infered: f64
name: retrieve_data
arguments: data_tag: D71
type_infered: f32[4]

tool: D170: 0.5

tool: {"D81": [0.0,2.25]}

tool: {"D61": [0x11,0x11,0x11,0x11,0x11,0x11,0xf1,0x3f]}

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

tool: {"D167": [0.0,-2.3125]}

tool: D111: 3

tool: D103: 16

tool: {"D185": [0.0,2.8125]}

tool: {"D116": [0x7fffffffffffffff,0x0000000000000000]}

tool: {"D156": [0xbb,0xbd,0xd7,0xd9,0xdf,0x7c,0xdb,0x3d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D205": [0x18,0x2d,0x44,0x54,0xfb,0x21,0x19,0x40]}

tool: D25: 3.141592653589793

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

assistant: ```c
int lkep_drift3(double mu, double *r0, double *v0, double dt) {
  double r0mag, v0mag2;
  double r0v0;
  double rcalc, dtcalc, terr;
  double u;
  double beta;
  double P;
  double dU;
  int n;
  double q;
  double U0w2, U1w2;
  double U, U0, U1, U2, U3;
  double f, g, F, G;
  double r1[3], v1[3];
  int d;
  double ln = 5.0;
  int no_iter;
  double du, dqdu, drdu, fn, fnp, fnpp;
  r0mag = sqrt(r0[0] * r0[0] + r0[1] * r0[1] + r0[2] * r0[2]);
  v0mag2 = v0[0] * v0[0] + v0[1] * v0[1] + v0[2] * v0[2];
  r0v0 = r0[0] * v0[0] + r0[1] * v0[1] + r0[2] * v0[2];
  beta = 2 * mu / r0mag - v0mag2;
  if (beta > 0) {
    P = 2 * ((double)3.14159265358979323846264338327950288419716939937510) * mu / sqrt(beta * beta * beta);
    n = floor((dt + P / 2.0 - 2 * r0v0 / beta) / P);
    dU = 2 * n * ((double)3.14159265358979323846264338327950288419716939937510) / sqrt(beta * beta * beta * beta * beta);
  } else {
    dU = 0.0;
  }
  u = dt / (4 * r0mag);
  no_iter = 0;
  do {
    q = beta * u * u / (1 + beta * u * u);
    if (q > 0.5 || no_iter > 12)
      return -1;
    dqdu = 2 * beta * u / (1 + beta * u * u) / (1 + beta * u * u);
    U0w2 = 1 - 2 * q;
    U1w2 = 2 * (1 - q) * u;
    U = 16.0 / 15 * U1w2 * U1w2 * U1w2 * U1w2 * U1w2 * G_func2(q) + dU;
    U0 = 2 * U0w2 * U0w2 - 1;
    U1 = 2 * U0w2 * U1w2;
    U2 = 2 * U1w2 * U1w2;
    U3 = beta * U + U1 * U2 / 3.0;
    rcalc = r0mag * U0 + r0v0 * U1 + mu * U2;
    drdu = 4 * (1 - q) * (r0v0 * U0 + (mu - beta * r0mag) * U1);
    dtcalc = r0mag * U1 + r0v0 * U2 + mu * U3;
    fn = dtcalc - dt;
    fnp = 4 * (1 - q) * rcalc;
    fnpp = 4 * (drdu * (1 - q) - rcalc * dqdu);
    du = -ln * fn / (fnp + dsignum(fnp) * sqrt(fabs((ln - 1) * (ln - 1) * fnp * fnp - ln * (ln - 1) * fn * fnpp)));
    u += du;
    no_iter++;
    terr = fabs((dt - dtcalc) / dt);
  } while (terr > 1e-10);
  f = 1 - (mu / r0mag) * U2;
  g = r0mag * U1 + r0v0 * U2;
  F = -mu * U1 / (rcalc * r0mag);
  G = 1 - (mu / rcalc) * U2;
  for (d = 0; d < 3; d++) {
    r1[d] = f * r0[d] + g * v0[d];
    v1[d] = F * r0[d] + G * v0[d];
  }
  for (d = 0; d < 3; d++) {
    r0[d] = r1[d];
    v0[d] = v1[d];
  }
  return 0;
}
```