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

```asm
<parse_for_recipients>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  movabs $0x100000001,%r12
  push   %rbp
  mov    $0x1,%ebp
  push   %rbx
  movabs $0x4000000040000,%rbx
  sub    $0x8,%rsp
  movzbl (%rdi),%ecx
  test   %cl,%cl
  je     L302
L267:
  cmp    $0xa,%cl
  je     L302
  sub    $0x42,%ecx
  cmp    $0x32,%cl
  ja     L296
  mov    %rbp,%rax
  shl    %cl,%rax
  test   %rbx,%rax
  jne    L381
  test   %r12,%rax
  jne    L189
  movabs $0x200000002,%rdi
  test   %rdi,%rax
  jne    L142
L296:
  movzbl 0x1(%r14),%ecx
  lea    0x1(%r14),%rax
  nopw   0x0(%rax,%rax,1)
L209:
  test   %cl,%cl
  je     L302
  mov    %rax,%r14
  jmp    L5
  nopl   0x0(%rax)
L383:
  test   %cl,%cl
  je     L302
L5:
  add    $0x1,%r14
  mov    %ecx,%eax
  movzbl (%r14),%ecx
  cmp    $0xa,%al
  jne    L383
L406:
  test   %cl,%cl
  jne    L267
L302:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L142:
  movzbl 0x1(%r14),%edx
  test   %dl,%dl
  je     L302
  mov    %edx,%esi
  movzbl 0x2(%r14),%ecx
  lea    0x2(%r14),%rax
  and    $0xffffffdf,%esi
  cmp    $0x43,%sil
  je     L30
L256:
  cmp    $0xa,%dl
  jne    L209
  test   %cl,%cl
  je     L302
  mov    %rax,%r14
  jmp    L267
L381:
  movzbl 0x1(%r14),%edx
  test   %dl,%dl
  je     L302
  mov    %edx,%esi
  movzbl 0x2(%r14),%ecx
  lea    0x2(%r14),%rax
  and    $0xffffffdf,%esi
  cmp    $0x4f,%sil
  jne    L256
L30:
  test   %cl,%cl
  je     L302
  mov    %ecx,%edx
  xor    %r13d,%r13d
L131:
  movzbl 0x1(%rax),%ecx
  lea    0x1(%rax),%r14
  cmp    $0xa,%dl
  je     L406
  cmp    $0x3a,%dl
  jne    L383
  test   %cl,%cl
  je     L302
  mov    %r14,%rdi
  lea    0x1(%r14),%r15
  cmp    $0xa,%cl
  je     L170
L39:
  cmp    $0x2c,%cl
  je     L334
  movzbl (%r15),%ecx
  test   %cl,%cl
  je     L302
L123:
  mov    %r15,%r14
  lea    0x1(%r14),%r15
  cmp    $0xa,%cl
  jne    L39
L170:
  mov    %r14d,%esi
  sub    %edi,%esi
  call   <add_recipient@plt>
  test   %r13,%r13
  je     L159
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  movzbl 0x0(%r13),%ecx
  test   %cl,%cl
  je     L302
  mov    %r13,%r14
  jmp    L267
  nopw   0x0(%rax,%rax,1)
L334:
  mov    %r14d,%esi
  sub    %edi,%esi
  call   <add_recipient@plt>
  movzbl (%r15),%ecx
  test   %cl,%cl
  je     L302
  mov    %r15,%rdi
  jmp    L123
L189:
  movzbl 0x1(%r14),%eax
  test   %al,%al
  je     L302
  mov    %eax,%edx
  movzbl 0x2(%r14),%ecx
  and    $0xffffffdf,%edx
  cmp    $0x43,%dl
  je     L190
  cmp    $0xa,%al
  je     L243
  add    $0x2,%r14
  jmp    L383
  nopl   0x0(%rax)
L190:
  test   %cl,%cl
  je     L302
  mov    %ecx,%esi
  movzbl 0x3(%r14),%edx
  lea    0x3(%r14),%rax
  and    $0xffffffdf,%esi
  cmp    $0x43,%sil
  je     L335
  cmp    $0xa,%cl
  je     L475
  test   %dl,%dl
  je     L302
  mov    %rax,%r14
  mov    %edx,%ecx
  jmp    L5
  nopl   0x0(%rax,%rax,1)
L243:
  add    $0x2,%r14
  test   %cl,%cl
  jne    L267
  jmp    L302
  nopl   0x0(%rax)
L475:
  test   %dl,%dl
  je     L302
  mov    %rax,%r14
  mov    %edx,%ecx
  jmp    L267
  nopw   0x0(%rax,%rax,1)
L335:
  test   %dl,%dl
  je     L302
  mov    %r14,%r13
  jmp    L131
L159:
  movzbl 0x1(%r14),%ecx
  test   %cl,%cl
  je     L302
  mov    %r15,%r14
  jmp    L267
```

assistant: ```c
void parse_for_recipients(char *message) {
  int state;
  char *cp;
  char *bcc;
  char *recip = (char *)0;
  state = 0;
  bcc = (char *)0;
  for (cp = message; *cp != '\0'; ++cp) {
    switch (state) {
    case 0:
      switch (*cp) {
      case '\n':
        return;
      case 'T':
      case 't':
        state = 2;
        break;
      case 'C':
      case 'c':
        state = 3;
        break;
      case 'B':
      case 'b':
        state = 4;
        bcc = cp;
        break;
      default:
        state = 1;
        break;
      }
      break;
    case 1:
      switch (*cp) {
      case '\n':
        state = 0;
        break;
      }
      break;
    case 2:
      switch (*cp) {
      case '\n':
        state = 0;
        break;
      case 'O':
      case 'o':
        state = 6;
        break;
      default:
        state = 1;
        break;
      }
      break;
    case 3:
      switch (*cp) {
      case '\n':
        state = 0;
        break;
      case 'C':
      case 'c':
        state = 6;
        break;
      default:
        state = 1;
        break;
      }
      break;
    case 4:
      switch (*cp) {
      case '\n':
        state = 0;
        bcc = (char *)0;
        break;
      case 'C':
      case 'c':
        state = 5;
        break;
      default:
        state = 1;
        bcc = (char *)0;
        break;
      }
      break;
    case 5:
      switch (*cp) {
      case '\n':
        state = 0;
        bcc = (char *)0;
        break;
      case 'C':
      case 'c':
        state = 6;
        break;
      default:
        state = 1;
        bcc = (char *)0;
        break;
      }
      break;
    case 6:
      switch (*cp) {
      case '\n':
        state = 0;
        bcc = (char *)0;
        break;
      case ':':
        state = 7;
        recip = cp + 1;
        break;
      default:
        state = 1;
        bcc = (char *)0;
        break;
      }
      break;
    case 7:
      switch (*cp) {
      case '\n':
        add_recipient(recip, (cp - recip));
        state = 0;
        if (bcc != (char *)0) {
          (void)strcpy(bcc, cp + 1);
          cp = bcc - 1;
          bcc = (char *)0;
        }
        break;
      case ',':
        add_recipient(recip, (cp - recip));
        recip = cp + 1;
        break;
      }
      break;
    }
  }
}
```