user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<crm_faster_3motifs_allt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,%r13
  mov    %rdx,%rax
  mov    %rcx,0x60(%rsp)
  mov    %r8d,0x6c(%rsp)
  mov    0xc0(%rsp),%r12d
  mov    0xe0(%rsp),%rdx
  cmpl   $0x0,0xd8(%rsp)
  mov    0xd8(%rsp),%edi
  cmovs  0xd0(%rsp),%edi
  mov    %edi,0xd8(%rsp)
  cmpl   $0x0,0xd0(%rsp)
  jle    L53
  test   %edi,%edi
  js     L53
  movslq %r9d,%r9
  lea    0x0(,%r9,8),%r14
  lea    (%rdx,%r14,1),%rdi
  mov    %rdi,0x8(%rsp)
  movslq 0xb0(%rsp),%rcx
  lea    0x0(,%rcx,8),%r15
  lea    (%rdx,%r15,1),%rcx
  mov    %rcx,0x10(%rsp)
  movslq 0xb8(%rsp),%rcx
  lea    0x0(,%rcx,8),%rdi
  mov    %rdi,0x58(%rsp)
  add    %rdi,%rdx
  mov    %rdx,0x18(%rsp)
  lea    (%rsi,%r14,1),%rcx
  mov    %rcx,0x28(%rsp)
  lea    (%rsi,%r15,1),%rcx
  mov    %rcx,0x30(%rsp)
  add    %rdi,%rsi
  mov    %rsi,0x38(%rsp)
  lea    (%rax,%r14,1),%rsi
  mov    %rsi,0x40(%rsp)
  lea    (%rax,%r15,1),%rsi
  mov    %rsi,0x48(%rsp)
  add    %rdi,%rax
  mov    %rax,0x50(%rsp)
  mov    $0x1,%ebx
  movl   $0x0,0x20(%rsp)
  movl   $0x0,0x4(%rsp)
  movl   $0x0,0x68(%rsp)
  jmp    L61
L12:
  cmp    %eax,%ebp
  jg     L91
  mov    0x20(%rsp),%ecx
  mov    0x68(%rsp),%r8d
  mov    0x58(%rsp),%rdx
  mov    0x24(%rsp),%r9d
  mov    0x6c(%rsp),%edi
  jmp    L164
L66:
  movslq %ecx,%r10
  mov    0x60(%rsp),%r11
  lea    (%r11,%r10,8),%r10
  mov    (%r10),%r11
  mov    %r9d,0x4(%r11)
  mov    (%r10),%r11
  mov    %ebp,0x8(%r11)
  mov    (%r10),%r10
  mov    %eax,0xc(%r10)
L41:
  add    0xc8(%rsp),%ebp
L197:
  cmp    %esi,%ebp
  jg     L70
L164:
  movslq %ebp,%r10
  mov    0x0(%r13,%r14,1),%rax
  mov    (%rax,%r10,8),%rax
  movsbl (%rax,%rbx,1),%r11d
  mov    0x0(%r13,%r15,1),%rax
  mov    (%rax,%r10,8),%rax
  movsbl (%rax,%rbx,1),%eax
  add    %r11d,%eax
  mov    0x0(%r13,%rdx,1),%r11
  mov    (%r11,%r10,8),%r10
  movsbl (%r10,%rbx,1),%r10d
  add    %r10d,%eax
  cmp    %eax,%r12d
  jg     L143
  add    $0x1,%ecx
  cmp    %edi,%ecx
  jle    L66
  add    $0x1,%r8d
  jmp    L41
L143:
  add    $0x1,%ebp
  jmp    L197
L70:
  mov    %r8d,0x68(%rsp)
L146:
  cmp    0x20(%rsp),%ecx
  jle    L84
  addl   $0x1,0x4(%rsp)
  mov    %ecx,0x20(%rsp)
L91:
  cmp    %ebx,0xd0(%rsp)
  setg   %dl
  mov    0x4(%rsp),%eax
  cmp    0xd8(%rsp),%eax
  setle  %al
  add    $0x1,%rbx
  test   %al,%dl
  je     L54
L61:
  mov    %ebx,0x24(%rsp)
  mov    0x8(%rsp),%rax
  mov    (%rax),%rdx
  mov    0x10(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rbx,4),%eax
  add    (%rdx,%rbx,4),%eax
  mov    0x18(%rsp),%rcx
  mov    (%rcx),%rdx
  add    (%rdx,%rbx,4),%eax
  cmp    %r12d,%eax
  jl     L91
  mov    0x38(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rbx,4),%edx
  mov    0x30(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rbx,4),%esi
  mov    0x28(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rbx,4),%edi
  call   <min3@plt>
  mov    %eax,%ebp
  mov    0x50(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rbx,4),%edx
  mov    0x48(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rbx,4),%esi
  mov    0x40(%rsp),%rax
  mov    (%rax),%rax
  mov    (%rax,%rbx,4),%edi
  call   <max3@plt>
  mov    %eax,%esi
  cmpl   $0x1,0xe8(%rsp)
  je     L12
  cmp    %eax,%ebp
  jg     L91
  mov    0x0(%r13,%r14,1),%r9
  mov    0x0(%r13,%r15,1),%r8
  mov    0x58(%rsp),%rax
  mov    0x0(%r13,%rax,1),%rdi
  mov    0x20(%rsp),%ecx
  jmp    L83
