user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<dlacon2_>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %r9,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %r8,0x10(%rsp)
  mov    0x70(%rsp),%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    (%r9),%eax
  movl   $0x1,0x24(%rsp)
  test   %eax,%eax
  je     L32
  mov    %rcx,%rbx
  mov    (%r14),%ecx
  cmp    $0x4,%ecx
  je     L232
  mov    %rsi,%r10
  jg     L159
  cmp    $0x2,%ecx
  je     L231
  cmp    $0x3,%ecx
  jne    L145
  lea    0x24(%rsp),%r13
  mov    %rsi,%rcx
  mov    %rsi,(%rsp)
  mov    %r15,%rsi
  mov    %r13,%r8
  mov    %r13,%rdx
  call   <dcopy_@plt>
  mov    0x10(%rsp),%rax
  mov    %r13,%rdx
  mov    %rbp,%rdi
  mov    (%rsp),%rsi
  movsd  (%rax),%xmm3
  movsd  %xmm3,0x18(%rsp)
  call   <dasum_@plt>
  mov    0x10(%rsp),%rax
  mov    0x0(%rbp),%ecx
  movsd  %xmm0,(%rax)
  test   %ecx,%ecx
  jle    L334
  movsd  D23(%rip),%xmm2
  pxor   %xmm4,%xmm4
  xor    %r13d,%r13d
  movsd  %xmm4,(%rsp)
  movsd  %xmm2,0x8(%rsp)
  jmp    L345
  nopw   0x0(%rax,%rax,1)
L273:
  call   <floor@plt>
L377:
  cmp    %eax,(%rbx,%r13,4)
  jne    L288
  mov    0x0(%rbp),%eax
  add    $0x1,%r13
  cmp    %r13d,%eax
  jle    L398
L345:
  movsd  (%r15,%r13,8),%xmm0
  comisd (%rsp),%xmm0
  movsd  0x8(%rsp),%xmm0
  jae    L273
  call   <floor@plt>
  neg    %eax
  jmp    L377
  nopl   0x0(%rax,%rax,1)
L159:
  cmp    $0x5,%ecx
  jne    L145
  lea    0x24(%rsp),%r14
  mov    %rsi,(%rsp)
  mov    %r15,%rsi
  mov    %r14,%rdx
  call   <dasum_@plt>
  mov    0x0(%rbp),%eax
  pxor   %xmm1,%xmm1
  mov    (%rsp),%r10
  lea    (%rax,%rax,2),%eax
  cvtsi2sd %eax,%xmm1
  mov    0x10(%rsp),%rax
  divsd  %xmm1,%xmm0
  addsd  %xmm0,%xmm0
  comisd (%rax),%xmm0
  ja     L40
L30:
  movl   $0x0,(%r12)
  jmp    L362
  nop
L145:
  cmpl   $0x1,0x0(%rbp)
  je     L308
  lea    0x24(%rsp),%rdx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <dasum_@plt>
  mov    0x10(%rsp),%rax
  mov    0x0(%rbp),%edx
  movsd  %xmm0,(%rax)
  test   %edx,%edx
  jle    L255
  pxor   %xmm7,%xmm7
  xor    %r13d,%r13d
  movsd  %xmm7,(%rsp)
  movsd  D23(%rip),%xmm7
  movsd  %xmm7,0x8(%rsp)
  nopl   0x0(%rax)
L148:
  movsd  (%r15,%r13,8),%xmm0
  comisd (%rsp),%xmm0
  jb     L433
  mov    D80(%rip),%rax
  movsd  0x8(%rsp),%xmm0
  mov    %rax,(%r15,%r13,8)
  call   <floor@plt>
  mov    %eax,(%rbx,%r13,4)
  add    $0x1,%r13
  cmp    %r13d,0x0(%rbp)
  jg     L148
L255:
  movl   $0x2,(%r12)
  movl   $0x2,(%r14)
  jmp    L362
  xchg   %ax,%ax
L32:
  mov    (%rdi),%edx
  test   %edx,%edx
  jle    L158
  pxor   %xmm1,%xmm1
  movsd  D80(%rip),%xmm0
  cvtsi2sd %edx,%xmm1
  divsd  %xmm1,%xmm0
  cmp    $0x1,%edx
  je     L370
  mov    %edx,%ecx
  movapd %xmm0,%xmm1
  mov    %r15,%rax
  shr    %ecx
  unpcklpd %xmm1,%xmm1
  sub    $0x1,%ecx
  shl    $0x4,%rcx
  lea    0x10(%r15,%rcx,1),%rcx
  nopw   0x0(%rax,%rax,1)
