user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x40,%rsp
  movdqa D84(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%r13
  movb   $0x0,0x2a(%rsp)
  movabs $0x6572656820202020,%rax
  mov    %rax,0x20(%rsp)
  mov    $0x2020,%eax
  mov    %r13,%rdi
  mov    %ax,0x28(%rsp)
  lea    0x10(%rsp),%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x10(%rsp)
  call   <strssep@plt>
  test   %eax,%eax
  je     L149
  movslq %eax,%rbx
  lea    D170(%rip),%rbp
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L121
  mov    %rbp,%r8
  lea    D127(%rip),%r12
  xor    %eax,%eax
  mov    $0xd,%edx
  lea    D241(%rip),%rbp
  mov    %r12,%rcx
  lea    D115(%rip),%rdi
  mov    %rbp,%rsi
  call   <printf@plt>
L167:
  xor    %eax,%eax
  mov    %r13,%rdi
  call   <strssep@plt>
  test   %eax,%eax
  je     L146
  movslq %eax,%rbx
  lea    D55(%rip),%r14
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L166
  mov    %r14,%r9
  mov    %rbx,%r8
  mov    %r12,%rcx
  mov    $0xe,%edx
  mov    %rbp,%rsi
  lea    D240(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L41:
  xor    %eax,%eax
  mov    %r13,%rdi
  call   <strssep@plt>
  test   %eax,%eax
  je     L141
  movslq %eax,%r8
  cmpb   $0x67,(%r8)
  jne    L51
  cmpb   $0x6f,0x1(%r8)
  je     L163
L51:
  lea    D119(%rip),%r9
  mov    %r12,%rcx
  mov    %rbp,%rsi
  xor    %eax,%eax
  mov    $0xf,%edx
  lea    D240(%rip),%rdi
  call   <printf@plt>
L105:
  xor    %eax,%eax
  mov    %r13,%rdi
  call   <strssep@plt>
  test   %eax,%eax
  je     L60
  movslq %eax,%rbx
  lea    D16(%rip),%r14
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L124
  mov    %r14,%r9
  mov    %rbx,%r8
  mov    %r12,%rcx
  mov    $0x10,%edx
  mov    %rbp,%rsi
  lea    D240(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L262:
  xor    %eax,%eax
  mov    %r13,%rdi
  call   <strssep@plt>
  test   %eax,%eax
  jne    L6
  mov    %r12,%rcx
  mov    $0x11,%edx
  mov    %rbp,%rsi
  lea    D185(%rip),%rdi
  call   <printf@plt>
L96:
  lea    D34(%rip),%r14
  cmpq   $0x0,0x8(%rsp)
  mov    $0x12,%edx
  mov    %rbp,%rsi
  mov    %r14,%rcx
  je     L55
  lea    D275(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L150:
  xor    %eax,%eax
  mov    %r13,%rdi
  call   <strssep@plt>
  test   %eax,%eax
  jne    L180
  mov    %r12,%rcx
  mov    $0x13,%edx
  mov    %rbp,%rsi
  lea    D185(%rip),%rdi
  call   <printf@plt>
L18:
  cmpq   $0x0,0x8(%rsp)
  mov    %r14,%rcx
  mov    $0x14,%edx
  mov    %rbp,%rsi
  je     L70
  lea    D275(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L190:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L76
  add    $0x40,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L121:
  mov    %rbp,%r9
  lea    D127(%rip),%r12
  mov    %rbx,%r8
  xor    %eax,%eax
  lea    D241(%rip),%rbp
  mov    %r12,%rcx
  mov    $0xd,%edx
  mov    %rbp,%rsi
  lea    D240(%rip),%rdi
  call   <printf@plt>
  jmp    L167
L6:
  movslq %eax,%r8
  mov    %r12,%rcx
  mov    $0x11,%edx
  mov    %rbp,%rsi
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L96
L180:
  movslq %eax,%r8
  mov    %r12,%rcx
  mov    $0x13,%edx
  mov    %rbp,%rsi
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L18
L124:
  mov    %r14,%r8
  mov    %r12,%rcx
  mov    $0x10,%edx
  mov    %rbp,%rsi
  lea    D115(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L262
L166:
  mov    %r14,%r8
  mov    %r12,%rcx
  mov    $0xe,%edx
  mov    %rbp,%rsi
  lea    D115(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L41
L60:
  mov    %r12,%rcx
  mov    $0x10,%edx
  mov    %rbp,%rsi
  lea    D179(%rip),%rdi
  call   <printf@plt>
  jmp    L262
L146:
  mov    %r12,%rcx
  mov    $0xe,%edx
  mov    %rbp,%rsi
  lea    D179(%rip),%rdi
  call   <printf@plt>
  jmp    L41
L149:
  lea    D127(%rip),%r12
  lea    D241(%rip),%rbp
  mov    $0xd,%edx
  mov    %r12,%rcx
  mov    %rbp,%rsi
  lea    D179(%rip),%rdi
  call   <printf@plt>
  jmp    L167
L141:
  mov    %r12,%rcx
  mov    $0xf,%edx
  mov    %rbp,%rsi
  lea    D179(%rip),%rdi
  call   <printf@plt>
  jmp    L105
L70:
  lea    D14(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L190
L55:
  lea    D14(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L150
L163:
  cmpb   $0x0,0x2(%r8)
  jne    L51
  lea    D119(%rip),%r8
  mov    %r12,%rcx
  mov    %rbp,%rsi
  xor    %eax,%eax
  mov    $0xf,%edx
  lea    D115(%rip),%rdi
  call   <printf@plt>
  jmp    L105
L76:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D84
type_infered: byte[16]
name: disassemble_data
arguments: tag: D170
type_infered: string
name: disassemble_data
arguments: tag: D127
type_infered: string
name: disassemble_data
arguments: tag: D241
type_infered: string
name: disassemble_data
arguments: tag: D115
type_infered: string
name: disassemble_data
arguments: tag: D55
type_infered: string
name: disassemble_data
arguments: tag: D240
type_infered: string
name: disassemble_data
arguments: tag: D119
type_infered: string
name: disassemble_data
arguments: tag: D16
type_infered: string
name: disassemble_data
arguments: tag: D185
type_infered: string
name: disassemble_data
arguments: tag: D34
type_infered: string
name: disassemble_data
arguments: tag: D275
type_infered: string
name: disassemble_data
arguments: tag: D27
type_infered: string
name: disassemble_data
arguments: tag: D179
type_infered: string
name: disassemble_data
arguments: tag: D14
type_infered: string

tool: {"D84": [0x53,0x6f,0x6d,0x65,0x20,0x20,0x77,0x6f,0x72,0x64,0x73,0x20,0x09,0x20,0x67,0x6f]}

tool: D170: Some

tool: D127: res

tool: D241: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c

tool: D115: %s:%i: OK %s = "%s"


tool: D55: words

tool: D240: %s:%i: FAIL %s = "%s" not "%s"


tool: D119: go

tool: D16: here

tool: D185: %s:%i: OK %s = NULL


tool: D34: ptr == NULL

tool: D275: %s:%i: FAIL %s


tool: D27: %s:%i: FAIL %s = "%s" not NULL


tool: D179: %s:%i: FAIL %s = NULL


tool: D14: %s:%i: OK %s


assistant: ```c
int main(void) {
  char str[] = "Some  words \t go    here  ";
  char *ptr = str;
  char *res;
  res = strssep(&ptr);
  {
    const char *r = res;
    if ("Some" == ((void *)0) && r == ((void *)0))
      printf("%s:%i: OK %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 13, "res");
    else if ("Some" == ((void *)0))
      printf("%s:%i: FAIL %s = \"%s\" not NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 13, "res", r);
    else if (r == ((void *)0))
      printf("%s:%i: FAIL %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 13, "res");
    else if (strcmp(r, "Some"))
      printf("%s:%i: FAIL %s = \"%s\" not \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 13, "res", r, "Some");
    else
      printf("%s:%i: OK %s = \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 13, "res", "Some");
  };
  res = strssep(&ptr);
  {
    const char *r = res;
    if ("words" == ((void *)0) && r == ((void *)0))
      printf("%s:%i: OK %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 14, "res");
    else if ("words" == ((void *)0))
      printf("%s:%i: FAIL %s = \"%s\" not NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 14, "res", r);
    else if (r == ((void *)0))
      printf("%s:%i: FAIL %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 14, "res");
    else if (strcmp(r, "words"))
      printf("%s:%i: FAIL %s = \"%s\" not \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 14, "res", r, "words");
    else
      printf("%s:%i: OK %s = \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 14, "res", "words");
  };
  res = strssep(&ptr);
  {
    const char *r = res;
    if ("go" == ((void *)0) && r == ((void *)0))
      printf("%s:%i: OK %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 15, "res");
    else if ("go" == ((void *)0))
      printf("%s:%i: FAIL %s = \"%s\" not NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 15, "res", r);
    else if (r == ((void *)0))
      printf("%s:%i: FAIL %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 15, "res");
    else if (strcmp(r, "go"))
      printf("%s:%i: FAIL %s = \"%s\" not \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 15, "res", r, "go");
    else
      printf("%s:%i: OK %s = \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 15, "res", "go");
  };
  res = strssep(&ptr);
  {
    const char *r = res;
    if ("here" == ((void *)0) && r == ((void *)0))
      printf("%s:%i: OK %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 16, "res");
    else if ("here" == ((void *)0))
      printf("%s:%i: FAIL %s = \"%s\" not NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 16, "res", r);
    else if (r == ((void *)0))
      printf("%s:%i: FAIL %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 16, "res");
    else if (strcmp(r, "here"))
      printf("%s:%i: FAIL %s = \"%s\" not \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 16, "res", r, "here");
    else
      printf("%s:%i: OK %s = \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 16, "res", "here");
  };
  res = strssep(&ptr);
  {
    const char *r = res;
    if (((void *)0) == ((void *)0) && r == ((void *)0))
      printf("%s:%i: OK %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 17, "res");
    else if (((void *)0) == ((void *)0))
      printf("%s:%i: FAIL %s = \"%s\" not NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 17, "res", r);
    else if (r == ((void *)0))
      printf("%s:%i: FAIL %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 17, "res");
    else if (strcmp(r, ((void *)0)))
      printf("%s:%i: FAIL %s = \"%s\" not \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 17, "res", r, ((void *)0));
    else
      printf("%s:%i: OK %s = \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 17, "res", ((void *)0));
  };
  if (ptr == ((void *)0))
    printf("%s:%i: OK %s\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 18, "ptr == NULL");
  else
    printf("%s:%i: FAIL %s\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 18, "ptr == NULL");
  ;
  res = strssep(&ptr);
  {
    const char *r = res;
    if (((void *)0) == ((void *)0) && r == ((void *)0))
      printf("%s:%i: OK %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 19, "res");
    else if (((void *)0) == ((void *)0))
      printf("%s:%i: FAIL %s = \"%s\" not NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 19, "res", r);
    else if (r == ((void *)0))
      printf("%s:%i: FAIL %s = NULL\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 19, "res");
    else if (strcmp(r, ((void *)0)))
      printf("%s:%i: FAIL %s = \"%s\" not \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 19, "res", r, ((void *)0));
    else
      printf("%s:%i: OK %s = \"%s\"\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 19, "res", ((void *)0));
  };
  if (ptr == ((void *)0))
    printf("%s:%i: OK %s\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 20, "ptr == NULL");
  else
    printf("%s:%i: FAIL %s\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/arsv/sninit/refs/heads/master/test/strssep.c", 20, "ptr == NULL");
  ;
  return 0;
}
```