user: 请从给定的汇编指令推导出C源代码:

```asm
<ck_align>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %esi,-0x28(%rbp)
  mov    %edx,-0x2c(%rbp)
  mov    %rcx,-0x38(%rbp)
  mov    %r8,-0x40(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x18(%rbp),%r8
  lea    -0x1c(%rbp),%rdi
  mov    -0x2c(%rbp),%ecx
  mov    -0x28(%rbp),%edx
  mov    -0x24(%rbp),%esi
  mov    -0x38(%rbp),%rax
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <find_cols@plt>
  movl   $0x0,-0xc(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L137
L159:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L84
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L239
L84:
  movl   $0x1,-0xc(%rbp)
L239:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  cmp    $0x4e,%al
  je     L166
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  cmp    $0x4e,%al
  jne    L136
L166:
  mov    $0x0,%eax
  jmp    L153
L136:
  addl   $0x1,-0x14(%rbp)
L137:
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jl     L159
  cmpl   $0x0,-0xc(%rbp)
  jne    L0
  mov    $0x1,%eax
  jmp    L153
L0:
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L20
L198:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L176
  movl   $0x1,-0x10(%rbp)
  addl   $0x1,-0x14(%rbp)
  jmp    L245
L13:
  addl   $0x1,-0x10(%rbp)
  addl   $0x1,-0x14(%rbp)
L245:
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jg     L217
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L13
L217:
  mov    -0x10(%rbp),%edx
  movslq %edx,%rax
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,%ecx
  add    %ecx,%ecx
  add    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  je     L176
  mov    $0x2,%eax
  jmp    L153
L176:
  addl   $0x1,-0x14(%rbp)
L20:
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jl     L198
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L49
L2:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L68
  movl   $0x1,-0x10(%rbp)
  addl   $0x1,-0x14(%rbp)
  jmp    L205
L216:
  addl   $0x1,-0x10(%rbp)
  addl   $0x1,-0x14(%rbp)
L205:
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jg     L156
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L216
L156:
  mov    -0x10(%rbp),%edx
  movslq %edx,%rax
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,%ecx
  add    %ecx,%ecx
  add    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  test   %eax,%eax
  je     L68
  mov    $0x2,%eax
  jmp    L153
L68:
  addl   $0x1,-0x14(%rbp)
L49:
  mov    -0x18(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jl     L2
  mov    $0x3,%eax
L153:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L203
  call   <__stack_chk_fail@plt>
L203:
  leave
  ret
```

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