user: 请将以下的汇编代码转换成C语言代码：

```asm
<ViterbiTb>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    0xd0(%rsp),%eax
  mov    0xd8(%rsp),%r12d
  mov    %rdi,0x80(%rsp)
  mov    %rcx,0x50(%rsp)
  mov    0xe0(%rsp),%r13d
  lea    -0x1(%rax),%r14d
  mov    $0x1,%eax
  mov    %rsi,0x40(%rsp)
  mov    0xe8(%rsp),%ebx
  mov    %r14d,%ecx
  mov    %eax,%edi
  mov    $0x4,%esi
  mov    %r9,0x60(%rsp)
  shl    %cl,%edi
  mov    %r12d,%ecx
  mov    %rdx,0x48(%rsp)
  movslq %edi,%rbp
  shl    %cl,%eax
  mov    %edi,0x28(%rsp)
  mov    %rbp,%rdi
  mov    %r8,0x58(%rsp)
  mov    %r13d,0x2c(%rsp)
  mov    %r14d,0x34(%rsp)
  mov    %rbp,0x88(%rsp)
  mov    %eax,0x38(%rsp)
  call   <calloc@plt>
  mov    %rbp,%rdi
  mov    $0x4,%esi
  mov    %rax,%r15
  call   <calloc@plt>
  mov    %r14d,%ecx
  lea    0x0(%r13,%rbx,1),%esi
  mov    %esi,0x30(%rsp)
  shl    %cl,%esi
  mov    %rax,%rbp
  movslq %esi,%r13
  mov    $0x4,%esi
  mov    %r13,%rdi
  call   <calloc@plt>
  mov    %r13,%rdi
  mov    $0x4,%esi
  mov    %rax,0x10(%rsp)
  call   <calloc@plt>
  movslq %r12d,%rdi
  mov    $0x4,%esi
  mov    %rax,0x8(%rsp)
  call   <calloc@plt>
  mov    $0x4,%esi
  mov    %rax,%r13
  movslq 0x38(%rsp),%rax
  mov    %rax,%rdi
  mov    %rax,0x68(%rsp)
  call   <calloc@plt>
  mov    0x28(%rsp),%r9d
  mov    %rax,%r14
  test   %r9d,%r9d
  jle    L56
  mov    0x28(%rsp),%edx
  movss  D7(%rip),%xmm0
  mov    %rbp,%rax
  lea    0x0(%rbp,%rdx,4),%rdx
  nopl   0x0(%rax,%rax,1)
L36:
  movss  %xmm0,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L36
L56:
  neg    %ebx
  mov    %ebx,0x20(%rsp)
  cmp    %ebx,0x30(%rsp)
  jle    L124
  mov    0x2c(%rsp),%eax
  imul   %r12d,%eax
  mov    %eax,0x3c(%rsp)
  lea    -0x1(%r12),%eax
  lea    0x4(,%rax,4),%rax
  mov    %rax,0x78(%rsp)
  mov    0x28(%rsp),%eax
  sub    $0x1,%eax
  mov    %rax,(%rsp)
  lea    0x4(%rbp,%rax,4),%rax
  mov    %rax,0x70(%rsp)
  mov    %r12d,%eax
  mov    %r15,%r12
  mov    %r14,%r15
  mov    %r13,%r14
  mov    %eax,%r13d
  nopw   0x0(%rax,%rax,1)
L91:
  mov    0x20(%rsp),%eax
  cltd
  idivl  0x2c(%rsp)
  mov    0x3c(%rsp),%eax
  imul   %r13d,%edx
  add    %edx,%eax
  test   %edx,%edx
  cmovs  %eax,%edx
  test   %r13d,%r13d
  jle    L213
  mov    0x60(%rsp),%rax
  movslq %edx,%rdx
  mov    %r14,%rdi
  lea    (%rax,%rdx,4),%rsi
  mov    0x78(%rsp),%rdx
  call   <memcpy@plt>
L213:
  mov    0x38(%rsp),%r8d
  xor    %ebx,%ebx
  test   %r8d,%r8d
  jle    L119
  mov    %rbp,0x18(%rsp)
  mov    %rbx,%rbp
  mov    0x68(%rsp),%rbx
  nop
L49:
  mov    %ebp,%esi
  mov    %r13d,%edx
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <Gamma@plt>
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,(%r15,%rbp,4)
  add    $0x1,%rbp
  cmp    %rbp,%rbx
  jne    L49
  mov    0x18(%rsp),%rbp
L119:
  mov    0x20(%rsp),%r11d
  movzbl 0x34(%rsp),%ecx
  xor    %eax,%eax
  mov    0x28(%rsp),%edi
  shl    %cl,%r11d
  test   %edi,%edi
  jle    L199
  mov    0x40(%rsp),%r10
  mov    0x48(%rsp),%rbx
  mov    %r14,0x18(%rsp)
  mov    %r13d,0x24(%rsp)
  mov    0x58(%rsp),%r14
  mov    0x50(%rsp),%r13
  jmp    L209
  cs nopw 0x0(%rax,%rax,1)
L258:
  movss  %xmm1,(%rsi)
  mov    0x20(%rsp),%esi
  test   %esi,%esi
  js     L214
  mov    0x8(%rsp),%rsi
  add    %r11d,%ecx
  comiss (%rdi),%xmm0
  movslq %ecx,%rcx
  mov    %eax,(%rsi,%rcx,4)
  mov    0x10(%rsp),%rsi
  movl   $0x0,(%rsi,%rcx,4)
  jbe    L83
  movss  %xmm0,(%rdi)
L162:
  mov    0x8(%rsp),%rdi
  add    %r11d,%edx
  movslq %edx,%rdx
  mov    %r9d,(%rdi,%rdx,4)
  mov    0x10(%rsp),%rdi
  movl   $0x1,(%rdi,%rdx,4)
L83:
  lea    0x1(%rax),%rdx
  cmp    (%rsp),%rax
  je     L11
L19:
  mov    %rdx,%rax
L209:
  movslq (%r10,%rax,4),%rdx
  movss  (%r12,%rax,4),%xmm0
  mov    %eax,%r9d
  movslq (%r14,%rax,4),%rdi
  movslq 0x0(%r13,%rax,4),%r8
  movss  (%r15,%rdx,4),%xmm1
  movslq (%rbx,%rax,4),%rdx
  lea    0x0(%rbp,%rdx,4),%rsi
  addss  %xmm0,%xmm1
  mov    %rdx,%rcx
  mov    %rdi,%rdx
  comiss (%rsi),%xmm1
  addss  (%r15,%r8,4),%xmm0
  lea    0x0(%rbp,%rdi,4),%rdi
  ja     L258
  comiss (%rdi),%xmm0
  jbe    L83
  mov    0x20(%rsp),%ecx
  movss  %xmm0,(%rdi)
  test   %ecx,%ecx
  jns    L162
  lea    0x1(%rax),%rdx
  cmp    (%rsp),%rax
  jne    L19
  nopl   0x0(%rax)
L11:
  mov    0x18(%rsp),%r14
  mov    0x24(%rsp),%r13d
  mov    %rbp,%rax
  pxor   %xmm1,%xmm1
  mov    0x70(%rsp),%rdx
  cs nopw 0x0(%rax,%rax,1)
L246:
  movss  (%rax),%xmm0
  add    $0x4,%rax
  maxss  %xmm1,%xmm0
  movaps %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L246
  mov    (%rsp),%rcx
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L242:
  movss  0x0(%rbp,%rax,4),%xmm0
  mov    %rax,%rdx
  movl   $0xcb189680,0x0(%rbp,%rax,4)
  subss  %xmm1,%xmm0
  movss  %xmm0,(%r12,%rax,4)
  add    $0x1,%rax
  cmp    %rdx,%rcx
  jne    L242
L199:
  addl   $0x1,0x20(%rsp)
  mov    0x20(%rsp),%eax
  cmp    %eax,0x30(%rsp)
  jne    L91
  mov    %r14,%r13
  mov    %r15,%r14
  mov    %r12,%r15
L124:
  xor    %eax,%eax
  cmpl   $0x1,0x28(%rsp)
  movss  (%r15),%xmm0
  mov    $0x1,%edx
  mov    0x88(%rsp),%rcx
  jle    L172
  nopl   0x0(%rax,%rax,1)
L126:
  movss  (%r15,%rdx,4),%xmm1
  comiss %xmm0,%xmm1
  maxss  %xmm0,%xmm1
  cmova  %edx,%eax
  add    $0x1,%rdx
  movaps %xmm1,%xmm0
  cmp    %rcx,%rdx
  jne    L126
L172:
  mov    0x30(%rsp),%esi
  mov    0x2c(%rsp),%ebx
  sub    $0x1,%esi
  lea    -0x1(%rbx),%edi
  cmp    %esi,0x2c(%rsp)
  jg     L13
  mov    0x2c(%rsp),%edi
  mov    0x34(%rsp),%ecx
  mov    %eax,%edx
  mov    0x8(%rsp),%r8
  sub    $0x1,%edi
  nopw   0x0(%rax,%rax,1)
L77:
  mov    %esi,%eax
  sub    $0x1,%esi
  shl    %cl,%eax
  add    %edx,%eax
  cltq
  mov    (%r8,%rax,4),%edx
  cmp    %esi,%edi
  jne    L77
  mov    %edx,%eax
L13:
  movslq %edi,%rsi
  test   %edi,%edi
  js     L144
  mov    0x34(%rsp),%ecx
  mov    0x10(%rsp),%rdi
  mov    %eax,%edx
  mov    0x8(%rsp),%r8
  mov    0x80(%rsp),%r9
  nopl   0x0(%rax)
L100:
  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    L100
L144:
  mov    %r15,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  add    $0x98,%rsp
  mov    %r14,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <free@plt>
L214:
  comiss (%rdi),%xmm0
  jbe    L83
  movss  %xmm0,(%rdi)
  jmp    L83
```

