user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<input>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %r9,0x8(%rsp)
  cmp    $0x1,%edi
  je     L185
  cmp    $0x2,%edi
  je     L149
  movq   $0x3,(%rdx)
  mov    %rcx,%r12
  mov    %rdx,%rbp
  mov    %r8,%r13
  movq   $0x32,(%rcx)
  mov    0x8(%rsp),%rcx
  movslq %edi,%r14
  movq   $0x0,(%r8)
  movq   $0x0,(%rcx)
  cmp    $0x3,%edi
  jle    L38
  mov    %rsi,%r15
  mov    $0x3,%ebx
  nopl   0x0(%rax,%rax,1)
L84:
  mov    (%r15,%rbx,8),%rax
  lea    0x0(,%rbx,8),%rsi
  movzbl (%rax),%edx
  cmp    $0x2d,%edx
  je     L232
L149:
  xor    %edi,%edi
  xor    %eax,%eax
  call   <usage@plt>
  mov    $0xffffffffffffffff,%rax
L190:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L232:
  cmpb   $0x6b,0x1(%rax)
  je     L93
L91:
  cmp    $0x2d,%edx
  jne    L149
  cmpb   $0x6e,0x1(%rax)
  je     L122
L212:
  cmp    $0x2d,%edx
  jne    L149
  cmpb   $0x64,0x1(%rax)
  je     L67
L236:
  cmp    $0x2d,%edx
  jne    L149
  cmpb   $0x49,0x1(%rax)
  je     L79
L44:
  cmp    $0x2d,%edx
  jne    L149
  cmpb   $0x4c,0x1(%rax)
  jne    L149
  cmpb   $0x0,0x2(%rax)
  jne    L149
  xor    %eax,%eax
  call   <print_sos_lic@plt>
  xor    %edi,%edi
  call   <exit@plt>
  nopw   0x0(%rax,%rax,1)
L93:
  cmpb   $0x0,0x2(%rax)
  jne    L91
  add    $0x1,%rbx
  cmp    %r14,%rbx
  je     L149
  mov    0x8(%r15,%rsi,1),%rdi
  cmpb   $0x2d,(%rdi)
  je     L149
  xor    %eax,%eax
  call   <atol@plt>
  cltq
  mov    %rax,0x0(%rbp)
L12:
  add    $0x1,%rbx
  cmp    %r14,%rbx
  jl     L84
L38:
  cmpq   $0x2,0x0(%rbp)
  jle    L185
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L122:
  cmpb   $0x0,0x2(%rax)
  jne    L212
  add    $0x1,%rbx
  cmp    %r14,%rbx
  je     L149
  mov    0x8(%r15,%rsi,1),%rdi
  cmpb   $0x2d,(%rdi)
  je     L149
  xor    %eax,%eax
  call   <atol@plt>
  cltq
  mov    %rax,(%r12)
  jmp    L12
  nopl   0x0(%rax)
L67:
  cmpb   $0x0,0x2(%rax)
  jne    L236
  movq   $0x1,0x0(%r13)
  jmp    L12
  nopl   0x0(%rax)
L79:
  cmpb   $0x0,0x2(%rax)
  jne    L44
  mov    0x8(%rsp),%rax
  movq   $0x1,(%rax)
  jmp    L12
L185:
  mov    $0x1,%edi
  xor    %eax,%eax
  call   <usage@plt>
  mov    $0xffffffffffffffff,%rax
  jmp    L190
```

assistant: ```c
long input(argc, argv, maxK, nMaxIter, displayFlag, invertFlag)
int argc;
char *argv[];
long *maxK, *nMaxIter, *displayFlag, *invertFlag;
{
  long n;
  static char *kString = "-k";
  static char *nString = "-n";
  static char *dString = "-d";
  static char *IString = "-I";
  static char *dashString = "-";
  if (argc == 1) {
    usage(1);
    return (-1);
  };
  if (argc == 2) {
    usage(0);
    return (-1);
  };
  *maxK = 3;
  *nMaxIter = 50;
  *displayFlag = 0;
  *invertFlag = 0;
  for (n = 3; n < argc; n++) {
    if (strcmp(argv[n], kString) == 0) {
      if (++n == argc || argv[n][0] == '-') {
        usage(0);
        return (-1);
      };
      *maxK = atol(argv[n]);
    } else if (strcmp(argv[n], nString) == 0) {
      if (++n == argc || argv[n][0] == '-') {
        usage(0);
        return (-1);
      };
      *nMaxIter = atol(argv[n]);
    } else if (strcmp(argv[n], dString) == 0)
      *displayFlag = 1;
    else if (strcmp(argv[n], IString) == 0)
      *invertFlag = 1;
    else if (strcmp(argv[n], "-L") == 0) {
      print_sos_lic();
      exit(0);
    } else {
      usage(0);
      return (-1);
    };
  }
  if (*maxK < 3) {
    usage(1);
    return (-1);
  };
  return (0);
}
```