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

```asm
<score_orf_random>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xf0,%rsp
  mov    %rdi,-0xc8(%rbp)
  mov    %esi,-0xcc(%rbp)
  mov    %rdx,-0xd8(%rbp)
  mov    %rcx,-0xe0(%rbp)
  mov    %r8d,-0xd0(%rbp)
  movsd  %xmm0,-0xe8(%rbp)
  mov    %r9d,-0xec(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movl   $0x0,-0xac(%rbp)
  movl   $0x0,-0xa8(%rbp)
  movl   $0x0,-0xa4(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movsd  D4(%rip),%xmm0
  movsd  %xmm0,-0x98(%rbp)
  mov    -0xcc(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x90(%rbp)
  movl   $0x0,-0xb4(%rbp)
  jmp    L55
L10:
  mov    -0xb4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  js     L62
  mov    -0xb4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3,%al
  jg     L62
  addl   $0x1,-0xa4(%rbp)
  mov    -0xb4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  movslq %eax,%rdx
  movsd  -0x30(%rbp,%rdx,8),%xmm1
  movsd  D38(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cltq
  movsd  %xmm0,-0x30(%rbp,%rax,8)
  movsd  -0x10(%rbp),%xmm1
  movsd  D38(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
L62:
  addl   $0x1,-0xb4(%rbp)
L55:
  mov    -0xb4(%rbp),%eax
  cmp    -0xcc(%rbp),%eax
  jl     L10
  movl   $0x0,-0xb4(%rbp)
  jmp    L21
L3:
  mov    -0xb4(%rbp),%eax
  cltq
  movsd  -0x30(%rbp,%rax,8),%xmm0
  movsd  -0x10(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0xb4(%rbp),%eax
  cltq
  movsd  %xmm0,-0x30(%rbp,%rax,8)
  addl   $0x1,-0xb4(%rbp)
L21:
  cmpl   $0x2,-0xb4(%rbp)
  jle    L3
  movsd  -0x30(%rbp),%xmm1
  movsd  D38(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  -0x28(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0x20(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x98(%rbp),%rcx
  lea    -0x70(%rbp),%rdx
  lea    -0x30(%rbp),%rax
  movq   %rcx,%xmm0
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <find_probabilities@plt>
  movsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x50(%rbp),%xmm1
  movsd  -0x68(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x48(%rbp),%xmm1
  movsd  -0x60(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  D38(%rip),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L52
L89:
  lea    -0x50(%rbp),%rdx
  mov    -0xcc(%rbp),%ecx
  mov    -0x90(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <generate_sequence@plt>
  lea    -0xb8(%rbp),%rdi
  lea    -0xbc(%rbp),%rcx
  mov    -0xd8(%rbp),%rdx
  mov    -0xcc(%rbp),%esi
  mov    -0x90(%rbp),%rax
  mov    $0x1,%r9d
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <score@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x88(%rbp)
  movsd  -0x88(%rbp),%xmm0
  comisd -0xa0(%rbp),%xmm0
  jbe    L60
  movsd  -0x88(%rbp),%xmm0
  movsd  %xmm0,-0xa0(%rbp)
L60:
  mov    -0xd0(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x88(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L86
  addl   $0x1,-0xac(%rbp)
L86:
  movsd  -0x88(%rbp),%xmm0
  comisd -0xe8(%rbp),%xmm0
  jb     L6
  addl   $0x1,-0xa8(%rbp)
L6:
  addl   $0x1,-0xb0(%rbp)
L52:
  mov    -0xb0(%rbp),%eax
  cmp    -0xec(%rbp),%eax
  jl     L89
  mov    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0xd0(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movsd  -0xa0(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0xa8(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L101
  call   <__stack_chk_fail@plt>
L101:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D4
data_type: f64
name: parse_data
arguments: data_label: D38
data_type: f64

tool: D4: 1e-07

tool: D38: 1

assistant: ```c
int score_orf_random(char *orf, int n, double *sc, double *thr, int t, double maxscore, int rep) {
  int i, k, nuc[4] = {0}, sig_pos, from, to, rt = 0, rm = 0, n1 = 0;
  char *seq;
  double fr[5] = {0.0}, pr[4] = {0.0}, q[4], delta = 0.0000001, rs, s;
  double maxs, mins;
  seq = (char *)malloc(n * sizeof(char));
  for (i = 0; i < n; i++) {
    if (orf[i] >= 0 && orf[i] < 4) {
      ++n1;
      ++fr[orf[i]];
      ++fr[4];
    }
  }
  for (i = 0; i < 3; ++i)
    fr[i] /= fr[4];
  fr[3] = 1.0 - fr[0] - fr[1] - fr[2];
  find_probabilities(fr, pr, delta);
  q[0] = pr[0];
  q[1] = q[0] + pr[1];
  q[2] = q[1] + pr[2];
  q[3] = 1.0;
  maxs = 0.0;
  for (k = 0; k < rep; k++) {
    generate_sequence(seq, n, q);
    rs = score(seq, n, sc, &from, &to, 1);
    if (rs > maxs)
      maxs = rs;
    if (rs >= thr[t])
      ++rt;
    if (rs >= maxscore)
      ++rm;
  }
  free(seq);
  thr[t] = maxs;
  return (rm);
}
```