user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<CompareSeqs>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  mov    %r8,-0x40(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  je     L326
  movl   $0x0,-0x8(%rbp)
  jmp    L32
L140:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L257
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L257
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  je     L257
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L257
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L257
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L257
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  je     L257
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L308
L257:
  addl   $0x1,-0x8(%rbp)
L32:
  mov    -0x8(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L140
  jmp    L68
L308:
  nop
L68:
  mov    -0x34(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L291
L5:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L103
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L103
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  je     L103
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L103
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L103
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L103
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  je     L103
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L228
L103:
  subl   $0x1,-0x4(%rbp)
L291:
  cmpl   $0x0,-0x4(%rbp)
  jns    L5
  jmp    L272
L326:
  movl   $0x0,-0x8(%rbp)
  mov    -0x34(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L272
L228:
  nop
L272:
  movl   $0x0,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L84
L225:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x14(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L237
  addl   $0x1,-0xc(%rbp)
L237:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L30
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L30
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  je     L30
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L88
L30:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L127
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L127
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  je     L127
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L127
L88:
  addl   $0x1,-0x10(%rbp)
L127:
  addl   $0x1,-0x14(%rbp)
L84:
  mov    -0x14(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jle    L225
  cmpl   $0x0,-0x10(%rbp)
  jle    L206
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0xc(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x10(%rbp),%xmm1
  divss  %xmm1,%xmm0
  jmp    L38
L206:
  pxor   %xmm0,%xmm0
L38:
  mov    -0x40(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    $0x1,%eax
  pop    %rbp
  ret
```

assistant: ```c
int CompareSeqs(char *s1, char *s2, int alen, int allow_ragged_ends, float *ret_diff) {
  int pos;
  int syms;
  int diff;
  int from, to;
  if (allow_ragged_ends) {
    for (from = 0; from < alen; from++)
      if (!((s1[from]) == ' ' || (s1[from]) == '.' || (s1[from]) == '_' || (s1[from]) == '-') && !((s2[from]) == ' ' || (s2[from]) == '.' || (s2[from]) == '_' || (s2[from]) == '-'))
        break;
    for (to = alen - 1; to >= 0; to--)
      if (!((s1[from]) == ' ' || (s1[from]) == '.' || (s1[from]) == '_' || (s1[from]) == '-') && !((s2[from]) == ' ' || (s2[from]) == '.' || (s2[from]) == '_' || (s2[from]) == '-'))
        break;
  } else {
    from = 0;
    to = alen - 1;
  }
  diff = syms = 0;
  for (pos = from; pos <= to; pos++) {
    if (s1[pos] != s2[pos])
      diff++;
    if ((!((s1[pos]) == ' ' || (s1[pos]) == '.' || (s1[pos]) == '_' || (s1[pos]) == '-')) || (!((s2[pos]) == ' ' || (s2[pos]) == '.' || (s2[pos]) == '_' || (s2[pos]) == '-')))
      syms++;
  }
  *ret_diff = syms > 0 ? (float)diff / (float)syms : 0.0;
  return 1;
}
```