user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<lkep_drift3>:
  endbr64
  push   %r12
  pxor   %xmm7,%xmm7
  mov    %rdi,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0xe0,%rsp
  movsd  0x8(%rdi),%xmm5
  movsd  0x10(%rdi),%xmm4
  movsd  %xmm1,0x18(%rsp)
  movsd  (%rdi),%xmm1
  movsd  %xmm0,0x8(%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,%xmm7
  ja     L43
  sqrtsd %xmm0,%xmm0
  movsd  %xmm0,(%rsp)
L121:
  movsd  0x0(%rbp),%xmm0
  movsd  0x8(%rbp),%xmm3
  movsd  0x10(%rbp),%xmm2
  movsd  0x8(%rsp),%xmm6
  mulsd  %xmm3,%xmm5
  mulsd  %xmm0,%xmm1
  mulsd  %xmm3,%xmm3
  mulsd  %xmm0,%xmm0
  mulsd  %xmm2,%xmm4
  mulsd  %xmm2,%xmm2
  addsd  %xmm5,%xmm1
  movapd %xmm6,%xmm5
  addsd  %xmm6,%xmm5
  divsd  (%rsp),%xmm5
  addsd  %xmm3,%xmm0
  addsd  %xmm4,%xmm1
  addsd  %xmm2,%xmm0
  movsd  %xmm1,0x10(%rsp)
  subsd  %xmm0,%xmm5
  comisd %xmm7,%xmm5
  ja     L19
  movsd  D77(%rip),%xmm3
  movq   $0x0,0x90(%rsp)
  movsd  %xmm3,0x88(%rsp)
L47:
  movsd  D139(%rip),%xmm0
  mulsd  (%rsp),%xmm0
  mov    $0xe,%ebx
  movsd  0x18(%rsp),%xmm6
  divsd  %xmm0,%xmm6
  jmp    L150
  nopl   (%rax)
L31:
  movapd %xmm5,%xmm15
  movsd  D157(%rip),%xmm2
  movsd  D235(%rip),%xmm8
  movsd  %xmm5,0x40(%rsp)
  addsd  %xmm5,%xmm15
  movsd  %xmm6,0x78(%rsp)
  movsd  D235(%rip),%xmm11
  subsd  %xmm0,%xmm8
  mulsd  %xmm6,%xmm15
  movsd  %xmm8,0x30(%rsp)
  divsd  %xmm1,%xmm15
  divsd  %xmm1,%xmm15
  movapd %xmm0,%xmm1
  addsd  %xmm0,%xmm1
  subsd  %xmm1,%xmm11
  movapd %xmm8,%xmm1
  addsd  %xmm8,%xmm1
  movsd  %xmm11,0x38(%rsp)
  mulsd  %xmm6,%xmm1
  mulsd  %xmm1,%xmm2
  movsd  %xmm1,0x28(%rsp)
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm2
  movsd  %xmm15,0x80(%rsp)
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm2
  movsd  %xmm2,0x20(%rsp)
  call   <G_func2@plt>
  movsd  0x28(%rsp),%xmm1
  movsd  (%rsp),%xmm6
  movsd  0x38(%rsp),%xmm11
  movsd  0x10(%rsp),%xmm5
  movapd %xmm1,%xmm7
  movapd %xmm6,%xmm4
  movapd %xmm6,%xmm9
  movsd  0x8(%rsp),%xmm10
  movapd %xmm11,%xmm3
  addsd  %xmm1,%xmm7
  movsd  0x20(%rsp),%xmm2
  movsd  0x30(%rsp),%xmm8
  movsd  D139(%rip),%xmm13
  addsd  %xmm11,%xmm3
  mulsd  %xmm0,%xmm2
  movsd  %xmm8,0x68(%rsp)
  addsd  0x90(%rsp),%xmm2
  mulsd  %xmm1,%xmm7
  mulsd  %xmm3,%xmm11
  subsd  D235(%rip),%xmm11
  mulsd  %xmm1,%xmm3
  movapd %xmm5,%xmm1
  mulsd  %xmm8,%xmm13
  mulsd  %xmm11,%xmm4
  movsd  %xmm11,0x70(%rsp)
  movsd  %xmm7,0x50(%rsp)
  mulsd  %xmm3,%xmm1
  movapd %xmm3,%xmm0
  movsd  %xmm3,0x58(%rsp)
  mulsd  %xmm3,%xmm9
  mulsd  %xmm7,%xmm0
  divsd  D232(%rip),%xmm0
  addsd  %xmm1,%xmm4
  movapd %xmm10,%xmm1
  mulsd  %xmm7,%xmm1
  movapd %xmm9,%xmm12
  movapd %xmm13,%xmm9
  addsd  %xmm1,%xmm4
  movapd %xmm5,%xmm1
  movsd  0x40(%rsp),%xmm5
  movsd  %xmm13,0x40(%rsp)
  mulsd  %xmm7,%xmm1
  mulsd  %xmm5,%xmm2
  movsd  %xmm5,0x60(%rsp)
  mulsd  %xmm4,%xmm9
  movsd  %xmm4,0x38(%rsp)
  movsd  D23(%rip),%xmm4
  addsd  %xmm1,%xmm12
  addsd  %xmm0,%xmm2
  movapd %xmm9,%xmm0
  movsd  %xmm9,0x28(%rsp)
  movsd  %xmm12,0x98(%rsp)
  mulsd  %xmm10,%xmm2
  addsd  %xmm12,%xmm2
  movapd %xmm2,%xmm12
  subsd  0x18(%rsp),%xmm12
  movsd  %xmm2,0x48(%rsp)
  mulsd  %xmm12,%xmm4
  movsd  %xmm12,0x30(%rsp)
  movsd  %xmm4,0x20(%rsp)
  call   <dsignum@plt>
  movsd  (%rsp),%xmm14
  pxor   %xmm6,%xmm6
  movsd  0x60(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm1
  movsd  0x58(%rsp),%xmm3
  movapd %xmm0,%xmm10
  mulsd  %xmm5,%xmm14
  movsd  0x70(%rsp),%xmm11
  movsd  0x40(%rsp),%xmm13
  mulsd  0x10(%rsp),%xmm11
  movsd  0x38(%rsp),%xmm4
  movsd  0x68(%rsp),%xmm8
  movsd  0x28(%rsp),%xmm9
  movsd  0x80(%rsp),%xmm15
  movsd  D116(%rip),%xmm0
  movsd  0x30(%rsp),%xmm12
  movsd  0x48(%rsp),%xmm2
  subsd  %xmm14,%xmm1
  mulsd  %xmm4,%xmm15
  movsd  0x50(%rsp),%xmm7
  mulsd  %xmm9,%xmm0
  mulsd  D54(%rip),%xmm12
  mulsd  %xmm3,%xmm1
  mulsd  %xmm9,%xmm0
  addsd  %xmm11,%xmm1
  mulsd  %xmm13,%xmm1
  mulsd  %xmm8,%xmm1
  subsd  %xmm15,%xmm1
  mulsd  D139(%rip),%xmm1
  mulsd  %xmm12,%xmm1
  subsd  %xmm1,%xmm0
  andpd  D131(%rip),%xmm0
  ucomisd %xmm0,%xmm6
  movsd  0x78(%rsp),%xmm6
  ja     L138
  sqrtsd %xmm0,%xmm0
  movsd  0x20(%rsp),%xmm1
  mulsd  %xmm10,%xmm0
  addsd  %xmm9,%xmm0
  divsd  %xmm0,%xmm1
  addsd  %xmm1,%xmm6
  movsd  0x18(%rsp),%xmm1
  movapd %xmm1,%xmm0
  subsd  %xmm2,%xmm0
  divsd  %xmm1,%xmm0
  andpd  D131(%rip),%xmm0
  comisd D188(%rip),%xmm0
  jbe    L68
L150:
  movapd %xmm6,%xmm0
  movsd  D235(%rip),%xmm1
  mulsd  %xmm5,%xmm0
  mulsd  %xmm6,%xmm0
  addsd  %xmm0,%xmm1
  divsd  %xmm1,%xmm0
  comisd 0x88(%rsp),%xmm0
  ja     L26
  sub    $0x1,%ebx
  jne    L31
L26:
  mov    $0xffffffff,%eax
L153:
  mov    0xd8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L76
  add    $0xe0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L19:
  mulsd  D88(%rip),%xmm6
  movapd %xmm5,%xmm1
  mulsd  %xmm5,%xmm1
  movapd %xmm6,%xmm2
  mulsd  %xmm5,%xmm1
  ucomisd %xmm1,%xmm7
  ja     L37
  movapd %xmm1,%xmm0
  sqrtsd %xmm0,%xmm0
L175:
  movsd  D77(%rip),%xmm6
  divsd  %xmm0,%xmm2
  movsd  %xmm1,0x28(%rsp)
  movsd  %xmm5,0x20(%rsp)
  movsd  %xmm6,0x88(%rsp)
  movapd %xmm6,%xmm0
  movsd  0x10(%rsp),%xmm6
  movapd %xmm6,%xmm3
  addsd  %xmm6,%xmm3
  divsd  %xmm5,%xmm3
  mulsd  %xmm2,%xmm0
  addsd  0x18(%rsp),%xmm0
  subsd  %xmm3,%xmm0
  divsd  %xmm2,%xmm0
  call   <floor@plt>
  movsd  0x20(%rsp),%xmm5
  movsd  0x28(%rsp),%xmm1
  pxor   %xmm7,%xmm7
  add    %eax,%eax
  pxor   %xmm2,%xmm2
  mulsd  %xmm5,%xmm1
  cvtsi2sd %eax,%xmm2
  mulsd  D223(%rip),%xmm2
  mulsd  %xmm5,%xmm1
  ucomisd %xmm1,%xmm7
  ja     L75
  sqrtsd %xmm1,%xmm1
L123:
  divsd  %xmm1,%xmm2
  movsd  %xmm2,0x90(%rsp)
  jmp    L47
L138:
  movsd  %xmm4,0x60(%rsp)
  movsd  %xmm7,0x58(%rsp)
  movsd  %xmm3,0x50(%rsp)
  movsd  %xmm6,0x48(%rsp)
  movsd  %xmm5,0x40(%rsp)
  movsd  %xmm9,0x38(%rsp)
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm10,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm10
  movsd  0x38(%rsp),%xmm9
  movsd  0x18(%rsp),%xmm7
  movsd  0x20(%rsp),%xmm1
  mulsd  %xmm10,%xmm0
  movsd  0x30(%rsp),%xmm2
  movsd  0x48(%rsp),%xmm6
  movsd  0x40(%rsp),%xmm5
  movsd  0x50(%rsp),%xmm3
  movsd  0x60(%rsp),%xmm4
  addsd  %xmm9,%xmm0
  divsd  %xmm0,%xmm1
  movapd %xmm7,%xmm0
  subsd  %xmm2,%xmm0
  divsd  %xmm7,%xmm0
  movsd  0x58(%rsp),%xmm7
  addsd  %xmm1,%xmm6
  andpd  D131(%rip),%xmm0
  comisd D188(%rip),%xmm0
  ja     L150
  nopl   0x0(%rax,%rax,1)
L68:
  movsd  0x8(%rsp),%xmm6
  movsd  (%rsp),%xmm5
  lea    0x17(%r12),%rax
  movsd  D235(%rip),%xmm2
  sub    %rbp,%rax
  movsd  0x98(%rsp),%xmm8
  movapd %xmm6,%xmm0
  divsd  %xmm5,%xmm0
  mulsd  %xmm4,%xmm5
  mulsd  %xmm7,%xmm0
  subsd  %xmm0,%xmm2
  movapd %xmm6,%xmm0
  xorpd  D21(%rip),%xmm0
  divsd  %xmm4,%xmm6
  movapd %xmm8,%xmm4
  mulsd  %xmm0,%xmm3
  movsd  D235(%rip),%xmm0
  unpcklpd %xmm4,%xmm4
  divsd  %xmm5,%xmm3
  movapd %xmm6,%xmm1
  movupd 0x0(%rbp),%xmm6
  mulsd  %xmm7,%xmm1
  movupd 0x0(%rbp),%xmm7
  mulpd  %xmm7,%xmm4
  movupd (%r12),%xmm7
  subsd  %xmm1,%xmm0
  movapd %xmm2,%xmm1
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm7,%xmm1
  addpd  %xmm1,%xmm4
  movapd %xmm0,%xmm1
  unpcklpd %xmm1,%xmm1
  mulpd  %xmm6,%xmm1
  movsd  0x10(%rbp),%xmm6
  movaps %xmm4,0xa0(%rsp)
  mulsd  %xmm6,%xmm8
  mulsd  %xmm6,%xmm0
  movapd %xmm3,%xmm5
  unpcklpd %xmm5,%xmm5
  mulpd  %xmm7,%xmm5
  addpd  %xmm5,%xmm1
  movsd  0x10(%r12),%xmm5
  mulsd  %xmm5,%xmm2
  mulsd  %xmm3,%xmm5
  movaps %xmm1,0xc0(%rsp)
  addsd  %xmm8,%xmm2
  addsd  %xmm5,%xmm0
  movsd  %xmm2,0xb0(%rsp)
  movsd  %xmm0,0xd0(%rsp)
  cmp    $0x2e,%rax
  jbe    L95
  movdqa 0xa0(%rsp),%xmm3
  mov    0xb0(%rsp),%rax
  movups %xmm3,(%r12)
  movdqa 0xc0(%rsp),%xmm3
  mov    %rax,0x10(%r12)
  mov    0xd0(%rsp),%rax
  movups %xmm3,0x0(%rbp)
  mov    %rax,0x10(%rbp)
  xor    %eax,%eax
  jmp    L153
L95:
  movlpd %xmm4,(%r12)
  xor    %eax,%eax
  movlpd %xmm1,0x0(%rbp)
  movhpd %xmm4,0x8(%r12)
  movhpd %xmm1,0x8(%rbp)
  movsd  %xmm2,0x10(%r12)
  movsd  %xmm0,0x10(%rbp)
  jmp    L153
L43:
  movsd  %xmm4,0x28(%rsp)
  movsd  %xmm5,0x20(%rsp)
  movsd  %xmm1,0x10(%rsp)
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm4
  movsd  0x20(%rsp),%xmm5
  pxor   %xmm7,%xmm7
  movsd  0x10(%rsp),%xmm1
  movsd  %xmm0,(%rsp)
  jmp    L121
L76:
  call   <__stack_chk_fail@plt>
L37:
  movapd %xmm1,%xmm0
  movsd  %xmm5,0x30(%rsp)
  movsd  %xmm2,0x28(%rsp)
  movsd  %xmm1,0x20(%rsp)
  call   <sqrt@plt>
  movsd  0x30(%rsp),%xmm5
  movsd  0x28(%rsp),%xmm2
  movsd  0x20(%rsp),%xmm1
  jmp    L175
L75:
  movapd %xmm1,%xmm0
  movsd  %xmm5,0x28(%rsp)
  movsd  %xmm2,0x20(%rsp)
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm5
  movsd  0x20(%rsp),%xmm2
  movapd %xmm0,%xmm1
  jmp    L123
```

tool_calls: name: unpack_data
arguments: label: D77
type: f64
name: unpack_data
arguments: label: D139
type: f32[2]
name: unpack_data
arguments: label: D157
type: byte[8]
name: unpack_data
arguments: label: D235
type: f32[2]
name: unpack_data
arguments: label: D232
type: f64
name: unpack_data
arguments: label: D23
type: f32[2]
name: unpack_data
arguments: label: D116
type: f64
name: unpack_data
arguments: label: D54
type: f32[2]
name: unpack_data
arguments: label: D131
type: qword[2]
name: unpack_data
arguments: label: D188
type: byte[16]
name: unpack_data
arguments: label: D88
type: byte[8]
name: unpack_data
arguments: label: D223
type: f64
name: unpack_data
arguments: label: D21
type: f32[4]

tool: D77: 0.5

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

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

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

tool: D232: 3

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

tool: D116: 16

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

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

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

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

tool: D223: 3.141592653589793

tool: {"D21": [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;
}
```