user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %edi,%ebx
  mov    %edi,0x4(%rsp)
  mov    %rsi,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    D49(%rip),%rdi
  call   <puts@plt>
  lea    D37(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%r13d
  lea    D48(%rip),%r14
  cmp    $0x1,%ebx
  jle    L4
L1:
  movb   $0x0,0x10(%rsp)
  movslq %r13d,%rdx
  lea    0x0(,%rdx,8),%rax
  mov    0x8(%rsp),%rbx
  lea    (%rbx,%rax,1),%r12
  mov    (%r12),%rsi
  cmpb   $0x2d,(%rsi)
  jne    L32
  lea    0x1(%r13),%ecx
  cmp    %ecx,0x4(%rsp)
  jle    L137
  mov    0x8(%rsp),%rbx
  lea    0x10(%rbx,%rax,1),%rbp
  mov    0x4(%rsp),%eax
  sub    $0x2,%eax
  sub    %r13d,%eax
  shr    %eax
  mov    %eax,%eax
  lea    0x2(%rdx,%rax,2),%r15
  mov    %rdx,%rbx
  add    $0x2,%r13d
  sub    %edx,%r13d
  mov    %r13d,(%rsp)
  jmp    L92
L4:
  mov    $0x0,%eax
  call   <help@plt>
  mov    $0x1,%eax
  jmp    L61
L137:
  mov    %rdx,%rbx
L0:
  add    $0x2,%r13d
  cmp    0x4(%rsp),%r13d
  jl     L67
  mov    0x8(%rsp),%rax
  mov    0x8(%rax,%rbx,8),%rdx
  lea    D47(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L47:
  mov    $0x0,%eax
  call   <help@plt>
  mov    $0x1,%eax
L61:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L3
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L67:
  lea    D46(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L47
L76:
  movslq %ecx,%rcx
  lea    0x10(%rsp,%rcx,1),%rdi
  mov    %r14,%rsi
  call   <sprintf@plt>
  mov    (%rsp),%eax
  lea    (%rax,%rbx,1),%r13d
  add    $0x2,%rbx
  mov    (%r12),%rsi
  cmpb   $0x2d,(%rsi)
  jne    L26
  add    $0x10,%rbp
  cmp    %r15,%rbx
  je     L0
L92:
  cmpb   $0x6f,0x1(%rsi)
  jne    L196
  mov    %rbp,%r12
  mov    -0x8(%rbp),%rdi
  mov    $0x0,%eax
L192:
  mov    %eax,%esi
  mov    %eax,%ecx
  movzbl (%rdi,%rax,1),%edx
  cmp    $0x2e,%dl
  je     L76
  test   %dl,%dl
  je     L76
  mov    %dl,0x10(%rsp,%rax,1)
  lea    0x1(%rsi),%ecx
  add    $0x1,%rax
  cmp    $0x5f,%rax
  jne    L192
  jmp    L76
L196:
  lea    D36(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <help@plt>
  mov    $0x1,%eax
  jmp    L61
L26:
  cmpb   $0x0,0x10(%rsp)
  je     L32
L127:
  lea    0x10(%rsp),%rsi
  mov    (%r12),%rdi
  call   <convert@plt>
  add    $0x1,%r13d
  cmp    %r13d,0x4(%rsp)
  jg     L1
  mov    $0x0,%eax
  jmp    L61
L32:
  mov    $0x0,%eax
L214:
  mov    %eax,%edi
  mov    %eax,%ecx
  movzbl (%rsi,%rax,1),%edx
  cmp    $0x2e,%dl
  je     L176
  test   %dl,%dl
  je     L176
  mov    %dl,0x10(%rsp,%rax,1)
  lea    0x1(%rdi),%ecx
  add    $0x1,%rax
  cmp    $0x5f,%rax
  jne    L214
L176:
  movslq %ecx,%rcx
  lea    0x10(%rsp,%rcx,1),%rdi
  mov    %r14,%rsi
  call   <sprintf@plt>
  jmp    L127
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D49
type: string
name: read_data
arguments: data_label: D37
type: string
name: read_data
arguments: data_label: D48
type: string
name: read_data
arguments: data_label: D47
type: string
name: read_data
arguments: data_label: D46
type: string
name: read_data
arguments: data_label: D36
type: string

tool: D49: skinless - base frame generator

tool: D37: Copyright (C) 2001  Seth Galbraith

tool: D48: .cad

tool: D47: ERROR: option '%s %s' not followed by a filename.


tool: D46: ERROR: option '%s' not followed by a value.


tool: D36: ERROR: unrecognized option '%s'.


assistant: ```c
int main(int argc, char **argv) {
  int i, c;
  char outfile[100];
  printf("skinless - base frame generator\n");
  printf("Copyright (C) 2001  Seth Galbraith\n");
  if (argc < 2) {
    help();
    return 1;
  }
  for (i = 1; i < argc; i++) {
    outfile[0] = '\0';
    while (argv[i][0] == '-') {
      if (i + 2 > argc) {
        if (i + 3 > argc)
          printf("ERROR: option '%s %s' not followed by a filename.\n", argv[i], argv[i + 1]);
        else
          printf("ERROR: option '%s' not followed by a value.\n", argv[i]);
        help();
        return 1;
      }
      switch (argv[i][1]) {
      case 'o':
        for (c = 0; c < 95 && argv[i + 1][c] && argv[i + 1][c] != '.'; c++)
          outfile[c] = argv[i + 1][c];
        sprintf(outfile + c, ".cad");
        break;
      default:
        printf("ERROR: unrecognized option '%s'.\n", argv[i]);
        help();
        return 1;
      }
      i += 2;
    }
    if (outfile[0] == '\0') {
      for (c = 0; c < 95 && argv[i][c] && argv[i][c] != '.'; c++)
        outfile[c] = argv[i][c];
      sprintf(outfile + c, ".cad");
    }
    convert(argv[i], outfile);
  }
  return 0;
}
```