user: Demonstrate the C code that generates the assembly output below:

```asm
<score_orf_random>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  mov    %esi,%edi
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0xb8,%rsp
  mov    %rdx,0x10(%rsp)
  mov    %rcx,0x20(%rsp)
  mov    %r8d,0x2c(%rsp)
  mov    %r9d,0x28(%rsp)
  movsd  %xmm0,0x18(%rsp)
  pxor   %xmm0,%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x80(%rsp)
  movq   $0x0,0xa0(%rsp)
  movaps %xmm0,0x90(%rsp)
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x50(%rsp)
  call   <malloc@plt>
  mov    %rax,%rbp
  test   %ebx,%ebx
  jle    L78
  movsd  0xa0(%rsp),%xmm1
  lea    -0x1(%rbx),%eax
  movsd  D5(%rip),%xmm3
  xor    %ecx,%ecx
  lea    0x1(%r12,%rax,1),%rdx
  movapd %xmm1,%xmm2
  nopw   0x0(%rax,%rax,1)
L30:
  movsbq (%r12),%rax
  cmp    $0x3,%al
  ja     L63
  movsd  0x80(%rsp,%rax,8),%xmm0
  addsd  %xmm3,%xmm2
  mov    $0x1,%ecx
  addsd  %xmm3,%xmm0
  movsd  %xmm0,0x80(%rsp,%rax,8)
L63:
  add    $0x1,%r12
  cmp    %r12,%rdx
  jne    L30
  test   %cl,%cl
  je     L55
  movsd  %xmm2,0xa0(%rsp)
L53:
  movapd 0x80(%rsp),%xmm0
  movapd %xmm2,%xmm1
  xor    %r12d,%r12d
  lea    0x40(%rsp),%rsi
  unpcklpd %xmm1,%xmm1
  lea    0x80(%rsp),%rdi
  movsd  %xmm3,(%rsp)
  divpd  %xmm1,%xmm0
  movsd  0x90(%rsp),%xmm1
  divsd  %xmm2,%xmm1
  movapd %xmm3,%xmm2
  subsd  %xmm0,%xmm2
  movaps %xmm0,0x80(%rsp)
  unpckhpd %xmm0,%xmm0
  subsd  %xmm0,%xmm2
  movsd  D28(%rip),%xmm0
  subsd  %xmm1,%xmm2
  unpcklpd %xmm2,%xmm1
  movaps %xmm1,0x90(%rsp)
  call   <find_probabilities@plt>
  movsd  0x40(%rsp),%xmm1
  movsd  0x48(%rsp),%xmm0
  movsd  (%rsp),%xmm3
  mov    0x28(%rsp),%eax
  addsd  %xmm1,%xmm0
  movsd  %xmm3,0x78(%rsp)
  unpcklpd %xmm0,%xmm1
  addsd  0x50(%rsp),%xmm0
  movaps %xmm1,0x60(%rsp)
  pxor   %xmm1,%xmm1
  movsd  %xmm0,0x70(%rsp)
  test   %eax,%eax
  jle    L16
  lea    0x3c(%rsp),%r14
  lea    0x38(%rsp),%rax
  xor    %r13d,%r13d
  mov    %rax,0x8(%rsp)
  mov    %r14,%rax
  lea    0x60(%rsp),%r15
  mov    %r12d,%r14d
  mov    %rax,%r12
L87:
  mov    %r15,%rdx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  movsd  %xmm1,(%rsp)
  call   <generate_sequence@plt>
  mov    0x8(%rsp),%rcx
  mov    %r12,%r8
  mov    %ebx,%esi
  mov    0x10(%rsp),%rdx
  mov    $0x1,%r9d
  mov    %rbp,%rdi
  call   <score@plt>
  movsd  (%rsp),%xmm1
  comisd 0x18(%rsp),%xmm0
  movapd %xmm0,%xmm5
  maxsd  %xmm1,%xmm5
  sbb    $0xffffffff,%r14d
  add    $0x1,%r13d
  movapd %xmm5,%xmm1
  cmp    %r13d,0x28(%rsp)
  jne    L87
  mov    %r14d,%r12d
L16:
  mov    %rbp,%rdi
  movsd  %xmm1,(%rsp)
  call   <free@plt>
  movslq 0x2c(%rsp),%rax
  mov    0x20(%rsp),%rcx
  movsd  (%rsp),%xmm1
  movsd  %xmm1,(%rcx,%rax,8)
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L20
  add    $0xb8,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L55:
  movapd %xmm1,%xmm2
  jmp    L53
  nopl   0x0(%rax)
L78:
  movsd  0xa0(%rsp),%xmm2
  movsd  D5(%rip),%xmm3
  jmp    L53
L20:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D5
type_infered: f64
name: retrieve_data
arguments: tag: D28
type_infered: f64

tool: D5: 1

tool: D28: 1e-07

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);
}
```