user: What would the C source look like for the assembly code provided here:

```asm
<First_Pass>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x3c(%rbp)
  movl   $0x4,-0x38(%rbp)
  movl   $0x3,-0x34(%rbp)
  mov    -0x74(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movb   $0x43,(%rax)
  mov    -0x88(%rbp),%rdx
  add    $0x1,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  movl   $0x0,-0x5c(%rbp)
  movl   $0x1,-0x64(%rbp)
  jmp    L114
L78:
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x43,%al
  je     L215
  cmpl   $0x0,-0x5c(%rbp)
  jne    L159
  movl   $0x1,-0x5c(%rbp)
  mov    -0x64(%rbp),%eax
  mov    %eax,-0x60(%rbp)
  jmp    L159
L215:
  cmpl   $0x0,-0x5c(%rbp)
  je     L159
  movl   $0x0,-0x5c(%rbp)
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x60(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <obs_indx@plt>
  mov    %eax,-0x54(%rbp)
  movl   $0x0,-0x40(%rbp)
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  movl   $0x1,-0x50(%rbp)
  mov    -0x50(%rbp),%eax
  cltq
  mov    -0x48(%rbp,%rax,4),%eax
  lea    0x1(%rax),%edx
  mov    -0x50(%rbp),%eax
  cltq
  mov    %edx,-0x48(%rbp,%rax,4)
  mov    -0x60(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x58(%rbp)
  jmp    L16
L55:
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <obs_indx@plt>
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  cmp    %rdx,%rax
  je     L83
  addl   $0x1,-0x50(%rbp)
L83:
  cmpl   $0x2,-0x50(%rbp)
  jg     L174
  mov    -0x50(%rbp),%eax
  cltq
  mov    -0x48(%rbp,%rax,4),%eax
  lea    0x1(%rax),%edx
  mov    -0x50(%rbp),%eax
  cltq
  mov    %edx,-0x48(%rbp,%rax,4)
L174:
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <obs_indx@plt>
  mov    %eax,-0x54(%rbp)
  addl   $0x1,-0x58(%rbp)
L16:
  mov    -0x58(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jle    L55
  cmpl   $0x2,-0x50(%rbp)
  jg     L156
  mov    -0x44(%rbp),%ebx
  mov    -0x60(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <obs_indx@plt>
  mov    -0x3c(%rbp,%rax,4),%eax
  cmp    %eax,%ebx
  jl     L156
  mov    -0x40(%rbp),%ebx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <obs_indx@plt>
  mov    -0x3c(%rbp,%rax,4),%eax
  cmp    %eax,%ebx
  jge    L159
L156:
  movsd  D6(%rip),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x60(%rbp),%eax
  mov    %eax,-0x58(%rbp)
  jmp    L39
L105:
  movsd  -0x28(%rbp),%xmm1
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x20(%rbp),%xmm1
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  addl   $0x1,-0x58(%rbp)
L39:
  mov    -0x58(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jle    L105
  movsd  -0x28(%rbp),%xmm0
  movsd  -0x20(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L139
  mov    -0x60(%rbp),%eax
  mov    %eax,-0x58(%rbp)
  jmp    L187
L149:
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movb   $0x48,(%rax)
  addl   $0x1,-0x58(%rbp)
L187:
  mov    -0x58(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jle    L149
  jmp    L159
L139:
  mov    -0x60(%rbp),%eax
  mov    %eax,-0x58(%rbp)
  jmp    L203
L162:
  mov    -0x58(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movb   $0x45,(%rax)
  addl   $0x1,-0x58(%rbp)
L203:
  mov    -0x58(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jle    L162
L159:
  addl   $0x1,-0x64(%rbp)
L114:
  mov    -0x64(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jle    L78
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L161
  call   <__stack_chk_fail@plt>
L161:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D6
type_guessed: f64

tool: D6: 1

assistant: ```c
void First_Pass(int nres, float **proba, char *pred) {
  int ires;
  int lim1, lim2;
  int open;
  int kk;
  int type;
  int block[3];
  int nseg;
  int size[3] = {0, 4, 3};
  double ptot[3];
  pred[1] = pred[nres] = 'C';
  open = 0;
  for (ires = 1; ires <= nres; ires++) {
    if (pred[ires] != 'C') {
      if (!open) {
        open = 1;
        lim1 = ires;
      }
    } else {
      if (open) {
        open = 0;
        lim2 = ires - 1;
        type = obs_indx(pred[lim1]);
        block[1] = block[2] = 0;
        nseg = 1;
        block[nseg]++;
        for (kk = lim1 + 1; kk <= lim2; kk++) {
          if (obs_indx(pred[kk]) != type)
            nseg++;
          if (nseg <= 2)
            block[nseg]++;
          type = obs_indx(pred[kk]);
        }
        if (nseg > 2 || block[1] < size[obs_indx(pred[lim1])] || block[2] < size[obs_indx(pred[lim2])]) {
          ptot[1] = ptot[2] = 1.0;
          for (kk = lim1; kk <= lim2; kk++) {
            ptot[1] = ptot[1] * proba[kk][1];
            ptot[2] = ptot[2] * proba[kk][2];
          }
          if (ptot[1] > ptot[2]) {
            for (kk = lim1; kk <= lim2; kk++)
              pred[kk] = 'H';
          } else {
            for (kk = lim1; kk <= lim2; kk++)
              pred[kk] = 'E';
          }
        }
      }
    }
  }
}
```