user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  mov    %edi,%r14d
  lea    D52(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    D8(%rip),%rdi
  call   <puts@plt>
  cmp    $0x1,%r14d
  jle    L194
  mov    $0x1,%r12d
  mov    $0x1,%ecx
  lea    0x10(%rsp),%r13
  movss  D15(%rip),%xmm0
L129:
  movb   $0x0,0x10(%rsp)
  movslq %ecx,%rbx
L150:
  mov    (%r15,%rbx,8),%rsi
  mov    %ebx,%ebp
  mov    %ebx,%ecx
  cmpb   $0x2d,(%rsi)
  jne    L9
  lea    0x1(%rbx),%eax
  cmp    %eax,%r14d
  jle    L28
  movzbl 0x1(%rsi),%eax
  cmp    $0x6f,%al
  je     L191
  cmp    $0x74,%al
  je     L22
  lea    D30(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L194:
  xor    %eax,%eax
  call   <help@plt>
  mov    $0x1,%eax
L107:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L122
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L22:
  mov    0x8(%r15,%rbx,8),%rdi
  call   <atof@plt>
L14:
  add    $0x2,%rbx
  lea    0x2(%rbp),%ecx
  cmp    %ebx,%r14d
  jg     L150
L9:
  cmp    %r14d,%ecx
  jge    L203
  cmpb   $0x0,0x10(%rsp)
  je     L125
L44:
  movslq %ecx,%rax
  mov    %r13,%rsi
  mov    %ecx,0xc(%rsp)
  mov    (%r15,%rax,8),%rdi
  movss  %xmm0,0x8(%rsp)
  call   <convert@plt>
  mov    0xc(%rsp),%ecx
  movss  0x8(%rsp),%xmm0
  add    $0x1,%ecx
  cmp    %ecx,%r14d
  jg     L129
L203:
  xor    %eax,%eax
  jmp    L107
  nopl   0x0(%rax,%rax,1)
L191:
  mov    0x8(%r15,%rbx,8),%rsi
  xor    %eax,%eax
  jmp    L6
  nopl   0x0(%rax)
L20:
  test   %dl,%dl
  je     L130
  mov    %dl,0x0(%r13,%rax,1)
  add    $0x1,%rax
  cmp    $0x5f,%rax
  je     L87
L6:
  movzbl (%rsi,%rax,1),%edx
  movslq %eax,%rcx
  cmp    $0x2e,%dl
  jne    L20
L130:
  add    %r13,%rcx
  movl   $0x7478742e,(%rcx)
  movb   $0x0,0x4(%rcx)
  jmp    L14
L87:
  mov    $0x5f,%ecx
  jmp    L130
L28:
  lea    0x2(%rbp),%r8d
  cmp    %r14d,%r8d
  jl     L202
  mov    0x8(%r15,%rbx,8),%rdx
  lea    D61(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L194
L202:
  lea    D50(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L194
L125:
  mov    %r12d,%edx
  lea    0x1(%r12),%ebx
  mov    %r13,%rdi
  xor    %eax,%eax
  lea    D36(%rip),%rsi
  mov    %ecx,0x8(%rsp)
  mov    %ebx,%r12d
  movss  %xmm0,0xc(%rsp)
  call   <sprintf@plt>
  movss  0xc(%rsp),%xmm0
  mov    0x8(%rsp),%ecx
  jmp    L44
L122:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D52
type: string
name: unpack_data
arguments: label: D8
type: string
name: unpack_data
arguments: label: D15
type: f32
name: unpack_data
arguments: label: D30
type: string
name: unpack_data
arguments: label: D61
type: string
name: unpack_data
arguments: label: D50
type: string
name: unpack_data
arguments: label: D36
type: string

tool: D52: toon - 3D cartoon outline generator

tool: D8: Copyright (C) 2001  Seth Galbraith

tool: D15: 1

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


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


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


tool: D36: toon%i.txt

assistant: ```c
int main(int argc, char **argv) {
  int i, c;
  int count = 1;
  char outfile[100];
  float thickness = 1;
  printf("toon - 3D cartoon outline 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, ".txt");
        break;
      case 't':
        thickness = atof(argv[i + 1]);
        break;
      default:
        printf("ERROR: unrecognized option '%s'.\n", argv[i]);
        help();
        return 1;
      }
      i += 2;
      if (i >= argc)
        break;
    }
    if (i >= argc)
      break;
    if (outfile[0] == '\0')
      sprintf(outfile, "toon%i.txt", count++);
    convert(argv[i], outfile, thickness);
  }
  return 0;
}
```