L62:
  movups %xmm1,(%rax)
  add    $0x10,%rax
  cmp    %rcx,%rax
  jne    L62
  mov    %edx,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%edx
  je     L158
L370:
  cltq
  movsd  %xmm0,(%r15,%rax,8)
L158:
  movl   $0x1,(%r12)
  movl   $0x1,(%r14)
L362:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L347
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L231:
  lea    0x24(%rsp),%rdx
  mov    %r15,%rsi
  mov    %ecx,(%rsp)
  call   <idamax_@plt>
  mov    (%rsp),%ecx
  sub    $0x1,%eax
  mov    %eax,0x4(%r14)
  cltq
  lea    (%r15,%rax,8),%r13
L23:
  mov    %ecx,0x8(%r14)
  movslq 0x0(%rbp),%rax
  test   %eax,%eax
  jle    L434
  lea    0x0(,%rax,8),%rdx
  xor    %esi,%esi
  mov    %r15,%rdi
  call   <memset@plt>
L434:
  mov    D80(%rip),%rax
  mov    %rax,0x0(%r13)
  movl   $0x1,(%r12)
  movl   $0x3,(%r14)
  jmp    L362
  nopl   (%rax)
L308:
  movsd  (%r15),%xmm0
  mov    0x10(%rsp),%rax
  movsd  %xmm0,(%r10)
  andpd  D43(%rip),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L30
  nopl   0x0(%rax,%rax,1)
L232:
  lea    0x24(%rsp),%rdx
  mov    %r15,%rsi
  movslq 0x4(%r14),%rbx
  call   <idamax_@plt>
  sub    $0x1,%eax
  mov    %eax,0x4(%r14)
  cltq
  lea    (%r15,%rax,8),%r13
  movsd  0x0(%r13),%xmm0
  andpd  D43(%rip),%xmm0
  ucomisd (%r15,%rbx,8),%xmm0
  jp     L66
  je     L46
L66:
  mov    0x8(%r14),%ecx
  cmp    $0x4,%ecx
  jle    L336
L46:
  mov    0x0(%rbp),%eax
L398:
  test   %eax,%eax
  jle    L334
  movsd  D80(%rip),%xmm2
  lea    -0x1(%rax),%edx
  pxor   %xmm4,%xmm4
  movq   D40(%rip),%xmm3
  cvtsi2sd %edx,%xmm4
  movslq %eax,%rdx
  xor    %eax,%eax
  movapd %xmm2,%xmm1
  xchg   %ax,%ax
