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

```asm
<ck_align>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %rcx,%r13
  mov    %r8,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%r9
  mov    %rsp,%r8
  mov    %edx,%ecx
  mov    %esi,%edx
  mov    %edi,%esi
  mov    %r13,%rdi
  call   <find_cols@plt>
  mov    (%rsp),%ebx
  cmp    0x4(%rsp),%ebx
  jge    L295
  movslq %ebx,%rbx
  mov    $0x0,%r12d
  mov    $0x1,%r14d
  jmp    L300
L243:
  mov    $0x1,%r12d
L327:
  movsbl %dil,%edi
  call   <toupper@plt>
  cmp    $0x4e,%al
  je     L1
  movsbl 0x0(%rbp,%rbx,1),%edi
  call   <toupper@plt>
  cmp    $0x4e,%al
  je     L319
  mov    0x4(%rsp),%eax
  add    $0x1,%rbx
  cmp    %ebx,%eax
  jle    L61
L300:
  movzbl 0x0(%r13,%rbx,1),%edi
  cmp    $0x2d,%dil
  je     L243
  cmpb   $0x2d,0x0(%rbp,%rbx,1)
  cmove  %r14d,%r12d
  jmp    L327
L61:
  mov    $0x1,%edx
  test   %r12d,%r12d
  je     L271
  mov    (%rsp),%ecx
  cmp    %ecx,%eax
  jle    L123
  mov    %ecx,%edx
  jmp    L208
L322:
  movslq %edi,%rsi
  imul   $0x55555556,%rsi,%rsi
  shr    $0x20,%rsi
  mov    %edi,%r8d
  sar    $0x1f,%r8d
  sub    %r8d,%esi
  lea    (%rsi,%rsi,2),%esi
  cmp    %esi,%edi
  jne    L44
L82:
  add    $0x1,%edx
  cmp    %edx,%eax
  jle    L253
L208:
  movslq %edx,%rsi
  cmpb   $0x2d,0x0(%r13,%rsi,1)
  jne    L82
  add    $0x1,%edx
  cmp    %edx,%eax
  jl     L73
  movslq %edx,%rsi
  add    %r13,%rsi
  mov    %r12d,%edi
L84:
  cmpb   $0x2d,(%rsi)
  jne    L322
  add    $0x1,%edi
  add    $0x1,%edx
  add    $0x1,%rsi
  cmp    %edx,%eax
  jge    L84
  jmp    L322
L239:
  movslq %esi,%rdx
  imul   $0x55555556,%rdx,%rdx
  shr    $0x20,%rdx
  mov    %esi,%edi
  sar    $0x1f,%edi
  sub    %edi,%edx
  lea    (%rdx,%rdx,2),%edx
  cmp    %edx,%esi
  jne    L270
L50:
  add    $0x1,%ecx
  cmp    %ecx,%eax
  jle    L237
L253:
  movslq %ecx,%rdx
  cmpb   $0x2d,0x0(%rbp,%rdx,1)
  jne    L50
  add    $0x1,%ecx
  cmp    %ecx,%eax
  jl     L198
  movslq %ecx,%rdx
  add    %rbp,%rdx
  mov    %r12d,%esi
L66:
  cmpb   $0x2d,(%rdx)
  jne    L239
  add    $0x1,%esi
  add    $0x1,%ecx
  add    $0x1,%rdx
  cmp    %ecx,%eax
  jge    L66
  jmp    L239
L237:
  mov    $0x3,%edx
  jmp    L271
L295:
  mov    $0x1,%edx
  jmp    L271
L1:
  mov    $0x0,%edx
L271:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L286
  mov    %edx,%eax
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L319:
  mov    $0x0,%edx
  jmp    L271
L123:
  mov    $0x3,%edx
  jmp    L271
L73:
  mov    $0x2,%edx
  jmp    L271
L44:
  mov    $0x2,%edx
  jmp    L271
L198:
  mov    $0x2,%edx
  jmp    L271
L270:
  mov    $0x2,%edx
  jmp    L271
L286:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int ck_align(int b, int e, int B1, char *l2, char *l3) {
  int col, gap_len, beg_col, end_col, gaps;
  find_cols(l2, b, e, B1, &beg_col, &end_col);
  gaps = 0;
  for (col = beg_col; col < end_col; ++col) {
    if (l2[col] == '-' || l3[col] == '-')
      gaps = 1;
    if (toupper(l2[col]) == 'N' || toupper(l3[col]) == 'N')
      return 0;
  }
  if (gaps == 0)
    return 1;
  for (col = beg_col; col < end_col; ++col)
    if (l2[col] == '-') {
      for (gap_len = 1, ++col; col <= end_col && l2[col] == '-'; ++gap_len, ++col)
        ;
      if (gap_len % 3 != 0)
        return 2;
    }
  for (col = beg_col; col < end_col; ++col)
    if (l3[col] == '-') {
      for (gap_len = 1, ++col; col <= end_col && l3[col] == '-'; ++gap_len, ++col)
        ;
      if (gap_len % 3 != 0)
        return 2;
    }
  return 3;
}
```