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

```asm
<sigindex>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x110,%rsp
  mov    %edi,-0xe4(%rbp)
  mov    %rsi,-0xf0(%rbp)
  mov    %rdx,-0xf8(%rbp)
  mov    %ecx,-0xe8(%rbp)
  mov    %r8,-0x100(%rbp)
  mov    %r9,-0x108(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movq   $0x0,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movq   $0x0,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movq   $0x0,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  lea    -0x90(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x10,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  movl   $0x0,-0xdc(%rbp)
  jmp    L3
L135:
  mov    -0xdc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L108
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x3,%eax
  jle    L139
  mov    -0xdc(%rbp),%eax
  cltq
  movl   $0x1,-0x90(%rbp,%rax,4)
  jmp    L132
L139:
  mov    -0xdc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%ecx
  mov    -0x100(%rbp),%rdx
  mov    -0xe4(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <getcodepri@plt>
  mov    %eax,-0xd4(%rbp)
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  cltq
  mov    -0xd0(%rbp,%rax,4),%eax
  cmp    %eax,-0xd4(%rbp)
  jle    L71
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L94
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%eax
  sub    $0x1,%eax
  cltq
  movl   $0x1,-0x90(%rbp,%rax,4)
L94:
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  cltq
  mov    -0xd4(%rbp),%edx
  mov    %edx,-0xd0(%rbp,%rax,4)
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  lea    -0x1(%rax),%ecx
  mov    -0xdc(%rbp),%eax
  lea    0x1(%rax),%edx
  movslq %ecx,%rax
  mov    %edx,-0xb0(%rbp,%rax,4)
  jmp    L132
L71:
  mov    -0xdc(%rbp),%eax
  cltq
  movl   $0x1,-0x90(%rbp,%rax,4)
  jmp    L132
L108:
  nop
L132:
  addl   $0x1,-0xdc(%rbp)
L3:
  mov    -0xdc(%rbp),%eax
  cmp    -0xe8(%rbp),%eax
  jl     L135
  movl   $0x0,-0xd8(%rbp)
  mov    -0xd8(%rbp),%eax
  mov    %eax,-0xdc(%rbp)
  jmp    L54
L112:
  mov    -0xdc(%rbp),%eax
  cltq
  mov    -0x90(%rbp,%rax,4),%eax
  test   %eax,%eax
  jne    L13
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xf8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x108(%rbp),%rax
  add    %rcx,%rax
  sub    $0x1,%edx
  mov    %edx,(%rax)
  jmp    L37
L13:
  cmpl   $0x0,-0xd8(%rbp)
  jns    L134
  mov    -0xd8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xd8(%rbp)
  mov    -0xdc(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x108(%rbp),%rdx
  add    %rcx,%rdx
  add    $0x3,%eax
  mov    %eax,(%rdx)
  jmp    L37
L134:
  mov    -0xdc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xf0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0xe4(%rbp),%eax
  mov    %edx,%ecx
  mov    %eax,%edx
  lea    D3(%rip),%rax
  mov    %rax,%rsi
  mov    $0x2,%edi
  call   <trace@plt>
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x108(%rbp),%rax
  add    %rdx,%rax
  movl   $0xffffffff,(%rax)
L37:
  addl   $0x1,-0xdc(%rbp)
L54:
  mov    -0xdc(%rbp),%eax
  cmp    -0xe8(%rbp),%eax
  jl     L112
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L111
  call   <__stack_chk_fail@plt>
L111:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D3
type_guessed: string

tool: D3: rtcm msm: no space in obs data sys=%d code=%d


assistant: ```c
void sigindex(int sys, const unsigned char *code, const int *freq, int n, const char *opt, int *ind) {
  int i, nex, pri, pri_h[8] = {0}, index[8] = {0}, ex[32] = {0};
  for (i = 0; i < n; ++i) {
    if (!code[i]) {
      continue;
    }
    if (freq[i] > 3) {
      ex[i] = 1;
      continue;
    }
    pri = getcodepri(sys, code[i], opt);
    if (pri > pri_h[freq[i] - 1]) {
      if (index[freq[i] - 1]) {
        ex[index[freq[i] - 1] - 1] = 1;
      }
      pri_h[freq[i] - 1] = pri;
      index[freq[i] - 1] = i + 1;
    } else {
      ex[i] = 1;
    }
  }
  for (i = nex = 0; i < n; ++i) {
    if (ex[i] == 0) {
      ind[i] = freq[i] - 1;
    } else if (nex < 0) {
      ind[i] = 3 + nex++;
    } else {
      trace(2, "rtcm msm: no space in obs data sys=%d code=%d\n", sys, code[i]);
      ind[i] = -1;
    }
  }
}
```