tool_calls: name: parse_data
arguments: data_tag: D7
type_guessed: byte[4]

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

assistant: ```c
void ViterbiTb(int output_u_int[], int out0[], int state0[], int out1[], int state1[], float input_c[], int KK, int nn, int LL, int depth) {
  int i, t, state, mm, states, max_state;
  int number_symbols, starting_bit;
  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 = calloc(states, sizeof(float));
  next_section = calloc(states, sizeof(float));
  prev_bit = calloc(states * (LL + depth), sizeof(int));
  prev_state = calloc(states * (LL + depth), sizeof(int));
  rec_array = calloc(nn, sizeof(float));
  metric_c = calloc(number_symbols, sizeof(float));
  for (state = 0; state < states; state++) {
    prev_section[state] = 0;
    next_section[state] = -1e7;
  }
  for (t = -depth; t < LL + depth; t++) {
    starting_bit = nn * (t % LL);
    if (starting_bit < 0)
      starting_bit = nn * LL + starting_bit;
    for (i = 0; i < nn; i++) {
      rec_array[i] = input_c[starting_bit + 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;
        if (t >= 0) {
          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;
        if (t >= 0) {
          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];
        max_state = state;
      }
    }
    for (state = 0; state < states; state++) {
      prev_section[state] = next_section[state] - max_val;
      next_section[state] = -1e7;
    }
  }
  max_val = prev_section[0];
  max_state = 0;
  for (state = 1; state < states; state++) {
    if (prev_section[state] > max_val) {
      max_val = prev_section[state];
      max_state = state;
    }
  }
  state = max_state;
  for (t = LL + depth - 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);
}
```