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

```asm
<split_layout_str>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    -0x28(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x30(%rbp),%rax
  mov    %rax,(%rdx)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  movb   $0x0,-0x9(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L16
L38:
  cmpb   $0x0,-0x9(%rbp)
  jne    L53
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  je     L13
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  jne    L53
L13:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x7,%eax
  setle  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x8(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  je     L51
  mov    -0x4(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L53
L51:
  movb   $0x1,-0x9(%rbp)
L53:
  addl   $0x1,-0x4(%rbp)
L16:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L50
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x7c,%al
  jne    L38
L50:
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  je     L63
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x7,%eax
  setle  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x8(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
L63:
  nop
  leave
  ret
```

assistant: ```c
void split_layout_str(const char *strs[8], int sizes[8], int *count, const char *label) {
  *count = 0;
  strs[*count] = label;
  sizes[*count] = 0;
  ++(*count);
  unsigned char plus_found = 0;
  int begin = 0;
  int end = 0;
  while (label[end] && label[end] != '|') {
    if (!plus_found && (label[end] == ':' || label[end] == '+')) {
      assert(*count < 8);
      strs[*count] = label + begin;
      sizes[*count] = end - begin;
      ++(*count);
      if (label[end] != '+')
        begin = end + 1;
      else
        plus_found = 1;
    }
    ++end;
  }
  if (begin != end) {
    assert(*count < 8);
    strs[*count] = label + begin;
    sizes[*count] = end - begin;
    ++(*count);
  }
}
```