L60:
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  %xmm4,%xmm0
  addsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  xorpd  %xmm3,%xmm1
  movsd  %xmm0,(%r15,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L60
L334:
  movl   $0x1,(%r12)
  movl   $0x5,(%r14)
  jmp    L362
  nopl   0x0(%rax,%rax,1)
L433:
  mov    D32(%rip),%rax
  movsd  0x8(%rsp),%xmm0
  mov    %rax,(%r15,%r13,8)
  call   <floor@plt>
  neg    %eax
  mov    %eax,(%rbx,%r13,4)
  add    $0x1,%r13
  cmp    %r13d,0x0(%rbp)
  jg     L148
  jmp    L255
  nop
L288:
  mov    0x10(%rsp),%rax
  movsd  0x18(%rsp),%xmm7
  comisd (%rax),%xmm7
  jae    L46
  mov    0x0(%rbp),%eax
  xor    %r13d,%r13d
  test   %eax,%eax
  jle    L15
  nop
L7:
  movsd  (%r15,%r13,8),%xmm0
  comisd (%rsp),%xmm0
  jb     L421
  movsd  D80(%rip),%xmm7
  movsd  0x8(%rsp),%xmm0
  movsd  %xmm7,(%r15,%r13,8)
  call   <floor@plt>
  mov    %eax,(%rbx,%r13,4)
  add    $0x1,%r13
  cmp    %r13d,0x0(%rbp)
  jg     L7
L15:
  movl   $0x2,(%r12)
  movl   $0x4,(%r14)
  jmp    L362
L336:
  add    $0x1,%ecx
  jmp    L23
L421:
  movsd  D32(%rip),%xmm7
  movsd  0x8(%rsp),%xmm0
  movsd  %xmm7,(%r15,%r13,8)
  call   <floor@plt>
  neg    %eax
  mov    %eax,(%rbx,%r13,4)
  add    $0x1,%r13
  cmp    %r13d,0x0(%rbp)
  jg     L7
  jmp    L15
  nopl   0x0(%rax,%rax,1)
L40:
  mov    %r14,%r8
  mov    %r10,%rcx
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  movsd  %xmm0,(%rsp)
  call   <dcopy_@plt>
  mov    0x10(%rsp),%rax
  movsd  (%rsp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L30
L347:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D23
datatype: f32[2]
name: unpack_data
arguments: tag: D80
datatype: f64
name: unpack_data
arguments: tag: D43
datatype: qword[2]
name: unpack_data
arguments: tag: D40
datatype: f32[2]
name: unpack_data
arguments: tag: D32
datatype: f32[2]

tool: {"D23": [0.0,1.9375]}

tool: D80: 1

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

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

tool: {"D32": [0.0,-1.875]}

assistant: ```c
int dlacon2_(int *n, double *v, double *x, int *isgn, double *est, int *kase, int isave[3]) {
  int c__1 = 1;
  double zero = 0.0;
  double one = 1.0;
  int jlast;
  double altsgn, estold;
  int i;
  double temp;
  extern int idamax_(int *, double *, int *);
  extern double dasum_(int *, double *, int *);
  extern int dcopy_(int *, double *, int *, double *, int *);
  if (*kase == 0) {
    for (i = 0; i < *n; ++i) {
      x[i] = 1. / (double)(*n);
    }
    *kase = 1;
    isave[0] = 1;
    return 0;
  }
  switch (isave[0]) {
  case 1:
    goto L20;
  case 2:
    goto L40;
  case 3:
    goto L70;
  case 4:
    goto L110;
  case 5:
    goto L140;
  }
L20:
  if (*n == 1) {
    v[0] = x[0];
    *est = fabs(v[0]);
    goto L150;
  }
  *est = dasum_(n, x, &c__1);
  for (i = 0; i < *n; ++i) {
    x[i] = (x[i] >= 0 ? fabs(one) : -fabs(one));
    isgn[i] = (x[i] >= 0 ? floor(x[i] + .5) : -floor(.5 - x[i]));
  }
  *kase = 2;
  isave[0] = 2;
  return 0;
L40:
  isave[1] = idamax_(n, &x[0], &c__1);
  --isave[1];
  isave[2] = 2;
L50:
  for (i = 0; i < *n; ++i)
    x[i] = zero;
  x[isave[1]] = one;
  *kase = 1;
  isave[0] = 3;
  return 0;
L70:
  dcopy_(n, x, &c__1, v, &c__1);
  estold = *est;
  *est = dasum_(n, v, &c__1);
  for (i = 0; i < *n; ++i)
    if (((x[i] >= 0 ? fabs(one) : -fabs(one)) >= 0 ? floor((x[i] >= 0 ? fabs(one) : -fabs(one)) + .5) : -floor(.5 - (x[i] >= 0 ? fabs(one) : -fabs(one)))) != isgn[i])
      goto L90;
  goto L120;
L90:
  if (*est <= estold)
    goto L120;
  for (i = 0; i < *n; ++i) {
    x[i] = (x[i] >= 0 ? fabs(one) : -fabs(one));
    isgn[i] = (x[i] >= 0 ? floor(x[i] + .5) : -floor(.5 - x[i]));
  }
  *kase = 2;
  isave[0] = 4;
  return 0;
L110:
  jlast = isave[1];
  isave[1] = idamax_(n, &x[0], &c__1);
  isave[1] = isave[1] - 1;
  if (x[jlast] != fabs(x[isave[1]]) && isave[2] < 5) {
    isave[2] = isave[2] + 1;
    goto L50;
  }
L120:
  altsgn = 1.;
  for (i = 1; i <= *n; ++i) {
    x[i - 1] = altsgn * ((double)(i - 1) / (double)(*n - 1) + 1.);
    altsgn = -altsgn;
  }
  *kase = 1;
  isave[0] = 5;
  return 0;
L140:
  temp = dasum_(n, x, &c__1) / (double)(*n * 3) * 2.;
  if (temp > *est) {
    dcopy_(n, &x[0], &c__1, &v[0], &c__1);
    *est = temp;
  }
L150:
  *kase = 0;
  return 0;
}
```