user: 下面的汇编指令对应的C源代码是什么:

```asm
<mygetopt>:
  endbr64
  push   %r15
  push   %r14
  mov    %rsi,%r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    D13(%rip),%ebx
  movslq (%rcx),%rbp
  mov    %edi,0x1c(%rsp)
  mov    %r8,0x10(%rsp)
  cmp    $0x1,%ebx
  jne    L86
  cmp    %ebp,%edi
  jle    L99
  movslq %ebp,%rax
  mov    (%rsi,%rax,8),%r12
  cmpb   $0x2d,(%r12)
  jne    L99
  cmpb   $0x0,0x1(%r12)
  je     L99
L25:
  movslq %ebx,%rcx
  movsbl (%r12,%rcx,1),%r15d
  mov    %rcx,0x8(%rsp)
  cmp    $0x3a,%r15d
  je     L140
  mov    %r15d,%esi
  mov    %rdx,%rdi
  call   <strchr@plt>
  mov    0x8(%rsp),%rcx
  test   %rax,%rax
  je     L140
  cmpb   $0x3a,0x1(%rax)
  je     L43
  add    $0x1,%ebx
  mov    %ebx,D77(%rip)
  movslq %ebx,%rbx
  cmpb   $0x0,(%r12,%rbx,1)
  jne    L107
  movl   $0x1,D77(%rip)
  add    $0x1,%ebp
  mov    %ebp,0x0(%r13)
L107:
  mov    0x10(%rsp),%rax
  movq   $0x0,(%rax)
L119:
  add    $0x28,%rsp
  mov    %r15d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L86:
  mov    (%rsi,%rbp,8),%rdi
  lea    D77(%rip),%rsi
  mov    %rdx,0x8(%rsp)
  call   <strcmp@plt>
  test   %rax,%rax
  je     L158
  movslq 0x0(%r13),%rax
  mov    D77(%rip),%ebx
  mov    0x8(%rsp),%rdx
  mov    (%r14,%rax,8),%r12
  mov    %rax,%rbp
  jmp    L25
  nopl   0x0(%rax)
L43:
  lea    0x1(%r12,%rcx,1),%rdx
  lea    0x1(%rbp),%eax
  cmpb   $0x0,(%rdx)
  jne    L100
  mov    %eax,0x0(%r13)
  cmp    %eax,0x1c(%rsp)
  jle    L93
  cltq
  mov    (%r14,%rax,8),%rdx
  lea    0x2(%rbp),%eax
L100:
  movl   $0x1,D77(%rip)
  mov    0x10(%rsp),%rsi
  mov    %rdx,(%rsi)
  mov    %eax,0x0(%r13)
  jmp    L119
  nopw   0x0(%rax,%rax,1)
L140:
  mov    %r15d,%esi
  lea    D18(%rip),%rdi
  mov    $0x3f,%r15d
  call   <printf@plt>
  movslq 0x0(%r13),%rax
  mov    (%r14,%rax,8),%rcx
  mov    %rax,%rdx
  mov    D77(%rip),%eax
  add    $0x1,%eax
  mov    %eax,D94(%rip)
  cltq
  cmpb   $0x0,(%rcx,%rax,1)
  jne    L119
  movl   $0x1,D94(%rip)
  add    $0x1,%edx
  mov    %edx,0x0(%r13)
  jmp    L119
  nopl   0x0(%rax)
L99:
  mov    $0xffffffff,%r15d
  jmp    L119
  nopl   0x0(%rax,%rax,1)
L93:
  mov    %r15d,%esi
  lea    D94(%rip),%rdi
  mov    $0x3f,%r15d
  call   <printf@plt>
  movl   $0x1,D94(%rip)
  jmp    L119
L158:
  addl   $0x1,0x0(%r13)
  mov    $0xffffffff,%r15d
  jmp    L119
```

tool_calls: name: parse_data
arguments: label: D77
type_infered: string
name: parse_data
arguments: label: D18
type_infered: string
name: parse_data
arguments: label: D94
type_infered: string

tool: D77: --

tool: D18: : illegal option -- %c 


tool: D94: : option requires an argument -- %c


assistant: ```c
int mygetopt(int argc, char **argv, char *opts, int *optind, char **optarg) {
  static int sp = 1;
  register int c;
  register char *cp;
  if (sp == 1) {
    if (*optind >= argc || argv[*optind][0] != '-' || argv[*optind][1] == '\0')
      return -1;
  } else {
    if (strcmp(argv[*optind], "--") == 0) {
      *optind = *optind + 1;
      return -1;
    }
  }
  c = argv[*optind][sp];
  if (c == ':' || (cp = strchr(opts, c)) == 0) {
    printf(": illegal option -- %c \n", c);
    if (argv[*optind][++sp] == '\0') {
      *optind = *optind + 1;
      sp = 1;
    }
    return ('?');
  }
  if (*++cp == ':') {
    if (argv[*optind][sp + 1] != '\0') {
      *optarg = &argv[*optind][sp + 1];
      *optind = *optind + 1;
    } else {
      *optind = *optind + 1;
      if (*optind >= argc) {
        printf(": option requires an argument -- %c\n", c);
        sp = 1;
        return ('?');
      } else {
        *optarg = argv[*optind];
        *optind = *optind + 1;
      }
    }
    sp = 1;
  } else {
    if (argv[*optind][++sp] == '\0') {
      sp = 1;
      *optind = *optind + 1;
    }
    *optarg = 0;
  }
  return (c);
}
```