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

```asm
<split_apart>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x18,%rsp
  call   <strlen@plt>
  lea    D3(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rax,%rbx
  mov    %eax,0xc(%rsp)
  call   <strcspn@plt>
  cmp    %eax,%ebx
  je     L94
  movslq %eax,%r15
  mov    %rax,%r14
  mov    %rbp,%rsi
  mov    %r13,%rdi
  mov    %r15,%rdx
  call   <strncpy@plt>
  lea    0x1(%r14),%eax
  movb   $0x0,0x0(%r13,%r15,1)
  cmp    %eax,%ebx
  jle    L47
  mov    %ebx,%esi
  lea    0x2(%rbp,%r15,1),%rdi
  mov    %r12,%rcx
  sub    %r14d,%esi
  sub    %rdi,%rcx
  lea    -0x2(%rsi),%edx
  cmp    $0xe,%rcx
  jbe    L104
  cmp    $0x6,%edx
  jbe    L104
  lea    -0x1(%rsi),%edi
  cmp    $0xe,%edx
  jbe    L92
  mov    %edi,%ecx
  lea    0x1(%rbp,%r15,1),%r8
  xor    %edx,%edx
  shr    $0x4,%ecx
  shl    $0x4,%rcx
  cs nopw 0x0(%rax,%rax,1)
L76:
  movdqu (%r8,%rdx,1),%xmm0
  movups %xmm0,(%r12,%rdx,1)
  add    $0x10,%rdx
  cmp    %rcx,%rdx
  jne    L76
  mov    %edi,%edx
  and    $0xfffffff0,%edx
  add    %edx,%eax
  cmp    %edx,%edi
  je     L47
  sub    %edx,%esi
  lea    -0x1(%rsi),%ecx
  sub    $0x2,%esi
  cmp    $0x6,%esi
  jbe    L114
L24:
  add    %rbp,%r15
  mov    0x1(%rdx,%r15,1),%rsi
  mov    %rsi,(%r12,%rdx,1)
  mov    %ecx,%edx
  and    $0xfffffff8,%edx
  add    %edx,%eax
  cmp    %edx,%ecx
  je     L47
L114:
  movslq %eax,%rdx
  movzbl 0x0(%rbp,%rdx,1),%ecx
  mov    %eax,%edx
  sub    %r14d,%edx
  movslq %edx,%rdx
  mov    %cl,-0x1(%r12,%rdx,1)
  lea    0x1(%rax),%edx
  cmp    %edx,%ebx
  jle    L47
  movslq %edx,%rcx
  sub    %r14d,%edx
  movzbl 0x0(%rbp,%rcx,1),%ecx
  movslq %edx,%rdx
  mov    %cl,-0x1(%r12,%rdx,1)
  lea    0x2(%rax),%edx
  cmp    %edx,%ebx
  jle    L47
  movslq %edx,%rcx
  sub    %r14d,%edx
  movzbl 0x0(%rbp,%rcx,1),%ecx
  movslq %edx,%rdx
  mov    %cl,-0x1(%r12,%rdx,1)
  lea    0x3(%rax),%edx
  cmp    %edx,%ebx
  jle    L47
  movslq %edx,%rcx
  sub    %r14d,%edx
  movzbl 0x0(%rbp,%rcx,1),%ecx
  movslq %edx,%rdx
  mov    %cl,-0x1(%r12,%rdx,1)
  lea    0x4(%rax),%edx
  cmp    %edx,%ebx
  jle    L47
  movslq %edx,%rcx
  sub    %r14d,%edx
  movzbl 0x0(%rbp,%rcx,1),%ecx
  movslq %edx,%rdx
  mov    %cl,-0x1(%r12,%rdx,1)
  lea    0x5(%rax),%edx
  cmp    %edx,%ebx
  jle    L47
  movslq %edx,%rcx
  sub    %r14d,%edx
  add    $0x6,%eax
  movzbl 0x0(%rbp,%rcx,1),%ecx
  movslq %edx,%rdx
  mov    %cl,-0x1(%r12,%rdx,1)
  cmp    %eax,%ebx
  jle    L47
  movslq %eax,%rdx
  sub    %r14d,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  cltq
  mov    %dl,-0x1(%r12,%rax,1)
L47:
  sub    %r14d,%ebx
  movslq %ebx,%rbx
  movb   $0x0,-0x1(%r12,%rbx,1)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L94:
  movb   $0x0,(%r12)
  add    $0x18,%rsp
  mov    %rbp,%rsi
  mov    %r13,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <strcpy@plt>
  xchg   %ax,%ax
L104:
  mov    %r12,%rcx
  cltq
  sub    %r15,%rcx
  nopl   0x0(%rax,%rax,1)
L140:
  movzbl 0x0(%rbp,%rax,1),%edx
  mov    %dl,-0x1(%rcx,%rax,1)
  add    $0x1,%rax
  cmp    %eax,0xc(%rsp)
  jg     L140
  jmp    L47
L92:
  mov    %edi,%ecx
  xor    %edx,%edx
  jmp    L24
```

tool_calls: name: read_data
arguments: tag: D3
type: string

tool: D3: =

assistant: ```c
void split_apart(bob, name, value) char *bob, *name, *value;
{
  int k, i, l;
  l = strlen(bob);
  k = strcspn(bob, "=");
  if (k == l) {
    value[0] = 0;
    strcpy(name, bob);
  } else {
    strncpy(name, bob, k);
    name[k] = '\0';
    for (i = k + 1; i < l; i++)
      value[i - k - 1] = bob[i];
    value[l - k - 1] = '\0';
  }
}
```