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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %edi,-0x84(%rbp)
  mov    %rsi,-0x90(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x78(%rbp)
  movss  D39(%rip),%xmm0
  movss  %xmm0,-0x74(%rbp)
  lea    D63(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  cmpl   $0x1,-0x84(%rbp)
  jg     L131
  mov    $0x0,%eax
  call   <help@plt>
  mov    $0x1,%eax
  jmp    L231
L131:
  movl   $0x1,-0x80(%rbp)
  jmp    L59
L38:
  movb   $0x0,-0x70(%rbp)
  jmp    L220
L214:
  mov    -0x80(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x84(%rbp)
  jg     L123
  mov    -0x80(%rbp),%eax
  add    $0x2,%eax
  cmp    %eax,-0x84(%rbp)
  jg     L209
  mov    -0x80(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x80(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x90(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L255
L209:
  mov    -0x80(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L255:
  mov    $0x0,%eax
  call   <help@plt>
  mov    $0x1,%eax
  jmp    L231
L123:
  mov    -0x80(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x6f,%eax
  je     L55
  cmp    $0x74,%eax
  je     L111
  jmp    L85
L55:
  movl   $0x0,-0x7c(%rbp)
  jmp    L192
L54:
  mov    -0x80(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x7c(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x7c(%rbp),%eax
  cltq
  mov    %dl,-0x70(%rbp,%rax,1)
  addl   $0x1,-0x7c(%rbp)
L192:
  cmpl   $0x5e,-0x7c(%rbp)
  jg     L178
  mov    -0x80(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x7c(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L178
  mov    -0x80(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x7c(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L54
L178:
  mov    -0x7c(%rbp),%eax
  cltq
  lea    -0x70(%rbp),%rdx
  add    %rdx,%rax
  lea    D0(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L72
L111:
  mov    -0x80(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atof@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x74(%rbp)
  jmp    L72
L85:
  mov    -0x80(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D57(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <help@plt>
  mov    $0x1,%eax
  jmp    L231
L72:
  addl   $0x2,-0x80(%rbp)
  mov    -0x80(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jge    L203
L220:
  mov    -0x80(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L214
  jmp    L152
L203:
  nop
L152:
  mov    -0x80(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jge    L229
  movzbl -0x70(%rbp),%eax
  test   %al,%al
  jne    L8
  mov    -0x78(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x78(%rbp)
  lea    -0x70(%rbp),%rcx
  mov    %eax,%edx
  lea    D6(%rip),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L8:
  mov    -0x80(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x90(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    -0x74(%rbp),%ecx
  lea    -0x70(%rbp),%rdx
  movd   %ecx,%xmm0
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <convert@plt>
  addl   $0x1,-0x80(%rbp)
L59:
  mov    -0x80(%rbp),%eax
  cmp    -0x84(%rbp),%eax
  jl     L38
  jmp    L74
L229:
  nop
L74:
  mov    $0x0,%eax
L231:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L165
  call   <__stack_chk_fail@plt>
L165:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D39
datatype: f32
name: retrieve_data
arguments: data_tag: D63
datatype: string
name: retrieve_data
arguments: data_tag: D46
datatype: string
name: retrieve_data
arguments: data_tag: D3
datatype: string
name: retrieve_data
arguments: data_tag: D52
datatype: string
name: retrieve_data
arguments: data_tag: D0
datatype: string
name: retrieve_data
arguments: data_tag: D57
datatype: string
name: retrieve_data
arguments: data_tag: D6
datatype: string

tool: D39: 1

tool: D63: toon - 3D cartoon outline generator

tool: D46: Copyright (C) 2001  Seth Galbraith

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


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


tool: D0: .txt

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


tool: D6: 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;
}
```