user: Converte this assembly snippet into its equivalent C code:

```asm
<find_lf>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r12
  cmp    %rsi,%rdi
  ja     L150
  mov    %rdi,%rax
  test   $0x3,%dil
  je     L47
L254:
  mov    %rbx,%rax
  cmpb   $0xa,(%rbx)
  je     L47
  add    $0x1,%rbx
  mov    %rbx,%rax
  test   $0x3,%bl
  jne    L254
L47:
  test   $0x4,%al
  jne    L34
L150:
  lea    -0x44(%r12),%r13
  cmp    %r13,%rbx
  ja     L154
  movabs $0xa0a0a0a0a0a0a0a,%rbp
L175:
  mov    %rbp,%rdi
  xor    (%rbx),%rdi
  call   <has_zero64@plt>
  test   %rax,%rax
  jne    L154
  mov    %rbp,%rdi
  xor    0x8(%rbx),%rdi
  call   <has_zero64@plt>
  test   %rax,%rax
  jne    L89
  mov    %rbp,%rdi
  xor    0x10(%rbx),%rdi
  call   <has_zero64@plt>
  test   %rax,%rax
  jne    L57
  mov    %rbp,%rdi
  xor    0x18(%rbx),%rdi
  call   <has_zero64@plt>
  test   %rax,%rax
  jne    L44
  mov    %rbp,%rdi
  xor    0x20(%rbx),%rdi
  call   <has_zero64@plt>
  test   %rax,%rax
  jne    L127
  mov    %rbp,%rdi
  xor    0x28(%rbx),%rdi
  call   <has_zero64@plt>
  test   %rax,%rax
  jne    L124
  mov    %rbp,%rdi
  xor    0x30(%rbx),%rdi
  call   <has_zero64@plt>
  test   %rax,%rax
  jne    L203
  mov    %rbp,%rdi
  xor    0x38(%rbx),%rdi
  call   <has_zero64@plt>
  test   %rax,%rax
  jne    L156
  add    $0x40,%rbx
  cmp    %rbx,%r13
  jae    L175
  jmp    L154
L34:
  mov    (%rbx),%edi
  xor    $0xa0a0a0a,%edi
  call   <has_zero32@plt>
  mov    %rax,%rdx
  lea    0x4(%rbx),%rax
  test   %rdx,%rdx
  cmove  %rax,%rbx
  jmp    L150
L89:
  add    $0x8,%rbx
L154:
  mov    (%rbx),%edi
  xor    $0xa0a0a0a,%edi
  call   <has_zero32@plt>
  mov    %rax,%rdx
  lea    0x4(%rbx),%rax
  test   %rdx,%rdx
  cmove  %rax,%rbx
  cmp    %rbx,%r12
  jbe    L176
L84:
  cmpb   $0xa,(%rbx)
  je     L176
  add    $0x1,%rbx
  cmp    %rbx,%r12
  jne    L84
  mov    %r12,%rbx
L176:
  mov    %rbx,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L57:
  add    $0x10,%rbx
  jmp    L154
L44:
  add    $0x18,%rbx
  jmp    L154
L127:
  add    $0x20,%rbx
  jmp    L154
L124:
  add    $0x28,%rbx
  jmp    L154
L203:
  add    $0x30,%rbx
  jmp    L154
L156:
  add    $0x38,%rbx
  jmp    L154
```

assistant: ```c
char *find_lf(char *next, char *end) {
  if (sizeof(long) == 4) {
    while (next < end && (((unsigned long)next) & 3) && *next != '\n')
      next++;
    while (next < end) {
      if (has_zero32(*(unsigned int *)next ^ 0x0A0A0A0A))
        break;
      next += 4;
      if (has_zero32(*(unsigned int *)next ^ 0x0A0A0A0A))
        break;
      next += 4;
      if (has_zero32(*(unsigned int *)next ^ 0x0A0A0A0A))
        break;
      next += 4;
      if (has_zero32(*(unsigned int *)next ^ 0x0A0A0A0A))
        break;
      next += 4;
      if (has_zero32(*(unsigned int *)next ^ 0x0A0A0A0A))
        break;
      next += 4;
      if (has_zero32(*(unsigned int *)next ^ 0x0A0A0A0A))
        break;
      next += 4;
      if (has_zero32(*(unsigned int *)next ^ 0x0A0A0A0A))
        break;
      next += 4;
      if (has_zero32(*(unsigned int *)next ^ 0x0A0A0A0A))
        break;
      next += 4;
    }
  } else {
    if (next <= end) {
      while ((((unsigned long)next) & 3) && *next != '\n')
        next++;
      if ((((unsigned long)next) & 4) && !has_zero32(*(unsigned int *)next ^ 0x0A0A0A0AU))
        next += 4;
    }
    while (next <= (end - 68)) {
      if (has_zero64(*(unsigned long long *)next ^ 0x0A0A0A0A0A0A0A0AULL))
        break;
      next += 8;
      if (has_zero64(*(unsigned long long *)next ^ 0x0A0A0A0A0A0A0A0AULL))
        break;
      next += 8;
      if (has_zero64(*(unsigned long long *)next ^ 0x0A0A0A0A0A0A0A0AULL))
        break;
      next += 8;
      if (has_zero64(*(unsigned long long *)next ^ 0x0A0A0A0A0A0A0A0AULL))
        break;
      next += 8;
      if (has_zero64(*(unsigned long long *)next ^ 0x0A0A0A0A0A0A0A0AULL))
        break;
      next += 8;
      if (has_zero64(*(unsigned long long *)next ^ 0x0A0A0A0A0A0A0A0AULL))
        break;
      next += 8;
      if (has_zero64(*(unsigned long long *)next ^ 0x0A0A0A0A0A0A0A0AULL))
        break;
      next += 8;
      if (has_zero64(*(unsigned long long *)next ^ 0x0A0A0A0A0A0A0A0AULL))
        break;
      next += 8;
    }
    if (!has_zero32(*(unsigned int *)next ^ 0x0A0A0A0AU))
      next += 4;
  }
  while (next < end) {
    if (*next == '\n')
      break;
    next++;
  }
  return next;
}
```