L121:
  add    $0x1,%ebp
L27:
  cmp    %esi,%ebp
  jg     L146
L83:
  movslq %ebp,%rdx
  mov    (%r9,%rdx,8),%rax
  movsbl (%rax,%rbx,1),%eax
  mov    (%r8,%rdx,8),%r10
  movsbl (%r10,%rbx,1),%r10d
  add    %r10d,%eax
  mov    (%rdi,%rdx,8),%rdx
  movsbl (%rdx,%rbx,1),%edx
  add    %edx,%eax
  cmp    %eax,%r12d
  jg     L121
  add    $0x1,%ecx
  add    0xc8(%rsp),%ebp
  jmp    L27
L84:
  mov    %ecx,0x20(%rsp)
  jmp    L91
L53:
  movl   $0x0,0x20(%rsp)
  movl   $0x0,0x4(%rsp)
  movl   $0x0,0x68(%rsp)
L54:
  mov    0xf0(%rsp),%rax
  mov    0x20(%rsp),%edi
  mov    %edi,(%rax)
  mov    0x4(%rsp),%ecx
  mov    %ecx,0x4(%rax)
  mov    0x68(%rsp),%esi
  mov    %esi,0x8(%rax)
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void crm_faster_3motifs_allt(char ***motif_counts, int **init_bin_boundary, int **finit_bin_boundary, int **crm_positions, int max_crm_positions, int m1, int m2, int m3, int N, int window_bins, int n_transcripts, int max_n_transcripts, int **occurrences_per_transcript, int report_all, int *crm_output) {
  int errorcode = 0;
  int transcript;
  int n_tr = 0;
  int n_crm_init;
  int bin_init1, bin_init2, bin_init3, bin_init;
  int bin_finit1, bin_finit2, bin_finit3, bin_finit;
  int bin;
  int n_crm = 0;
  int n1, n2, n3;
  int n_cooc;
  int total_n1, total_n2, total_n3;
  int function_verbose = 0;
  struct timeb ti, tf;
  long tdif;
  if (function_verbose == 1)
    ftime(&ti);
  if (max_n_transcripts < 0)
    max_n_transcripts = n_transcripts;
  transcript = 0;
  while ((transcript < n_transcripts) & (n_tr <= max_n_transcripts)) {
    transcript++;
    total_n1 = occurrences_per_transcript[m1][transcript];
    total_n2 = occurrences_per_transcript[m2][transcript];
    total_n3 = occurrences_per_transcript[m3][transcript];
    if ((total_n1 + total_n2 + total_n3) >= N) {
      bin_init1 = init_bin_boundary[m1][transcript];
      bin_init2 = init_bin_boundary[m2][transcript];
      bin_init3 = init_bin_boundary[m3][transcript];
      bin_init = min3(bin_init1, bin_init2, bin_init3);
      bin_finit1 = finit_bin_boundary[m1][transcript];
      bin_finit2 = finit_bin_boundary[m2][transcript];
      bin_finit3 = finit_bin_boundary[m3][transcript];
      bin_finit = max3(bin_finit1, bin_finit2, bin_finit3);
      bin = bin_init;
      n_crm_init = n_crm;
      if (report_all == 1) {
        while (bin <= bin_finit) {
          n_cooc = motif_counts[m1][bin][transcript] + motif_counts[m2][bin][transcript] + motif_counts[m3][bin][transcript];
          if (n_cooc >= N) {
            n_crm++;
            if (n_crm > max_crm_positions) {
              errorcode++;
            } else {
              crm_positions[n_crm][1] = transcript;
              crm_positions[n_crm][2] = bin;
              crm_positions[n_crm][3] = n_cooc;
            }
            bin += window_bins;
          } else {
            bin++;
          }
        }
      } else {
        while (bin <= bin_finit) {
          n_cooc = motif_counts[m1][bin][transcript] + motif_counts[m2][bin][transcript] + motif_counts[m3][bin][transcript];
          if (n_cooc >= N) {
            n_crm++;
            bin += window_bins;
          } else {
            bin++;
          }
        }
      }
      if (n_crm > n_crm_init)
        n_tr++;
    }
  }
  crm_output[0] = n_crm;
  crm_output[1] = n_tr;
  crm_output[2] = errorcode;
  if (function_verbose == 1) {
    ftime(&tf);
    tdif = time_difference(ti, tf);
    printf("crm_faster_3motifs_allt\t%ld msec cpu time\n", tdif);
  }
}
```