user: 下面的汇编指令对应的C源代码是什么：

```asm
<Viterbi>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    0xe0(%rsp),%eax
  mov    0xe8(%rsp),%r12d
  mov    %rdi,0x98(%rsp)
  mov    %rcx,0x48(%rsp)
  mov    0xf0(%rsp),%r13d
  lea    -0x1(%rax),%ebx
  mov    $0x1,%eax
  mov    %rsi,0x38(%rsp)
  mov    $0x4,%esi
  mov    %ebx,%ecx
  mov    %eax,%edi
  mov    %rdx,0x40(%rsp)
  shl    %cl,%edi
  mov    %r12d,%ecx
  mov    %r8,0x50(%rsp)
  movslq %edi,%rbp
  shl    %cl,%eax
  mov    %edi,0x4(%rsp)
  mov    %rbp,%rdi
  mov    %r9,0x18(%rsp)
  mov    %r13d,0x94(%rsp)
  mov    %ebx,0x24(%rsp)
  mov    %eax,0x60(%rsp)
  call   <calloc@plt>
  mov    %rbp,%rdi
  mov    $0x4,%esi
  mov    %ebx,%ebp
  add    %r13d,%ebp
  mov    %rax,%r14
  call   <calloc@plt>
  mov    %ebx,%ecx
  mov    %ebp,0x20(%rsp)
  mov    $0x4,%esi
  shl    %cl,%ebp
  mov    %rax,%r15
  movslq %ebp,%rbp
  mov    %rbp,%rdi
  call   <calloc@plt>
  mov    $0x4,%esi
  mov    %rbp,%rdi
  mov    %rax,0x30(%rsp)
  call   <calloc@plt>
  movslq %r12d,%rdi
  mov    $0x4,%esi
  mov    %rax,0x28(%rsp)
  call   <calloc@plt>
  mov    $0x4,%esi
  mov    %rax,%r13
  movslq 0x60(%rsp),%rax
  mov    %rax,%rdi
  mov    %rax,0x58(%rsp)
  call   <calloc@plt>
  mov    0x4(%rsp),%edi
  mov    %rax,%rbx
  test   %edi,%edi
  jle    L238
  mov    0x4(%rsp),%edi
  lea    -0x1(%rdi),%eax
  cmp    $0x2,%eax
  jbe    L73
  shr    $0x2,%edi
  movaps D29(%rip),%xmm0
  xor    %eax,%eax
  mov    %edi,%ecx
  shl    $0x4,%rcx
  nopl   0x0(%rax,%rax,1)
L31:
  movups %xmm0,(%r14,%rax,1)
  movups %xmm0,(%r15,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rcx
  jne    L31
  mov    0x4(%rsp),%edi
  mov    %edi,%eax
  and    $0xfffffffc,%eax
  and    $0x3,%edi
  je     L238
L348:
  movss  D29(%rip),%xmm0
  movslq %eax,%rsi
  mov    0x4(%rsp),%edi
  lea    0x0(,%rsi,4),%rcx
  movss  %xmm0,(%r14,%rsi,4)
  movss  %xmm0,(%r15,%rsi,4)
  lea    0x1(%rax),%esi
  cmp    %esi,%edi
  jle    L238
  add    $0x2,%eax
  movss  %xmm0,0x4(%r14,%rcx,1)
  movss  %xmm0,0x4(%r15,%rcx,1)
  cmp    %eax,%edi
  jle    L238
  movss  %xmm0,0x8(%r14,%rcx,1)
  movss  %xmm0,0x8(%r15,%rcx,1)
L238:
  mov    0x20(%rsp),%esi
  movl   $0x0,(%r14)
  test   %esi,%esi
  jle    L237
  lea    -0x1(%r12),%eax
  movl   $0x0,0x10(%rsp)
  mov    %r14,%rbp
  mov    %eax,0x64(%rsp)
  mov    %r12d,%eax
  shr    $0x2,%eax
  movl   $0x0,(%rsp)
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,0x78(%rsp)
  mov    %r12d,%eax
  and    $0xfffffffc,%eax
  mov    %eax,0x84(%rsp)
  mov    0x4(%rsp),%eax
  lea    -0x1(%rax),%edi
  mov    %edi,0x80(%rsp)
  mov    %rdi,0x70(%rsp)
  lea    0x4(%r15,%rdi,4),%rdi
  mov    %rdi,0x68(%rsp)
  mov    %eax,%edi
  shr    $0x2,%eax
  sub    $0x1,%eax
  and    $0xfffffffc,%edi
  add    $0x1,%rax
  mov    %edi,0x90(%rsp)
  shl    $0x4,%rax
  mov    %rax,0x88(%rsp)
  mov    %r12d,%eax
  mov    %rbx,%r12
  mov    %r13,%rbx
  mov    %eax,%r13d
  nopw   0x0(%rax,%rax,1)
L82:
  test   %r13d,%r13d
  jle    L118
  cmpl   $0x2,0x64(%rsp)
  jbe    L192
  movslq 0x10(%rsp),%rax
  mov    0x18(%rsp),%rdi
  mov    0x78(%rsp),%rdx
  lea    (%rdi,%rax,8),%rcx
  xor    %eax,%eax
  nopl   0x0(%rax)
L120:
  movupd (%rcx,%rax,2),%xmm3
  movupd 0x10(%rcx,%rax,2),%xmm4
  cvtpd2ps %xmm3,%xmm0
  cvtpd2ps %xmm4,%xmm1
  movlhps %xmm1,%xmm0
  movups %xmm0,(%rbx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L120
  mov    0x84(%rsp),%eax
  cmp    %eax,%r13d
  je     L118
L110:
  mov    0x10(%rsp),%edi
  mov    0x18(%rsp),%rdx
  pxor   %xmm0,%xmm0
  movslq %eax,%r10
  lea    0x0(,%r10,4),%rcx
  lea    (%rdi,%rax,1),%esi
  movslq %esi,%rsi
  cvtsd2ss (%rdx,%rsi,8),%xmm0
  lea    0x1(%rax),%esi
  movss  %xmm0,(%rbx,%r10,4)
  cmp    %r13d,%esi
  jge    L118
  add    %edi,%esi
  pxor   %xmm0,%xmm0
  add    $0x2,%eax
  movslq %esi,%rsi
  cvtsd2ss (%rdx,%rsi,8),%xmm0
  movss  %xmm0,0x4(%rbx,%rcx,1)
  cmp    %r13d,%eax
  jge    L118
  add    %edi,%eax
  pxor   %xmm0,%xmm0
  cltq
  cvtsd2ss (%rdx,%rax,8),%xmm0
  movss  %xmm0,0x8(%rbx,%rcx,1)
L118:
  mov    0x60(%rsp),%ecx
  xor    %r14d,%r14d
  test   %ecx,%ecx
  jle    L45
  mov    %rbp,0x8(%rsp)
  mov    %r14,%rbp
  mov    0x58(%rsp),%r14
  nop
L277:
  mov    %ebp,%esi
  mov    %r13d,%edx
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <Gamma@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,(%r12,%rbp,4)
  add    $0x1,%rbp
  cmp    %r14,%rbp
  jne    L277
  mov    0x8(%rsp),%rbp
L45:
  mov    (%rsp),%r10d
  movzbl 0x24(%rsp),%ecx
  xor    %eax,%eax
  mov    0x4(%rsp),%edx
  shl    %cl,%r10d
  test   %edx,%edx
  jle    L64
  mov    0x30(%rsp),%rsi
  mov    0x28(%rsp),%rdi
  mov    %rbx,0x8(%rsp)
  mov    0x38(%rsp),%r8
  mov    0x40(%rsp),%r9
  mov    %r13d,0x14(%rsp)
  mov    0x48(%rsp),%r11
  mov    0x50(%rsp),%rbx
  mov    0x70(%rsp),%r13
  jmp    L279
  nopl   0x0(%rax)
L83:
  mov    %rdx,%rax
L279:
  movslq (%r8,%rax,4),%rdx
  movslq (%r9,%rax,4),%r14
  mov    %eax,%ecx
  movss  0x0(%rbp,%rax,4),%xmm0
  movss  (%r12,%rdx,4),%xmm1
  mov    %r14,%rdx
  lea    (%r15,%r14,4),%r14
  addss  %xmm0,%xmm1
  comiss (%r14),%xmm1
  jbe    L311
  add    %r10d,%edx
  movss  %xmm1,(%r14)
  movslq %edx,%rdx
  mov    %eax,(%rdi,%rdx,4)
  movl   $0x0,(%rsi,%rdx,4)
L311:
  movslq (%r11,%rax,4),%rdx
  movslq (%rbx,%rax,4),%r14
  addss  (%r12,%rdx,4),%xmm0
  mov    %r14,%rdx
  lea    (%r15,%r14,4),%r14
  comiss (%r14),%xmm0
  jbe    L264
  add    %r10d,%edx
  movss  %xmm0,(%r14)
  movslq %edx,%rdx
  mov    %ecx,(%rdi,%rdx,4)
  movl   $0x1,(%rsi,%rdx,4)
L264:
  lea    0x1(%rax),%rdx
  cmp    %rax,%r13
  jne    L83
  mov    0x8(%rsp),%rbx
  mov    0x14(%rsp),%r13d
  mov    %r15,%rax
  pxor   %xmm0,%xmm0
  mov    0x68(%rsp),%rdx
  cs nopw 0x0(%rax,%rax,1)
L300:
  movss  (%rax),%xmm1
  add    $0x4,%rax
  maxss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  cmp    %rax,%rdx
  jne    L300
  cmpl   $0x2,0x80(%rsp)
  jbe    L268
  mov    0x88(%rsp),%rdx
  movaps %xmm1,%xmm2
  xor    %eax,%eax
  shufps $0x0,%xmm2,%xmm2
  nopl   0x0(%rax,%rax,1)
L107:
  movups (%r15,%rax,1),%xmm1
  movaps D29(%rip),%xmm5
  subps  %xmm2,%xmm1
  movups %xmm5,(%r15,%rax,1)
  movups %xmm1,0x0(%rbp,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L107
  mov    0x90(%rsp),%eax
  mov    %eax,%ecx
  cmp    %eax,0x4(%rsp)
  je     L64
L24:
  mov    0x4(%rsp),%esi
  sub    %ecx,%esi
  cmp    $0x1,%esi
  je     L70
  lea    (%r15,%rcx,4),%r10
  movaps %xmm0,%xmm2
  mov    D29(%rip),%rdi
  movq   (%r10),%xmm1
  shufps $0xe0,%xmm2,%xmm2
  mov    %rdi,(%r10)
  subps  %xmm2,%xmm1
  movlps %xmm1,0x0(%rbp,%rcx,4)
  mov    %esi,%ecx
  and    $0xfffffffe,%ecx
  add    %ecx,%eax
  cmp    %esi,%ecx
  je     L64
L70:
  cltq
  lea    (%r15,%rax,4),%rcx
  movss  (%rcx),%xmm1
  movl   $0xcb189680,(%rcx)
  subss  %xmm0,%xmm1
  movss  %xmm1,0x0(%rbp,%rax,4)
L64:
  addl   $0x1,(%rsp)
  mov    (%rsp),%eax
  add    %r13d,0x10(%rsp)
  cmp    %eax,0x20(%rsp)
  jne    L82
  mov    %rbx,%r13
  mov    %rbp,%r14
  mov    %r12,%rbx
L237:
  mov    0x20(%rsp),%esi
  mov    0x94(%rsp),%eax
  sub    $0x1,%esi
  cmp    %esi,%eax
  jg     L308
  sub    $0x1,%eax
  mov    0x24(%rsp),%ecx
  mov    0x28(%rsp),%r8
  mov    %eax,%edi
  xor    %eax,%eax
  mov    %eax,%edx
  nopw   0x0(%rax,%rax,1)
L6:
  mov    %esi,%eax
  sub    $0x1,%esi
  shl    %cl,%eax
  add    %edx,%eax
  cltq
  mov    (%r8,%rax,4),%edx
  cmp    %edi,%esi
  jne    L6
  mov    %edx,%eax
L248:
  movslq %edi,%rsi
  test   %edi,%edi
  js     L189
  mov    0x24(%rsp),%ecx
  mov    0x30(%rsp),%rdi
  mov    %eax,%edx
  mov    0x28(%rsp),%r8
  mov    0x98(%rsp),%r9
  nopl   0x0(%rax)
L90:
  mov    %esi,%eax
  shl    %cl,%eax
  add    %edx,%eax
  cltq
  mov    (%rdi,%rax,4),%edx
  mov    %edx,(%r9,%rsi,4)
  sub    $0x1,%rsi
  mov    (%r8,%rax,4),%edx
  test   %esi,%esi
  jns    L90
L189:
  mov    %r14,%rdi
  call   <free@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    0x28(%rsp),%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  add    $0xa8,%rsp
  mov    %rbx,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <free@plt>
L268:
  xor    %ecx,%ecx
  xor    %eax,%eax
  jmp    L24
L192:
  xor    %eax,%eax
  jmp    L110
L308:
  mov    %eax,%edi
  xor    %eax,%eax
  sub    $0x1,%edi
  jmp    L248
L73:
  xor    %eax,%eax
  jmp    L348
```

