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

```asm
<getopt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %edi,0x4(%rsp)
  mov    %rsi,0x18(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    D134(%rip),%rax
  cmpl   $0x0,(%rax)
  jne    L267
  movl   $0x1,(%rax)
  movl   $0x0,D26(%rip)
L267:
  mov    D134(%rip),%rax
  mov    (%rax),%ebx
  cmp    %ebx,0x4(%rsp)
  jl     L27
  movslq %ebx,%rbx
  mov    0x18(%rsp),%rax
  lea    (%rax,%rbx,8),%rbp
  jmp    L189
L106:
  cmpb   $0x0,0x2(%rax)
  jne    L140
  mov    %ebx,%edx
  add    $0x1,%edx
  mov    D134(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%r13d
  jmp    L4
L60:
  mov    D110(%rip),%r14d
  movslq %r14d,%r15
  movsbl 0x1(%rax,%r15,1),%r13d
  mov    D135(%rip),%rax
  mov    %r13d,(%rax)
  mov    %r13d,%esi
  mov    0x8(%rsp),%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L73
  cmpb   $0x0,(%rax)
  jne    L79
  add    $0x1,%r12d
  mov    D134(%rip),%rax
  mov    %r12d,(%rax)
  add    $0x1,%rbx
  add    $0x8,%rbp
  cmp    %ebx,0x4(%rsp)
  jl     L207
L189:
  mov    %ebx,%r12d
  mov    %ebx,(%rsp)
  mov    %rbp,0x10(%rsp)
  mov    0x0(%rbp),%rax
  test   %rax,%rax
  je     L128
  cmpb   $0x2d,(%rax)
  jne    L172
  movzbl 0x1(%rax),%edx
  test   %dl,%dl
  je     L266
  cmp    $0x2d,%dl
  je     L106
L140:
  cmp    %ebx,D99(%rip)
  je     L60
  mov    (%rsp),%ecx
  mov    %ecx,D99(%rip)
  movl   $0x0,D110(%rip)
  jmp    L60
L79:
  cmpb   $0x3a,0x1(%rax)
  jne    L98
  cmpb   $0x3a,0x2(%rax)
  je     L104
  mov    0x10(%rsp),%rax
  mov    (%rax),%rax
  cmpb   $0x0,0x2(%rax,%r15,1)
  jne    L104
  mov    0x18(%rsp),%rax
  mov    0x8(%rax,%rbx,8),%rax
  mov    D99(%rip),%rdx
  mov    %rax,(%rdx)
  test   %rax,%rax
  je     L170
  mov    (%rsp),%eax
  add    $0x1,%eax
  mov    D134(%rip),%rdx
  mov    %eax,(%rdx)
L148:
  mov    D134(%rip),%rax
  addl   $0x1,(%rax)
  jmp    L4
L104:
  mov    0x10(%rsp),%rax
  mov    (%rax),%rax
  lea    0x2(%rax,%r15,1),%rax
  mov    D99(%rip),%rdx
  mov    %rax,(%rdx)
  cmpb   $0x0,(%rax)
  jne    L148
  movq   $0x0,(%rdx)
  jmp    L148
L170:
  mov    (%rsp),%edx
  add    $0x1,%edx
  mov    D134(%rip),%rax
  mov    %edx,(%rax)
  mov    $0x3a,%r13d
  mov    0x8(%rsp),%rax
  cmpb   $0x3a,(%rax)
  je     L4
  mov    $0x1,%edi
  call   <getopterror@plt>
  jmp    L4
L98:
  add    $0x1,%r14d
  mov    %r14d,D2(%rip)
  jmp    L4
L73:
  mov    $0x0,%edi
  call   <getopterror@plt>
  mov    D134(%rip),%rax
  addl   $0x1,(%rax)
  mov    $0x3f,%r13d
  jmp    L4
L27:
  mov    $0xffffffff,%r13d
  jmp    L4
L128:
  mov    $0xffffffff,%r13d
L4:
  mov    %r13d,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L172:
  mov    $0xffffffff,%r13d
  jmp    L4
L266:
  mov    $0xffffffff,%r13d
  jmp    L4
L207:
  mov    $0xffffffff,%r13d
  jmp    L4
```

assistant: ```c
int getopt(int argc, char *const argv[], const char *optstring) {
  static int lastidx, lastofs;
  char *tmp;
  if (optind == 0) {
    optind = 1;
    lastidx = 0;
  }
again:
  if (optind > argc || !argv[optind] || *argv[optind] != '-' || argv[optind][1] == 0)
    return -1;
  if (argv[optind][1] == '-' && argv[optind][2] == 0) {
    ++optind;
    return -1;
  }
  if (lastidx != optind) {
    lastidx = optind;
    lastofs = 0;
  }
  optopt = argv[optind][lastofs + 1];
  if ((tmp = strchr(optstring, optopt))) {
    if (*tmp == 0) {
      ++optind;
      goto again;
    }
    if (tmp[1] == ':') {
      if (tmp[2] == ':' || argv[optind][lastofs + 2]) {
        if (!*(optarg = argv[optind] + lastofs + 2))
          optarg = 0;
        goto found;
      }
      optarg = argv[optind + 1];
      if (!optarg) {
        ++optind;
        if (*optstring == ':')
          return ':';
        getopterror(1);
        return ':';
      }
      ++optind;
    } else {
      ++lastofs;
      return optopt;
    }
  found:
    ++optind;
    return optopt;
  } else {
    getopterror(0);
    ++optind;
    return '?';
  }
}
```