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

```asm
<get_consensus_duplex>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,0x8(%rsp)
  mov    %rdx,%rsi
  mov    %rcx,%r12
  mov    %r8d,%r15d
  mov    %r9d,0x4(%rsp)
  mov    0x50(%rsp),%ebp
  movq   %xmm0,%rbx
  mov    0x60(%rsp),%r13d
  ucomisd D5(%rip),%xmm0
  jp     L40
  cmove  D36(%rip),%rbx
L40:
  test   %rsi,%rsi
  je     L26
  test   %r12,%r12
  je     L26
  movsbl %r13b,%r13d
  mov    %r13d,%r8d
  mov    %ebp,%ecx
  mov    %r15d,%edx
  call   <get_votes_qual@plt>
  mov    %rax,%r14
  mov    %r13d,%r8d
  mov    %ebp,%ecx
  mov    0x4(%rsp),%edx
  mov    %r12,%rsi
  mov    0x8(%rsp),%rdi
  call   <get_votes_qual@plt>
  mov    %rax,%r13
  jmp    L56
L26:
  mov    %ebp,%edx
  mov    %r15d,%esi
  call   <get_votes_simple@plt>
  mov    %rax,%r14
  mov    %ebp,%edx
  mov    0x4(%rsp),%esi
  mov    0x8(%rsp),%rdi
  call   <get_votes_simple@plt>
  mov    %rax,%r13
L56:
  mov    $0x4,%edx
  lea    D38(%rip),%rsi
  mov    0x70(%rsp),%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L80
  movq   %rbx,%xmm0
  mov    %ebp,%edx
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   <build_consensus_duplex@plt>
  mov    %rax,%r12
L63:
  cmpl   $0x0,0x68(%rsp)
  je     L72
L87:
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <free_votes@plt>
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <free_votes@plt>
L34:
  mov    %r12,%rax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L80:
  mov    $0x5,%edx
  lea    D24(%rip),%rsi
  mov    0x70(%rsp),%rdi
  call   <strncmp@plt>
  lea    D9(%rip),%r12
  test   %eax,%eax
  jne    L34
  mov    0x58(%rsp),%ecx
  movq   %rbx,%xmm0
  mov    %ebp,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <build_consensus@plt>
  mov    %rax,%r12
  mov    0x58(%rsp),%ecx
  movq   %rbx,%xmm0
  mov    %ebp,%edx
  mov    0x4(%rsp),%esi
  mov    %r13,%rdi
  call   <build_consensus@plt>
  mov    %rax,%rsi
  mov    $0x1,%edx
  mov    %r12,%rdi
  call   <build_consensus_duplex_simple@plt>
  mov    %rax,%r12
  jmp    L63
L72:
  mov    %ebp,%esi
  mov    %r12,%rdi
  call   <rm_gaps@plt>
  mov    %rax,%r12
  jmp    L87
```

tool_calls: name: disassemble_data
arguments: data_tag: D5
data_type: byte[8]
name: disassemble_data
arguments: data_tag: D36
data_type: f64
name: disassemble_data
arguments: data_tag: D38
data_type: string
name: disassemble_data
arguments: data_tag: D24
data_type: string
name: disassemble_data
arguments: data_tag: D9
data_type: string

tool: {"D5": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: D36: 0.5

tool: D38: freq

tool: D24: iupac

tool: 

assistant: ```c
char *get_consensus_duplex(char *align1[], char *align2[], char *quals1[], char *quals2[], int n_seqs1, int n_seqs2, int seq_len, double cons_thres, int min_reads, char qual_thres, int gapped, char *method) {
  if (cons_thres == -1.0) {
    cons_thres = 0.5;
  }
  int **votes1;
  int **votes2;
  if (quals1 == 0 || quals2 == 0) {
    votes1 = get_votes_simple(align1, n_seqs1, seq_len);
    votes2 = get_votes_simple(align2, n_seqs2, seq_len);
  } else {
    votes1 = get_votes_qual(align1, quals1, n_seqs1, seq_len, qual_thres);
    votes2 = get_votes_qual(align2, quals2, n_seqs2, seq_len, qual_thres);
  }
  char *consensus_gapped;
  if (!strncmp(method, "freq", 4)) {
    consensus_gapped = build_consensus_duplex(votes1, votes2, seq_len, cons_thres);
  } else if (!strncmp(method, "iupac", 5)) {
    char *cons1 = build_consensus(votes1, n_seqs1, seq_len, cons_thres, min_reads);
    char *cons2 = build_consensus(votes2, n_seqs2, seq_len, cons_thres, min_reads);
    consensus_gapped = build_consensus_duplex_simple(cons1, cons2, 1);
  } else {
    return "";
  }
  char *consensus;
  if (gapped) {
    consensus = consensus_gapped;
  } else {
    consensus = rm_gaps(consensus_gapped, seq_len);
  }
  free_votes(votes1, seq_len);
  free_votes(votes2, seq_len);
  return consensus;
}
```