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

```asm
<odp_scan_until_marker>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    (%rdi),%rax
  lea    (%rax,%rdx,1),%r12
  cmp    %r12,%rax
  jae    L42
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  lea    D2(%rip),%r13
  jmp    L58
L142:
  cmp    $0x5c,%al
  jne    L191
  mov    (%rbx),%rax
  cmp    %r12,%rax
  jae    L191
  lea    0x1(%rax),%rdx
  mov    %rdx,(%rbx)
  mov    0x0(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,0x0(%rbp)
  movzbl 0x1(%rax),%eax
  mov    %al,(%rdx)
  jmp    L191
  mov    (%rbx),%rax
  add    $0x1,%rax
  mov    %rax,(%rbx)
  mov    %r12d,%ecx
  sub    %eax,%ecx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    $0x27,%edi
  call   <odp_scan_until_char@plt>
L191:
  mov    (%rbx),%rax
  add    $0x1,%rax
  mov    %rax,(%rbx)
  cmp    %r12,%rax
  jae    L145
L58:
  movzbl (%rax),%eax
  mov    0x0(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,0x0(%rbp)
  mov    %al,(%rdx)
  cmp    $0x3f,%al
  jg     L142
  cmp    $0x21,%al
  jle    L191
  sub    $0x22,%eax
  cmp    $0x1d,%al
  ja     L191
  movzbl %al,%eax
  movslq 0x0(%r13,%rax,4),%rax
  add    %r13,%rax
  notrack jmp *%rax
  mov    (%rbx),%rax
  add    $0x1,%rax
  mov    %rax,(%rbx)
  mov    %r12d,%ecx
  sub    %eax,%ecx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    $0x22,%edi
  call   <odp_scan_until_char@plt>
  jmp    L191
  mov    (%rbx),%rax
  cmp    %r12,%rax
  jae    L191
  cmpb   $0x2a,0x1(%rax)
  jne    L191
  lea    0x1(%rax),%rdx
  mov    %rdx,(%rbx)
  mov    0x0(%rbp),%rdx
  lea    0x1(%rdx),%rcx
  mov    %rcx,0x0(%rbp)
  movzbl 0x1(%rax),%eax
  mov    %al,(%rdx)
  mov    (%rbx),%rax
  add    $0x1,%rax
  mov    %rax,(%rbx)
  mov    %r12d,%edx
  sub    %eax,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <odp_scan_multi_line_comment@plt>
  jmp    L191
  mov    (%rbx),%rax
  add    $0x1,%rax
  mov    %rax,(%rbx)
  mov    %r12d,%ecx
  sub    %eax,%ecx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    $0xa,%edi
  call   <odp_scan_until_char@plt>
  jmp    L191
  mov    (%rbx),%rax
  lea    0x1(%rax),%rdx
  cmp    %r12,%rdx
  jae    L119
  cmpb   $0x2d,0x1(%rax)
  je     L0
L186:
  mov    (%rbx),%rax
  add    $0x1,%rax
  mov    %rax,(%rbx)
  jmp    L58
L0:
  cmpb   $0x20,0x2(%rax)
  jne    L186
  mov    %rdx,(%rbx)
  mov    %r12d,%ecx
  sub    %edx,%ecx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    $0xa,%edi
  call   <odp_scan_until_char@plt>
  jmp    L191
  addq   $0x1,(%rbx)
  subq   $0x1,0x0(%rbp)
  mov    $0x1,%eax
L47:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L42:
  mov    $0x0,%eax
  jmp    L47
L145:
  mov    $0x0,%eax
  jmp    L47
L119:
  addq   $0x1,(%rbx)
  mov    $0x0,%eax
  jmp    L47
```

assistant: ```c
int odp_scan_until_marker(char **sql_ptr, char **dest_ptr, long len) {
  char *end = *sql_ptr + len;
  char c;
  for (; *sql_ptr < end; ++(*sql_ptr)) {
    c = **sql_ptr;
    *((*dest_ptr)++) = c;
    switch (c) {
    case '\\':
      if (*sql_ptr < end) {
        *((*dest_ptr)++) = *(++(*sql_ptr));
      }
      break;
    case '\'':
      ++(*sql_ptr);
      odp_scan_until_char('\'', sql_ptr, dest_ptr, end - *sql_ptr);
      break;
    case '"':
      ++(*sql_ptr);
      odp_scan_until_char('"', sql_ptr, dest_ptr, end - *sql_ptr);
      break;
    case '/':
      if ((*sql_ptr < end) && *(*sql_ptr + 1) == '*') {
        *((*dest_ptr)++) = *(++(*sql_ptr));
        ++(*sql_ptr);
        odp_scan_multi_line_comment(sql_ptr, dest_ptr, end - *sql_ptr);
      }
      break;
    case '#':
      ++(*sql_ptr);
      odp_scan_until_char('\n', sql_ptr, dest_ptr, end - *sql_ptr);
      break;
    case '-':
      if (((*sql_ptr + 1) < end) && *(*sql_ptr + 1) == '-' && *(*sql_ptr + 2) == ' ') {
        ++(*sql_ptr);
        odp_scan_until_char('\n', sql_ptr, dest_ptr, end - *sql_ptr);
      }
      break;
    case '?':
      ++(*sql_ptr);
      --(*dest_ptr);
      return 1;
    }
  }
  return 0;
}
```