tool_calls: name: parse_data
arguments: data_tag: D29
type: byte[16]

tool: {"D29": [0x80,0x96,0x18,0xcb,0x80,0x96,0x18,0xcb,0x80,0x96,0x18,0xcb,0x80,0x96,0x18,0xcb]}

assistant: ```c
void Viterbi(int output_u_int[], int out0[], int state0[], int out1[], int state1[], double input_c[], int KK, int nn, int LL) {
  int i, t, state, mm, states;
  int number_symbols;
  float metric;
  float *prev_section, *next_section;
  int *prev_bit;
  int *prev_state;
  float *metric_c;
  float *rec_array;
  float max_val;
  mm = KK - 1;
  states = 1 << mm;
  number_symbols = 1 << nn;
  prev_section = (float *)calloc(states, sizeof(float));
  next_section = (float *)calloc(states, sizeof(float));
  prev_bit = (int *)calloc(states * (LL + mm), sizeof(int));
  prev_state = (int *)calloc(states * (LL + mm), sizeof(int));
  rec_array = (float *)calloc(nn, sizeof(float));
  metric_c = (float *)calloc(number_symbols, sizeof(float));
  for (state = 0; state < states; state++) {
    prev_section[state] = -1e7;
    next_section[state] = -1e7;
  }
  prev_section[0] = 0;
  for (t = 0; t < LL + mm; t++) {
    for (i = 0; i < nn; i++)
      rec_array[i] = (float)input_c[nn * t + i];
    for (i = 0; i < number_symbols; i++)
      metric_c[i] = Gamma(rec_array, i, nn);
    for (state = 0; state < states; state++) {
      metric = prev_section[state] + metric_c[out0[state]];
      if (metric > next_section[state0[state]]) {
        next_section[state0[state]] = metric;
        prev_state[t * states + state0[state]] = state;
        prev_bit[t * states + state0[state]] = 0;
      }
      metric = prev_section[state] + metric_c[out1[state]];
      if (metric > next_section[state1[state]]) {
        next_section[state1[state]] = metric;
        prev_state[t * states + state1[state]] = state;
        prev_bit[t * states + state1[state]] = 1;
      }
    }
    max_val = 0;
    for (state = 0; state < states; state++) {
      if (next_section[state] > max_val) {
        max_val = next_section[state];
      }
    }
    for (state = 0; state < states; state++) {
      prev_section[state] = next_section[state] - max_val;
      next_section[state] = -1e7;
    }
  }
  state = 0;
  for (t = LL + mm - 1; t >= LL; t--) {
    state = prev_state[t * states + state];
  }
  for (t = LL - 1; t >= 0; t--) {
    output_u_int[t] = prev_bit[t * states + state];
    state = prev_state[t * states + state];
  }
  free(prev_section);
  free(next_section);
  free(prev_bit);
  free(prev_state);
  free(rec_array);
  free(metric_c);
}
```