user: What is the c source code of the assembly code below?

```asm
<convert>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x160,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r13
  movss  %xmm0,0x4(%rsp)
  movss  %xmm1,0x8(%rsp)
  movss  %xmm2,0xc(%rsp)
  movss  %xmm3,0x10(%rsp)
  movss  %xmm4,0x14(%rsp)
  movss  %xmm5,0x18(%rsp)
  movss  %xmm6,0x1c(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x158(%rsp)
  xor    %eax,%eax
  mov    %rdi,%rsi
  lea    D85(%rip),%rdi
  call   <printf@plt>
  mov    %r13,%rsi
  lea    D234(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    $0x4,%eax
  jle    L12
  cltq
  lea    -0x4(%rbx,%rax,1),%rbp
  lea    D14(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L105
  lea    D113(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    $0x2,%r12d
  test   %rax,%rax
  je     L16
L12:
  lea    D218(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L46
L105:
  mov    $0x1,%r12d
L16:
  lea    D256(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  lea    D44(%rip),%rsi
  mov    %r13,%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  lea    D178(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  lea    D129(%rip),%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  lea    D187(%rip),%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  lea    D11(%rip),%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  lea    D122(%rip),%r14
  lea    D121(%rip),%r13
  jmp    L67
L29:
  lea    0x50(%rsp),%rdi
  call   <strlen@plt>
  cmp    $0x4,%eax
  jle    L67
  lea    0x34(%rsp),%rcx
  lea    0x2c(%rsp),%rdx
  lea    0x50(%rsp),%rdi
  sub    $0x8,%rsp
  lea    0x50(%rsp),%rax
  push   %rax
  lea    0x5c(%rsp),%rax
  push   %rax
  lea    0x5c(%rsp),%rax
  push   %rax
  lea    0x5c(%rsp),%rax
  push   %rax
  lea    0x68(%rsp),%rax
  push   %rax
  lea    0x68(%rsp),%r9
  lea    0x60(%rsp),%r8
  mov    %r13,%rsi
  call   <sscanf@plt>
  movss  0x5c(%rsp),%xmm0
  xorps  D188(%rip),%xmm0
  movss  %xmm0,0x5c(%rsp)
  movss  0x68(%rsp),%xmm0
  xorps  D188(%rip),%xmm0
  movss  %xmm0,0x68(%rsp)
  movss  0x74(%rsp),%xmm0
  xorps  D188(%rip),%xmm0
  movss  %xmm0,0x74(%rsp)
  movss  0x60(%rsp),%xmm0
  xorps  D188(%rip),%xmm0
  movss  %xmm0,0x60(%rsp)
  movss  0x6c(%rsp),%xmm0
  xorps  D188(%rip),%xmm0
  movss  %xmm0,0x6c(%rsp)
  movss  0x78(%rsp),%xmm0
  xorps  D188(%rip),%xmm0
  movss  %xmm0,0x78(%rsp)
  add    $0x30,%rsp
L22:
  movss  0x8(%rsp),%xmm0
  movaps %xmm0,%xmm7
  mulss  0x40(%rsp),%xmm7
  movss  0x4(%rsp),%xmm1
  movaps %xmm1,%xmm6
  mulss  0x3c(%rsp),%xmm6
  movaps %xmm1,%xmm5
  mulss  0x38(%rsp),%xmm5
  movaps %xmm0,%xmm4
  mulss  0x34(%rsp),%xmm4
  movaps %xmm1,%xmm3
  mulss  0x30(%rsp),%xmm3
  movaps %xmm1,%xmm2
  mulss  0x2c(%rsp),%xmm2
  sub    $0x20,%rsp
  mulss  0x6c(%rsp),%xmm0
  movss  0x34(%rsp),%xmm8
  addss  %xmm8,%xmm0
  movss  %xmm0,0x10(%rsp)
  movaps %xmm1,%xmm0
  mulss  0x68(%rsp),%xmm0
  movss  0x30(%rsp),%xmm9
  addss  %xmm9,%xmm0
  movss  %xmm0,0x8(%rsp)
  mulss  0x64(%rsp),%xmm1
  movaps %xmm1,%xmm0
  movss  0x2c(%rsp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rsp)
  addss  %xmm8,%xmm7
  addss  %xmm9,%xmm6
  addss  %xmm1,%xmm5
  addss  %xmm8,%xmm4
  addss  %xmm9,%xmm3
  addss  %xmm1,%xmm2
  movss  0x3c(%rsp),%xmm1
  movss  0x38(%rsp),%xmm0
  mov    %rbx,%rdi
  call   <write_terrain_triangle@plt>
  add    $0x20,%rsp
L67:
  lea    0x50(%rsp),%rdi
  mov    %rbp,%rdx
  mov    $0xff,%esi
  call   <fgets@plt>
  test   %rax,%rax
  je     L110
  cmp    $0x1,%r12d
  je     L29
  cmpb   $0x46,0x50(%rsp)
  jne    L67
  cmpb   $0x20,0x51(%rsp)
  jne    L67
  lea    0x34(%rsp),%rcx
  lea    0x30(%rsp),%rdx
  lea    0x50(%rsp),%rdi
  sub    $0x8,%rsp
  lea    0x4c(%rsp),%rax
  push   %rax
  lea    0x5c(%rsp),%rax
  push   %rax
  lea    0x60(%rsp),%rax
  push   %rax
  lea    0x58(%rsp),%rax
  push   %rax
  lea    0x68(%rsp),%rax
  push   %rax
  lea    0x6c(%rsp),%r9
  lea    0x5c(%rsp),%r8
  mov    %r14,%rsi
  call   <sscanf@plt>
  movss  0x60(%rsp),%xmm0
  xorps  D188(%rip),%xmm0
  movss  %xmm0,0x60(%rsp)
  movss  0x6c(%rsp),%xmm0
  xorps  D188(%rip),%xmm0
  movss  %xmm0,0x6c(%rsp)
  movss  0x78(%rsp),%xmm0
  xorps  D188(%rip),%xmm0
  movss  %xmm0,0x78(%rsp)
  add    $0x30,%rsp
  jmp    L22
L110:
  lea    D94(%rip),%r12
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  lea    D178(%rip),%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  lea    D104(%rip),%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  lea    D46(%rip),%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  lea    D91(%rip),%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
L46:
  mov    0x158(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L48
  add    $0x160,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L48:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D85
datatype: string
name: read_data
arguments: label: D234
datatype: string
name: read_data
arguments: label: D14
datatype: string
name: read_data
arguments: label: D113
datatype: string
name: read_data
arguments: label: D218
datatype: string
name: read_data
arguments: label: D256
datatype: string
name: read_data
arguments: label: D44
datatype: string
name: read_data
arguments: label: D178
datatype: string
name: read_data
arguments: label: D129
datatype: string
name: read_data
arguments: label: D187
datatype: string
name: read_data
arguments: label: D11
datatype: string
name: read_data
arguments: label: D122
datatype: string
name: read_data
arguments: label: D121
datatype: string
name: read_data
arguments: label: D188
datatype: byte[16]
name: read_data
arguments: label: D94
datatype: string
name: read_data
arguments: label: D104
datatype: string
name: read_data
arguments: label: D46
datatype: string
name: read_data
arguments: label: D91
datatype: string

tool: D85: Input  File Name: %s


tool: D234: Output File Name: %s


tool: D14: .raw

tool: D113: .cad

tool: D218: ERROR: input file type should be .raw or .cad

tool: D256: ra

tool: D44: wa

tool: D178: {


tool: D129:  "classname" "worldspawn"


tool: D187:  "message" "No Name"


tool: D11:  "worldtype" "0"


tool: D122: F %f %f %f %f %f %f %f %f %f

tool: D121: %f %f %f %f %f %f %f %f %f

tool: {"D188": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: D94: }


tool: D104:  "classname" "info_player_start"


tool: D46:  "origin" "0 0 0"


tool: D91:  "angle" "360"


assistant: ```c
int convert(char *in, char *out, float hscale, float vscale, float xoff, float yoff, float zoff, float floor, float quark) {
  FILE *i, *o;
  int length, type = 0;
  char str[256];
  float ax, ay, az, bx, by, bz, cx, cy, cz;
  printf("Input  File Name: %s\n", in);
  printf("Output File Name: %s\n", out);
  length = strlen(in);
  if (length < 5)
    type = 0;
  else if (strcmp(in + (length - 4), ".raw") == 0)
    type = 1;
  else if (strcmp(in + (length - 4), ".cad") == 0)
    type = 2;
  if (type == 0) {
    printf("ERROR: input file type should be .raw or .cad\n");
    return 1;
  }
  i = fopen(in, "ra");
  o = fopen(out, "wa");
  fprintf(o, "{\n");
  fprintf(o, " \"classname\" \"worldspawn\"\n");
  fprintf(o, " \"message\" \"No Name\"\n");
  fprintf(o, " \"worldtype\" \"0\"\n");
  while (1) {
    if (fgets(str, 255, i) == NULL)
      break;
    if (type == 1) {
      if (strlen(str) < 5)
        continue;
      sscanf(str, "%f %f %f %f %f %f %f %f %f", &ax, &az, &ay, &bx, &bz, &by, &cx, &cz, &cy);
      ax *= -1;
      bx *= -1;
      cx *= -1;
      ay *= -1;
      by *= -1;
      cy *= -1;
    }
    if (type == 2) {
      if (str[0] != 'F' || str[1] != ' ')
        continue;
      sscanf(str, "F %f %f %f %f %f %f %f %f %f", &ay, &az, &ax, &by, &bz, &bx, &cy, &cz, &cx);
      ay *= -1;
      by *= -1;
      cy *= -1;
    }
    write_terrain_triangle(o, floor, quark, ax * hscale + xoff, ay * hscale + yoff, az * vscale + zoff, bx * hscale + xoff, by * hscale + yoff, bz * vscale + zoff, cx * hscale + xoff, cy * hscale + yoff, cz * vscale + zoff);
  }
  fprintf(o, "}\n");
  fprintf(o, "{\n");
  fprintf(o, " \"classname\" \"info_player_start\"\n");
  fprintf(o, " \"origin\" \"0 0 0\"\n");
  fprintf(o, " \"angle\" \"360\"\n");
  fprintf(o, "}\n");
  fclose(i);
  fclose(o);
  return 0;
}
```