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

```asm
<VoronoiWeights>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x118,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %esi,0x34(%rsp)
  mov    %edx,0x30(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%esi
  je     L457
  lea    0x88(%rsp),%rdx
  mov    0x34(%rsp),%esi
  mov    0x10(%rsp),%rdi
  mov    $0x0,%eax
  call   <simple_diffmx@plt>
  test   %eax,%eax
  je     L51
L45:
  mov    0x34(%rsp),%ebx
  movslq %ebx,%rdx
  shl    $0x2,%rdx
  mov    $0xb5,%esi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <sre_malloc@plt>
  mov    %eax,0x2c(%rsp)
  movslq %eax,%rsi
  mov    %rsi,0x68(%rsp)
  test   %ebx,%ebx
  jle    L440
  mov    %rsi,%r8
  mov    %ebx,%esi
  mov    $0x0,%ecx
  movss  D58(%rip),%xmm2
  jmp    L57
L457:
  movl   $0x3f800000,(%rcx)
  jmp    L83
L51:
  lea    D69(%rip),%rdi
  call   <Die@plt>
  jmp    L45
L23:
  add    $0x1,%rax
  cmp    %rsi,%rax
  je     L239
L156:
  cmp    %ecx,%eax
  je     L23
  mov    (%rdi),%rdx
  movss  (%rdx,%rax,4),%xmm1
  minss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  jmp    L23
L239:
  mulss  %xmm2,%xmm0
  movss  %xmm0,(%r8)
  add    $0x1,%rcx
  add    $0x4,%r8
  cmp    %rsi,%rcx
  je     L440
L57:
  mov    0x88(%rsp),%rax
  lea    (%rax,%rcx,8),%rdi
  mov    $0x0,%eax
  movss  D4(%rip),%xmm0
  jmp    L156
L440:
  mov    0x34(%rsp),%esi
  mov    0x88(%rsp),%rdi
  mov    $0x0,%eax
  call   <Free2DArray@plt>
  mov    0x30(%rsp),%r15d
  movslq %r15d,%rbx
  lea    0x0(,%rbx,8),%rdx
  mov    $0xc3,%esi
  lea    D35(%rip),%rbp
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sre_malloc@plt>
  mov    %eax,%r14d
  mov    %eax,0x60(%rsp)
  cltq
  mov    %rax,0x70(%rsp)
  lea    0x0(,%rbx,4),%rdx
  mov    $0xc4,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sre_malloc@plt>
  mov    %eax,0x54(%rsp)
  cltq
  mov    %rax,0x78(%rsp)
  test   %r15d,%r15d
  jle    L32
  movslq %r14d,%rsi
  mov    %rsi,0x8(%rsp)
  mov    %r15d,%eax
  lea    (%rsi,%rax,8),%r12
  mov    %rsi,%rbx
L427:
  mov    $0x1b,%edx
  mov    $0xc6,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sre_malloc@plt>
  cltq
  mov    %rax,(%rbx)
  add    $0x8,%rbx
  cmp    %r12,%rbx
  jne    L427
  movslq 0x54(%rsp),%r15
  mov    0x30(%rsp),%eax
  mov    %rax,0x18(%rsp)
  mov    0x34(%rsp),%eax
  lea    -0x1(%rax),%eax
  mov    0x10(%rsp),%rsi
  lea    0x8(%rsi,%rax,8),%r14
  mov    $0x0,%r13d
  lea    0x90(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    0xf8(%rsp),%r12
  jmp    L445
L222:
  movl   $0x1,0xf8(%rsp)
L155:
  add    $0x8,%rbp
  cmp    %r14,%rbp
  je     L125
L54:
  mov    0x0(%rbp),%rax
  movzbl (%rax,%r13,1),%edx
  lea    -0x20(%rdx),%ecx
  mov    $0x1,%eax
  cmp    $0x3f,%cl
  ja     L141
  movabs $0x8000000000006001,%rax
  shr    %cl,%rax
  xor    $0x1,%rax
  and    $0x1,%eax
L141:
  cmp    $0x7e,%dl
  je     L222
  test   %al,%al
  je     L222
  movsbl %dl,%ebx
  mov    %ebx,%edi
  call   <isupper@plt>
  mov    %eax,%ecx
  lea    -0x41(%rbx),%eax
  lea    -0x61(%rbx),%edx
  test   %ecx,%ecx
  cmovne %eax,%edx
  cmp    $0x19,%edx
  ja     L155
  movslq %edx,%rdx
  movl   $0x1,0x90(%rsp,%rdx,4)
  jmp    L155
L125:
  mov    %r15,%rcx
  movl   $0x0,(%r15)
  mov    0x8(%rsp),%r8
  lea    0x90(%rsp),%rax
  mov    $0x41,%edx
  jmp    L282
L371:
  add    $0x4,%rax
  add    $0x1,%edx
  cmp    %r12,%rax
  je     L229
L282:
  cmpl   $0x0,(%rax)
  je     L371
  movslq (%rcx),%rsi
  mov    (%r8),%rdi
  mov    %dl,(%rdi,%rsi,1)
  addl   $0x1,(%rcx)
  jmp    L371
L229:
  cmpl   $0x0,0xf8(%rsp)
  je     L95
  movslq (%rcx),%rax
  mov    (%r8),%rdx
  movb   $0x20,(%rdx,%rax,1)
  addl   $0x1,(%rcx)
L95:
  add    $0x1,%r13
  addq   $0x8,0x8(%rsp)
  add    $0x4,%r15
  cmp    0x18(%rsp),%r13
  je     L32
L445:
  mov    $0xd,%ecx
  mov    0x20(%rsp),%rdi
  mov    $0x0,%eax
  rep stos %rax,%es:(%rdi)
  movl   $0x0,(%rdi)
  cmpl   $0x0,0x34(%rsp)
  jle    L125
  mov    0x10(%rsp),%rbp
  jmp    L54
L32:
  mov    0x30(%rsp),%ebx
  lea    0x1(%rbx),%edx
  movslq %edx,%rdx
  mov    $0x109,%esi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <sre_malloc@plt>
  mov    %eax,0x64(%rsp)
  movslq %eax,%r15
  pxor   %xmm0,%xmm0
  mov    0x34(%rsp),%r14d
  mov    %r14d,%esi
  mov    0x38(%rsp),%rdi
  mov    $0x1,%eax
  call   <FSet@plt>
  mov    %r14d,%esi
  imul   $0x32,%r14d,%eax
  mov    %eax,0x50(%rsp)
  test   %eax,%eax
  jle    L396
  test   %ebx,%ebx
  mov    $0x0,%eax
  cmovns %ebx,%eax
  cltq
  add    %r15,%rax
  mov    %rax,0x48(%rsp)
  movslq 0x2c(%rsp),%rax
  mov    %rax,0x58(%rsp)
  neg    %rax
  mov    0x10(%rsp),%rbx
  lea    (%rbx,%rax,2),%r14
  movl   $0x2a,0x20(%rsp)
  movl   $0x0,0x2c(%rsp)
  mov    %r15,0x40(%rsp)
  mov    %esi,%r15d
  jmp    L324
L116:
  mov    %al,(%rbx)
  add    $0x4,%rbp
  add    $0x1,%rbx
  add    $0x8,%r12
  cmp    %rbx,%r13
  je     L148
L312:
  mov    $0x20,%eax
  cmpl   $0x0,0x0(%rbp)
  je     L116
  mov    (%r12),%r14
  mov    $0x0,%eax
  call   <sre_random@plt>
  imul   0x0(%rbp),%eax
  cltq
  movzbl (%r14,%rax,1),%eax
  jmp    L116
L148:
  mov    0x8(%rsp),%r14
L378:
  mov    0x48(%rsp),%rax
  movb   $0x0,(%rax)
  mov    $0x0,%eax
  call   <sre_random@plt>
  pxor   %xmm2,%xmm2
  cvtsi2ss %eax,%xmm2
  movss  %xmm2,0x18(%rsp)
  test   %r15d,%r15d
  jle    L302
  mov    0x58(%rsp),%rbx
  movss  D4(%rip),%xmm2
  movss  %xmm2,0x8(%rsp)
  mov    $0x0,%ebp
  mov    0x40(%rsp),%r12
  jmp    L168
L117:
  mov    $0x0,%eax
  call   <sre_random@plt>
  pxor   %xmm7,%xmm7
  cvtsi2ss %eax,%xmm7
  movss  %xmm7,0x18(%rsp)
  mov    %ebp,0x20(%rsp)
  movss  0x10(%rsp),%xmm2
  movss  %xmm2,0x8(%rsp)
L216:
  add    $0x1,%ebp
  add    $0x4,%rbx
  cmp    %ebp,%r15d
  je     L302
L168:
  mov    (%r14,%rbx,2),%rdi
  mov    %r12,%rsi
  mov    $0x0,%eax
  call   <simple_distance@plt>
  pxor   %xmm3,%xmm3
  cvtsi2ss %eax,%xmm3
  movss  %xmm3,0x10(%rsp)
  movss  (%rbx),%xmm0
  comiss %xmm3,%xmm0
  ja     L384
  movss  0x8(%rsp),%xmm6
  comiss %xmm3,%xmm6
  ja     L117
  movss  0x10(%rsp),%xmm4
  movss  0x8(%rsp),%xmm5
  ucomiss %xmm5,%xmm4
  jp     L216
  jne    L216
  mov    $0x0,%eax
  call   <sre_random@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  comiss 0x18(%rsp),%xmm0
  jbe    L216
  mov    %ebp,0x20(%rsp)
  movss  %xmm0,0x18(%rsp)
  movss  0x10(%rsp),%xmm7
  movss  %xmm7,0x8(%rsp)
  jmp    L216
L384:
  mov    %ebp,0x20(%rsp)
L302:
  movslq 0x20(%rsp),%rax
  mov    0x38(%rsp),%rsi
  lea    (%rsi,%rax,4),%rax
  movss  D4(%rip),%xmm0
  addss  (%rax),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,0x2c(%rsp)
  mov    0x2c(%rsp),%eax
  cmp    0x50(%rsp),%eax
  je     L369
L324:
  cmpl   $0x0,0x30(%rsp)
  jle    L378
  movslq 0x54(%rsp),%rbp
  movslq 0x64(%rsp),%rbx
  movslq 0x60(%rsp),%r12
  mov    0x30(%rsp),%r13d
  add    %rbx,%r13
  mov    %r14,0x8(%rsp)
  jmp    L312
L369:
  mov    0x40(%rsp),%r15
L396:
  mov    0x34(%rsp),%esi
  test   %esi,%esi
  jle    L132
  mov    0x38(%rsp),%rbx
  mov    %rbx,%rax
  lea    -0x1(%rsi),%edx
  lea    0x4(%rbx,%rdx,4),%rdx
  movss  D66(%rip),%xmm1
L360:
  movss  (%rax),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L360
L132:
  mov    %r15,%rdi
  call   <free@plt>
  mov    0x78(%rsp),%rdi
  call   <free@plt>
  mov    0x68(%rsp),%rdi
  call   <free@plt>
  mov    0x30(%rsp),%esi
  mov    0x70(%rsp),%rdi
  mov    $0x0,%eax
  call   <Free2DArray@plt>
L83:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  add    $0x118,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D35
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D58
type_guessed: byte[4]
name: extract_symbolic_data
arguments: data_tag: D69
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D4
type_guessed: f32
name: extract_symbolic_data
arguments: data_tag: D66
type_guessed: byte[4]

tool: D35: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/vinuesa/get_phylomarkers/refs/heads/master/bin/clustal-omega-1.2.4/src/squid/weight.c

tool: {"D58": [0x00,0x00,0x00,0x3f]}

tool: D69: simple_diffmx() failed

tool: D4: 1

tool: {"D66": [0x00,0x00,0x48,0x42]}

assistant: ```c
void VoronoiWeights(char **aseq, int nseq, int alen, float *wgt) {
  float **dmx;
  float *halfmin;
  char **psym;
  int *nsym;
  int symseen[27];
  char *randseq;
  int acol;
  int idx;
  int symidx;
  int i;
  float min;
  float dist;
  float challenge, champion;
  int itscale;
  int iteration;
  int best;
  if (nseq == 1) {
    wgt[0] = 1.0;
    return;
  }
  itscale = 50;
  if (!simple_diffmx(aseq, nseq, &dmx))
    Die("simple_diffmx() failed");
  halfmin = sre_malloc("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/vinuesa/get_phylomarkers/refs/heads/master/bin/clustal-omega-1.2.4/src/squid/weight.c", 181, (sizeof(float) * nseq));
  for (idx = 0; idx < nseq; idx++) {
    for (min = 1.0, i = 0; i < nseq; i++) {
      if (i == idx)
        continue;
      if (dmx[idx][i] < min)
        min = dmx[idx][i];
    }
    halfmin[idx] = min / 2.0;
  }
  Free2DArray((void **)dmx, nseq);
  psym = sre_malloc("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/vinuesa/get_phylomarkers/refs/heads/master/bin/clustal-omega-1.2.4/src/squid/weight.c", 195, (alen * sizeof(char *)));
  nsym = sre_malloc("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/vinuesa/get_phylomarkers/refs/heads/master/bin/clustal-omega-1.2.4/src/squid/weight.c", 196, (alen * sizeof(int)));
  for (acol = 0; acol < alen; acol++)
    psym[acol] = sre_malloc("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/vinuesa/get_phylomarkers/refs/heads/master/bin/clustal-omega-1.2.4/src/squid/weight.c", 198, (27 * sizeof(char)));
  for (acol = 0; acol < alen; acol++) {
    memset(symseen, 0, sizeof(int) * 27);
    for (idx = 0; idx < nseq; idx++)
      if (!((aseq[idx][acol]) == ' ' || (aseq[idx][acol]) == '.' || (aseq[idx][acol]) == '_' || (aseq[idx][acol]) == '-' || (aseq[idx][acol]) == '~')) {
        if (isupper((int)aseq[idx][acol]))
          symidx = aseq[idx][acol] - 'A';
        else
          symidx = aseq[idx][acol] - 'a';
        if (symidx >= 0 && symidx < 26)
          symseen[symidx] = 1;
      } else
        symseen[26] = 1;
    for (nsym[acol] = 0, i = 0; i < 26; i++)
      if (symseen[i]) {
        psym[acol][nsym[acol]] = 'A' + i;
        nsym[acol]++;
      }
    if (symseen[26]) {
      psym[acol][nsym[acol]] = ' ';
      nsym[acol]++;
    }
  }
  randseq = sre_malloc("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/vinuesa/get_phylomarkers/refs/heads/master/bin/clustal-omega-1.2.4/src/squid/weight.c", 265, ((alen + 1) * sizeof(char)));
  best = 42.;
  FSet(wgt, nseq, 0.0);
  for (iteration = 0; iteration < itscale * nseq; iteration++) {
    for (acol = 0; acol < alen; acol++)
      randseq[acol] = (nsym[acol] == 0) ? ' ' : psym[acol][((int)(sre_random() * (nsym[acol])))];
    randseq[acol] = '\0';
    champion = sre_random();
    for (min = 1.0, idx = 0; idx < nseq; idx++) {
      dist = simple_distance(aseq[idx], randseq);
      if (dist < halfmin[idx]) {
        best = idx;
        break;
      }
      if (dist < min) {
        champion = sre_random();
        best = idx;
        min = dist;
      } else if (dist == min) {
        challenge = sre_random();
        if (challenge > champion) {
          champion = challenge;
          best = idx;
          min = dist;
        }
      }
    }
    wgt[best] += 1.0;
  }
  for (idx = 0; idx < nseq; idx++)
    wgt[idx] = wgt[idx] / (float)itscale;
  free(randseq);
  free(nsym);
  free(halfmin);
  Free2DArray((void **)psym, alen);
}
```