user: Demonstrate the C code that generates the assembly output below:

```asm
<epr_str_tok_tok>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x18,%rsp
  test   %rdi,%rdi
  setne  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    (%r12),%r14
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %rax,%r14
  jae    L8
  lea    0x0(%rbp,%r14,1),%rcx
  mov    %r14,%r15
  movsbl (%rcx),%esi
  mov    %rcx,0x8(%rsp)
  test   %sil,%sil
  jne    L19
  jmp    L59
  nopl   (%rax)
L72:
  add    $0x1,%r15
  movsbl 0x0(%rbp,%r15,1),%esi
  test   %sil,%sil
  je     L133
L19:
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L25
  test   %r15,%r15
  je     L107
  movsbl 0x0(%rbp,%r15,1),%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L72
L152:
  movsbl -0x1(%rbp,%r15,1),%esi
  mov    %r13,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L72
  lea    0x1(%r15),%rbx
  jmp    L45
  nopl   0x0(%rax)
L25:
  movsbl 0x0(%rbp,%r15,1),%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %r15,%r15
  je     L72
  test   %rax,%rax
  jne    L152
  add    $0x1,%r15
  movsbl 0x0(%rbp,%r15,1),%esi
  test   %sil,%sil
  jne    L19
  nop
L133:
  mov    %rbp,%rdi
  call   <strlen@plt>
L59:
  test   %rax,%rax
  je     L8
  test   %r14,%r14
  jne    L36
  lea    0x1(%r15),%rdx
  mov    0x8(%rsp),%rdi
  mov    %rdx,(%r12)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10d0 <epr_clone_string@plt>
  nopw   0x0(%rax,%rax,1)
L107:
  mov    $0x1,%ebx
L45:
  sub    (%r12),%r15
  mov    %r15,%rdi
  call   <epr_create_string@plt>
  mov    (%r12),%rsi
  mov    %r15,%rdx
  mov    %rax,%r13
  mov    %rax,%rdi
  add    %rbp,%rsi
  call   <strncpy@plt>
  movb   $0x0,0x0(%r13,%r15,1)
  mov    %rbx,(%r12)
L137:
  add    $0x18,%rsp
  mov    %r13,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L8:
  xor    %r13d,%r13d
  jmp    L137
  nopl   (%rax)
L36:
  mov    %r15,%rbx
  sub    %r14,%rbx
  mov    %rbx,%rdi
  call   <epr_create_string@plt>
  mov    (%r12),%rsi
  mov    %rbx,%rdx
  mov    %rax,%r13
  mov    %rax,%rdi
  add    %rbp,%rsi
  call   <strncpy@plt>
  movb   $0x0,0x0(%r13,%rbx,1)
  mov    %rbp,%rdi
  call   <strlen@plt>
  cltq
  mov    %rax,(%r12)
  jmp    L137
```

assistant: ```c
char *epr_str_tok_tok(const char *str, const char *seps, const char *exceptions, uint *pos) {
  char *token = NULL;
  uint i, old_pos;
  uint token_len = 0;
  assert(str != NULL);
  if (*pos >= (uint)strlen(str))
    return NULL;
  old_pos = *pos;
  for (i = *pos; str[i] != '\0'; i++) {
    if (((strchr(seps, str[i]) != NULL) && (i == 0)) || ((strchr(seps, str[i]) != NULL) && (i > 0) && (strchr(exceptions, str[i - 1]) == NULL))) {
      token_len = i - *pos;
      token = epr_create_string(token_len);
      strncpy(token, str + *pos, token_len);
      token[token_len] = '\0';
      *pos = i + 1;
      return token;
    }
  }
  if (strlen(str) > 0) {
    if (old_pos == 0) {
      *pos = i + 1;
      token = epr_clone_string(str);
      return token;
    } else if (old_pos > 0) {
      token_len = i - old_pos;
      token = epr_create_string(token_len);
      strncpy(token, str + *pos, token_len);
      token[token_len] = '\0';
      *pos = (int)strlen(str);
      return token;
    }
  }
  return NULL;
}
```