user: What would the C source look like for the assembly code provided here:

```asm
<rs_parse_cmdline>:
  endbr64
  push   %r15
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    (%rcx),%r12d
  cmp    %edi,%r12d
  jge    L156
  movslq %r12d,%rax
  mov    %rsi,%r13
  mov    %rcx,%rbx
  mov    %r9,%r15
  mov    (%rsi,%rax,8),%r14
  cmpb   $0x2d,(%r14)
  jne    L95
  movzbl 0x1(%r14),%eax
  test   %al,%al
  je     L95
  cmp    $0x2d,%al
  je     L12
  movslq (%r8),%rax
  movsbl (%r14,%rax,1),%r14d
  cmp    $0x3a,%r14b
  je     L84
  mov    %edi,%ebp
  mov    %r14d,%esi
  mov    %rdx,%rdi
  mov    %r8,0x8(%rsp)
  call   <strchr@plt>
  test   %rax,%rax
  je     L84
  movslq (%rbx),%rdi
  mov    0x8(%rsp),%r8
  cmpb   $0x3a,0x1(%rax)
  movslq (%r8),%rsi
  mov    %rdi,%rdx
  mov    0x0(%r13,%rdi,8),%rdi
  mov    %rsi,%rcx
  lea    0x1(%rdi,%rsi,1),%rsi
  movzbl (%rsi),%edi
  jne    L99
  test   %dil,%dil
  jne    L7
  add    $0x2,%edx
  mov    %edx,(%rbx)
  movl   $0x1,(%r8)
  movslq (%rbx),%rax
  cmp    %ebp,%eax
  jg     L126
  mov    -0x8(%r13,%rax,8),%rax
  mov    %rax,(%r15)
L156:
  add    $0x18,%rsp
  mov    %r14d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L95:
  add    $0x1,%r12d
  mov    %r14,(%r15)
  mov    $0x23,%r14d
  mov    %r12d,(%rbx)
  movl   $0x1,(%r8)
  jmp    L156
  nopl   0x0(%rax)
L12:
  lea    D20(%rip),%rsi
  mov    %r14,%rdi
  mov    %r8,0x8(%rsp)
  call   <strcasecmp@plt>
  mov    0x8(%rsp),%r8
  test   %eax,%eax
  je     L154
  lea    D49(%rip),%rsi
  mov    %r14,%rdi
  mov    %r8,0x8(%rsp)
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L134
  mov    0x8(%rsp),%r8
  add    $0x1,%r12d
  mov    $0x40,%r14d
  mov    %r12d,(%rbx)
  movl   $0x1,(%r8)
  jmp    L156
  nopl   0x0(%rax,%rax,1)
L99:
  add    $0x1,%ecx
  test   %dil,%dil
  jne    L14
  add    $0x1,%edx
  mov    $0x1,%ecx
  mov    %edx,(%rbx)
L14:
  mov    %ecx,(%r8)
  movq   $0x0,(%r15)
  jmp    L156
  nopl   0x0(%rax)
L84:
  mov    %r14d,%ecx
  lea    D35(%rip),%rdx
L34:
  xor    %esi,%esi
  xor    %edi,%edi
  xor    %eax,%eax
  mov    $0x3f,%r14d
  call   <rs_error@plt>
  jmp    L156
  nopl   0x0(%rax,%rax,1)
L126:
  mov    %r14d,%ecx
  lea    D25(%rip),%rdx
  jmp    L34
  nopl   0x0(%rax)
L7:
  add    $0x1,%edx
  mov    %rsi,(%r15)
  mov    %edx,(%rbx)
  movl   $0x1,(%r8)
  jmp    L156
  nopl   0x0(%rax)
L134:
  mov    %r14,%rcx
  lea    D36(%rip),%rdx
  xor    %esi,%esi
  xor    %edi,%edi
  xor    %eax,%eax
  mov    $0x3f,%r14d
  call   <rs_error@plt>
  jmp    L156
  nopl   0x0(%rax,%rax,1)
L154:
  add    $0x1,%r12d
  mov    $0x21,%r14d
  mov    %r12d,(%rbx)
  movl   $0x1,(%r8)
  jmp    L156
```

tool_calls: name: extract_symbolic_data
arguments: tag: D20
type_infered: string
name: extract_symbolic_data
arguments: tag: D49
type_infered: string
name: extract_symbolic_data
arguments: tag: D35
type_infered: string
name: extract_symbolic_data
arguments: tag: D25
type_infered: string
name: extract_symbolic_data
arguments: tag: D36
type_infered: string

tool: D20: --help

tool: D49: --version

tool: D35: unrecognized option -%c (try --help)

tool: D25: -%c: requires an argument

tool: D36: unrecognized option %s (try --help)

assistant: ```c
int rs_parse_cmdline(int argc, char **argv, const char *optstring, int *i, int *j, const char **arg) {
  char c;
  char *p;
  if (*i >= argc)
    return 0;
  if (argv[*i][0] != '-' || argv[*i][1] == 0) {
    *arg = argv[*i];
    (*i)++;
    *j = 1;
    return '#';
  }
  if (argv[*i][1] == '-') {
    if (!strcasecmp(argv[*i], "--help")) {
      (*i)++;
      *j = 1;
      return '!';
    } else if (!strcasecmp(argv[*i], "--version")) {
      (*i)++;
      *j = 1;
      return '@';
    } else {
      rs_error(NULL, NULL, "unrecognized option %s (try --help)", argv[*i]);
      return '?';
    }
  }
  c = argv[*i][*j];
  if (c == ':' || !(p = strchr(optstring, c))) {
    rs_error(NULL, NULL, "unrecognized option -%c (try --help)", c);
    return '?';
  }
  if (p[1] == ':') {
    if (argv[*i][*j + 1]) {
      *arg = &argv[*i][*j + 1];
      (*i)++;
      *j = 1;
      return c;
    } else {
      (*i) += 2;
      *j = 1;
      if (*i > argc) {
        rs_error(NULL, NULL, "-%c: requires an argument", c);
        return '?';
      }
      *arg = argv[*i - 1];
      return c;
    }
  } else {
    if (argv[*i][*j + 1]) {
      (*j)++;
    } else {
      (*i)++;
      *j = 1;
    }
    *arg = NULL;
    return c;
  }
}
```