user: Translate the below assembly code into C programming language:

```asm
<ck_align>:
  endbr64
  push   %r14
  mov    $0x1,%r14d
  push   %r13
  mov    %rcx,%r13
  mov    %edx,%ecx
  mov    %esi,%edx
  push   %r12
  mov    %edi,%esi
  mov    %r13,%rdi
  xor    %r12d,%r12d
  push   %rbp
  mov    %r8,%rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%r9
  mov    %rsp,%r8
  call   <find_cols@plt>
  movslq (%rsp),%rbx
  cmp    0x4(%rsp),%ebx
  jl     L4
  jmp    L228
  nopl   0x0(%rax)
L10:
  cmpb   $0x2d,0x0(%rbp,%rbx,1)
  cmove  %r14d,%r12d
  call   <toupper@plt>
  cmp    $0x4e,%al
  je     L30
L196:
  movsbl 0x0(%rbp,%rbx,1),%edi
  call   <toupper@plt>
  cmp    $0x4e,%al
  je     L30
  mov    0x4(%rsp),%eax
  add    $0x1,%rbx
  cmp    %ebx,%eax
  jle    L62
L4:
  movsbl 0x0(%r13,%rbx,1),%edi
  cmp    $0x2d,%dil
  jne    L10
  mov    $0x1,%r12d
  call   <toupper@plt>
  cmp    $0x4e,%al
  jne    L196
  nop
L30:
  xor    %eax,%eax
L55:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L154
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L62:
  test   %r12d,%r12d
  je     L228
  mov    (%rsp),%ecx
  cmp    %ecx,%eax
  jle    L253
  mov    %ecx,%edx
  jmp    L119
L51:
  add    $0x1,%edx
  cmp    %edx,%eax
  jle    L59
L119:
  movslq %edx,%rsi
  cmpb   $0x2d,0x0(%r13,%rsi,1)
  jne    L51
  add    $0x1,%edx
  cmp    %edx,%eax
  jl     L116
  movslq %edx,%rsi
  mov    %r12d,%edi
  add    %r13,%rsi
  jmp    L35
  nopl   0x0(%rax,%rax,1)
L53:
  add    $0x1,%edx
  add    $0x1,%edi
  add    $0x1,%rsi
  cmp    %edx,%eax
  jl     L74
L35:
  cmpb   $0x2d,(%rsi)
  je     L53
L74:
  imul   $0xaaaaaaab,%edi,%edi
  cmp    $0x55555555,%edi
  jbe    L51
L116:
  mov    $0x2,%eax
  jmp    L55
  nopl   0x0(%rax,%rax,1)
L112:
  add    $0x1,%ecx
  cmp    %ecx,%eax
  jl     L116
  movslq %ecx,%rdx
  mov    %r12d,%esi
  add    %rbp,%rdx
  jmp    L13
  nopw   0x0(%rax,%rax,1)
L43:
  add    $0x1,%ecx
  add    $0x1,%esi
  add    $0x1,%rdx
  cmp    %ecx,%eax
  jl     L85
L13:
  cmpb   $0x2d,(%rdx)
  je     L43
L85:
  imul   $0xaaaaaaab,%esi,%esi
  cmp    $0x55555555,%esi
  ja     L116
  add    $0x1,%ecx
  cmp    %ecx,%eax
  jle    L253
L59:
  movslq %ecx,%rdx
  cmpb   $0x2d,0x0(%rbp,%rdx,1)
  je     L112
  add    $0x1,%ecx
  cmp    %ecx,%eax
  jg     L59
L253:
  mov    $0x3,%eax
  jmp    L55
  nopl   0x0(%rax,%rax,1)
L228:
  mov    $0x1,%eax
  jmp    L55
L154:
  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;
}
```