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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xf0,%rsp
  mov    %edi,-0xe4(%rbp)
  mov    %rsi,-0xf0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movss  D105(%rip),%xmm0
  movss  %xmm0,-0xb8(%rbp)
  movl   $0x1,-0xb4(%rbp)
  mov    -0xf0(%rbp),%rdx
  mov    -0xe4(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <setpar@plt>
  lea    -0xd0(%rbp),%rax
  mov    %rax,%rdx
  lea    D19(%rip),%rax
  mov    %rax,%rsi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <mstpar@plt>
  lea    -0xcc(%rbp),%rax
  mov    %rax,%rdx
  lea    D19(%rip),%rax
  mov    %rax,%rsi
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  call   <mstpar@plt>
  lea    -0xd4(%rbp),%rax
  mov    %rax,%rdx
  lea    D19(%rip),%rax
  mov    %rax,%rsi
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <mstpar@plt>
  lea    -0xdc(%rbp),%rax
  mov    %rax,%rdx
  lea    D19(%rip),%rax
  mov    %rax,%rsi
  lea    D206(%rip),%rax
  mov    %rax,%rdi
  call   <mstpar@plt>
  lea    -0xd8(%rbp),%rax
  mov    %rax,%rdx
  lea    D19(%rip),%rax
  mov    %rax,%rsi
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  call   <mstpar@plt>
  lea    -0xb8(%rbp),%rax
  mov    %rax,%rdx
  lea    D19(%rip),%rax
  mov    %rax,%rsi
  lea    D145(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <getpar@plt>
  lea    -0xb4(%rbp),%rax
  mov    %rax,%rdx
  lea    D12(%rip),%rax
  mov    %rax,%rsi
  lea    D227(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <getpar@plt>
  mov    $0x0,%eax
  call   <endpar@plt>
  lea    -0xcc(%rbp),%rdi
  lea    -0xd0(%rbp),%rcx
  lea    -0xd4(%rbp),%rdx
  lea    -0x50(%rbp),%rsi
  lea    -0xa0(%rbp),%rax
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <gen_matrices@plt>
  movss  -0xd8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D163(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movss  -0xb8(%rbp),%xmm1
  cvtss2sd %xmm1,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  movss  -0xdc(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D163(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movss  -0xb8(%rbp),%xmm1
  cvtss2sd %xmm1,%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  mov    -0xb4(%rbp),%eax
  test   %eax,%eax
  je     L46
  jmp    L37
L54:
  lea    -0xb0(%rbp),%r9
  lea    -0xb8(%rbp),%r8
  lea    -0xc4(%rbp),%rcx
  lea    -0xc8(%rbp),%rdx
  lea    -0xbc(%rbp),%rsi
  lea    -0xc0(%rbp),%rax
  push   $0x0
  lea    -0x50(%rbp),%rdi
  push   %rdi
  lea    -0xa0(%rbp),%rdi
  push   %rdi
  lea    -0xa8(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  call   <gcproj@plt>
  add    $0x20,%rsp
  movss  -0xc4(%rbp),%xmm0
  mov    -0xc8(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  lea    D137(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xb0(%rbp),%r9
  lea    -0xb8(%rbp),%r8
  lea    -0xc4(%rbp),%rcx
  lea    -0xc8(%rbp),%rdx
  lea    -0xbc(%rbp),%rsi
  lea    -0xc0(%rbp),%rax
  push   $0x1
  lea    -0x50(%rbp),%rdi
  push   %rdi
  lea    -0xa0(%rbp),%rdi
  push   %rdi
  lea    -0xa8(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  call   <gcproj@plt>
  add    $0x20,%rsp
  movss  -0xbc(%rbp),%xmm0
  mov    -0xc0(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  lea    D137(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L37:
  lea    -0xbc(%rbp),%rdx
  lea    -0xc0(%rbp),%rax
  mov    %rax,%rsi
  lea    D89(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  je     L54
  jmp    L27
L14:
  lea    -0xb0(%rbp),%r9
  lea    -0xb8(%rbp),%r8
  lea    -0xc4(%rbp),%rcx
  lea    -0xc8(%rbp),%rdx
  lea    -0xbc(%rbp),%rsi
  lea    -0xc0(%rbp),%rax
  push   $0x1
  lea    -0x50(%rbp),%rdi
  push   %rdi
  lea    -0xa0(%rbp),%rdi
  push   %rdi
  lea    -0xa8(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  call   <gcproj@plt>
  add    $0x20,%rsp
  movss  -0xbc(%rbp),%xmm0
  mov    -0xc0(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  lea    D137(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xb0(%rbp),%r9
  lea    -0xb8(%rbp),%r8
  lea    -0xc4(%rbp),%rcx
  lea    -0xc8(%rbp),%rdx
  lea    -0xbc(%rbp),%rsi
  lea    -0xc0(%rbp),%rax
  push   $0x0
  lea    -0x50(%rbp),%rdi
  push   %rdi
  lea    -0xa0(%rbp),%rdi
  push   %rdi
  lea    -0xa8(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  call   <gcproj@plt>
  add    $0x20,%rsp
  movss  -0xc4(%rbp),%xmm0
  mov    -0xc8(%rbp),%eax
  movaps %xmm0,%xmm1
  movd   %eax,%xmm0
  lea    D137(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L46:
  lea    -0xc4(%rbp),%rdx
  lea    -0xc8(%rbp),%rax
  mov    %rax,%rsi
  lea    D89(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  je     L14
L27:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L23
  call   <__stack_chk_fail@plt>
L23:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D105
type_infered: f32
name: read_data
arguments: data_label: D19
type_infered: string
name: read_data
arguments: data_label: D53
type_infered: string
name: read_data
arguments: data_label: D70
type_infered: string
name: read_data
arguments: data_label: D45
type_infered: string
name: read_data
arguments: data_label: D206
type_infered: string
name: read_data
arguments: data_label: D44
type_infered: string
name: read_data
arguments: data_label: D145
type_infered: string
name: read_data
arguments: data_label: D12
type_infered: string
name: read_data
arguments: data_label: D227
type_infered: string
name: read_data
arguments: data_label: D163
type_infered: f64
name: read_data
arguments: data_label: D137
type_infered: string
name: read_data
arguments: data_label: D89
type_infered: string

tool: D105: 6378.139

tool: D19: f

tool: D53: ref_lon

tool: D70: ref_lat

tool: D45: alpha

tool: D206: xlen

tool: D44: ylen

tool: D145: ref_rad

tool: D12: d

tool: D227: input_xy

tool: D163: 0.5

tool: D137: %.5f %.5f


tool: D89: %f %f

assistant: ```c
main(int ac, char **av) {
  FILE *fpw, *fpr, *fopfile();
  float xlen, ylen, alpha, ref_lon, ref_lat, rlon, rlat;
  float dx, dy, xf, yf;
  double g0, b0;
  double amat[9], ainv[9];
  float ref_rad = 6378.139;
  int input_xy = 1;
  setpar(ac, av);
  mstpar("ref_lon", "f", &ref_lon);
  mstpar("ref_lat", "f", &ref_lat);
  mstpar("alpha", "f", &alpha);
  mstpar("xlen", "f", &xlen);
  mstpar("ylen", "f", &ylen);
  getpar("ref_rad", "f", &ref_rad);
  getpar("input_xy", "d", &input_xy);
  endpar();
  gen_matrices(amat, ainv, &alpha, &ref_lon, &ref_lat);
  g0 = (double)(0.5 * ylen) / (double)(ref_rad);
  b0 = (double)(0.5 * xlen) / (double)(ref_rad);
  if (input_xy) {
    while (scanf("%f %f", &xf, &yf) == 2) {
      gcproj(&xf, &yf, &rlon, &rlat, &ref_rad, &g0, &b0, amat, ainv, 0);
      printf("%.5f %.5f\n", rlon, rlat);
      gcproj(&xf, &yf, &rlon, &rlat, &ref_rad, &g0, &b0, amat, ainv, 1);
      printf("%.5f %.5f\n", xf, yf);
    }
  } else {
    while (scanf("%f %f", &rlon, &rlat) == 2) {
      gcproj(&xf, &yf, &rlon, &rlat, &ref_rad, &g0, &b0, amat, ainv, 1);
      printf("%.5f %.5f\n", xf, yf);
      gcproj(&xf, &yf, &rlon, &rlat, &ref_rad, &g0, &b0, amat, ainv, 0);
      printf("%.5f %.5f\n", rlon, rlat);
    }
  }
}
```